@maestro_io/maestro-web-sdk 2.0.1 → 2.1.0

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.
Files changed (80) hide show
  1. package/dist/MaestroEventDelegate.d.ts +4 -0
  2. package/dist/components/atoms/BaseButton/BaseButton.d.ts +2 -4
  3. package/dist/components/atoms/Image/index.d.ts +5 -1
  4. package/dist/components/atoms/Rive/index.d.ts +89 -0
  5. package/dist/components/atoms/SvgIcon/BetGeneralIcon.d.ts +4 -0
  6. package/dist/components/atoms/SvgIcon/BetsWarningIcon.d.ts +7 -0
  7. package/dist/components/atoms/SvgIcon/CheckmarkIcon.d.ts +4 -0
  8. package/dist/components/atoms/SvgIcon/CollapseIcon.d.ts +4 -0
  9. package/dist/components/atoms/SvgIcon/ExpandIcon.d.ts +4 -0
  10. package/dist/components/atoms/SvgIcon/FlameIcon.d.ts +7 -0
  11. package/dist/components/atoms/SvgIcon/Icon.d.ts +10 -0
  12. package/dist/components/atoms/SvgIcon/MobilePhoneIcon.d.ts +7 -0
  13. package/dist/components/atoms/SvgIcon/TimesIcon.d.ts +4 -0
  14. package/dist/components/core/OverlayContainer.d.ts +3 -0
  15. package/dist/components/core/PanelManager/PanelManager.d.ts +1 -0
  16. package/dist/components/core/ScrollableContainer/FocusableItem.d.ts +6 -0
  17. package/dist/components/core/ScrollableContainer/ScrollableContainer.d.ts +75 -0
  18. package/dist/components/core/ScrollableContainer/index.d.ts +2 -0
  19. package/dist/components/molecules/ActionButton/ActionButton.d.ts +5 -8
  20. package/dist/components/molecules/Overlay/Overlay.d.ts +35 -0
  21. package/dist/components/molecules/Overlay/index.d.ts +2 -0
  22. package/dist/components/molecules/PanelNavButton/PanelNavButton.d.ts +40 -91
  23. package/dist/components/molecules/SegmentButton/SegmentButton.d.ts +6 -7
  24. package/dist/components/organisms/PanelNavigation/PanelNavigation.d.ts +7 -0
  25. package/dist/components/organisms/SegmentController/SegmentController.d.ts +19 -5
  26. package/dist/components/organisms/SegmentController/index.d.ts +2 -1
  27. package/dist/external/AxiosNetworkClient.d.ts +8 -3
  28. package/dist/external/LocalStorageCacheManager.d.ts +63 -8
  29. package/dist/external/mocks/MockExternalNetworkClient.d.ts +90 -0
  30. package/dist/external/ports/cacheManager.d.ts +3 -1
  31. package/dist/external/ports/networkClient.d.ts +1 -1
  32. package/dist/external/spatial-navigation/spatialNavigation.d.ts +13 -22
  33. package/dist/external/spatial-navigation/utils.d.ts +5 -0
  34. package/dist/external/spatial-navigation/withFocusable.d.ts +12 -17
  35. package/dist/index.d.ts +22 -11
  36. package/dist/interfaces/IMaestroEvent.d.ts +9 -0
  37. package/dist/interfaces/IMaestroEventDelegate.d.ts +17 -0
  38. package/dist/interfaces/IMaestroManager.d.ts +33 -20
  39. package/dist/maestro-web-sdk.umd.js +10 -1
  40. package/dist/maestro-web-sdk.umd.js.map +1 -1
  41. package/dist/models/IWinningBet.d.ts +7 -0
  42. package/dist/modules/bets/interfaces/IBets.d.ts +190 -0
  43. package/dist/modules/bets/mocks.d.ts +2 -0
  44. package/dist/modules/bets/view/BetsView.d.ts +23 -0
  45. package/dist/modules/bets/view/HotProps/HotPropsView.d.ts +53 -0
  46. package/dist/modules/bets/view/SixPack/SixPackView.d.ts +20 -0
  47. package/dist/modules/bets/view/TabLoadFailureView.d.ts +46 -0
  48. package/dist/modules/bets/view/UserBets/BetResult/BetResult.d.ts +6 -0
  49. package/dist/modules/bets/view/UserBets/BetsCard/BetsCard.d.ts +53 -0
  50. package/dist/modules/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +24 -0
  51. package/dist/modules/bets/view/UserBets/BetsCard/BetsCardFooter.d.ts +7 -0
  52. package/dist/modules/bets/view/UserBets/Boost/Boost.d.ts +7 -0
  53. package/dist/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +7 -0
  54. package/dist/modules/bets/view/UserBets/Parlay/Parlay.d.ts +8 -0
  55. package/dist/modules/bets/view/UserBets/Straight/Straight.d.ts +7 -0
  56. package/dist/modules/bets/view/UserBets/Teaser/Teaser.d.ts +7 -0
  57. package/dist/modules/bets/view/UserBets/UserBetsView.d.ts +26 -0
  58. package/dist/modules/bets/view/components/Bet/Bet.d.ts +62 -0
  59. package/dist/modules/bets/view/components/BetPill/BetPill.d.ts +6 -0
  60. package/dist/modules/bets/view/components/BetsCard/BetsCard.d.ts +10 -0
  61. package/dist/modules/bets/view/components/BetsCard/BetsCardHeader.d.ts +16 -0
  62. package/dist/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +8 -0
  63. package/dist/modules/bets/view/components/LocationWarning/LocationWarning.d.ts +10 -0
  64. package/dist/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +22 -0
  65. package/dist/modules/bets/view/components/PromoCodeBanner/index.d.ts +2 -0
  66. package/dist/modules/bets/view-model/BetsViewModel.d.ts +179 -0
  67. package/dist/modules/key-plays/view/KeyPlayCardView.d.ts +28 -102
  68. package/dist/modules/key-plays/view/KeyPlaysView.d.ts +1 -4
  69. package/dist/services/BetsService.d.ts +61 -0
  70. package/dist/services/NetworkManager/NetworkManager.d.ts +131 -0
  71. package/dist/services/NetworkManager/errors.d.ts +17 -0
  72. package/dist/types/OverlayTypes.d.ts +43 -0
  73. package/dist/view-models/MaestroEventViewModel.d.ts +5 -1
  74. package/dist/view-models/OverlayViewModel.d.ts +33 -0
  75. package/dist/view-models/index.d.ts +2 -0
  76. package/package.json +9 -18
  77. package/dist/components/molecules/ScrollableGradient/ScrollableGradient.d.ts +0 -11
  78. package/dist/components/molecules/ScrollableGradient/index.d.ts +0 -2
  79. package/dist/helpers/withRemoteControl.d.ts +0 -47
  80. package/dist/services/NetworkManager.d.ts +0 -13
@@ -1,2 +1,11 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("MaestroWebSDK",["react","react-dom"],t):"object"==typeof exports?exports.MaestroWebSDK=t(require("preact/compat"),require("preact/compat")):e.MaestroWebSDK=t(e.React,e.ReactDOM)}(this,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(t,n){t.exports=e},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 a}));class a{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";var r,a=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 i(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=[],a=0;a<e.length;a++){var o=e[a],l=t.base?o[0]+t.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=i(u),A={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(s[d].references++,s[d].updater(A)):s.push({identifier:u,updater:f(A,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 a=n.nc;a&&(r.nonce=a)}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,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function A(e,t,n,r){var a=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var o=document.createTextNode(a),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function p(e,t,n){var r=n.css,a=n.media,o=n.sourceMap;if(a?e.setAttribute("media",a):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 h=null,m=0;function f(e,t){var n,r,a;if(t.singleton){var o=m++;n=h||(h=c(t)),r=A.bind(null,n,o,!1),a=A.bind(null,n,o,!0)}else n=c(t),r=p.bind(null,n,t),a=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 a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());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 a=i(n[r]);s[a].references--}for(var o=l(e,t),c=0;c<n.length;c++){var u=i(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,a,o=[],s=!0,i=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){i=!0,a=e}finally{try{s||null==n.return||n.return()}finally{if(i)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(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 a(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 a(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],a=t[3];if(!a)return n;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(s," */"),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[n].concat(l).concat([i]).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 a={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(a[s]=!0)}for(var i=0;i<e.length;i++){var l=[].concat(e[i]);r&&a[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.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return i}));var r=n(7);const{destroy:a,pause:o,resume:s,setFocus:i,init:l,setKeyMap:c}=r.b},function(e,t,n){e.exports=n(21)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));const r=e=>{let{offsetParent:t}=e;const n=e.offsetHeight,r=e.offsetWidth;let a=e.offsetLeft,o=e.offsetTop;for(;t&&1===t.nodeType;)a+=t.offsetLeft-t.scrollLeft,o+=t.offsetTop-t.scrollTop,({offsetParent:t}=t);return{height:n,left:a,top:o,width:r}};var a=(e,t)=>{const n=e&&e.parentNode;if(n){const a=r(n),{height:o,left:s,top:i,width:l}=r(e);t(s-a.left,i-a.top,l,o,s,i)}};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,i=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=i,n.height=l,r}clear(){s&&this.debugCtx&&this.debugCtx.clearRect(0,0,i,l)}clearLayouts(){s&&this.layoutsCtx&&this.layoutsCtx.clearRect(0,0,i,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 d(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="SN:ROOT",p={left:37,up:38,right:39,down:40,enter:13},h=["#0FF","#FF0","#F0F"],m={leading:!0,trailing:!1},f=(e,t,n={})=>{let r=null,a=0;const{leading:o=!0,trailing:s=!0}=n;return function(...n){const i=Date.now();a||o||(a=i);const l=t-(i-a);l<=0||l>t?(r&&(clearTimeout(r),r=null),a=i,e.apply(this,n)):!r&&s&&(r=window.setTimeout(()=>{a=o?Date.now():0,r=null,e.apply(this,n)},l))}},y=(e,t)=>[...e].sort((e,n)=>{const r=t(e),a=t(n);return r<a?-1:r>a?1:0}),v=e=>e[0],g=(e,t)=>Object.keys(e).find(n=>t(e[n])),b=(e,t)=>e.filter(e=>!t.includes(e)),C=(e,t)=>e.forEach(t);class E{static getCutoffCoordinate(e,t,n,r){const a=r.left,o=r.top,s=r.width,i=r.height,l=e?o:a,c=e?i:s;return t?n?l:l+c:n?l+c:l}static getRefCorners(e,t,n){const r=n.left,a=n.top,o=n.width,s=n.height,i={a:{x:0,y:0},b:{x:0,y:0}};switch(e){case"up":{const e=t?a+s:a;i.a={x:r,y:e},i.b={x:r+o,y:e};break}case"down":{const e=t?a:a+s;i.a={x:r,y:e},i.b={x:r+o,y:e};break}case"left":{const e=t?r+o:r;i.a={x:e,y:a},i.b={x:e,y:a+s};break}case"right":{const e=t?r:r+o;i.a={x:e,y:a},i.b={x:e,y:a+s};break}}return i}static isAdjacentSlice(e,t,n){const{a:r,b:a}=e,{a:o,b:s}=t,i=n?"x":"y",l=r[i],c=a[i],u=o[i],d=s[i],A=.2*(c-l);return Math.max(0,Math.min(c,d)-Math.max(l,u))>=A}static getPrimaryAxisDistance(e,t,n){const{a:r}=e,{a:a}=t,o=n?"y":"x";return Math.abs(a[o]-r[o])}static getSecondaryAxisDistance(e,t,n){const{a:r,b:a}=e,{a:o,b:s}=t,i=n?"x":"y",l=r[i],c=a[i],u=o[i],d=s[i],A=[];return A.push(Math.abs(u-l)),A.push(Math.abs(u-c)),A.push(Math.abs(d-l)),A.push(Math.abs(d-c)),Math.min(...A)}sortSiblingsByPriority(e,t,n,r){const a="down"===n||"up"===n,o=E.getRefCorners(n,!1,t);return[...e].sort((e,t)=>{const r=E.getRefCorners(n,!0,e.layout),s=E.getRefCorners(n,!0,t.layout),i=E.isAdjacentSlice(o,r,a),l=E.isAdjacentSlice(o,s,a),c=i?E.getPrimaryAxisDistance:E.getSecondaryAxisDistance,u=l?E.getPrimaryAxisDistance:E.getSecondaryAxisDistance,d=i?E.getSecondaryAxisDistance:E.getPrimaryAxisDistance,A=l?E.getSecondaryAxisDistance:E.getPrimaryAxisDistance,p=c(o,r,a),h=u(o,s,a);return(5*p+d(o,r,a)+1)/(i?5:1)-(5*h+A(o,s,a)+1)/(l?5:1)})}constructor(){d(this,"focusableComponents",void 0),d(this,"focusKey",void 0),d(this,"parentsHavingFocusedChild",void 0),d(this,"enabled",void 0),d(this,"nativeMode",void 0),d(this,"throttle",void 0),d(this,"throttleKeypresses",void 0),d(this,"pressedKeys",void 0),d(this,"paused",void 0),d(this,"keyDownEventListener",void 0),d(this,"keyUpEventListener",void 0),d(this,"keyMap",void 0),d(this,"debug",void 0),d(this,"visualDebugger",void 0),d(this,"logIndex",void 0),this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=p,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)}init({debug:e=!1,visualDebug:t=!1,nativeMode:n=!1,throttle:r=0,throttleKeypresses:a=!1}={}){this.enabled||(this.enabled=!0,this.nativeMode=n,this.throttleKeypresses=a,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.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=p,this.unbindEventHandlers())}getEventType(e){return g(this.getKeyMap(),t=>e===t)}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("enter"===t&&this.focusKey)return void this.onEnterPress(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?f(e,this.throttle,m):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()},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.keyDownEventListener)}}unbindEventHandlers(){"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("keydown",this.keyDownEventListener),this.keyDownEventListener=null,this.throttle&&(window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null))}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")}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={}){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=g(this.getKeyMap(),t=>e.keyCode===t);n&&this.smartNavigate(n,null,{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:a,layout:o}=r,s="down"===e||"up"===e,i="down"===e||"right"===e,l=E.getCutoffCoordinate(s,i,!1,o),c=Object.values(this.focusableComponents).filter(e=>{if(e.parentFocusKey===t&&e.focusable){this.updateLayout(e.focusKey);const t=E.getCutoffCoordinate(s,i,!0,e.layout);return i?t>=l:t<=l}return!1});if(this.debug&&this.log("smartNavigate","siblings",c),c.length>0){const t=this.sortSiblingsByPriority(c,o,e,a);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: ${h[this.logIndex%h.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:a,preferredChildFocusKey:o}=t;if(a&&!t.forgetLastFocusedChild&&this.isParticipatingFocusableComponent(a))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",a),this.getNextFocusKey(a);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=y(e,({layout:e})=>Math.abs(e.left)+Math.abs(e.top));return v(t)})(r);return this.log("getNextFocusKey","childKey will be focused",s),this.getNextFocusKey(s)}addFocusable({focusKey:e,node:t,parentFocusKey:n,onEnterPressHandler:r,onEnterReleaseHandler:a,onArrowPressHandler:o,onBecameFocusedHandler:s,onBecameBlurredHandler:i,forgetLastFocusedChild:l,trackChildren:c,onUpdateFocus:u,onUpdateHasFocusedChild:d,preferredChildFocusKey:A,autoRestoreFocus:p,focusable:h=!0,blockNavigationOut:m}){this.focusableComponents[e]={focusKey:e,node:t,parentFocusKey:n,onEnterPressHandler:r,onEnterReleaseHandler:a,onArrowPressHandler:o,onBecameFocusedHandler:s,onBecameBlurredHandler:i,onUpdateFocus:u,onUpdateHasFocusedChild:d,forgetLastFocusedChild:l,trackChildren:c,lastFocusedChildKey:null,preferredChildFocusKey:A,focusable:h,blockNavigationOut:m,autoRestoreFocus:p,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],a=e===this.focusKey;if(r&&r.lastFocusedChildKey===e&&(r.lastFocusedChildKey=null),this.nativeMode)return;a&&r&&r.autoRestoreFocus&&this.setFocus(n)}}getNodeLayoutByFocusKey(e){const t=this.focusableComponents[e];return t?(this.updateLayout(t.focusKey),t.layout):null}setCurrentFocusedKey(e,t){if(this.isFocusableComponent(this.focusKey)&&e!==this.focusKey){var n,r;const e=this.focusableComponents[this.focusKey],a=this.focusableComponents[e.parentFocusKey];this.saveLastFocusedChildKey(a,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 a,o;const e=this.focusableComponents[this.focusKey];null===(a=e.onUpdateFocus)||void 0===a||a.call(e,!0),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 a=b(this.parentsHavingFocusedChild,n),o=b(n,this.parentsHavingFocusedChild);C(a,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)}),C(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(){this.paused=!0}resume(){this.paused=!1}setFocus(e,t={}){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;a(n,(e,r,a,o,s,i)=>{t.layout={x:e,y:r,width:a,height:o,left:s,top:i,node:n}})}updateFocusable(e,{node:t,preferredChildFocusKey:n,focusable:r,blockNavigationOut:a}){if(this.nativeMode)return;const o=this.focusableComponents[e];o&&(o.preferredChildFocusKey=n,o.focusable=null!=r?r:o.focusable,o.blockNavigationOut=a,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=new E},function(e,t,n){"use strict";n.r(t);var r=n(1);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}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}var s=class{constructor(){o(this,"currentlyPlayingClipIndex",new r.a(null)),o(this,"lastPlayedClipIndex",new r.a(null)),o(this,"currentClipPlaybackProgress",new r.a(null)),o(this,"errorState",new r.a("unpopulatedEvent")),o(this,"failedClips",new r.a({})),o(this,"items",new r.a([]))}isCurrentlyPlaying(e){return e===this.currentlyPlayingClipIndex.value}async setKeyPlays(e){null!==e?(this.items.value=this.parseNetworkResponse(e),this.cleanErrors()):this.errorState.value="tabLoadFailure"}cleanErrors(){"tabLoadFailure"===this.errorState.value&&(this.errorState.value=null),"unpopulatedEvent"===this.errorState.value&&this.allItems.length&&(this.errorState.value=null),this.allItems.length||(this.errorState.value="unpopulatedEvent")}async playKeyPlay(e){B.getMaestroEventViewModel().delegate.playClip(e)}parseNetworkResponse(e){const t=Object.values(e.entities.team),n=Object.values(e.entities.athlete),r=t.find(e=>"home"===e.homeAway),a=t.find(e=>"away"===e.homeAway);if(!r||!a)return console.log("Could not find home or away team"),[];const o=[],s=[];for(const i of e.sections){for(const e of i.items){const s=e.team?t.find(t=>t.id===e.team):void 0,l=e.athlete?n.find(t=>t.id===e.athlete):void 0,c=s?s.logoRef:void 0,u=l?l.headshot:void 0,d="headshot"!==e.thumbnailType?e.thumbnail:void 0,A=e.homeScore?e.homeScore:"0",p=e.awayScore?e.awayScore:"0",h=e.scoringPlay?parseInt(A):void 0,m=e.scoringPlay?parseInt(p):void 0,f={id:Math.random().toString(36).substring(2,15),description:e.description?e.description:"",homeTeamName:r?r.shortName:"",awayTeamName:a?a.shortName:"",homeTeamScore:h,awayTeamScore:m,clipID:e.clipID,teamImageUrl:c,playerImageUrl:u,thumbnailImageUrl:d,section:i.title};o.push(f)}if(o.length){const e=i.title,t=s.find(t=>t.title===e);t?t.items.push(...o):s.push({title:e,items:[...o]}),o.length=0}}return s}get allItems(){return this.items.value.reduce((e,t)=>e.concat(t.items),[])}clipID(e){if(this.allItems[e])return this.allItems[e].clipID}handleKeyPlayLoadFailure(e){const t=this.clipID(e);if(t){const n=this.failedClips.value;n[t]="recentFailure",this.failedClips.value=n,setTimeout(()=>{if("recentFailure"===this.loadFailureStatus(e)){const e=this.failedClips.value;e[t]="nonRecentFailure",this.failedClips.value=e}},5e3)}}loadFailureStatus(e){const t=this.clipID(e);return this.failedClips.value&&t?this.failedClips.value[t]:"noFailure"}clearLoadFailureStatus(e){const t=this.clipID(e);t&&this.failedClips&&(this.failedClips.value={...this.failedClips.value,[t]:"noFailure"})}async userRequestedNewKeyPlaysData(){const e=B.getMaestroEventViewModel();await e.delegate.userRequestedNewKeyPlaysData()}},i=n(5);function l(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 class{constructor(){a(this,"_isLoading",new r.a(!1)),a(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}}{constructor(e="",t){super(),l(this,"_eventId",new r.a("")),l(this,"_title",new r.a("")),l(this,"_isLive",new r.a(!1)),l(this,"_isShowingPanel",new r.a(!1)),l(this,"delegate",void 0),l(this,"keyPlaysViewModel",new s),this._eventId.value=e,this.delegate=t,Object(i.b)()}deinit(){Object(i.a)()}updateKeyPlaysData(e){return this.keyPlaysViewModel.setKeyPlays(e)}startFocusManagement(){return Object(i.e)(""),Object(i.d)(),setTimeout(()=>{Object(i.e)("PANEL_NAV_BUTTON_0")},0),Promise.resolve()}didStartPlayingClip(e){this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentClipPlaybackProgress.value=0,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=e,this.keyPlaysViewModel.clearLoadFailureStatus(e)}didStopPlayingClip(e){this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=null,this.keyPlaysViewModel.currentClipPlaybackProgress.value=null}didFailToPlayClip(e){this.keyPlaysViewModel.handleKeyPlayLoadFailure(e)}didUpdatePlaybackProgressOfClip(e,t){this.keyPlaysViewModel.currentClipPlaybackProgress.value=t,this.keyPlaysViewModel.clearLoadFailureStatus(e)}didShowPanel(){return this.isShowingPanel=!0,Promise.resolve()}async didHidePanel(){this.isShowingPanel=!1,Object(i.c)()}didShowOverlay(){throw new Error("Method not implemented.")}didHideOverlay(){throw new Error("Method not implemented.")}currentEventDoesNotSupportKeyPlays(){this.keyPlaysViewModel.errorState.value="unsupportedEvent"}getCurrentEventID(){return this.eventId.value}getCurrentlyPlayingClipIndex(){return this.keyPlaysViewModel.currentlyPlayingClipIndex.value}getLastPlayedClipIndex(){return this.keyPlaysViewModel.lastPlayedClipIndex.value}getCurrentClipPlaybackProgress(){return this.keyPlaysViewModel.currentClipPlaybackProgress.value}getKeyPlaysCount(){return this.keyPlaysViewModel.allItems.length}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}}var u=n(10);function d(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{constructor(e){d(this,"eventViewModel",void 0),d(this,"panelManagerViewModel",void 0),d(this,"keyPlaysViewModel",void 0),this.eventViewModel=e,this.panelManagerViewModel=new u.a,this.keyPlaysViewModel=new s}static async fromEventId(e,t){try{const n=new c(e,t);return new A(n)}catch(e){return console.error("Error creating view models from event ID",e),null}}}var p=n(0),h=n.n(p),m=n(9),f=n.n(m);function y(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 v=class{constructor(){y(this,"renderersMap",new Map),y(this,"viewModels",null)}async setViewModels(e,t){try{return t?(this.viewModels=await A.fromEventId(e,t),this.viewModels):(console.error("No event delegate provided"),null)}catch(e){return console.error("Error creating view models from event ID",e),null}}async renderPanel(e){const t=await this.getRenderer(e);if(!this.viewModels)throw new Error("Cannot render panel manager: No view models set");const r=n(24).default,a=n(23).default;return t.render(h.a.createElement(r,null,h.a.createElement(a,null))),()=>{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=>{f.a.render(e,t)},unmount:()=>{f.a.unmountComponentAtNode(t)}};return this.renderersMap.set(e,n),n}};function g(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 b=["664b9c57d59a7a431542d814"];class C{constructor(e){g(this,"renderer",void 0),g(this,"siteID",void 0),g(this,"jwt",void 0),g(this,"userID",void 0),g(this,"maestroEventViewModel",null),this.renderer=e}async userDidStartWatchingEvent(e,t){if(!this.isAuthorizedClient)throw new Error("Unauthorized use of SDK");return this.maestroEventViewModel=new c(e,t),this.maestroEventViewModel}userDidStopWatchingEvent(e){console.log("stop watching event",e),this.maestroEventViewModel&&(this.maestroEventViewModel.deinit(),this.maestroEventViewModel=null)}authenticateUser(e,t){throw new Error("Method not implemented")}deauthenticateUser(){throw new Error("Method not implemented.")}static getInstance(){if(!C.instance){const e=new v;C.instance=new C(e)}return C.instance}configure(e){e.siteID&&this.setSiteID(e.siteID),e.jwt&&this.setJwt(e.jwt),console.info("MaestroWebSDK configured",e)}get isAuthorizedClient(){const e=this.getSiteID();return Boolean(e&&b.includes(e))}setSiteID(e){this.siteID=e}getSiteID(){return this.siteID}setJwt(e){this.jwt=e}getJwt(){return this.jwt}setUserID(e){this.userID=e}getUserID(){return this.userID}getMaestroEventViewModel(){if(!this.maestroEventViewModel)throw new Error("No Maestro Event View Model set");return this.maestroEventViewModel}async renderPanel(e){if(!this.renderer.viewModels){if(!this.maestroEventViewModel)throw new Error("No Maestro Event View Model set.");let t="default-event-id";e&&(t=e),await this.renderer.setViewModels(t,this.maestroEventViewModel.delegate)}return this.renderer.renderPanel(e)}}g(C,"instance",void 0);const E=C.getInstance();var B=t.default=E},function(e,n){e.exports=t},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1);const a={KEY_PLAYS:"keyPlays",STATS:"stats",FANTASY:"fantasy",BETS:"bets"};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 s{constructor(){o(this,"_panels",new r.a([a.KEY_PLAYS,a.STATS,a.FANTASY,a.BETS])),o(this,"_currentPanel",new r.a(a.KEY_PLAYS)),o(this,"_newlyFocusedPanel",new r.a(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}get newlyFocusedPanel(){return this._newlyFocusedPanel.value}set newlyFocusedPanel(e){this._newlyFocusedPanel.value=e}getIndex(e){const t=this.panels.findIndex(t=>t===e);return-1!==t?t:null}getPanelType(e){return this.panels[e]||null}get panelTypeToLeft(){const e=this.getIndex(this.currentPanel);return null===e||0===e?null:this.getPanelType(e-1)}get panelTypeToRight(){const e=this.getIndex(this.currentPanel);return null===e||e===this.panels.length-1?null:this.getPanelType(e+1)}}},function(e,t,n){"use strict";var r=n(3),a=n.n(r),o=n(4),s=n.n(o)()(a.a);s.push([e.i,"/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: Arial, Helvetica, sans-serif;\n color: var(--sdk-text100);\n}\n\n.T01 {\n font-size: 1.125rem;\n font-weight: normal;\n line-height: 1.5rem;\n}\n\n.T02 {\n font-size: 1.125rem;\n font-weight: bold;\n line-height: 1.5rem;\n}\n\n.T05_ALT {\n font-size: 1.313rem;\n font-weight: bold;\n line-height: 1.75rem;\n}\n\n.T10 {\n font-size: 1.438rem;\n font-weight: bold;\n line-height: 2rem;\n}\n\n.T20 {\n font-size: 1.688rem;\n font-weight: 500;\n line-height: 2.25rem;\n}\n\n.T30 {\n font-size: 1.813rem;\n font-weight: bold;\n line-height: 2.25rem;\n}\n\n.T70 {\n font-size: 3rem;\n font-weight: 900;\n line-height: 3.5rem;\n}\n","",{version:3,sources:["webpack://./src/components/core/App/App.styles.css"],names:[],mappings:"AAAA,oCAAoC;AACpC;EACE,yCAAyC;EACzC,yBAAyB;AAC3B;;AAEA;EACE,mBAAmB;EACnB,mBAAmB;EACnB,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;EACnB,iBAAiB;EACjB,oBAAoB;AACtB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,mBAAmB;AACrB",sourcesContent:["/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: Arial, Helvetica, sans-serif;\n color: var(--sdk-text100);\n}\n\n.T01 {\n font-size: 1.125rem;\n font-weight: normal;\n line-height: 1.5rem;\n}\n\n.T02 {\n font-size: 1.125rem;\n font-weight: bold;\n line-height: 1.5rem;\n}\n\n.T05_ALT {\n font-size: 1.313rem;\n font-weight: bold;\n line-height: 1.75rem;\n}\n\n.T10 {\n font-size: 1.438rem;\n font-weight: bold;\n line-height: 2rem;\n}\n\n.T20 {\n font-size: 1.688rem;\n font-weight: 500;\n line-height: 2.25rem;\n}\n\n.T30 {\n font-size: 1.813rem;\n font-weight: bold;\n line-height: 2.25rem;\n}\n\n.T70 {\n font-size: 3rem;\n font-weight: 900;\n line-height: 3.5rem;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(3),a=n.n(r),o=n(4),s=n.n(o)()(a.a);s.push([e.i,".sdk--panel-manager {\n padding: 3.75rem;\n padding-left: 3rem;\n padding-bottom: 0;\n\n display: flex;\n flex-direction: column;\n gap: 3.75rem;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: flex;\n justify-content: center;\n}\n","",{version:3,sources:["webpack://./src/components/core/PanelManager/PanelManager.styles.css"],names:[],mappings:"AAAA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,iBAAiB;;EAEjB,aAAa;EACb,sBAAsB;EACtB,YAAY;AACd;;AAEA;EACE,aAAa;EACb,uBAAuB;AACzB",sourcesContent:[".sdk--panel-manager {\n padding: 3.75rem;\n padding-left: 3rem;\n padding-bottom: 0;\n\n display: flex;\n flex-direction: column;\n gap: 3.75rem;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: flex;\n justify-content: center;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(3),a=n.n(r),o=n(4),s=n.n(o)()(a.a);s.push([e.i,".key-plays-view {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n overflow-y: auto;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n scrollbar-width: none;\n scroll-behavior: smooth;\n overscroll-behavior: contain;\n}\n\n.key-plays-view .key-plays-section:last-child {\n margin-bottom: 4rem;\n} \n\n.key-plays-view::-webkit-scrollbar {\n display: none;\n}\n\n.key-plays-section {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n position: relative;\n}\n\n/* Sticky section title using CSS position: sticky */\n.key-plays-section-title {\n position: sticky;\n top: 0;\n z-index: 1;\n margin: 0;\n}\n\n.key-plays-section-items {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n\n.key-plays-section:last-of-type {\n margin-bottom: 0;\n}\n\n.key-plays-bottom-padding {\n height: calc(\n 100vh - 240px\n );\n min-height: 400px;\n width: 100%;\n}\n\n.key-play-card {\n display: flex;\n flex-direction: column;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface2);\n contain: content;\n border: 3px solid transparent;\n transition: border-color 0.2s ease-in-out;\n}\n\n.key-play-card[data-focused='true'] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card-content {\n display: grid;\n grid-template-columns: 1fr 2fr;\n}\n\n.key-play-card-content .cardImage {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.key-play-card-content .text-content {\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\n align-items: center;\n display: flex;\n}\n\n.key-play-card-content .multi-line {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.key-play-card progress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%;\n height: 8px;\n border-radius: 15px;\n background-color: var(--sdk-surface6);\n box-shadow: 0px 1px 3px 0px #10111366 inset;\n overflow: hidden;\n border-radius: 0;\n}\n\n.key-play-card progress::-webkit-progress-bar,\n.key-play-card progress::-moz-progress-bar {\n background-color: var(--sdk-surface6);\n}\n\n.key-play-card progress::-webkit-progress-value {\n background-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card .score {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 4rem;\n background-color: var(--sdk-surface4);\n}\n\n.key-play-card .score-team {\n display: flex;\n align-items: center;\n gap: 1rem;\n}\n","",{version:3,sources:["webpack://./src/modules/key-plays/view/KeyPlaysView.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,gBAAgB;EAChB,kDAAkD;EAClD,qBAAqB;EACrB,uBAAuB;EACvB,4BAA4B;AAC9B;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,kBAAkB;AACpB;;AAEA,oDAAoD;AACpD;EACE,gBAAgB;EAChB,MAAM;EACN,UAAU;EACV,SAAS;AACX;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;AACX;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE;;GAEC;EACD,iBAAiB;EACjB,WAAW;AACb;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,qCAAqC;EACrC,gBAAgB;EAChB,6BAA6B;EAC7B,yCAAyC;AAC3C;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,aAAa;EACb,8BAA8B;AAChC;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;;AAEA;EACE,uCAAuC;EACvC,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,oBAAoB;EACpB,4BAA4B;EAC5B,qBAAqB;EACrB,gBAAgB;EAChB,uBAAuB;AACzB;;AAEA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;EACX,WAAW;EACX,mBAAmB;EACnB,qCAAqC;EACrC,2CAA2C;EAC3C,gBAAgB;EAChB,gBAAgB;AAClB;;AAEA;;EAEE,qCAAqC;AACvC;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,aAAa;EACb,SAAS;EACT,qCAAqC;AACvC;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,SAAS;AACX",sourcesContent:[".key-plays-view {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n overflow-y: auto;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n scrollbar-width: none;\n scroll-behavior: smooth;\n overscroll-behavior: contain;\n}\n\n.key-plays-view .key-plays-section:last-child {\n margin-bottom: 4rem;\n} \n\n.key-plays-view::-webkit-scrollbar {\n display: none;\n}\n\n.key-plays-section {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n position: relative;\n}\n\n/* Sticky section title using CSS position: sticky */\n.key-plays-section-title {\n position: sticky;\n top: 0;\n z-index: 1;\n margin: 0;\n}\n\n.key-plays-section-items {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n\n.key-plays-section:last-of-type {\n margin-bottom: 0;\n}\n\n.key-plays-bottom-padding {\n height: calc(\n 100vh - 240px\n );\n min-height: 400px;\n width: 100%;\n}\n\n.key-play-card {\n display: flex;\n flex-direction: column;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface2);\n contain: content;\n border: 3px solid transparent;\n transition: border-color 0.2s ease-in-out;\n}\n\n.key-play-card[data-focused='true'] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card-content {\n display: grid;\n grid-template-columns: 1fr 2fr;\n}\n\n.key-play-card-content .cardImage {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.key-play-card-content .text-content {\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\n align-items: center;\n display: flex;\n}\n\n.key-play-card-content .multi-line {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.key-play-card progress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%;\n height: 8px;\n border-radius: 15px;\n background-color: var(--sdk-surface6);\n box-shadow: 0px 1px 3px 0px #10111366 inset;\n overflow: hidden;\n border-radius: 0;\n}\n\n.key-play-card progress::-webkit-progress-bar,\n.key-play-card progress::-moz-progress-bar {\n background-color: var(--sdk-surface6);\n}\n\n.key-play-card progress::-webkit-progress-value {\n background-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card .score {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 4rem;\n background-color: var(--sdk-surface4);\n}\n\n.key-play-card .score-team {\n display: flex;\n align-items: center;\n gap: 1rem;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(3),a=n.n(r),o=n(4),s=n.n(o)()(a.a);s.push([e.i,'.scrollable-gradient {\n position: relative;\n}\n\n\n.scrollable-gradient::before {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 3.625rem; /* Height of the top gradient */\n z-index: 0;\n transition: z-index 0.3s ease;\n}\n\n.scroll-container-scrolled::before {\n z-index: 1;\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.scrollable-gradient::after {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 6rem; /* Height of the bottom gradient */\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n',"",{version:3,sources:["webpack://./src/components/molecules/ScrollableGradient/ScrollableGradient.styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;;;AAGA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,MAAM;EACN,gBAAgB,EAAE,+BAA+B;EACjD,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",sourcesContent:['.scrollable-gradient {\n position: relative;\n}\n\n\n.scrollable-gradient::before {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 3.625rem; /* Height of the top gradient */\n z-index: 0;\n transition: z-index 0.3s ease;\n}\n\n.scroll-container-scrolled::before {\n z-index: 1;\n background: linear-gradient(0deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n\n.scrollable-gradient::after {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 6rem; /* Height of the bottom gradient */\n background: linear-gradient(180deg, #080a0c00 0%, var(--sdk-surface1) 100%);\n}\n'],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(3),a=n.n(r),o=n(4),s=n.n(o)()(a.a);s.push([e.i,".key-play-card {\n display: flex;\n flex-direction: column;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface2);\n contain: content;\n border: 0.188rem solid transparent;\n transition: border-color 0.2s ease-in-out;\n position: relative;\n}\n\n.key-play-card[data-focused=true] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card-content {\n display: grid;\n grid-template-columns: 1fr 2fr;\n}\n\n.key-play-card-content .cardImage {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.key-play-card-content .text-content {\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\n align-items: center;\n display: flex;\n}\n\n.key-play-card-content .multi-line {\n display: -webkit-box; /* This sets up the box for the flex behavior */\n -webkit-box-orient: vertical; /* Defines the orientation of the box's children (vertical for lines) */\n -webkit-line-clamp: 3; /* Limit the content to 3 lines */\n overflow: hidden; /* Hide any overflow text */\n text-overflow: ellipsis; /* Add an ellipsis at the end of the last visible line */\n}\n\n.key-play-card progress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%;\n height: 8px;\n border-radius: 15px;\n background-color: var(--sdk-surface6);\n box-shadow: 0px 1px 3px 0px #10111366 inset;\n overflow: hidden;\n border-radius: 0;\n position: absolute;\n bottom: 0;\n}\n\n.key-play-card progress::-webkit-progress-bar, .key-play-card progress::-moz-progress-bar {\n background-color: var(--sdk-surface6);\n}\n\n.key-play-card progress::-webkit-progress-value {\n background-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card .score {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 4rem;\n background-color: var(--sdk-surface4);\n}\n\n.key-play-card .score-team {\n display: flex;\n align-items: center;\n gap: 1rem;\n}\n\n.key-play-card .error-state {\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: var(--sdk-surface2);\n gap: 1rem;\n}\n\n.key-play-card .error-state path {\n fill: var(--sdk-alertWarning);\n}\n\n.key-play-card .non-recent-error-state {\n position: absolute;\n top: 1.125rem;\n right: 1.125rem;\n}\n","",{version:3,sources:["webpack://./src/modules/key-plays/view/KeyPlayCardView.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,uBAAuB;EACvB,qCAAqC;EACrC,gBAAgB;EAChB,kCAAkC;EAClC,yCAAyC;EACzC,kBAAkB;AACpB;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,aAAa;EACb,8BAA8B;AAChC;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,iBAAiB;AACnB;;AAEA;EACE,uCAAuC;EACvC,mBAAmB;EACnB,aAAa;AACf;;AAEA;EACE,oBAAoB,EAAE,+CAA+C;EACrE,4BAA4B,EAAE,uEAAuE;EACrG,qBAAqB,EAAE,iCAAiC;EACxD,gBAAgB,EAAE,2BAA2B;EAC7C,uBAAuB,EAAE,wDAAwD;AACnF;;AAEA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;EACX,WAAW;EACX,mBAAmB;EACnB,qCAAqC;EACrC,2CAA2C;EAC3C,gBAAgB;EAChB,gBAAgB;EAChB,kBAAkB;EAClB,SAAS;AACX;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,aAAa;EACb,SAAS;EACT,qCAAqC;AACvC;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,SAAS;AACX;;AAEA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,qCAAqC;EACrC,SAAS;AACX;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,eAAe;AACjB",sourcesContent:[".key-play-card {\n display: flex;\n flex-direction: column;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface2);\n contain: content;\n border: 0.188rem solid transparent;\n transition: border-color 0.2s ease-in-out;\n position: relative;\n}\n\n.key-play-card[data-focused=true] {\n border-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card-content {\n display: grid;\n grid-template-columns: 1fr 2fr;\n}\n\n.key-play-card-content .cardImage {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.key-play-card-content .text-content {\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\n align-items: center;\n display: flex;\n}\n\n.key-play-card-content .multi-line {\n display: -webkit-box; /* This sets up the box for the flex behavior */\n -webkit-box-orient: vertical; /* Defines the orientation of the box's children (vertical for lines) */\n -webkit-line-clamp: 3; /* Limit the content to 3 lines */\n overflow: hidden; /* Hide any overflow text */\n text-overflow: ellipsis; /* Add an ellipsis at the end of the last visible line */\n}\n\n.key-play-card progress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%;\n height: 8px;\n border-radius: 15px;\n background-color: var(--sdk-surface6);\n box-shadow: 0px 1px 3px 0px #10111366 inset;\n overflow: hidden;\n border-radius: 0;\n position: absolute;\n bottom: 0;\n}\n\n.key-play-card progress::-webkit-progress-bar, .key-play-card progress::-moz-progress-bar {\n background-color: var(--sdk-surface6);\n}\n\n.key-play-card progress::-webkit-progress-value {\n background-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card .score {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 4rem;\n background-color: var(--sdk-surface4);\n}\n\n.key-play-card .score-team {\n display: flex;\n align-items: center;\n gap: 1rem;\n}\n\n.key-play-card .error-state {\n position: absolute;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: var(--sdk-surface2);\n gap: 1rem;\n}\n\n.key-play-card .error-state path {\n fill: var(--sdk-alertWarning);\n}\n\n.key-play-card .non-recent-error-state {\n position: absolute;\n top: 1.125rem;\n right: 1.125rem;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(3),a=n.n(r),o=n(4),s=n.n(o)()(a.a);s.push([e.i,".sdk--key-play-error-state-unsupportedEvent {\n padding: 2.25rem 1.5rem 0 1.5rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n.sdk--key-play-error-state-unsupportedEvent::after {\n background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.08) 100%);\n}\n\n.sdk--key-play-error-state-unsupportedEvent h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-unsupportedEvent p {\n margin: 0;\n color: var(--sdk-text200);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent {\n overflow-y: hidden;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n padding: 2.25rem 1.5rem 0 1.5rem;\n scrollbar-width: none;\n display: flex;\n flex-direction: column;\n gap: 6.25rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent p {\n margin: 0;\n color: var(--sdk-text200);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .main-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 1rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n position: relative;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples::after {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n bottom: 0;\n background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 92.2%);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples .example {\n display: flex;\n gap: 1rem;\n padding: 1.75rem 1.5rem;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface3);\n height: 8rem;\n}\n\n.sdk--key-play-error-state-tabLoadFailure {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n border-radius: 0.625rem;\n border: 0.188rem solid transparent;\n transition: border-color 0.2s ease-in-out;\n padding: 1.5rem;\n background-color: var(--sdk-surface4);\n}\n\n.sdk--key-play-error-state-tabLoadFailure h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-tabLoadFailure p {\n margin: 0;\n height: 5.375rem;\n}\n","",{version:3,sources:["webpack://./src/modules/key-plays/view/KeyPlayErrorStateView.styles.css"],names:[],mappings:"AAAA;EACE,gCAAgC;EAChC,aAAa;EACb,sBAAsB;EACtB,SAAS;AACX;AACA;EACE,wFAAwF;AAC1F;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,yBAAyB;AAC3B;;AAEA;EACE,kBAAkB;EAClB,kDAAkD;EAClD,gCAAgC;EAChC,qBAAqB;EACrB,aAAa;EACb,sBAAsB;EACtB,YAAY;AACd;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,yBAAyB;AAC3B;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,uBAAuB;EACvB,SAAS;AACX;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,SAAS;EACT,qEAAqE;AACvE;;AAEA;EACE,aAAa;EACb,SAAS;EACT,uBAAuB;EACvB,uBAAuB;EACvB,qCAAqC;EACrC,YAAY;AACd;;AAEA;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,uBAAuB;EACvB,kCAAkC;EAClC,yCAAyC;EACzC,eAAe;EACf,qCAAqC;AACvC;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,gBAAgB;AAClB",sourcesContent:[".sdk--key-play-error-state-unsupportedEvent {\n padding: 2.25rem 1.5rem 0 1.5rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n.sdk--key-play-error-state-unsupportedEvent::after {\n background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.08) 100%);\n}\n\n.sdk--key-play-error-state-unsupportedEvent h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-unsupportedEvent p {\n margin: 0;\n color: var(--sdk-text200);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent {\n overflow-y: hidden;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n padding: 2.25rem 1.5rem 0 1.5rem;\n scrollbar-width: none;\n display: flex;\n flex-direction: column;\n gap: 6.25rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent p {\n margin: 0;\n color: var(--sdk-text200);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .main-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 1rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n position: relative;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples::after {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n bottom: 0;\n background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 92.2%);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples .example {\n display: flex;\n gap: 1rem;\n padding: 1.75rem 1.5rem;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface3);\n height: 8rem;\n}\n\n.sdk--key-play-error-state-tabLoadFailure {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n border-radius: 0.625rem;\n border: 0.188rem solid transparent;\n transition: border-color 0.2s ease-in-out;\n padding: 1.5rem;\n background-color: var(--sdk-surface4);\n}\n\n.sdk--key-play-error-state-tabLoadFailure h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-tabLoadFailure p {\n margin: 0;\n height: 5.375rem;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(3),a=n.n(r),o=n(4),s=n.n(o)()(a.a);s.push([e.i,".action-button {\n padding: 23px 0;\n background-color: var(--sdk-accentSecondary);\n color: var(--sdk-text100);\n}\n\n.action-button:hover, .action-button[data-focused=true] {\n background-color: var(--sdk-accentPrimary);\n color: var(--sdk-text500);\n}\n","",{version:3,sources:["webpack://./src/components/molecules/ActionButton/ActionButton.styles.css"],names:[],mappings:"AAAA;EACE,eAAe;EACf,4CAA4C;EAC5C,yBAAyB;AAC3B;;AAEA;EACE,0CAA0C;EAC1C,yBAAyB;AAC3B",sourcesContent:[".action-button {\n padding: 23px 0;\n background-color: var(--sdk-accentSecondary);\n color: var(--sdk-text100);\n}\n\n.action-button:hover, .action-button[data-focused=true] {\n background-color: var(--sdk-accentPrimary);\n color: var(--sdk-text500);\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(3),a=n.n(r),o=n(4),s=n.n(o)()(a.a);s.push([e.i,".panel-navigation {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 0.75rem;\n overflow-x: auto;\n scrollbar-width: none;\n}\n","",{version:3,sources:["webpack://./src/components/organisms/PanelNavigation/PanelNavigation.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,mBAAmB;EACnB,mBAAmB;EACnB,YAAY;EACZ,gBAAgB;EAChB,qBAAqB;AACvB",sourcesContent:[".panel-navigation {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 0.75rem;\n overflow-x: auto;\n scrollbar-width: none;\n}\n"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(3),a=n.n(r),o=n(4),s=n.n(o)()(a.a);s.push([e.i,".panel-nav-button-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 0.625rem;\n color: var(--sdk-text300);\n flex: 1;\n\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 min-width: 6.5rem;\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n}\n\n.panel-nav-button-container[data-focused=true], .panel-nav-button-container:hover, .panel-nav-button-active {\n color: var(--sdk-text100);\n}\n\n.panel-nav-button-container[data-focused=true] path, .panel-nav-button-container:hover path {\n fill: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused=true] button, .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","",{version:3,sources:["webpack://./src/components/molecules/PanelNavButton/PanelNavButton.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,mBAAmB;EACnB,aAAa;EACb,yBAAyB;EACzB,OAAO;;AAET;;AAEA;EACE,mCAAmC;AACrC;;AAEA;EACE,cAAc;EACd,qCAAqC;EACrC,iBAAiB;;EAEjB,qEAAqE;AACvE;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,kCAAkC;AACpC;;AAEA;EACE,0CAA0C;AAC5C;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,iCAAiC;AACnC",sourcesContent:[".panel-nav-button-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 0.625rem;\n color: var(--sdk-text300);\n flex: 1;\n\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 min-width: 6.5rem;\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n}\n\n.panel-nav-button-container[data-focused=true], .panel-nav-button-container:hover, .panel-nav-button-active {\n color: var(--sdk-text100);\n}\n\n.panel-nav-button-container[data-focused=true] path, .panel-nav-button-container:hover path {\n fill: var(--sdk-highlightTertiary);\n}\n\n.panel-nav-button-container[data-focused=true] button, .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"],sourceRoot:""}]),t.a=s},function(e,t,n){"use strict";var r=n(9),a=n(6),o=n.n(a),s=n(0),i=n(7);function l(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 c=()=>{};t.a=({forgetLastFocusedChild:e=!1,trackChildren:t=!1,autoRestoreFocus:n,blockNavigationOut:a=!1}={})=>u=>{var d;return d=class extends s.Component{constructor(...e){var t;super(...e),l(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||i.a}),l(this,"setFocus",e=>{i.b.isNativeMode()||i.b.setFocus(e)}),l(this,"navigateByDirection",i.b.navigateByDirection),l(this,"stealFocus",()=>{i.b.setFocus(this.state.realFocusKey,{focusKey:this.state.realFocusKey})}),l(this,"onUpdateFocus",e=>{this.setState({focused:e})}),l(this,"onUpdateHasFocusedChild",e=>{this.setState({hasFocusedChild:e})}),l(this,"onEnterPressHandler",e=>{const{onEnterPress:t=c,...n}=this.props;t(n,e)}),l(this,"onEnterReleaseHandler",()=>{const{onEnterRelease:e=c,...t}=this.props;e(t)}),l(this,"onArrowPressHandler",(e,t)=>{const{onArrowPress:n=c,...r}=this.props;return n(e,r,t)}),l(this,"onBecameFocusedHandler",(e,t)=>{const{onBecameFocused:n=c,...r}=this.props;n(e,r,t)}),l(this,"onBecameBlurredHandler",(e,t)=>{const{onBecameBlurred:n=c,...r}=this.props;n(e,r,t)})}getChildContext(){return{parentFocusKey:this.state.realFocusKey}}componentDidMount(){const{realFocusKey:o,parentFocusKey:s}=this.state,{preferredChildFocusKey:l,forgetLastFocusedChild:c=!1,trackChildren:u,focusable:d=!0,autoRestoreFocus:A=!0,blockNavigationOut:p=!1}=this.props;let h;if(i.b.isNativeMode())h=document.createElement("div");else{const e=Object(r.findDOMNode)(this);if(!e)throw new Error("Could not find DOM node");h=e}i.b.addFocusable({focusKey:o,node:h,parentFocusKey:s,preferredChildFocusKey:l,onEnterPressHandler:this.onEnterPressHandler,onEnterReleaseHandler:this.onEnterReleaseHandler,onArrowPressHandler:this.onArrowPressHandler,onBecameFocusedHandler:this.onBecameFocusedHandler,onBecameBlurredHandler:this.onBecameBlurredHandler,onUpdateFocus:this.onUpdateFocus,onUpdateHasFocusedChild:this.onUpdateHasFocusedChild,forgetLastFocusedChild:e||c,trackChildren:t||u,blockNavigationOut:a||p,autoRestoreFocus:void 0!==n?n:A,focusable:d})}componentDidUpdate(){const{realFocusKey:e}=this.state,{preferredChildFocusKey:t,focusable:n=!0,blockNavigationOut:o=!1}=this.props;let s;if(i.b.isNativeMode())s=document.createElement("div");else{const e=Object(r.findDOMNode)(this);if(!e)throw new Error("Could not find DOM node");s=e}i.b.updateFocusable(e,{node:s,preferredChildFocusKey:t,focusable:n,blockNavigationOut:a||o})}componentWillUnmount(){const{realFocusKey:e}=this.state;i.b.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","onEnterReleaseHandler","onArrowPressHandler","onUpdateFocus","onUpdateHasFocusedChild","forgetLastFocusedChild","trackChildren","autoRestoreFocus"]);return Object(s.createElement)(u,e)}},l(d,"contextTypes",{parentFocusKey:o.a.string}),l(d,"childContextTypes",{parentFocusKey:o.a.string}),d}},function(e,t,n){"use strict";var r=n(22);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,s){if(s!==r){var i=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 i.name="Invariant Violation",i}}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:a};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=n(0),a=n.n(r),o=n(10),s=n(2),i=n.n(s),l=n(12),c={insert:"head",singleton:!1};i()(l.a,c),l.a.locals;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)}const d={borderRadius:6,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:"100%",border:"none"};class A extends a.a.Component{constructor(e){super(e)}render(){const e={...d,...this.props.style};return a.a.createElement("button",u({style:e},this.props),this.props.children)}}var p=A;class h extends a.a.Component{render(){return a.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 30 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M27.375 4.75H2.625V7H27.375V4.75Z",fill:"white"}),a.a.createElement("path",{d:"M25.125 0.25H4.875V2.5H25.125V0.25Z",fill:"white"}),a.a.createElement("path",{d:"M0.375 9.25V31.75H29.625V9.25H0.375ZM11.625 26.125V14.875L20.625 20.5L11.625 26.125Z",fill:"white"}))}}var m=h;class f extends a.a.Component{render(){return a.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.1891 8.29879C18.6116 8.5331 18.9367 8.80345 19.162 9.10985C19.3873 9.41624 19.5 9.71863 19.5 10.019C19.5 10.3194 19.396 10.6158 19.1837 10.9102C18.9713 11.2026 18.6463 11.4669 18.2108 11.7012L10.9111 15.6724L3.58975 19.6035C3.15207 19.8378 2.74256 19.9679 2.36122 19.994C1.98204 20.02 1.65703 19.9619 1.38836 19.8177C1.12185 19.6735 0.905177 19.4453 0.742673 19.1328C0.582335 18.8204 0.5 18.4419 0.5 17.9994V2.00062C0.5 1.55805 0.573669 1.17956 0.721006 0.867153C0.87051 0.554748 1.09152 0.326452 1.38836 0.182265C1.6852 0.0380777 2.02104 -0.0199976 2.39372 0.00603615C2.76639 0.0340725 3.16507 0.164241 3.58975 0.398545L10.9111 4.36769L18.1891 8.29879Z",fill:"white"}))}}var y=f;class v extends a.a.Component{constructor(e){super(e)}render(){return a.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M26.4393 4.5H6.61944L3.34766 31.5C3.34766 31.5 19.7066 31.5 22.7432 31.5C23.3056 31.5 23.8679 31.4591 24.4251 31.3773C26.0406 31.1268 28.7193 30.3445 29.8491 27.6808C30.3501 26.4947 30.7387 23.1919 30.8665 22.3023C31.1783 20.1345 30.0178 18.8819 28.8625 18.1508C28.6069 17.9923 28.6733 17.6038 28.9647 17.5322C30.1814 17.2203 31.3266 16.571 31.6435 15.1906C31.8633 14.2192 32.0781 12.0872 32.2263 10.9011C32.9113 5.92643 29.568 4.5 26.4393 4.5ZM24.1542 19.792H15.8213L15.6117 21.5047H23.9497L23.4589 25.4773H10.1468L11.2715 16.3154H24.5836L24.1593 19.7869L24.1542 19.792ZM24.7779 14.7202H11.4658L11.9821 10.5227H25.2942L24.783 14.7202H24.7779Z",fill:"#9DA0A6"}))}}var g=v;class b extends a.a.Component{render(){return a.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("g",{clipPath:"url(#clip0_538_5831)"},a.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5925 1.7998V32.6941H10.4849V14.8588H3.671V32.6941H0.899902V34.7641H35.099V32.6941H32.3603V8.0125H25.514V32.6941H21.4397V1.7998H14.5925Z",fill:"#9DA0A6"})),a.a.createElement("defs",null,a.a.createElement("clipPath",{id:"clip0_538_5831"},a.a.createElement("rect",{width:"36",height:"36",fill:"white"}))))}}var C=b;class E extends a.a.Component{render(){return a.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.96879 29.0297C11.6061 31.2694 14.6822 32.9334 18.0001 33.9152C21.3179 32.9334 24.394 31.2694 27.0313 29.0297C29.6686 26.7899 31.8089 24.0239 33.3151 20.9089C31.6987 16.1971 30.9721 11.2259 31.1722 6.24861C26.9818 4.51945 22.5273 3.51728 18.0001 3.28516C13.4728 3.51728 9.01831 4.51945 4.82788 6.24861C5.02804 11.2259 4.30143 16.1971 2.68506 20.9089C4.19119 24.0239 6.33149 26.7899 8.96879 29.0297ZM11.7503 14.7153L12.2646 10.5164H25.5772L25.0616 14.7153H11.7503ZM23.7355 25.4753H10.423L11.5486 16.3157H24.8599L24.4349 19.7871H16.1048L15.8917 21.4998H24.2282L23.7355 25.4753Z",fill:"#9DA0A6"}))}}var B=E;class w extends a.a.Component{render(){return a.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0022 0.75L21.8012 19.4545H0.203125L11.0022 0.75ZM11.7522 13.5V7.5H10.2522V13.5H11.7522ZM11.8022 14.95H10.2022V16.55H11.8022V14.95Z",fill:"#F58B00"}))}}const k={keyPlays:m,play:y,bets:g,stats:C,fantasy:B,warning:w},P=e=>a.a.createElement("div",{style:{width:e.width,height:e.height}});class x extends a.a.Component{render(){const{iconName:e,width:t,height:n}=this.props,r=k[e];return r?a.a.createElement(r,{iconName:e,width:t,height:n}):a.a.createElement(P,{width:t,height:n})}}var S=x,F=n(19),N={insert:"head",singleton:!1},K=(i()(F.a,N),F.a.locals,n(6)),j=n.n(K),T=n(20);function D(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 M=e=>class extends a.a.Component{constructor(e){super(e),D(this,"cleanup",void 0),D(this,"handleKeyDown",e=>{const{onBackPressed:t,onLeftPressed:n}=this.props;this.props.remoteControlActive&&(10009!==e.keyCode&&"b"!==e.key||!t||t(e),"ArrowLeft"!==e.key&&37!==e.keyCode||!n||n(e))}),this.state={active:e.remoteControlActive||!1}}componentDidUpdate(e){e.remoteControlActive&&!this.props.remoteControlActive?window.removeEventListener("keydown",this.handleKeyDown):!e.remoteControlActive&&this.props.remoteControlActive&&window.addEventListener("keydown",this.handleKeyDown)}componentDidMount(){window.addEventListener("keydown",this.handleKeyDown),this.cleanup=()=>{window.removeEventListener("keydown",this.handleKeyDown)}}componentWillUnmount(){this.cleanup&&this.cleanup()}render(){const{...t}=this.props;return a.a.createElement(e,t)}};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}class I extends a.a.Component{render(){const{iconName:e,active:t,children:n,focused:r,buttonRef:o}=this.props;return a.a.createElement("div",{className:["panel-nav-button-container","T02",t?"panel-nav-button-active":""].join(" "),"data-focused":r,ref:o},a.a.createElement(p,null,a.a.createElement(S,{iconName:e,height:36,width:36})),n)}}H(I,"displayName","PanelNavButton"),H(I,"propTypes",{iconName:j.a.string.isRequired,index:j.a.number.isRequired,active:j.a.bool.isRequired,children:j.a.node,focused:j.a.bool,onBecameFocused:j.a.func,buttonRef:j.a.oneOfType([j.a.func,j.a.object])});var L=M(Object(T.a)()(I)),O=n(18),U={insert:"head",singleton:!1},R=(i()(O.a,U),O.a.locals,n(5)),X=n(8);var Q=e=>{const t=X.default.getMaestroEventViewModel();e.dataset.focused="false",Object(R.c)(),t.delegate.startFocusManagement()};function z(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 V extends a.a.Component{constructor(...e){super(...e),z(this,"buttonElement",null),z(this,"state",{itemFocused:null}),z(this,"setButtonRef",e=>{this.buttonElement=e}),z(this,"handleLeftPressed",()=>{this.buttonElement&&Q(this.buttonElement)}),z(this,"handleBecameFocused",(e,t)=>()=>{this.setState({itemFocused:e},t)}),z(this,"handleBecameBlurred",()=>{this.setState({itemFocused:null})})}render(){const{item:e,index:t}=this.props;return a.a.createElement(L,{iconName:e.iconName,key:e.title,index:t,onBecameFocused:this.handleBecameFocused(t,e.onEnter),onBecameBlurred:this.handleBecameBlurred,active:e.active,focusKey:"PANEL_NAV_BUTTON_"+t,remoteControlActive:0===this.state.itemFocused,onLeftPressed:this.handleLeftPressed,buttonRef:this.setButtonRef},e.title)}}class W extends a.a.Component{render(){return a.a.createElement("div",{className:"panel-navigation"},this.props.items.map((e,t)=>a.a.createElement(V,{key:e.title,item:e,index:t})))}}var q=W;function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}class G extends a.a.Component{constructor(e){super(e)}render(){return a.a.createElement("img",Y({alt:this.props.alt||"Image"},this.props))}}var Z=G;var J=n(15),_={insert:"head",singleton:!1},$=(i()(J.a,_),J.a.locals,S);class ee extends a.a.Component{render(){const{awayTeamScore:e,homeTeamScore:t,homeTeamName:n,awayTeamName:r}=this.props;return a.a.createElement("div",{className:"score"},a.a.createElement("div",{className:"score-team T05_ALT"},n,a.a.createElement("span",{className:"T30"},t)),a.a.createElement("div",{className:"score-team T05_ALT"},a.a.createElement("span",{className:"T30"},e),r))}}function te(){return(te=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)}function ne(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 re extends a.a.Component{constructor(e){super(e),ne(this,"failedClipListener",()=>{}),ne(this,"ref",null),ne(this,"vm",void 0),ne(this,"state",{failedClip:null}),ne(this,"renderImage",()=>{const{playerImageUrl:e,teamImageUrl:t,thumbnailImageUrl:n}=this.props;return e?a.a.createElement(Z,{src:e,crossOrigin:"anonymous",alt:"Key Play Player Image",className:"cardImage"}):t?a.a.createElement(Z,{src:t,crossOrigin:"anonymous",alt:"Key Play Team Image",className:"cardImage"}):n?a.a.createElement(Z,{src:n,crossOrigin:"anonymous",alt:"Key Play Thumbnail Image",className:"cardImage"}):a.a.createElement(Z,{src:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCACQALgDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+O4tkcn0/z79ev/161Mg3dv8AD64/rjp3oAC3b3+n6e/8+negAB/z/Prn/DgUAG736cflyP5Z/CgA3Hpn/wDWOf65/WgYBvQ+n6H+eR396BBuzjnn6/55Geo+vU5oANxznPIoANx9cf8A18/j3Iz160AG73H8vftjsPy+goAM/wCfzx/9b/8AXQAu7/Pv0z9ff3+mABM/5/8Arfl9KAFLHue3+eP89u4FACbj69P0HP5D/PWgAzznJ57/AP16ADd/n36c9s9j6980ALuOePXOP8849B0oATJ9enT24oACxHOfT/Ae3f8AzzQAbvU/rj6D/wCsPwoAMn8+vv8AX/HrQBX3fTpj19c9Tx0IP/1qBgW9+vX3/wA/yoEG70PX16/rz2/HFAxSx554znr+X5f0oEJn8x+f/wCr6UDDceuen/6v6UCDd/8AX/n29eD6/SgYbvc/X8uc+nA60ALuPr0/z/kdKADcT39vw/r7fn1OaAE3HjnpjH8vzoEG737d+Tzx9aBiZ/l9OPfpwP8APagQu7pz7cH05oGLvP8AnOfXHXI46j6d6AE3die2Ov4/p/n1oAN2O/4E/U+vPP8AKgA3YPXB6/59aADcfX8vp7e39fegA3c8n9cHP/6qADd1Pr1/qP06fhQIN2e/t/n/AD9epyALuP8An/PrzmgZW3H1/wA//qoAM5/Hn/Pbv9fSgQm739Md/Tt/n8qBjtx/yAP88UtNQ/r+rCZ9/wDPt+fb29qYBu9/19un0PUj0HXvQAbj1z/nP9O/4+9AC7++eOvtx69Py9e1ABuOMf5GPf8AxoA77RfCayxR3Wps+JAHS0RihCHlfPcfMCw5MabWUYDODuRQR2cGm6fagCCzt48dGESmT8ZGBkY+7MTQBbeNJBtdEdem11DD06EEUAYd74a0m8BP2cW0hHElriLBznmMAwtz1zHk88gnNAzgdX8O3ulAzA/arQHHnxgq0YPQTR/N5YyMB1LR5xllZlWgDnN3p/nj3/DP4UAG7/OPxxj36460CDd05/Dt6/rj8aBhu568/wCf8KAF3f5P6f047mj+tgE3f5+vr6/4HnjFABuzznOefr/nOPb8BQAZz/n/ABoAN3/1vz7fyx+lAEG4+v8An+nXHHFABuP6f4/55oATcfX/AD0/rQAbsd+n+fx6fjjHajQA3f4+3H+f50AG7oO/Pr/kUABP+fr/AJHWgBdx9f8APOP5/nR/X9fcB23hDRUvZH1G6USQ28gjgiYZWScBXLsDwViBTavIZ25xsIYC56jQIKACgAoAayq6srAMrAqysAQykYIIPBBBwQeCKAPFvEWmjStSlhjVhbSbZ7XIJAR/vRhj18qQMnUnYEZjk0DMLdjvyfb0oAXcev8A9b/Pt+fWgPxE3H1/z/j/AJ70AGeB+Yo/UA3Z6H8v88ZoAXcRzn/PvQAm/wBwPp/P/wCv29uy0D+v6/r8w3Ed/wDPvTD+u5X3Y+n/AOruMfh2pf1/XyAXd/n3/Xrjkd6P6/r+rgJu9/1P1ph8g3H1/L/Ofr/9agA3e/6/57/rQGobvfHX8c+/f8aA8hd/8vT0/wDrnjt+FL+v6/rzATPX9aYX/r+r9z3Tw7YjT9ItIiMSSxi5n9fNnAcqR28tNkX/AADPJJJANygQUAFABQAUAYmv6UmradLDj/SI1aW1fHzLMqnCZ/uTAeW46chsbkXAB4USfp/Tn9KWgw3ev+f8/n+Zo0D+vv8A6/rcXcfX/J7f/q/wo0ATd/L9O3+fr2p6AG457/y//V/jR/WoBn/D/wDXil/Xp94XDd7++c/5/wAj0p6BqLuPqaWgFfd3z/n8aNAE3H3/AM9x/j6e1GnoH+Qu4nP5/wA+9MA3c+4+v8/z6YpAJuPr/np+f8u1GgBuz6f/AK/85/8ArUABbn/P+effr0o/HUCxap591bQnpNPDEevSSRUPA5PXH8u1H9f1+If1/X9aH0eBjgcAcADtTELQAUAFABQAUANYkKxUbmCkhem4gcDPueKAPmtpCzMzYyxLEehJJ4HUAc4FLqNDd34c8+v09Pw6Uaf1/X4gG739vT/Pb/OKNA/r5i7un9P8+5+maNg+QmfwpgG4+v8An29/15paB/X9f8EXceuaNAE3H1P+f8/pRoBBuPr7f57/AOfSjQBN34n/AD9D059fSjQP6/q39feG7tx/nPH8/wAelGgBu/z+n8/1o/r9WHqG7/J/+v8AT8KNP60DUN3H+foP8/1oHcXdx1/z/X/OKNBE9pP9nurWYn5YbiGU/SORG+vReMfhQB9LgggEHIPII5BB6EGmIWgAoAKACgAoAQkAEk4ABJJ6ADkk/SgD5kmkV5ZXUbVeR3VfRWbIGBwMAjpSK16f1/WozcfX/Pr9ffrRp/X9fkINx/z/AJ/KjQLibs9+v+f6fpQFxd3+f8/Sj+vmO/8AX9f1+IFj74+uf89aP67CDefX8/8AP8/ejToAm73/AM9KBkG7/OP8/wD1+/agP63/AK/rQTefX6f5/wA/kaNNf6/r+uwg3H1/yf8AGj+vu/r/ADC/9foKW/z/AJ6f0/KjTT+v6/q4f1/Wv/BDd/k+/b6f59KNBhux6fTtRp/XmFw3Z/P/AD+P+PFH/B/r+vzDb+v6/wCHOk8KaXBrOrpaXQdrdYJ55VjfYxCKqL8w5A8yVOnJ6dM0aC6HvdrCba3gt97SeREkKyN990jUIjPjgyFAN7AAM+5gqghQxFigAoAKACgAoAr3UH2m2nt/MaITxPC0iAF0SRSjlM8B9pOxiGCthirAbSAeB+KtKh0bV5LS23i3aGGeISNvcLIpRwWwNw82OTBPIBxzjNIdzm93T/P+evejQf8AX9f1+Iu70/z/APX4oD+v6+8TP+f89KP6/wCHF/X/AAwbv0/n2/8Arf8A6qNB3At15o0F8v6/4cXf2z/k/wCTiiw/kG78P5f5H0o6Bf8Ar7itmjQLilv/AK/+etH9ff8AMX9eX9f8AN35f/r74o03H/X9bibv8f8AP1/X8KNA/rzDd6/55o0/r+vmAbv8/rRoFw3flz/hRp/X9f16hc9E+GpB1q7B+9/Zc2Pcfa7Mt+u3rz1x3o6iPbKYgoAKACgAoAKACgDxH4kkDXLXHB/sqAn/AMC73H48c57AUmNHnu7tn8v8/n/jRoP+v6/r/gGfejQLi7j60aB/X9fqJu9Sfzo0C/l+P/AF3Hv09/8AP+frRp/wwX8ugm7v+f8An/PPvRp/X5Brp/W4u71/z/npQBW3++KAf9fl/X9MXcfyoC/9f1YN/P8An/P/AOr2oDtp/X9dbBu/n/8Ar/lRp/Xb+tg+Qbvx/wA/jRoF/L9P63DcfX/J/pRp/X9bgG7/AD/n1o03C52XgK9S18SWiu2xbyKe0yem+RPMiUn/AG5YY0A/vsKEwZ9C0yQoAKACgAoAKACgD558eXyXfiS7VGDLZpDZgggjfEu+Zep5SeSRGHGGUgj1Xf8Ar+upS06f8McduP8ASloH9f18hC3v/n/P609A/r+t+n9MUPjv/WjT+v6/rQPUN35/5z1o0+QCbv8AP50aBf8Ar+v+GF3H/P8An3o0C4bv8/59qPw/rQCvu7f4/l19T/Klp/X9f8AP6/r+thN2Oh/SndB/Wwu73/X/AD9KV0H9f1/XmJu/z/n/ADij/MLsXd/nt6Yx+lAX8v6/rqG7/P8An0/SjT+v60C4Bv8AP/16en/AC4qyMjK6MUdSGVlbayspDBlYYIYEAhhggjINHYL+R6n4O8Zavd61Z6dql8Z7W4SWGPfDbq3niMvCXmSJZXLFDGNznc8i7snBBcT8j2umIKACgAoAKAPFfGHjTV7PWb3TtLvfItrdYoHKwwO/nmMNPslkiaRCrP5eVIKvGWQjOaLjPK2kZ2Z3dmd2LM7MWZmbkszE5ZmJyWJJJOSc0h/10G7v8e1Gn9f1/wAEL+X9eX9ai7v85+vv/n6ZpBcTd7/j/jj2p6Bf/gff26i7v8+/r+n09qWn9f1YNf6/rzDd+HP+f8+9GgXDd/L/AD7UBt0/4cTf74H+e/6UAV93v/n+VGgf15hu/n/9Y/nRdB/X3f5i7vf/AD/n/PoaBf8Ar+v68uxux+v/ANf8KNAv/X9f8OG7/H8aNPwC/wDX9XDf0/z/APX/AF+tAeQbu3v/AJ5o0C/+Wv8AX+YbuO9A7/f/AF/X5m/4Vfb4k0Q5xnUrRf8AvqUJjnPXOB/k00J/1/XmfVFMkKACgAoAKAPlXxRIW8R652xql6vXP3J3X+gI9BxzS0/r7ijC3e9LQL7Buxij+v68wv27Cbvfp/8Aro+QC7vwo0C/kG40f1/X9feFw3elH9f1/XULhu/+t0oC/r/XcN3H+fT/AD/WjT+v1C/3/wBP8yvu/wA8f5/z9KLhcN2OPz/H9KNAuG7vn8fr/n/PWjQP6/r+vIN3+fxouh6Bv9/8/wA/89aBBu/z/n6//Wo0DTsG7/PPaj7h3/r+ugbvU9ef84oF9/8Al5HQeFBv8S6EOf8AkKWbdR/BMr9+3y8jqRwOaYX8j6vpkhQAUAFABQB8neKsr4k11WHP9q3zfg9w7r+akEfXip6lf1/X6mDu/XrRoF9tv8g3etGnYExN2P8AP0ov/X9f5hf+v6Qu7/P9KNAv5XE3fh/+rn/PSj+v6/r5hf8Ary/ryFDf596P66h/X9f8OG7/AD+nb0/xo0/r+uof1/X6ib+/9OvH+f50B/X9P1/4cg3f0/z/ACoVgv5Cbz7/AP1v8/56UB8hd3v+v+fw6UB8vw/roJu6fT1/z60f1/X9dB/IN3f9f8P/AK1H9f0gF3e9HUX9f1cN/v8A5x0o0/UPl5irudgigszEKqqNzMxOAoUZJJPAA5J4FAX/AK/zPZfB/wAPdbsdU0zWNRa0tobdzcNaeZJJebjC4jRkWLyEId1L/vyyAMNu4Yqgb/r5nuNBIUAFABQAUAeGeL/h7rl5qmp6vp5tLmC4c3K2qyOl5u8tfMRY3iELsXU7Ns+58gbQxxSKTPGySpKkFWBIKkEEEcEEcEEdCCMjvSuguG7n/P8An/PWi4XDd7/T/P8An+lAw3//AFv/AK30/wAaBBu/Pp/WjQd/IN+e/wDn/Io/r+v68g+Qbv8AP5Yo0F+AbvX/AD3o0D+tivu9D7/5/LjtQP8Ay6/1uG76/j/n3oC6Ddnv/n/P/wCv1AE3f59qLiuG7/PH+fSgdySJJJpEigjkmlkYIkUaNJJIx6KqIC7MT/CASaAuekaH8MNe1MJNqGzR7ViCRcAyXroepW0Ujyzxgi5lgcHBEbCnYVz2HRPAfh3Q2imitWvLyIhlvL5hPIrjBDRRAJbRFGGY3SHzV4JlYgGnYR2dAgoAKACgAoAKACgDidc8AeHdcaSd7d7G9lJZ7uxYRNI5YszSwsHt5WdiTI5iEz55lFFh3PH9c+GPiDTN0tgE1m2GebVSl4qgZy9o7EsT0AtpbhieqqDSsO55xIJInaOZHjkjYo8cisjo6nBVkYBlYHgggEHORUh8hu7+f+e/5U9B6Bv/AM/5557/AI0v6/roL+v66BuPt9P1/P8AWmP+vl/XQN3+fTvQIN3v2xQPQr7v/wBX+fpRcLhu9evHv6/WgP6/r/hxN34/5/z0oC/9f1/w5e0/T9Q1WcW2m2dxeznkpbxNIVH96QgbY055eQqg7sM0fIL/ANf1/X6euaD8Iruby5/EF4trEQGaxsystyf9iW5Ia3hPXPki54OA6nkOwrnsWj+G9F0GIR6ZYQwNjDXBXzLuTPXzLmTdMQeuwMI1yQiKOKYjcoEFABQAUAFABQAUAFABQAUAFAGBrXhnRPEEZTU7GKWTbtS6QeVeRY+75dymJNqnny3Lwk/fjYcUDvY8c174R39v5k+gXa30Iyy2V2VhvFA6JHPhbadveQWnHHzHqrdh3PJr6wvtLuGtdQtLizuF5MVxE8bEdAy7gA6H+F0LI3VWIpev9f1/THdf1/X9eRS3f45/z/k0Bfy/r/gChv8AP4H/ABzRcPz/AK/rUN359/50XC+xX3e/+f0pBdCbvf05/wA9v8igD1zwN8N5dbji1bW/MttKfElrbITHc365BEjNjMFm4+66kTTqd0JjjKTPSXcTf9bn0Np+m2GlW62unWcFnboABHBGqAkcbnYfNI56tJIzOxJLMSSaYi9QIKACgAoAKACgAoAKACgAoAKACgAoAKACgChqGmafqtu1rqVnb3tuwP7ueNX2kjG+Nj88UgH3ZImSRTyrAjNAHzt46+HM2gpJqujmW60kZa4hfL3GnA8b2Ycz2vYykeZCP9duXM1S12KTPKN3+f8APP8An3oGJu9/8/596Xy/r8A/r+kQbvf/ADxRcNP6X6HoPw58KjxPrYe6TdpWmCO6vRj5bh2Y/ZrI9eLhkdpeObeGZAyO6MGtfkDZ9aKqoqoiqiIoVEUBVVVGFVVGAqqAAAAAAMCqIHUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFADWVXVkdVdHUq6MAysrDDKynIZWBIIIIIODxQB8k/ETwuPDGuH7MpGmakr3ViAPlhw/+kWYPf7O7IU/6YSwhizbyZenoUn/XyOA3/j3/AM/5/KkPRAD/2Q==",crossOrigin:"anonymous",alt:"Key Play Thumbnail Image",className:"cardImage"})}),this.vm=X.default.getMaestroEventViewModel().keyPlaysViewModel}componentDidMount(){this.failedClipListener=this.vm.failedClips.subscribe(e=>{this.setState({failedClip:e[this.props.clipID]})}),this.props.setRef(this.ref)}componentWillUnmount(){this.failedClipListener&&this.failedClipListener()}render(){const{clipID:e,description:t,isPlaying:n,playbackProgress:r,isScoring:o,focused:s,awayTeamScore:i,homeTeamScore:l,homeTeamName:c,awayTeamName:u}=this.props,{failedClip:d}=this.state;return a.a.createElement("div",{className:"key-play-card",id:e,"data-focused":s,ref:e=>this.ref=e},a.a.createElement("div",{className:"key-play-card-content"},this.renderImage(),a.a.createElement("div",{className:"text-content T05_ALT"},a.a.createElement("div",{className:"multi-line"},t))),n&&null!==r&&a.a.createElement("progress",{value:r,max:"1"}),o&&a.a.createElement(ee,{awayTeamScore:i,homeTeamScore:l,homeTeamName:c,awayTeamName:u}),"recentFailure"===d&&a.a.createElement("div",{className:"error-state"},a.a.createElement($,{iconName:"warning",width:21.6,height:18.7}),a.a.createElement("span",{className:"T05_ALT"},"Could not play this clip. ")),"nonRecentFailure"===d&&a.a.createElement("div",{className:"non-recent-error-state"},a.a.createElement($,{iconName:"warning",width:21.6,height:18.7})))}}const ae=M(re);class oe extends a.a.Component{constructor(...e){super(...e),ne(this,"ref",null),ne(this,"setRef",e=>{this.ref=e,this.props.setRef(e)}),ne(this,"handleLeftPressed",()=>{this.ref&&Q(this.ref)})}render(){return a.a.createElement(ae,te({},this.props,{setRef:this.setRef,remoteControlActive:this.props.focused,onLeftPressed:this.handleLeftPressed}))}}var se=Object(T.a)()(oe),ie=n(14),le={insert:"head",singleton:!1};i()(ie.a,le),ie.a.locals;class ce extends a.a.Component{constructor(e){super(e)}render(){const e=["scrollable-gradient",this.props.scrolled?"scroll-container-scrolled":""].join(" ");return a.a.createElement("div",{className:e},this.props.children)}}var ue=ce,de=n(13),Ae={insert:"head",singleton:!1},pe=(i()(de.a,Ae),de.a.locals,p),he=n(17),me={insert:"head",singleton:!1};i()(he.a,me),he.a.locals;function fe(){return(fe=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 ye extends a.a.Component{render(){return a.a.createElement(pe,fe({className:"action-button T05_ALT"},this.props),this.props.children)}}var ve=Object(T.a)()(ye),ge=n(16),be={insert:"head",singleton:!1};i()(ge.a,be),ge.a.locals;class Ce extends a.a.Component{render(){return a.a.createElement("div",{className:"sdk--key-play-error-state-unpopulatedEvent"},a.a.createElement("div",{className:"main-content"},a.a.createElement("h3",{className:"T70"},"Greatness takes time."),a.a.createElement("p",{className:"T20"},"Key plays are still in the making! Come back soon to check 'em out.")),a.a.createElement("div",{className:"unpopulatedEvent-examples"},Array.from({length:4}).map((e,t)=>a.a.createElement("div",{key:t,className:"example"}))))}}class Ee extends a.a.Component{render(){return a.a.createElement("div",{className:"sdk--key-play-error-state-unsupportedEvent"},a.a.createElement("h3",{className:"T70"},"No Key Plays Available"),a.a.createElement("svg",{viewBox:"0 0 520 359",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("g",{opacity:"0.16"},a.a.createElement("path",{d:"M146.334 219.427V244.686L168.723 198.187V38.0215L165.279 40.3178V188.427L146.334 219.427Z",fill:"#6D6D6D"}),a.a.createElement("rect",{x:"94.6687",y:"219.427",width:"51.6662",height:"25.259",fill:"#777777"}),a.a.createElement("rect",{x:"145.187",y:"39.1694",width:"20.6665",height:"149.258",fill:"#666666"}),a.a.createElement("path",{d:"M146.335 219.427H94.6687L143.465 187.279H167.001L146.335 219.427Z",fill:"#666666"}),a.a.createElement("path",{d:"M375.389 219.427V244.686L353 198.187V38.0215L356.445 40.3178V188.427L375.389 219.427Z",fill:"#6D6D6D"}),a.a.createElement("rect",{width:"51.6662",height:"25.259",transform:"matrix(-1 0 0 1 427.055 219.427)",fill:"#777777"}),a.a.createElement("rect",{width:"20.6665",height:"149.258",transform:"matrix(-1 0 0 1 376.537 39.1694)",fill:"#666666"}),a.a.createElement("path",{d:"M375.389 219.427H427.055L378.259 187.279H354.722L375.389 219.427Z",fill:"#666666"}),a.a.createElement("path",{d:"M23.4844 141.354H496.517L410.981 121.835H93.5208L23.4844 141.354Z",fill:"#B1B1B1"}),a.a.createElement("rect",{x:"23.4844",y:"141.354",width:"473.033",height:"19.5183",fill:"#777777"}),a.a.createElement("rect",{x:"72.8545",y:"51.7993",width:"374.293",height:"45.9255",fill:"#CDCDCD"}))))}}class Be extends a.a.Component{render(){const{focused:e}=this.props;return a.a.createElement("div",{className:"sdk--key-play-error-state-tabLoadFailure",style:{borderColor:e?"var(--sdk-highlightPrimary)":"transparent"}},a.a.createElement("h3",{className:"T70"},"Let's try that again..."),a.a.createElement("p",{className:"T20"},"We're having trouble loading this."),a.a.createElement(ve,{"data-focused":e,onEnterPress:this.props.onEnterPress},"Refresh"))}}const we=Object(T.a)()(Be);class ke extends a.a.Component{render(){const{errorState:e,onRetry:t}=this.props;return"unsupportedEvent"===e?a.a.createElement(Ee,null):"unpopulatedEvent"===e?a.a.createElement(Ce,null):"tabLoadFailure"===e?a.a.createElement(we,{onEnterPress:t}):null}}var Pe=ke;function xe(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 Se extends r.Component{constructor(e){var t,n;super(e),xe(this,"container",null),xe(this,"refsMap",{}),xe(this,"playbackProgressUnsub",null),xe(this,"playbackIndexUnsub",null),xe(this,"itemsUnsub",null),xe(this,"vm",void 0),xe(this,"handlePlayClip",e=>async()=>{await this.vm.playKeyPlay(e)}),xe(this,"handleItemFocus",e=>t=>{if(!this.container||!t.node)return;const n=this.container.getBoundingClientRect(),r=t.node.getBoundingClientRect(),a=Object.keys(this.refsMap).map(e=>parseInt(e,10)).sort((e,t)=>e-t).slice(e);let o=!1;if(a.forEach(e=>{const t=this.refsMap[e];if(!t)return;const r=t.getBoundingClientRect();(r.bottom>n.bottom||r.top<n.top)&&(o=!0)}),!o)return;const s=0===e?0:this.container.scrollTop+(r.top-n.top-32);this.container.scrollTop=s,this.setState({scrolled:s>0})}),xe(this,"setRef",e=>t=>{t?this.refsMap[e]=t:delete this.refsMap[e]}),this.vm=X.default.getMaestroEventViewModel().keyPlaysViewModel;const r=this.vm.items.value;this.state={scrolled:!1,playbackProgress:null!==(t=this.vm.currentClipPlaybackProgress.value)&&void 0!==t?t:null,playbackIndex:null!==(n=this.vm.currentlyPlayingClipIndex.value)&&void 0!==n?n:null,items:r.map(e=>({title:e.title,items:e.items.map(e=>({id:e.id,clipID:e.clipID,awayTeamScore:e.awayTeamScore,homeTeamScore:e.homeTeamScore,awayTeamName:e.awayTeamName,homeTeamName:e.homeTeamName,description:e.description,playerImageUrl:e.playerImageUrl||"",teamImageUrl:e.teamImageUrl||"",thumbnailImageUrl:e.thumbnailImageUrl||""}))}))}}componentDidMount(){this.playbackProgressUnsub=this.vm.currentClipPlaybackProgress.subscribe(e=>{this.setState({playbackProgress:null!=e?e:null})}),this.playbackIndexUnsub=this.vm.currentlyPlayingClipIndex.subscribe(e=>{this.setState({playbackIndex:null!=e?e:null})}),this.itemsUnsub=this.vm.items.subscribe(e=>{this.setState({items:e.map(e=>({title:e.title,items:e.items.map(e=>({id:e.id,clipID:e.clipID,awayTeamScore:e.awayTeamScore,homeTeamScore:e.homeTeamScore,awayTeamName:e.awayTeamName,homeTeamName:e.homeTeamName,description:e.description,playerImageUrl:e.playerImageUrl||"",teamImageUrl:e.teamImageUrl||"",thumbnailImageUrl:e.thumbnailImageUrl||""}))}))})})}componentWillUnmount(){this.playbackProgressUnsub&&this.playbackProgressUnsub(),this.playbackIndexUnsub&&this.playbackIndexUnsub(),this.itemsUnsub&&this.itemsUnsub()}render(){const{scrolled:e,playbackProgress:t,playbackIndex:n,items:r}=this.state;return a.a.createElement(ue,{scrolled:e},a.a.createElement("div",{ref:e=>{this.container=e},className:"key-plays-view"},r.map((e,r)=>a.a.createElement("div",{key:"section-"+r,className:"key-plays-section"},a.a.createElement("h3",{className:"key-plays-section-title T10"},e.title),a.a.createElement("div",{className:"key-plays-section-items"},e.items.map(e=>{const r=this.vm.allItems.findIndex(t=>t.id===e.id);return a.a.createElement(se,{key:e.id,id:e.id,clipID:e.clipID,description:e.description,awayTeamName:e.awayTeamName,homeTeamName:e.homeTeamName,awayTeamScore:e.awayTeamScore,homeTeamScore:e.homeTeamScore,playerImageUrl:e.playerImageUrl,teamImageUrl:e.teamImageUrl,thumbnailImageUrl:e.thumbnailImageUrl,isPlaying:this.vm.isCurrentlyPlaying(r),isScoring:Boolean(e.awayTeamScore&&e.homeTeamScore),playbackProgress:r===n?t:null,onEnterPress:this.handlePlayClip(r),onBecameFocused:this.handleItemFocus(r),setRef:this.setRef(r)})})))),a.a.createElement("div",{className:"key-plays-bottom-padding"})))}}class Fe extends r.Component{constructor(e){super(e),xe(this,"errorStateUnsub",null),xe(this,"vm",void 0),xe(this,"handleRetry",async()=>{await this.vm.userRequestedNewKeyPlaysData(),Object(R.e)("PANEL_NAV_BUTTON_0")}),this.vm=X.default.getMaestroEventViewModel().keyPlaysViewModel,this.state={errorState:this.vm.errorState.value}}componentDidMount(){this.errorStateUnsub=this.vm.errorState.subscribe(e=>{this.setState({errorState:e})})}componentWillUnmount(){this.errorStateUnsub&&this.errorStateUnsub()}render(){const{errorState:e}=this.state;return e?a.a.createElement(Pe,{errorState:e,onRetry:this.handleRetry}):a.a.createElement(Se,null)}}function Ne(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 Ke=new o.a,je={keyPlays:a.a.createElement(Fe,null),bets:a.a.createElement("div",{className:"panel-coming-soon T02"},"Bets - Coming Soon"),stats:a.a.createElement("div",{className:"panel-coming-soon T02"},"Stats - Coming Soon"),fantasy:a.a.createElement("div",{className:"panel-coming-soon T02"},"Fantasy - Coming Soon")};class Te extends a.a.Component{constructor(e){super(e),Ne(this,"unsubscribe",null),this.state={activePanel:Ke.currentPanel}}componentDidMount(){this.unsubscribe=Ke.currentPanelObservable.subscribe(()=>{this.setState({activePanel:Ke.currentPanel})})}componentWillUnmount(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)}render(){const{activePanel:e}=this.state,t=[{iconName:"keyPlays",onEnter:()=>{Ke.currentPanel="keyPlays"},title:"KEY PLAYS",active:"keyPlays"===e},{iconName:"bets",onEnter:()=>{Ke.currentPanel="bets"},title:"BETS",active:"bets"===e},{iconName:"stats",onEnter:()=>{Ke.currentPanel="stats"},title:"STATS",active:"stats"===e},{iconName:"fantasy",onEnter:()=>{Ke.currentPanel="fantasy"},title:"FANTASY",active:"fantasy"===e}];return a.a.createElement("div",{className:"sdk--panel-manager"},a.a.createElement(q,{items:t}),a.a.createElement("div",{className:"sdk--panel-wrapper"},je[e]))}}var De=Te;t.default=De},function(e,t,n){"use strict";n.r(t);var r=n(0),a=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(2),i=n.n(s),l=n(11),c={insert:"head",singleton:!1};i()(l.a,c),l.a.locals;const u=o.colors,d=o.typography;class A extends a.a.Component{componentDidMount(){Object.keys(u).forEach(e=>{document.documentElement.style.setProperty("--sdk-"+e,u[e])}),Object.keys(d).forEach(e=>{document.documentElement.style.setProperty("--sdk-font-"+e,d[e])})}componentWillUnmount(){Object.keys(u).forEach(e=>{document.documentElement.style.removeProperty("--sdk-"+e)}),Object.keys(d).forEach(e=>{document.documentElement.style.removeProperty("--sdk-font-"+e)})}render(){return a.a.createElement("div",{className:"sdk-wrapper"},this.props.children)}}var p=A;t.default=p}])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("MaestroWebSDK",["react","react-dom"],t):"object"==typeof exports?exports.MaestroWebSDK=t(require("react"),require("react-dom")):e.MaestroWebSDK=t(e.React,e.ReactDOM)}(this,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=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]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],i=0;i<e.length;i++){var a=e[i],l=t.base?a[0]+t.base:a[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),h={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(o[d].references++,o[d].updater(h)):o.push({identifier:u,updater:A(h,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 o=a(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function h(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function p(e,t,n){var r=n.css,i=n.media,a=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var f=null,m=0;function A(e,t){var n,r,i;if(t.singleton){var a=m++;n=f||(f=c(t)),r=h.bind(null,n,a,!1),i=h.bind(null,n,a,!0)}else n=c(t),r=p.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=s(n[r]);o[i].references--}for(var a=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=a}}}},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,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}(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 a=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),s="/*# ".concat(o," */"),l=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(l).concat([s]).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 a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);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.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return s}));var r=n(9);const{destroy:i,pause:a,resume:o,setFocus:s,init:l,setKeyMap:c}=r.b},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 r}));const r={WinningBet:"winningBet",FantasyPlayerEvent:"fantasyPlayerEvent"}},function(e,t,n){"use strict";var r,i=n(43),a=Object.prototype.toString,o=(r=Object.create(null),function(e){var t=a.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=s("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),f=s("File"),m=s("Blob"),A=s("FileList");function g(e){return"[object Function]"===a.call(e)}var v=s("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 y,E=(y="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return y&&e instanceof y});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]"===a.call(e)||g(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:d,isPlainObject:h,isUndefined:c,isDate:p,isFile:f,isBlob:m,isFunction:g,isStream:function(e){return d(e)&&g(e.pipe)},isURLSearchParams:v,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){h(t[r])&&h(n)?t[r]=e(t[r],n):h(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,a,o={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)o[a=r[i]]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:s,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:E,isFileList:A}},function(e,t,n){e.exports=n(54)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));const r=e=>{let{offsetParent:t}=e;const n=e.offsetHeight,r=e.offsetWidth;let i=e.offsetLeft,a=e.offsetTop;for(;t&&1===t.nodeType;)i+=t.offsetLeft-t.scrollLeft,a+=t.offsetTop-t.scrollTop,({offsetParent:t}=t);return{height:n,left:i,top:a,width:r}};var i=(e,t)=>{const n=e&&e.parentNode;if(n){const i=r(n),{height:a,left:o,top:s,width:l}=r(e);t(o-i.left,s-i.top,l,a,o,s)}};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}const o="undefined"!=typeof window&&window.document,s=o?window.innerWidth:0,l=o?window.innerHeight:0;class c{constructor(){a(this,"debugCtx",void 0),a(this,"layoutsCtx",void 0),o?(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=s,n.height=l,r}clear(){o&&this.debugCtx&&this.debugCtx.clearRect(0,0,s,l)}clearLayouts(){o&&this.layoutsCtx&&this.layoutsCtx.clearRect(0,0,s,l)}drawLayout(e,t,n){o&&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){o&&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 d(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 h="SN:ROOT",p={left:[37],up:[38],right:[39],down:[40],enter:[13],back:[8,10009]},f=["#0FF","#FF0","#F0F"],m={leading:!0,trailing:!1},A=(e,t,n={})=>{let r=null,i=0;const{leading:a=!0,trailing:o=!0}=n;return function(...n){const s=Date.now();i||a||(i=s);const l=t-(s-i);l<=0||l>t?(r&&(clearTimeout(r),r=null),i=s,e.apply(this,n)):!r&&o&&(r=window.setTimeout(()=>{i=a?Date.now():0,r=null,e.apply(this,n)},l))}},g=(e,t)=>[...e].sort((e,n)=>{const r=t(e),i=t(n);return r<i?-1:r>i?1:0}),v=e=>e[0],b=(e,t)=>e.filter(e=>!t.includes(e)),y=(e,t)=>e.forEach(t);class E{static getCutoffCoordinate(e,t,n,r){const i=r.left,a=r.top,o=r.width,s=r.height,l=e?a:i,c=e?s:o;return t?n?l:l+c:n?l+c:l}static getRefCorners(e,t,n){const r=n.left,i=n.top,a=n.width,o=n.height,s={a:{x:0,y:0},b:{x:0,y:0}};switch(e){case"up":{const e=t?i+o:i;s.a={x:r,y:e},s.b={x:r+a,y:e};break}case"down":{const e=t?i:i+o;s.a={x:r,y:e},s.b={x:r+a,y:e};break}case"left":{const e=t?r+a:r;s.a={x:e,y:i},s.b={x:e,y:i+o};break}case"right":{const e=t?r:r+a;s.a={x:e,y:i},s.b={x:e,y:i+o};break}}return s}static isAdjacentSlice(e,t,n){const{a:r,b:i}=e,{a:a,b:o}=t,s=n?"x":"y",l=r[s],c=i[s],u=a[s],d=o[s],h=.2*(c-l);return Math.max(0,Math.min(c,d)-Math.max(l,u))>=h}static getPrimaryAxisDistance(e,t,n){const{a:r}=e,{a:i}=t,a=n?"y":"x";return Math.abs(i[a]-r[a])}static getSecondaryAxisDistance(e,t,n){const{a:r,b:i}=e,{a:a,b:o}=t,s=n?"x":"y",l=r[s],c=i[s],u=a[s],d=o[s],h=[];return h.push(Math.abs(u-l)),h.push(Math.abs(u-c)),h.push(Math.abs(d-l)),h.push(Math.abs(d-c)),Math.min(...h)}sortSiblingsByPriority(e,t,n,r){const i="down"===n||"up"===n,a=E.getRefCorners(n,!1,t);return[...e].sort((e,t)=>{const r=E.getRefCorners(n,!0,e.layout),o=E.getRefCorners(n,!0,t.layout),s=E.isAdjacentSlice(a,r,i),l=E.isAdjacentSlice(a,o,i),c=s?E.getPrimaryAxisDistance:E.getSecondaryAxisDistance,u=l?E.getPrimaryAxisDistance:E.getSecondaryAxisDistance,d=s?E.getSecondaryAxisDistance:E.getPrimaryAxisDistance,h=l?E.getSecondaryAxisDistance:E.getPrimaryAxisDistance,p=c(a,r,i),f=u(a,o,i);return(5*p+d(a,r,i)+1)/(s?5:1)-(5*f+h(a,o,i)+1)/(l?5:1)})}constructor(){d(this,"focusableComponents",void 0),d(this,"focusKey",void 0),d(this,"parentsHavingFocusedChild",void 0),d(this,"enabled",void 0),d(this,"nativeMode",void 0),d(this,"throttle",void 0),d(this,"throttleKeypresses",void 0),d(this,"pressedKeys",void 0),d(this,"paused",void 0),d(this,"keyDownEventListener",void 0),d(this,"keyUpEventListener",void 0),d(this,"keyMap",void 0),d(this,"debug",void 0),d(this,"visualDebugger",void 0),d(this,"logIndex",void 0),this.focusableComponents={},this.focusKey=null,this.parentsHavingFocusedChild=[],this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.pressedKeys={},this.paused=!1,this.keyDownEventListener=null,this.keyUpEventListener=null,this.keyMap=p,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)}init({debug:e=!1,visualDebug:t=!1,nativeMode:n=!1,throttle:r=0,throttleKeypresses:i=!1}={}){this.enabled||(this.enabled=!0,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.enabled&&(this.enabled=!1,this.nativeMode=!1,this.throttle=0,this.throttleKeypresses=!1,this.focusKey=null,this.parentsHavingFocusedChild=[],this.focusableComponents={},this.paused=!1,this.keyMap=p,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?A(e,this.throttle,m):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()},window.addEventListener("keyup",this.keyUpEventListener),window.addEventListener("keydown",this.keyDownEventListener)}}unbindEventHandlers(){"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("keydown",this.keyDownEventListener),this.keyDownEventListener=null,this.throttle&&(window.removeEventListener("keyup",this.keyUpEventListener),this.keyUpEventListener=null))}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={}){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,{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:a}=r,o="down"===e||"up"===e,s="down"===e||"right"===e,l=E.getCutoffCoordinate(o,s,!1,a),c=Object.values(this.focusableComponents).filter(e=>{if(e.parentFocusKey===t&&e.focusable){this.updateLayout(e.focusKey);const t=E.getCutoffCoordinate(o,s,!0,e.layout);return s?t>=l:t<=l}return!1});if(this.debug&&this.log("smartNavigate","siblings",c),c.length>0){const t=this.sortSiblingsByPriority(c,a,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: ${f[this.logIndex%f.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:a}=t;if(i&&!t.forgetLastFocusedChild&&this.isParticipatingFocusableComponent(i))return this.log("getNextFocusKey","lastFocusedChildKey will be focused",i),this.getNextFocusKey(i);if(a&&this.isParticipatingFocusableComponent(a))return this.log("getNextFocusKey","preferredChildFocusKey will be focused",a),this.getNextFocusKey(a);r.forEach(e=>this.updateLayout(e.focusKey));const{focusKey:o}=(e=>{const t=g(e,({layout:e})=>Math.abs(e.left)+Math.abs(e.top));return v(t)})(r);return this.log("getNextFocusKey","childKey will be focused",o),this.getNextFocusKey(o)}addFocusable({focusKey:e,node:t,parentFocusKey:n,onEnterPressHandler:r,onEnterReleaseHandler:i,onBackPressHandler:a,onArrowPressHandler:o,onBecameFocusedHandler:s,onBecameBlurredHandler:l,forgetLastFocusedChild:c,trackChildren:u,onUpdateFocus:d,onUpdateHasFocusedChild:h,preferredChildFocusKey:p,autoRestoreFocus:f,focusable:m=!0,blockNavigationOut:A}){this.focusableComponents[e]={focusKey:e,node:t,parentFocusKey:n,onEnterPressHandler:r,onEnterReleaseHandler:i,onBackPressHandler:a,onArrowPressHandler:o,onBecameFocusedHandler:s,onBecameBlurredHandler:l,onUpdateFocus:d,onUpdateHasFocusedChild:h,forgetLastFocusedChild:c,trackChildren:u,lastFocusedChildKey:null,preferredChildFocusKey:p,focusable:m,blockNavigationOut:A,autoRestoreFocus:f,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(r&&r.lastFocusedChildKey===e&&(r.lastFocusedChildKey=null),this.nativeMode)return;i&&r&&r.autoRestoreFocus&&this.setFocus(n)}}getNodeLayoutByFocusKey(e){const t=this.focusableComponents[e];return t?(this.updateLayout(t.focusKey),t.layout):null}setCurrentFocusedKey(e,t){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,a;const e=this.focusableComponents[this.focusKey];null===(i=e.onUpdateFocus)||void 0===i||i.call(e,!0),null===(a=e.onBecameFocusedHandler)||void 0===a||a.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),a=b(n,this.parentsHavingFocusedChild);y(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)}),y(a,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(){this.paused=!0}resume(){this.paused=!1}setFocus(e,t={}){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,a,o,s)=>{t.layout={x:e,y:r,width:i,height:a,left:o,top:s,node:n}})}updateFocusable(e,{node:t,preferredChildFocusKey:n,focusable:r,blockNavigationOut:i}){if(this.nativeMode)return;const a=this.focusableComponents[e];a&&(a.preferredChildFocusKey=n,a.focusable=null!=r?r:a.focusable,a.blockNavigationOut=i,t&&(a.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=new E},function(e,t,n){"use strict";n.r(t),n.d(t,"Overlay",(function(){return Q.a})),n.d(t,"OverlayType",(function(){return j.a}));var r=n(5);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 a{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 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}var s=class{constructor(){o(this,"currentlyPlayingClipIndex",new r.a(null)),o(this,"lastPlayedClipIndex",new r.a(null)),o(this,"currentClipPlaybackProgress",new r.a(null)),o(this,"errorState",new r.a("unpopulatedEvent")),o(this,"failedClips",new r.a({})),o(this,"items",new r.a([]))}isCurrentlyPlaying(e){return e===this.currentlyPlayingClipIndex.value}async setKeyPlays(e){null!==e?(this.items.value=this.parseNetworkResponse(e),this.cleanErrors()):this.errorState.value="tabLoadFailure"}cleanErrors(){"tabLoadFailure"===this.errorState.value&&(this.errorState.value=null),"unpopulatedEvent"===this.errorState.value&&this.allItems.length&&(this.errorState.value=null),this.allItems.length||(this.errorState.value="unpopulatedEvent")}async playKeyPlay(e){te.getMaestroEventViewModel().delegate.playClip(e)}parseNetworkResponse(e){const t=Object.values(e.entities.team),n=Object.values(e.entities.athlete),r=t.find(e=>"home"===e.homeAway),i=t.find(e=>"away"===e.homeAway);if(!r||!i)return console.warn("Could not find home or away team"),[];const a=[],o=[];for(const s of e.sections){for(const e of s.items){const o=e.team?t.find(t=>t.id===e.team):void 0,l=e.athlete?n.find(t=>t.id===e.athlete):void 0,c=o?o.logoRef:void 0,u=l?l.headshot:void 0,d="headshot"!==e.thumbnailType?e.thumbnail:void 0,h=e.homeScore?e.homeScore:"0",p=e.awayScore?e.awayScore:"0",f=e.scoringPlay?parseInt(h):void 0,m=e.scoringPlay?parseInt(p):void 0,A={id:Math.random().toString(36).substring(2,15),description:e.description?e.description:"",homeTeamName:r?r.shortName:"",awayTeamName:i?i.shortName:"",homeTeamScore:f,awayTeamScore:m,clipID:e.clipID,teamImageUrl:c,playerImageUrl:u,thumbnailImageUrl:d,section:s.title};a.push(A)}if(a.length){const e=s.title,t=o.find(t=>t.title===e);t?t.items.push(...a):o.push({title:e,items:[...a]}),a.length=0}}return o}get allItems(){return this.items.value.reduce((e,t)=>e.concat(t.items),[])}clipID(e){if(this.allItems[e])return this.allItems[e].clipID}handleKeyPlayLoadFailure(e){const t=this.clipID(e);if(t){const n=this.failedClips.value;n[t]="recentFailure",this.failedClips.value=n,setTimeout(()=>{if("recentFailure"===this.loadFailureStatus(e)){const e=this.failedClips.value;e[t]="nonRecentFailure",this.failedClips.value=e}},5e3)}}loadFailureStatus(e){const t=this.clipID(e);return this.failedClips.value&&t?this.failedClips.value[t]:"noFailure"}clearLoadFailureStatus(e){const t=this.clipID(e);t&&this.failedClips&&(this.failedClips.value={...this.failedClips.value,[t]:"noFailure"})}async userRequestedNewKeyPlaysData(){const e=te.getMaestroEventViewModel();await e.delegate.userRequestedNewKeyPlaysData()}},l=n(53),c=n.n(l);function u(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({baseURL:e,retries:t,delay:n,backoff:r,axiosInstance:i}){u(this,"client",void 0),u(this,"retries",void 0),u(this,"delay",void 0),u(this,"backoff",void 0),this.retries=t,this.delay=n,this.backoff=r,this.client=i||c.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 post(e,t){return this.retry(async()=>(await this.client.post(e,t)).data)}setAuthentication(e,t){this.client.defaults.headers.common.Authorization=e?"Bearer "+e:"",this.client.defaults.headers.common["x-maestro-api-key"]=t||""}};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}class p{constructor(e=36e5,t=5242880,n="1.0"){h(this,"prefix","maestro-cache-"),h(this,"cacheDuration",void 0),h(this,"maxSize",void 0),h(this,"version",void 0),h(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),a=Date.now();return a-i>this.cacheDuration?(localStorage.removeItem(t),this.accessLog.delete(e),null):(this.accessLog.set(e,a),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 f(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 m extends Error{constructor(e){super(e),this.name="NetworkError"}}class A extends Error{constructor(e){super(e),this.name="AuthError"}}class g extends Error{constructor(e){super(e),this.name="NotFoundError"}}class v extends Error{constructor(e,t){super(t),f(this,"statusCode",void 0),this.name="ServerError",this.statusCode=e}}class b extends Error{constructor(e,t){super(t),f(this,"statusCode",void 0),this.name="BadRequestError",this.statusCode=e}}function y(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 E="production",w={["development"]:"https://dev.api.maestro.io",["staging"]:"https://api.us-central1-staging.gcp.maestro.io",[E]:"https://api.maestro.io"},C="GET",B="POST";class k{constructor(e={},t){y(this,"cacheManager",void 0),y(this,"maestroClient",void 0),y(this,"externalClient",void 0),y(this,"environment",void 0),y(this,"pollingTasks",void 0),y(this,"localStorage",void 0),this.environment=e.environment||E,this.pollingTasks=new Map,this.cacheManager=e.cacheManager||new p(e.defaultCacheDuration),this.maestroClient=e.networkClient||new d({baseURL:w[this.environment],retries:3,delay:1e3,backoff:2}),this.externalClient=e.externalNetworkClient||new d({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:()=>{}}}static getInstance(e,t){return this.instance?e&&e.environment&&this.instance.setEnvironment(e.environment):this.instance=new k(e,t),this.instance}setEnvironment(e){this.environment=e;try{var t;null!==(t=this.maestroClient.client)&&void 0!==t&&t.defaults&&(this.maestroClient.client.defaults.baseURL=w[e])}catch(e){throw new Error("Failed to update client base URLs: "+e)}}getEnvironment(){return this.environment}setAuthentication(e,t){this.maestroClient.setAuthentication(e,t)}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 A(r):404===n?new g(r):n>=500?new v(n,r):new b(n,r)}throw e.request?new m("Network request failed"):e}async maestroApiRequest({endpoint:e,method:t=C,params:n={},data:r=null,headers:i={},useCache:a=!0,maestroDefaultHeaders:o=null,skipResponseBodyDeserialization:s=!1}){const l={"x-maestro-maestro-kit-flavor":"MaestroKit_Web",...i};if(o&&(l["x-maestro-client-id"]=o.siteId,l.Authorization="Bearer "+o.jwt,l["Content-type"]="application/json"),t===C&&a){const t=this.cacheManager.produceCacheKey(JSON.stringify({endpoint:e,params:n,data:null})),r=this.cacheManager.getCache(t);if(r)return r}try{let i;if(t===C)i=await this.maestroClient.get(e,n,l);else{if(t!==B)throw new Error(`Method ${t} not implemented`);i=await this.maestroClient.post(e,r)}if(s&&!i&&(i={}),t===C&&a){const t=this.cacheManager.produceCacheKey(JSON.stringify({endpoint:e,params:n,data:null}));this.cacheManager.setCache(t,i)}return i}catch(e){return this.handleError(e)}}async externalApiRequest({endpoint:e,method:t=C,params:n={},data:r=null,headers:i={},useCache:a=!0,skipResponseBodyDeserialization:o=!1}){if(t===C&&a){const t=this.cacheManager.produceCacheKey(JSON.stringify({endpoint:e,params:n,data:null})),r=this.cacheManager.getCache(t);if(r)return r}try{let s;if(t===C)s=await this.externalClient.get(e,n,i);else{if(t!==B)throw new Error(`Method ${t} not implemented`);s=await this.externalClient.post(e,r)}if(o&&!s&&(s={}),t===C&&a){const t=this.cacheManager.produceCacheKey(JSON.stringify({endpoint:e,params:n,data:null}));this.cacheManager.setCache(t,s)}return s}catch(e){return this.handleError(e)}}pollMaestroApiRequest({endpoint:e,interval:t,method:n=C,params:r={},data:i=null,headers:a={},maestroDefaultHeaders:o=null,skipResponseBodyDeserialization:s=!1,onData:l,onError:c}){const u=`${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var d;this.pollingTasks.has(u)&&(null===(d=this.pollingTasks.get(u))||void 0===d||d.controller.abort(),this.pollingTasks.delete(u));const h=new AbortController,p=h.signal;return(async()=>{for(;!p.aborted;){try{const t=await this.maestroApiRequest({endpoint:e,method:n,params:r,data:i,headers:a,maestroDefaultHeaders:o,skipResponseBodyDeserialization:s,useCache:!1});l(t)}catch(e){c&&c(e)}p.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(u,{controller:h,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))}}}pollExternalApiRequest({endpoint:e,interval:t,method:n=C,params:r={},data:i=null,headers:a={},skipResponseBodyDeserialization:o=!1,onData:s,onError:l}){const c=`external-${e}-${JSON.stringify(r)}-${JSON.stringify(i)}`;var u;this.pollingTasks.has(c)&&(null===(u=this.pollingTasks.get(c))||void 0===u||u.controller.abort(),this.pollingTasks.delete(c));const d=new AbortController,h=d.signal;return(async()=>{for(;!h.aborted;){try{const t=await this.externalApiRequest({endpoint:e,method:n,params:r,data:i,headers:a,skipResponseBodyDeserialization:o,useCache:!1});s(t)}catch(e){l&&l(e)}h.aborted||await new Promise(e=>setTimeout(e,t))}})(),this.pollingTasks.set(c,{controller:d,interval:t}),{stop:()=>{var e;this.pollingTasks.has(c)&&(null===(e=this.pollingTasks.get(c))||void 0===e||e.controller.abort(),this.pollingTasks.delete(c))}}}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)}}}y(k,"instance",void 0);var P=k;function x(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 _=class{constructor(e){x(this,"networkManager",void 0),this.networkManager=P.getInstance({externalBaseURL:e.getBettingAPIBaseURL()})}async getNonPersonalizedBets(e){return this.networkManager.externalApiRequest({endpoint:this.nonPersonalizedBetsEndpoint(e),method:C,params:{},headers:{}})}async getPersonalizedBets(e,t,n){return this.networkManager.externalApiRequest({endpoint:this.personalizedBetsEndpoint(e),method:C,params:{swid:t},headers:{"x-p13n-auth":n}})}pollNonPersonalizedBets(e,t,n,r){return this.networkManager.pollExternalApiRequest({endpoint:this.nonPersonalizedBetsEndpoint(e),interval:t,method:C,params:{},headers:{},onData:n,onError:r})}pollPersonalizedBets(e,t,n,r,i,a){return this.networkManager.pollExternalApiRequest({endpoint:this.personalizedBetsEndpoint(e),interval:r,method:C,params:{swid:t},headers:{"x-p13n-auth":n},onData:i,onError:a})}nonPersonalizedBetsEndpoint(e){return`/site/v2/events/${e}/odds`}personalizedBetsEndpoint(e){return`/personalized/site/v2/events/${e}/odds`}};const T={id:"401721458",sport:"basketball",date:"2025-02-28T02:00Z",gameState:"post",featured:[{date:"2024-06-09T17:35Z",id:"00015c79-3454-4356-bab6-af050554b761",selections:[{icon:"https://a.espncdn.com/i/espnbet/mybets_under_caret_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_under_caret_icon.png",id:"f54ad0791-304e-43fe-a45a-96bd237c9c78",odds:{},outcome:"PENDING",status:"upcoming",text:"Under 5.5",type:"under"},{icon:"https://a.espncdn.com/i/espnbet/mybets_under_caret_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_under_caret_icon.png",id:"f54ad079-3604e-43fe-a45a-96bd237c9c78",odds:{},outcome:"PENDING",status:"upcoming",text:"Under 5.5",type:"under"},{icon:"https://a.espncdn.com/i/espnbet/mybets_under_caret_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_under_caret_icon.png",id:"f54ad079-5304e-43fe-a45a-96bd237c9c78",odds:{},outcome:"PENDING",status:"upcoming",text:"Under 5.5",type:"under"},{icon:"https://a.espncdn.com/i/espnbet/mybets_under_caret_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_under_caret_icon.png",id:"f54ad079-3044e-43fe-a45a-96bd237c9c78",odds:{},outcome:"PENDING",status:"upcoming",text:"Under 5.5",type:"under"},{icon:"https://a.espncdn.com/i/espnbet/mybets_under_caret_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_under_caret_icon.png",id:"f54ad079-304e-43fe-a45a-96bd237c9c278",odds:{},outcome:"PENDING",status:"upcoming",text:"Under 5.5",type:"under"},{icon:"https://a.espncdn.com/i/espnbet/mybets_under_caret_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_under_caret_icon.png",id:"f54ad079-304e-43fe-a45a-96bd1237c9c78",odds:{},outcome:"PENDING",status:"upcoming",text:"Under 5.5",type:"under"}],text:"Carlos Santana Total Hits + Runs + RBIs"}],bets:{odds:[{displayName:"Moneyline",abbreviation:"ML",type:"moneyline",state:"close",values:[{odds:"-500",outcome:"WIN",team:"130",type:"home"},{odds:"+360",outcome:"LOSS",team:"164",type:"away"}]},{displayName:"Moneyline",abbreviation:"ML",type:"moneyline",state:"open",values:[{odds:"-700",team:"130",type:"home"},{odds:"+450",team:"164",type:"away"}]},{displayName:"Total Points",abbreviation:"Total",type:"total",state:"close",values:[{line:"o154.5",odds:"-115",outcome:"WIN",type:"over"},{line:"u154.5",odds:"-105",outcome:"LOSS",type:"under"}]},{displayName:"Total Points",abbreviation:"Total",type:"total",state:"open",values:[{line:"o154.5",odds:"-105",type:"over"},{line:"u154.5",odds:"-115",type:"under"}]},{displayName:"Spread",abbreviation:"Spread",type:"pointSpread",state:"close",values:[{line:"-9.5",odds:"-105",outcome:"LOSS",team:"130",type:"home"},{line:"+9.5",odds:"-115",outcome:"WIN",team:"164",type:"away"}]},{displayName:"Spread",abbreviation:"Spread",type:"pointSpread",state:"open",values:[{line:"-11.5",odds:"-105",team:"130",type:"home"},{line:"+11.5",odds:"-115",team:"164",type:"away"}]}]}},S={entities:{teams:{130:{id:"130",uid:"s:40~l:41~t:130",guid:"c00151c6-cdd4-5aab-0130-37416052eb2a",slug:"michigan-wolverines",abbreviation:"MICH",displayName:"Michigan Wolverines",shortDisplayName:"Michigan",name:"Wolverines",nickname:"Michigan",location:"Michigan",color:"00274c",alternateColor:"ffcb05",favored:!0},164:{id:"164",uid:"s:40~l:41~t:164",guid:"425c8e51-59d0-75a1-0815-dc3556c5cfda",slug:"rutgers-scarlet-knights",abbreviation:"RUTG",displayName:"Rutgers Scarlet Knights",shortDisplayName:"Rutgers",name:"Scarlet Knights",nickname:"Rutgers",location:"Rutgers",color:"d21034",alternateColor:"ffffff",favored:!1}}},event:T,betsModule:{defaultTab:"live",upcoming:[],live:[{id:"emnPo+hN/Q7CzX/obYcJZCYGql4=",type:"PARLAY",betStatus:"OPEN",outcome:"PENDING",overrideOutcome:"NOT_SET",betAmount:"10",payoutAmount:"171.55",odds:"+1616",startTime:"2022-11-29T17:54Z",events:[{displayName:"Investec South African Open Championship Future",legs:[{id:"71acdfe8-611e-47ae-b7ee-ba6684c6fefa",marketId:"fc47f9f9-2852-4f63-9a70-4adf5b4addd2",marketSelectionId:"92803c34-a8b7-476e-9136-b88729c7e51e",marketType:"list",status:"PENDING",odds:"+370",boostType:"NONE",selectionText:"Aaron Baddeley",type:"list",marketText:"Tournament Winner",icon:"https://a.espncdn.com/i/espnbet/mybets_allsports_green_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_allsports_green_icon.png",url:"https://espnbet.test-app.link/qa_integrations?%243p=a_espn&clr=espnbettingintegration&$canonical_url=/sport/golf/organization/dp-world-tour/competition/investec-south-african-open-championship/event/56773312-5fdb-4cb5-b387-df8c18a2c857&market_selection_id[0]=92803c34-a8b7-476e-9136-b88729c7e51e&odds_numerator[0]=11&odds_denominator[0]=2",marketStatus:"LIVE"}]},{displayName:"Lorem Ipsum Dolor Sit Amet",legs:[{id:"472f176b-7575-4d1d-ac63-bcb2d4ec6da9",marketId:"2e5fdfdf-7021-464f-939d-5497030fe765",marketSelectionId:"3727a3f5-5143-4616-ab4f-713bcf40aa21",marketType:"list",status:"PENDING",odds:"+265",boostType:"NONE",selectionText:"Aaron Pike",type:"list",marketText:"Tournament Winner",icon:"https://a.espncdn.com/i/espnbet/mybets_allsports_green_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_allsports_green_icon.png",url:"https://espnbet.test-app.link/qa_integrations?%243p=a_espn&clr=espnbettingintegration&$canonical_url=/sport/golf/organization/dp-world-tour/competition/isps-handa-australian-open/event/df8ba72f-4be8-4569-840e-954dbd9a7806&market_selection_id[0]=3727a3f5-5143-4616-ab4f-713bcf40aa21&odds_numerator[0]=73&odds_denominator[0]=20",marketStatus:"LIVE"}]},{displayName:"Australian Open Future",legs:[{id:"472f176b-7575-4d1d-ac63-bcb2d4ec6da9",marketId:"2e5fdfdf-7021-464f-939d-5497030fe765",marketSelectionId:"3727a3f5-5143-4616-ab4f-713bcf40aa21",marketType:"list",status:"PENDING",odds:"+265",boostType:"NONE",selectionText:"Aaron Pike",type:"list",marketText:"Tournament Winner",icon:"https://a.espncdn.com/i/espnbet/mybets_allsports_green_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_allsports_green_icon.png",url:"https://espnbet.test-app.link/qa_integrations?%243p=a_espn&clr=espnbettingintegration&$canonical_url=/sport/golf/organization/dp-world-tour/competition/isps-handa-australian-open/event/df8ba72f-4be8-4569-840e-954dbd9a7806&market_selection_id[0]=3727a3f5-5143-4616-ab4f-713bcf40aa21&odds_numerator[0]=73&odds_denominator[0]=20",marketStatus:"LIVE"}]},{displayName:"USA vs. Australia Future",legs:[{id:"472f176b-7575-4d1d-ac63-bcb2d4ec6da9",marketId:"2e5fdfdf-7021-464f-939d-5497030fe765",marketSelectionId:"3727a3f5-5143-4616-ab4f-713bcf40aa21",marketType:"list",status:"PENDING",odds:"+265",boostType:"NONE",selectionText:"Aaron Pike",type:"list",marketText:"Tournament Winner",icon:"https://a.espncdn.com/i/espnbet/mybets_allsports_green_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_allsports_green_icon.png",url:"https://espnbet.test-app.link/qa_integrations?%243p=a_espn&clr=espnbettingintegration&$canonical_url=/sport/golf/organization/dp-world-tour/competition/isps-handa-australian-open/event/df8ba72f-4be8-4569-840e-954dbd9a7806&market_selection_id[0]=3727a3f5-5143-4616-ab4f-713bcf40aa21&odds_numerator[0]=73&odds_denominator[0]=20",marketStatus:"LIVE"}]},{displayName:"Championship Future",legs:[{id:"472f176b-7575-4d1d-ac63-bcb2d4ec6da9",marketId:"2e5fdfdf-7021-464f-939d-5497030fe765",marketSelectionId:"3727a3f5-5143-4616-ab4f-713bcf40aa21",marketType:"list",status:"PENDING",odds:"+265",boostType:"NONE",selectionText:"Aaron Pike",type:"list",marketText:"Tournament Winner",icon:"https://a.espncdn.com/i/espnbet/mybets_allsports_green_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_allsports_green_icon.png",url:"https://espnbet.test-app.link/qa_integrations?%243p=a_espn&clr=espnbettingintegration&$canonical_url=/sport/golf/organization/dp-world-tour/competition/isps-handa-australian-open/event/df8ba72f-4be8-4569-840e-954dbd9a7806&market_selection_id[0]=3727a3f5-5143-4616-ab4f-713bcf40aa21&odds_numerator[0]=73&odds_denominator[0]=20",marketStatus:"LIVE"}]}],rewardInfo:{type:"NONE"},legCount:5,isNoAction:!1,betDisplayStatement:"to win"},{id:"9m1bBxUYPyPPjkpzT6buDlcuQng=",type:"STRAIGHT",betStatus:"OPEN",outcome:"PENDING",overrideOutcome:"NOT_SET",betAmount:"2",payoutAmount:"10.80",odds:"+440",startTime:"2025-04-30T15:12Z",events:[{displayName:"SBG/SBE Odds Boost Test",legs:[{id:"8061671d-6d38-4193-a5a6-beab37855840",marketId:"567d2a44-ba70-4881-86d7-d25fca94b592",marketSelectionId:"59b2b7ee-46c1-4cbc-9286-77fd8670cf9d",marketType:"list",status:"PENDING",odds:"+440",boostType:"ODDS_BOOST",selectionText:"Lauri Markkanen and Anfernee Simons to Each Record 20+ Points",type:"list",marketText:"SBG/SBE Odds Boost (Was +100)",icon:"https://a.espncdn.com/i/espnbet/mybets_allsports_green_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_allsports_green_icon.png",url:"https://espnbet.test-app.link/qa_integrations?%243p=a_espn&clr=espnbettingintegration&$canonical_url=/sport/odds-boost/organization/odds-boosts/competition/odds-boosts/event/218e1dca-f68d-4d61-9d79-394e7d752cae&market_selection_id[0]=59b2b7ee-46c1-4cbc-9286-77fd8670cf9d&odds_numerator[0]=27&odds_denominator[0]=5",marketStatus:"LIVE"}]}],rewardInfo:{type:"ODDS_BOOST",icon:{light:"https://a.espncdn.com/i/espnbet/boost.png",dark:"https://a.espncdn.com/i/espnbet/boost.png"}},legCount:1,isNoAction:!1,betDisplayStatement:"to win"},{id:"MCH06SyVYvu1UZkhj4KutmL9qKY=",type:"STRAIGHT",betStatus:"OPEN",outcome:"PENDING",overrideOutcome:"NOT_SET",betAmount:"3",payoutAmount:"16.20",odds:"+440",startTime:"2025-04-30T15:12Z",events:[{displayName:"SBG/SBE Odds Boost Test",legs:[{id:"020d7a12-3aa8-459e-8aa2-34eaced4ad7d",marketId:"567d2a44-ba70-4881-86d7-d25fca94b592",marketSelectionId:"59b2b7ee-46c1-4cbc-9286-77fd8670cf9d",marketType:"list",status:"PENDING",odds:"+440",boostType:"ODDS_BOOST",selectionText:"Lauri Markkanen and Anfernee Simons to Each Record 20+ Points",type:"list",marketText:"SBG/SBE Odds Boost (Was +100)",icon:"https://a.espncdn.com/i/espnbet/mybets_allsports_green_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_allsports_green_icon.png",url:"https://espnbet.test-app.link/qa_integrations?%243p=a_espn&clr=espnbettingintegration&$canonical_url=/sport/odds-boost/organization/odds-boosts/competition/odds-boosts/event/218e1dca-f68d-4d61-9d79-394e7d752cae&market_selection_id[0]=59b2b7ee-46c1-4cbc-9286-77fd8670cf9d&odds_numerator[0]=27&odds_denominator[0]=5",marketStatus:"LIVE"}]}],rewardInfo:{type:"ODDS_BOOST",icon:{light:"https://a.espncdn.com/i/espnbet/boost.png",dark:"https://a.espncdn.com/i/espnbet/boost.png"}},legCount:1,isNoAction:!1,betDisplayStatement:"to win"},{id:"xfFjqsLCjaFx93eH6c8bOQ9mEkI=",type:"STRAIGHT",betStatus:"OPEN",outcome:"PENDING",overrideOutcome:"NOT_SET",betAmount:"2",payoutAmount:"12.00",odds:"+500",startTime:"2025-04-30T17:11Z",events:[{displayName:"SBG NHL In The News Test",legs:[{id:"910a1ebf-592d-4ae6-9471-6f648786b7e6",marketId:"c5252e65-0999-40af-b366-11967f009871",marketSelectionId:"c9b1446c-26af-43c4-9705-3a2275dc0ee5",marketType:"list",status:"PENDING",odds:"+500",boostType:"NONE",selectionText:"Long Desc Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus non gravida mi. Aliquam volutpat felis ut tempor dictum.",type:"list",marketText:"SBG In The News NHL",icon:"https://a.espncdn.com/i/espnbet/mybets_allsports_green_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_allsports_green_icon.png",url:"https://espnbet.test-app.link/qa_integrations?%243p=a_espn&clr=espnbettingintegration&$canonical_url=/sport/odds-boost/organization/in-the-news/competition/in-the-news/event/4cd8e64d-472c-412f-b786-dd91c98ab74e&market_selection_id[0]=c9b1446c-26af-43c4-9705-3a2275dc0ee5&odds_numerator[0]=6&odds_denominator[0]=1",marketStatus:"LIVE"}]}],rewardInfo:{type:"NONE"},legCount:1,isNoAction:!1,betDisplayStatement:"to win"},{id:"A0RLmTR8mjEFSwaa21JeOhyVdXc=",type:"STRAIGHT",betStatus:"OPEN",outcome:"PENDING",overrideOutcome:"NOT_SET",betAmount:"1",payoutAmount:"3.00",odds:"+200",startTime:"2025-04-30T17:13Z",events:[{displayName:"SBG NBA Special Test",legs:[{id:"1aa22098-57b7-4a77-bbf2-ca7ebf812083",marketId:"bc783144-0a2c-465b-9e8f-2ef55a17705c",marketSelectionId:"7a91fb3d-1291-4163-b5e0-07fe63e8e706",marketType:"list",status:"PENDING",odds:"+200",boostType:"NONE",selectionText:"Tyrese Haliburton to Record 12+ Assists",type:"list",marketText:"SBG NBA Special Test",icon:"https://a.espncdn.com/i/espnbet/mybets_allsports_green_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_allsports_green_icon.png",url:"https://espnbet.test-app.link/qa_integrations?%243p=a_espn&clr=espnbettingintegration&$canonical_url=/sport/odds-boost/organization/specials/competition/specials/event/d53171e2-f821-4da8-9b1c-ce1a4b735914&market_selection_id[0]=7a91fb3d-1291-4163-b5e0-07fe63e8e706&odds_numerator[0]=33&odds_denominator[0]=10",marketStatus:"LIVE"}]}],rewardInfo:{type:"NONE"},legCount:1,isNoAction:!1,betDisplayStatement:"to win"},{id:"Qhelx5np79zhAchzXXTL1HdDb80=",type:"STRAIGHT",betStatus:"OPEN",outcome:"PENDING",overrideOutcome:"NOT_SET",betAmount:"2",payoutAmount:"10.00",odds:"+400",startTime:"2025-04-30T17:13Z",events:[{displayName:"SBG NBA Special Test",legs:[{id:"73f3af25-5e1a-47eb-bcec-5b23e911c14e",marketId:"bc783144-0a2c-465b-9e8f-2ef55a17705c",marketSelectionId:"0a898e16-2a0a-44dd-a580-3ae3bade3684",marketType:"list",status:"PENDING",odds:"+400",boostType:"NONE",selectionText:"Long Desc Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus non gravida mi. Aliquam volutpat felis ut tempor dictum.",type:"list",marketText:"SBG NBA Special Test",icon:"https://a.espncdn.com/i/espnbet/mybets_allsports_green_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_allsports_green_icon.png",url:"https://espnbet.test-app.link/qa_integrations?%243p=a_espn&clr=espnbettingintegration&$canonical_url=/sport/odds-boost/organization/specials/competition/specials/event/d53171e2-f821-4da8-9b1c-ce1a4b735914&market_selection_id[0]=0a898e16-2a0a-44dd-a580-3ae3bade3684&odds_numerator[0]=37&odds_denominator[0]=10",marketStatus:"LIVE"}]}],rewardInfo:{type:"NONE"},legCount:1,isNoAction:!1,betDisplayStatement:"to win"}],settled:[{id:"z/WEFT7NDVjgb0d/+Elr45MfuRg=",type:"STRAIGHT",betStatus:"SETTLED",outcome:"WIN",overrideOutcome:"NOT_SET",closedAtTime:"2025-03-08T05:33Z",betAmount:"1",payoutAmount:"1.91",odds:"-110",startTime:"2025-03-08T03:00Z",events:[{displayName:"San Antonio Spurs @ Sacramento Kings",legs:[{id:"05011199-c88f-4c0d-be31-1b1c7549e273",marketId:"728792c6-d2da-435b-920a-eb86bdc45e8c",marketSelectionId:"60f8aef9-4c98-4ce2-b861-34e72c2ad13b",marketType:"total",status:"WIN",odds:"-110",boostType:"NONE",selectionText:"Over 235",type:"over",points:"235.0",marketText:"Total Points",icon:"https://a.espncdn.com/i/espnbet/mybets_green_check_icon.png",iconDark:"https://a.espncdn.com/i/espnbet/dark/mybets_green_check_icon.png",url:"https://espnbet.test-app.link/qa_integrations?%243p=a_espn&clr=espnbettingintegration&$canonical_url=/sport/basketball/organization/united-states/competition/nba/event/e1163795-ddfa-4bfc-9d52-018e8259e4b5&market_selection_id[0]=60f8aef9-4c98-4ce2-b861-34e72c2ad13b&odds_numerator[0]=2&odds_denominator[0]=1",marketStatus:"SETTLED",accrued:{goal:235}}]}],rewardInfo:{type:"NONE"},legCount:1,isNoAction:!1,betDisplayStatement:"you won"}]},promos:{title:"The official sportsbook of ESPN",description:"Open the ESPN BET app on a mobile device and start betting!",logo:"https://a.espncdn.com/i/espnbet/ESPN_Bet_Sportsbook_Light.svg",qrCode:"https://assets.geo.hosted.espnsb.com/api/ext_mocks/qr.png"},disclaimers:{location:"Use a translation with a key based on location here",gambling:"Use a translation with some key based on gambling here"},...T};var I=n(4);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}const M=e=>"object"==typeof e&&null!==e&&"event"in e&&"object"==typeof e.event;String.prototype.hashCode||(String.prototype.hashCode=function(){let e=0;for(let t=0;t<this.length;t++){e=(e<<5)-e+this.charCodeAt(t),e&=e}return e});var F=class extends a{constructor(e,t,n={}){super(),R(this,"betsItems",new r.a([])),R(this,"isDataLoading",new r.a(!0)),R(this,"errorState",new r.a("none")),R(this,"hasEverSuccessfullyLoaded",new r.a(!1)),R(this,"eventId",void 0),R(this,"delegate",void 0),R(this,"betsService",void 0),R(this,"pollingInterval",void 0),R(this,"pollingTask",null),R(this,"lastNonPersonalizedResponseHash",null),R(this,"lastPersonalizedResponseHash",null),R(this,"useMockData",!1),R(this,"initialized",!1),this.eventId=e,this.delegate=t,this.betsService=new _(t),this.pollingInterval=n.pollingInterval||3e4,this.useMockData=n.useMockData||!1,this.betsService=new _(t)}async init(){await this.fetchNewData(),this.refreshPolling(),this.initialized=!0}cleanup(){this.stopPolling(),this.initialized=!1}refreshPolling(){this.stopPolling(),this.useMockData||(this.pollingTask={stop:()=>{}},this.pollWithInterval())}async pollWithInterval(){try{if(await this.delegate.userIsAuthenticated()){const e=await this.delegate.getUserSWID()||"",t=await this.delegate.getUserToken()||"";this.pollingTask=this.betsService.pollPersonalizedBets(this.eventId,e,t,this.pollingInterval,this.processPolledData.bind(this),this.handlePollingError.bind(this))}else this.pollingTask=this.betsService.pollNonPersonalizedBets(this.eventId,this.pollingInterval,this.processPolledData.bind(this),this.handlePollingError.bind(this))}catch(e){console.error("Error setting up polling:",e),this.pollingTask=this.betsService.pollNonPersonalizedBets(this.eventId,this.pollingInterval,this.processPolledData.bind(this),this.handlePollingError.bind(this))}}processPolledData(e){const t=JSON.stringify(e).hashCode();if(M(e)){if(this.lastPersonalizedResponseHash===t&&this.hasEverSuccessfullyLoaded.value)return void console.log("Response hash is the same as last successful response - skipping update");this.lastPersonalizedResponseHash=t}else{if(this.lastNonPersonalizedResponseHash===t&&this.hasEverSuccessfullyLoaded.value)return void console.log("Response hash is the same as last successful response - skipping update");this.lastNonPersonalizedResponseHash=t}this.hasEverSuccessfullyLoaded.value=!0,this.errorState.value="none",this.processBetsData(e)}processBetsData(e){const t=[];if(!Object.keys(e).length)return;const n=this.processSixPackData(e);n&&t.push(n);const r=this.processLocationDisclaimer(e);r&&t.push(r);const i=this.processUserBetsData(e);i&&t.push(i);const a=this.processHotProps(e);null!=a&&a.length&&t.push(...a);const o=this.processPromoCode(e);o&&t.push(o);const s=this.processGamblingMessage(e);s&&t.push(s),this.betsItems.value=t}processLocationDisclaimer(e){var t;return M(e)&&null!==(t=e.disclaimers)&&void 0!==t&&t.location?{type:"locationDisclaimer",id:"locationDisclaimer",data:{text:e.disclaimers.location}}:null}processPromoCode(e){var t;return M(e)&&e.promos?{type:"promo",data:{title:e.promos.title||"",description:e.promos.description||"",logo:e.promos.logo||"",qrCode:e.promos.qrCode||""},id:"promo-"+((null===(t=e.event)||void 0===t?void 0:t.id)||e.id)}:null}processGamblingMessage(e){var t;return M(e)&&null!==(t=e.disclaimers)&&void 0!==t&&t.gambling?{type:"gamblingMessage",id:"gamblingMessage",data:{text:e.disclaimers.gambling}}:null}processSixPackData(e){var t,n,r,i,a,o,s,l,c,u;const d=M(e),h=null===(t=e.entities)||void 0===t?void 0:t.teams,p=d?null===(r=e.event)||void 0===r||null===(i=r.bets)||void 0===i?void 0:i.odds:null===(n=e.bets)||void 0===n?void 0:n.odds,f=d?null===(a=e.event)||void 0===a?void 0:a.gameState:e.gameState,m=d?null===(o=e.event)||void 0===o?void 0:o.sport:e.sport,A=d?null===(s=e.event)||void 0===s?void 0:s.id:e.id;if(!(p&&f&&m&&A&&h))return null;const g=Object.values(h);let v,b;for(const e of Object.values(h)){const t=p.find(e=>"pointSpread"===e.type);t&&(t.values.some(t=>t.team===e.id&&"home"===t.type)?b=e:t.values.some(t=>t.team===e.id&&"away"===t.type)&&(v=e))}if(!b||!v)switch(console.warn("Could not determine home/away teams from odds, using first two teams"),g.length){case 0:throw new Error("No teams found in response");case 1:b=g[0],v=g[0];break;case 2:b=g[0],v=g[1];break;default:b=g[0],v=g[1],console.warn(`Warning: Unexpected team count (${g.length}) in six pack response`)}if(!v||!b)throw new Error("Could not determine home or away team from response");const y=null===(l=b.favored)||void 0===l||l,E="in"===f;let w="",C="",B="",k="",P="",x="",_="",T="",S="",I="",R="",F="",L="",O="";for(const e of p)switch(e.type){case"pointSpread":if(E){if(y){if("close"===e.state)for(const t of e.values){var N,j;if("home"===t.type)B=null!==(N=t.line)&&void 0!==N?N:"",k=null!==(j=t.odds)&&void 0!==j?j:""}}else if("close"===e.state)for(const t of e.values){var D,U;if("away"===t.type)w=null!==(D=t.line)&&void 0!==D?D:"",C=null!==(U=t.odds)&&void 0!==U?U:""}if("live"===e.state)for(const t of e.values){var W,H,V,z;if("home"===t.type)_=null!==(W=t.line)&&void 0!==W?W:"",T=null!==(H=t.odds)&&void 0!==H?H:"";if("away"===t.type)P=null!==(V=t.line)&&void 0!==V?V:"",x=null!==(z=t.odds)&&void 0!==z?z:""}}else{if(y){if("open"===e.state)for(const t of e.values){var K,q;if("home"===t.type)B=null!==(K=t.line)&&void 0!==K?K:"",k=null!==(q=t.odds)&&void 0!==q?q:""}}else if("open"===e.state)for(const t of e.values){var Y,X;if("away"===t.type)w=null!==(Y=t.line)&&void 0!==Y?Y:"",C=null!==(X=t.odds)&&void 0!==X?X:""}if("close"===e.state)for(const t of e.values){var G,Q,Z,$;if("home"===t.type)_=null!==(G=t.line)&&void 0!==G?G:"",T=null!==(Q=t.odds)&&void 0!==Q?Q:"";if("away"===t.type)P=null!==(Z=t.line)&&void 0!==Z?Z:"",x=null!==($=t.odds)&&void 0!==$?$:""}}break;case"total":if(E){if(y){if("close"===e.state)for(const t of e.values){var J,ee;if("over"===t.type)w=null!==(J=t.line)&&void 0!==J?J:"",C=null!==(ee=t.odds)&&void 0!==ee?ee:""}}else if("close"===e.state)for(const t of e.values){var te,ne;if("under"===t.type)B=null!==(te=t.line)&&void 0!==te?te:"",k=null!==(ne=t.odds)&&void 0!==ne?ne:""}if("live"===e.state)for(const t of e.values){var re,ie,ae,oe;if("under"===t.type)R=null!==(re=t.line)&&void 0!==re?re:"",F=null!==(ie=t.odds)&&void 0!==ie?ie:"";if("over"===t.type)S=null!==(ae=t.line)&&void 0!==ae?ae:"",I=null!==(oe=t.odds)&&void 0!==oe?oe:""}}else{if(y){if("open"===e.state)for(const t of e.values){var se,le;if("over"===t.type)w=null!==(se=t.line)&&void 0!==se?se:"",C=null!==(le=t.odds)&&void 0!==le?le:""}}else if("open"===e.state)for(const t of e.values){var ce,ue;if("under"===t.type)B=null!==(ce=t.line)&&void 0!==ce?ce:"",k=null!==(ue=t.odds)&&void 0!==ue?ue:""}if("close"===e.state)for(const t of e.values){var de,he,pe,fe;if("under"===t.type)R=null!==(de=t.line)&&void 0!==de?de:"",F=null!==(he=t.odds)&&void 0!==he?he:"";if("over"===t.type)S=null!==(pe=t.line)&&void 0!==pe?pe:"",I=null!==(fe=t.odds)&&void 0!==fe?fe:""}}break;case"moneyline":if(E){if("live"===e.state)for(const t of e.values){var me,Ae;if("home"===t.type)O=null!==(me=t.odds)&&void 0!==me?me:"";if("away"===t.type)L=null!==(Ae=t.odds)&&void 0!==Ae?Ae:""}}else if("close"===e.state)for(const t of e.values){var ge,ve;if("home"===t.type)O=null!==(ge=t.odds)&&void 0!==ge?ge:"";if("away"===t.type)L=null!==(ve=t.odds)&&void 0!==ve?ve:""}}return{id:"sixpack-"+A,type:"sixPack",data:{awayTeamOdds:{teamAbbreviation:null!==(c=v.abbreviation)&&void 0!==c?c:"",startOfGameFirstLine:w,startOfGameSecondLine:C,gameSpreadFirstLine:P,gameSpreadSecondLine:x,totalPointsFirstLine:S,totalPointsSecondLine:I,moneylineFirstLine:L},homeTeamOdds:{teamAbbreviation:null!==(u=b.abbreviation)&&void 0!==u?u:"",startOfGameFirstLine:B,startOfGameSecondLine:k,gameSpreadFirstLine:_,gameSpreadSecondLine:T,totalPointsFirstLine:R,totalPointsSecondLine:F,moneylineFirstLine:O},gameState:f,sport:m},teamInfo:{home:b,away:v}}}processUserBetsData(e){if(!M(e)||!e.event||!e.betsModule)return null;return{data:{bets:{live:e.betsModule.live.filter(e=>"promo"!==e.type),settled:e.betsModule.settled.filter(e=>"promo"!==e.type),upcoming:e.betsModule.upcoming.filter(e=>"promo"!==e.type)},defaultTab:e.betsModule.defaultTab},id:"userBets-"+e.event.id,type:"userBets"}}processHotProps(e){var t;const n=M(e)?null===(t=e.event)||void 0===t?void 0:t.featured:e.featured;if(!n||!Array.isArray(n))return null;return n.every(e=>Boolean(e&&e.id))?n.filter(e=>e.selections&&e.selections.length>0).map(e=>({data:{items:e.selections.map(t=>({id:t.id,selectionText:e.text,marketText:t.text,odds:t.odds.current||"",icon:t.icon,iconDark:t.iconDark,status:t.status,type:t.type}))},type:"hotProps",id:"hotProps-"+e.id})):null}handlePollingError(e){console.error("Polling error:",e),this.hasEverSuccessfullyLoaded.value||(this.errorState.value="tabLoadFailure",this.betsItems.value=[])}stopPolling(){this.pollingTask&&(this.pollingTask.stop(),this.pollingTask=null)}async fetchNewData(){this.isDataLoading.value=!0;try{if(this.useMockData)return this.betsItems.value=[],void await this.fetchMockData();await this.delegate.userIsAuthenticated()?await this.fetchPersonalizedData():await this.fetchNonPersonalizedData(),this.isDataLoading.value=!1}catch(e){console.error("Error fetching bet data:",e),this.hasEverSuccessfullyLoaded.value||(this.errorState.value="tabLoadFailure",this.betsItems.value=[]),this.isDataLoading.value=!1}}async fetchPersonalizedData(){try{const e=await this.delegate.getUserSWID(),t=await this.delegate.getUserToken();if(!e||!t)throw new Error("Missing authentication data (SWID or JWT)");const n=await this.betsService.getPersonalizedBets(this.eventId,e,t);this.processPolledData(n)}catch(e){console.error("Error fetching personalized bets:",e),await this.fetchNonPersonalizedData()}}async fetchNonPersonalizedData(){const e=await this.betsService.getNonPersonalizedBets(this.eventId);this.processPolledData(e)}async fetchMockData(){this.processBetsData(S),this.hasEverSuccessfullyLoaded.value=!0,this.errorState.value="none",this.isDataLoading.value=!1}simulateUseCase(e,t){switch(e){case"betsTabLoadFailure":this.errorState.value="tabLoadFailure";break;case"betsMockData":this.stopPolling(),this.useMockData=!0,this.lastPersonalizedResponseHash=null,this.lastNonPersonalizedResponseHash=null,this.errorState.value="none",this.fetchNewData();break;case"betsLiveData":this.useMockData=!1,this.lastPersonalizedResponseHash=null,this.lastNonPersonalizedResponseHash=null,this.hasEverSuccessfullyLoaded.value=!1,this.errorState.value="none",this.fetchNewData(),this.refreshPolling();break;default:throw new Error("Unsupported use case: "+e)}}clearTabLoadFailure(){this.errorState.value="none",Object(I.e)("PANEL_NAV_BUTTON_1"),setTimeout(async()=>{await this.fetchNewData()},100)}};function L(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 extends a{constructor(e="",t){super(),L(this,"_eventId",new r.a("")),L(this,"_title",new r.a("")),L(this,"_isLive",new r.a(!1)),L(this,"_isShowingPanel",new r.a(!1)),L(this,"delegate",void 0),L(this,"keyPlaysViewModel",new s),L(this,"betsViewModel",void 0),this._eventId.value=e,this.delegate=t,this.betsViewModel=new F(e,t),Object(I.b)()}deinit(){this.betsViewModel.cleanup(),Object(I.a)()}updateKeyPlaysData(e){return this.keyPlaysViewModel.setKeyPlays(e)}startFocusManagement(){return Object(I.e)(""),Object(I.d)(),setTimeout(()=>{Object(I.e)("PANEL_NAV_BUTTON_0")},0),Promise.resolve()}didStartPlayingClip(e){this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentClipPlaybackProgress.value=0,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=e,this.keyPlaysViewModel.clearLoadFailureStatus(e)}didStopPlayingClip(e){this.keyPlaysViewModel.lastPlayedClipIndex.value=e,this.keyPlaysViewModel.currentlyPlayingClipIndex.value=null,this.keyPlaysViewModel.currentClipPlaybackProgress.value=null}didFailToPlayClip(e){this.keyPlaysViewModel.handleKeyPlayLoadFailure(e)}didUpdatePlaybackProgressOfClip(e,t){this.keyPlaysViewModel.currentClipPlaybackProgress.value=t,this.keyPlaysViewModel.clearLoadFailureStatus(e)}didShowPanel(){return this.isShowingPanel=!0,Promise.resolve()}async didHidePanel(){this.isShowingPanel=!1,Object(I.c)()}didShowOverlay(){throw new Error("Method not implemented.")}didHideOverlay(){throw new Error("Method not implemented.")}currentEventDoesNotSupportKeyPlays(){this.keyPlaysViewModel.errorState.value="unsupportedEvent"}getCurrentEventID(){return this.eventId.value}getCurrentlyPlayingClipIndex(){return this.keyPlaysViewModel.currentlyPlayingClipIndex.value}getLastPlayedClipIndex(){return this.keyPlaysViewModel.lastPlayedClipIndex.value}getCurrentClipPlaybackProgress(){return this.keyPlaysViewModel.currentClipPlaybackProgress.value}getKeyPlaysCount(){return this.keyPlaysViewModel.allItems.length}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}simulateUseCase(e,t,n){switch(t){case"bets":this.betsViewModel.simulateUseCase(e,n);break;default:throw new Error("Unsupported panel type: "+t)}}}var N=n(15),j=n(6);function D(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 extends a{constructor(e){super(),D(this,"_isVisible",new r.a(!1)),D(this,"_currentOverlay",new r.a(null)),D(this,"_autoDismiss",new r.a(!0)),D(this,"_overlayQueue",new r.a([])),D(this,"_hasTrackedView",new r.a(!1)),D(this,"autoDismissTimeout",null),D(this,"analyticsService",void 0),this.analyticsService=e}get isVisible(){return this._isVisible}get currentOverlay(){return this._currentOverlay}get autoDismiss(){return this._autoDismiss}get overlayQueue(){return this._overlayQueue}get overlayTitle(){var e,t;const n=this._currentOverlay.value;if(!n)return"";switch(n.type){case j.a.WinningBet:return"You won your bet!";case j.a.FantasyPlayerEvent:return null!==(e=null===(t=n.fantasy)||void 0===t?void 0:t.title)&&void 0!==e?e:"Fantasy Update";default:return""}}get overlayMetadata(){var e,t,n,r;const i=this._currentOverlay.value;if(!i)return"";switch(i.type){case j.a.WinningBet:return null!==(e=null===(t=i.winningBet)||void 0===t?void 0:t.notificationText)&&void 0!==e?e:"Click OK to view your winning bets.";case j.a.FantasyPlayerEvent:return null!==(n=null===(r=i.fantasy)||void 0===r?void 0:r.metadata)&&void 0!==n?n:"New Player Activity";default:return""}}showOverlay(e){if(this._isVisible.value){const t=this._overlayQueue.value;this._overlayQueue.value=[...t,e]}else this._currentOverlay.value=e,this._isVisible.value=!0,this._hasTrackedView.value=!1,this._autoDismiss.value=!0,this.setupAutoDismiss()}hideOverlay(){this.autoDismissTimeout&&(clearTimeout(this.autoDismissTimeout),this.autoDismissTimeout=null);const e=this._overlayQueue.value;if(e.length>0){const t=e[0],n=e.slice(1);this._overlayQueue.value=n,this._currentOverlay.value=t,this._hasTrackedView.value=!1,this._autoDismiss.value=!0,this.setupAutoDismiss()}else this._isVisible.value=!1,this._currentOverlay.value=null}handleOverlayClick(){const e=this._currentOverlay.value;if(e){switch(this.trackOverlayClicked(),e.type){case j.a.WinningBet:this._autoDismiss.value=!1;break;case j.a.FantasyPlayerEvent:}this.hideOverlay()}}trackOverlayViewed(){if(this._hasTrackedView.value)return;const e=this._currentOverlay.value;if(!e)return;this._hasTrackedView.value=!0;const t={eventName:"overlayViewed",attributes:{template:"espn_bet",templateId:"",instanceName:this.overlayTitle,instanceId:this.getInstanceId(e),fullscreen:!1,overlayType:e.type}};this.analyticsService.track(t)}trackOverlayClicked(){const e=this._currentOverlay.value;if(!e)return;const t={eventName:"overlayClicked",attributes:{template:"espn_bet",templateId:"",instanceName:this.overlayTitle,instanceId:this.getInstanceId(e),fullscreen:!1,overlayType:e.type}};this.analyticsService.track(t)}handleOverlayViewed(e){this.trackOverlayViewed()}handleOverlayAction(e){this.trackOverlayClicked()}cleanup(){this.autoDismissTimeout&&(clearTimeout(this.autoDismissTimeout),this.autoDismissTimeout=null)}setupAutoDismiss(){this.autoDismissTimeout&&clearTimeout(this.autoDismissTimeout),this.autoDismissTimeout=setTimeout(()=>{this._autoDismiss.value&&this.hideOverlay()},10400)}getInstanceId(e){var t,n,r,i;switch(e.type){case j.a.WinningBet:return null!==(t=null===(n=e.winningBet)||void 0===n?void 0:n.serverID)&&void 0!==t?t:"";case j.a.FantasyPlayerEvent:return null!==(r=null===(i=e.fantasy)||void 0===i?void 0:i.athleteId)&&void 0!==r?r:"";default:return""}}}function W(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 H{constructor(e){W(this,"eventViewModel",void 0),W(this,"panelManagerViewModel",void 0),W(this,"keyPlaysViewModel",void 0),W(this,"overlayViewModel",void 0),this.eventViewModel=e,this.panelManagerViewModel=new N.a,this.keyPlaysViewModel=new s;const t={track:e=>{console.log("Overlay analytics:",e)}};this.overlayViewModel=new U(t)}static async fromEventId(e,t){try{const n=new O(e,t);return new H(n)}catch(e){return console.error("Error creating view models from event ID",e),null}}}var V=n(0),z=n.n(V),K=n(12),q=n.n(K);var Y=z.a.createClass({displayName:"OverlayContainer",propTypes:{viewModels:z.a.PropTypes.object},getInitialState:()=>({isVisible:!1,currentOverlay:null}),componentDidMount(){var e;if(null===(e=this.props.viewModels)||void 0===e||!e.overlayViewModel)return;const t=this.props.viewModels.overlayViewModel;this.unsubscribeVisible=t.isVisible.subscribe(e=>{this.setState({isVisible:e})}),this.unsubscribeOverlay=t.currentOverlay.subscribe(e=>{this.setState({currentOverlay:e})})},componentWillUnmount(){this.unsubscribeVisible&&this.unsubscribeVisible(),this.unsubscribeOverlay&&this.unsubscribeOverlay()},render(){if(!this.state.isVisible||!this.state.currentOverlay)return null;const e=this.state.currentOverlay,t=n(80).default;return z.a.createElement(t,{key:`overlay-${e.type}-${Date.now()}`,id:"sdk-managed-rive-overlay",overlayType:e.type,position:e.position,winningBet:e.winningBet,fantasy:e.fantasy,onOverlayViewed:e=>{var t;null!==(t=this.props.viewModels)&&void 0!==t&&t.overlayViewModel&&this.props.viewModels.overlayViewModel.handleOverlayViewed(e)},onOverlayAction:e=>{var t;null!==(t=this.props.viewModels)&&void 0!==t&&t.overlayViewModel&&(this.props.viewModels.overlayViewModel.handleOverlayAction(e),this.props.viewModels.overlayViewModel.hideOverlay())}})}});function X(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 G=class{constructor(){X(this,"renderersMap",new Map),X(this,"viewModels",null)}async setViewModels(e,t){try{return t?(this.viewModels=await H.fromEventId(e,t),this.viewModels):(console.error("No event delegate provided"),null)}catch(e){return console.error("Error creating view models from event ID",e),null}}async renderPanel(e){const t=await this.getRenderer(e);if(!this.viewModels)throw new Error("Cannot render panel manager: No view models set");const r=n(82).default,i=n(81).default;return t.render(z.a.createElement(r,null,z.a.createElement(i,null),z.a.createElement(Y,{viewModels:this.viewModels}))),()=>{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=>{q.a.render(e,t)},unmount:()=>{q.a.unmountComponentAtNode(t)}};return this.renderersMap.set(e,n),n}},Q=n(14);function Z(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 $=["664b9c57d59a7a431542d814"];class J{constructor(e){Z(this,"renderer",void 0),Z(this,"siteID",void 0),Z(this,"userID",void 0),Z(this,"maestroJwt",void 0),Z(this,"clientAppToken",void 0),Z(this,"clientAppSwid",void 0),Z(this,"maestroEventViewModel",null),this.renderer=e}static getInstance(){if(!J.instance){const e=new G;J.instance=new J(e)}return J.instance}async userDidStartWatchingEvent(e,t){if(!this.isAuthorizedClient)throw new Error("Unauthorized use of SDK");return this.maestroEventViewModel=new O(e,t),this.maestroEventViewModel}userDidStopWatchingEvent(e){this.maestroEventViewModel&&(this.maestroEventViewModel.deinit(),this.maestroEventViewModel=null)}configure(e){e.siteID&&this.setSiteID(e.siteID),e.maestroJwt&&this.setMaestroJwt(e.maestroJwt),e.clientAppToken&&this.setClientAppToken(e.clientAppToken),e.clientAppSwid&&this.setClientAppSwid(e.clientAppSwid),console.info("MaestroWebSDK configured",e)}get isAuthorizedClient(){const e=this.getSiteID();return Boolean(e&&$.includes(e))}setSiteID(e){this.siteID=e}getSiteID(){return this.siteID}setUserID(e){this.userID=e}getUserID(){return this.userID}getMaestroEventViewModel(){if(!this.maestroEventViewModel)throw new Error("No Maestro Event View Model set");return this.maestroEventViewModel}getMaestroViewModels(){return this.renderer.viewModels}async renderPanel(e){if(!this.renderer.viewModels){if(!this.maestroEventViewModel)throw new Error("No Maestro Event View Model set.");let t="default-event-id";e&&(t=e),await this.renderer.setViewModels(t,this.maestroEventViewModel.delegate)}return this.renderer.renderPanel(e)}setMaestroJwt(e){this.maestroJwt=e}setClientAppSwid(e){this.clientAppSwid=e}setClientAppToken(e){this.clientAppToken=e}async authenticateUser(e,t){this.setClientAppSwid(e),this.setClientAppToken(t),this.getMaestroEventViewModel().betsViewModel.initialized&&this.getMaestroEventViewModel().betsViewModel.refreshPolling()}async deauthenticateUser(){this.setClientAppSwid(void 0),this.setClientAppToken(void 0),this.getMaestroEventViewModel().betsViewModel.initialized&&this.getMaestroEventViewModel().betsViewModel.refreshPolling()}getCurrentMaestroJwt(){return this.maestroJwt}getClientAppToken(){return this.clientAppToken}getCurrentUserID(){return this.userID}getClientAppSwid(){return this.clientAppSwid}}Z(J,"instance",void 0);const ee=J.getInstance();var te=t.default=ee},function(e,t,n){"use strict";var r=n(7);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 a=i.prototype,o={};["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){o[e]={value:e}})),Object.defineProperties(i,o),Object.defineProperty(a,"isAxiosError",{value:!0}),i.from=function(e,t,n,o,s,l){var c=Object.create(a);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,o,s),c.name=e.name,l&&Object.assign(c,l),c},e.exports=i},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=n(11);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(7).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){"use strict";var r=n(0),i=n.n(r),a=n(6),o=n(4),s=n(42),l=n(52);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}class u extends i.a.Component{constructor(...e){super(...e),c(this,"riveInstance",null)}componentDidMount(){const e=document.getElementById(this.props.id);if(!e)throw console.error("Canvas element not found with id:",this.props.id),new Error("canvas not found");try{this.riveInstance=new l.Rive({src:this.props.src,canvas:e,autoplay:this.props.autoPlay,stateMachines:"stateMachine",onLoad:()=>{this.props.onLoadRiveInstance(this.riveInstance)},onLoadError:e=>{console.error("RiveCanvas load error:",e)}})}catch(e){console.error("Error creating RiveCanvas:",e)}setTimeout(()=>{this.props.focusKey&&this.props.autoFocus&&Object(o.e)(this.props.focusKey)},0)}componentWillUnmount(){this.riveInstance&&this.riveInstance.cleanup()}render(){return i.a.createElement("canvas",{style:this.props.style,id:this.props.id,"data-focused":this.props.focused})}}var d=Object(s.a)()(u);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}class p extends i.a.Component{constructor(e){super(e),h(this,"autoDismissTimeout",null),h(this,"handleOverlayAction",()=>{const{overlayType:e,onOverlayAction:t}=this.props;switch(this.setState({autoDismiss:!1}),e){case a.a.WinningBet:case a.a.FantasyPlayerEvent:}t&&t(e)}),h(this,"trackOverlayViewed",()=>{this.state.hasTrackedView||(this.setState({hasTrackedView:!0}),this.props.onOverlayViewed&&this.props.onOverlayViewed(this.props.overlayType))}),h(this,"onLoadRiveInstance",e=>{if(e){e.resizeDrawingSurfaceToCanvas();try{e.setTextRunValueAtPath("Title",this.overlayTitle,"compNotification"),e.setTextRunValueAtPath("Metadata",this.overlayMetadata,"compNotification")}catch(e){console.error("Error setting text values:",e)}try{const t=e.stateMachineInputs("stateMachine"),n=t.find(e=>"triggerPlay"===e.name);n?n.fire():t.length>0&&t[0].fire()}catch(e){console.error("Error with state machine inputs:",e)}this.trackOverlayViewed(),this.autoDismissTimeout=setTimeout(()=>{this.state.autoDismiss&&this.handleOverlayAction()},10400)}}),this.state={autoDismiss:!0,hasTrackedView:!1}}componentWillUnmount(){this.autoDismissTimeout&&clearTimeout(this.autoDismissTimeout)}get overlayTitle(){var e;const{overlayType:t,fantasy:n}=this.props;switch(t){case a.a.WinningBet:return"You won your bet!";case a.a.FantasyPlayerEvent:return null!==(e=null==n?void 0:n.title)&&void 0!==e?e:"Fantasy Update";default:return""}}get overlayMetadata(){var e,t;const{overlayType:n,winningBet:r,fantasy:i}=this.props;switch(n){case a.a.WinningBet:return null!==(e=null==r?void 0:r.notificationText)&&void 0!==e?e:"Click OK to view your winning bets.";case a.a.FantasyPlayerEvent:return null!==(t=null==i?void 0:i.metadata)&&void 0!==t?t:"New Player Activity";default:return""}}render(){var e,t,n,r;const a={position:"fixed",zIndex:999999,left:void 0!==(null===(e=this.props.position)||void 0===e?void 0:e.left)?this.props.position.left+"px":void 0,right:void 0!==(null===(t=this.props.position)||void 0===t?void 0:t.right)?this.props.position.right+"px":void 0,top:void 0!==(null===(n=this.props.position)||void 0===n?void 0:n.top)?this.props.position.top+"px":void 0,bottom:void 0!==(null===(r=this.props.position)||void 0===r?void 0:r.bottom)?this.props.position.bottom+"px":void 0};return i.a.createElement(d,{id:this.props.id,onEnterPress:this.handleOverlayAction,focusKey:"maestro-overlay",autoFocus:!0,autoPlay:!0,onLoadRiveInstance:this.onLoadRiveInstance,src:"https://static.gcp.maestro.io/media/664b9c57d59a7a431542d814/67db106027ddcdcd2ecb97d4.riv",style:a})}}t.a=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(5);const i={KEY_PLAYS:"keyPlays",STATS:"stats",FANTASY:"fantasy",BETS:"bets"};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}class o{constructor(){a(this,"_panels",new r.a([i.KEY_PLAYS,i.STATS,i.FANTASY,i.BETS])),a(this,"_currentPanel",new r.a(i.KEY_PLAYS)),a(this,"_newlyFocusedPanel",new r.a(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}get newlyFocusedPanel(){return this._newlyFocusedPanel.value}set newlyFocusedPanel(e){this._newlyFocusedPanel.value=e}getIndex(e){const t=this.panels.findIndex(t=>t===e);return-1!==t?t:null}getPanelType(e){return this.panels[e]||null}get panelTypeToLeft(){const e=this.getIndex(this.currentPanel);return null===e||0===e?null:this.getPanelType(e-1)}get panelTypeToRight(){const e=this.getIndex(this.currentPanel);return null===e||e===this.panels.length-1?null:this.getPanelType(e+1)}}},function(e,t,n){"use strict";(function(t){var r=n(7),i=n(62),a=n(11),o=n(45),s=n(46),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,d={transitional:o,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(u=n(47)),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,a=r.isObject(e),o=t&&t["Content-Type"];if((n=r.isFileList(e))||a&&"multipart/form-data"===o){var l=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,l&&new l)}return a||"application/json"===o?(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||d.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a.from(e,a.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(75)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){d.headers[e]=r.merge(l)})),e.exports=d}).call(this,n(61))},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,"/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: Arial, Helvetica, sans-serif;\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: 0.188rem solid transparent;\n transition: border-color 0.2s ease-in-out;\n border-radius: 0.625rem;\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.T01 {\n font-size: 1.125rem;\n font-weight: 400;\n line-height: 1.5rem;\n}\n\n.T02 {\n font-size: 1.125rem;\n font-weight: 500;\n line-height: 1.5rem;\n}\n\n.T05_ALT {\n font-size: 1.313rem;\n font-weight: 500;\n line-height: 1.75rem;\n}\n\n.T10 {\n font-size: 1.438rem;\n font-weight: 500;\n line-height: 2rem;\n}\n\n.T20 {\n font-size: 1.688rem;\n font-weight: 500;\n line-height: 2.25rem;\n}\n\n.T30 {\n font-size: 1.813rem;\n font-weight: 700;\n line-height: 2.25rem;\n}\n\n.T70 {\n font-size: 3rem;\n font-weight: 900;\n line-height: 3.5rem;\n}\n","",{version:3,sources:["webpack://./src/components/core/App/App.styles.css"],names:[],mappings:"AAAA,oCAAoC;AACpC;EACE,yCAAyC;EACzC,yBAAyB;EACzB,mBAAmB;EACnB,yCAAyC;AAC3C;;AAEA;EACE,kCAAkC;EAClC,yCAAyC;EACzC,uBAAuB;AACzB;;AAEA;EACE,yCAAyC;AAC3C;;AAEA;EACE,6BAA6B;EAC7B,6CAA6C;AAC/C;;AAEA;EACE,8DAA8D;AAChE;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,oBAAoB;AACtB;;AAEA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,oBAAoB;AACtB;;AAEA;EACE,eAAe;EACf,gBAAgB;EAChB,mBAAmB;AACrB",sourcesContent:["/* Warning: Do not play with :root */\n.sdk-wrapper {\n font-family: Arial, Helvetica, sans-serif;\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: 0.188rem solid transparent;\n transition: border-color 0.2s ease-in-out;\n border-radius: 0.625rem;\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.T01 {\n font-size: 1.125rem;\n font-weight: 400;\n line-height: 1.5rem;\n}\n\n.T02 {\n font-size: 1.125rem;\n font-weight: 500;\n line-height: 1.5rem;\n}\n\n.T05_ALT {\n font-size: 1.313rem;\n font-weight: 500;\n line-height: 1.75rem;\n}\n\n.T10 {\n font-size: 1.438rem;\n font-weight: 500;\n line-height: 2rem;\n}\n\n.T20 {\n font-size: 1.688rem;\n font-weight: 500;\n line-height: 2.25rem;\n}\n\n.T30 {\n font-size: 1.813rem;\n font-weight: 700;\n line-height: 2.25rem;\n}\n\n.T70 {\n font-size: 3rem;\n font-weight: 900;\n line-height: 3.5rem;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".sdk--panel-manager {\n padding: 3.75rem;\n padding-left: 3rem;\n padding-bottom: 0;\n display: block;\n}\n\n.sdk--panel-manager > * {\n margin-bottom: 3.75rem;\n}\n\n.sdk--panel-manager > *:last-child {\n margin-bottom: 0;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: block;\n text-align: center;\n}\n","",{version:3,sources:["webpack://./src/components/core/PanelManager/PanelManager.styles.css"],names:[],mappings:"AAAA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,iBAAiB;EACjB,cAAc;AAChB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB",sourcesContent:[".sdk--panel-manager {\n padding: 3.75rem;\n padding-left: 3rem;\n padding-bottom: 0;\n display: block;\n}\n\n.sdk--panel-manager > * {\n margin-bottom: 3.75rem;\n}\n\n.sdk--panel-manager > *:last-child {\n margin-bottom: 0;\n}\n\n.sdk--panel-manager .panel-coming-soon {\n display: block;\n text-align: center;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".key-plays-view {\n display: block;\n overflow-y: auto;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n scrollbar-width: none;\n scroll-behavior: smooth;\n overscroll-behavior: contain;\n}\n\n.key-plays-view > * {\n margin-bottom: 1rem;\n}\n\n.key-plays-view > *:last-child {\n margin-bottom: 0;\n}\n\n.key-plays-section {\n display: block;\n position: relative;\n}\n\n.key-plays-section > * {\n margin-bottom: 1rem;\n}\n\n.key-plays-section > *:last-child {\n margin-bottom: 0;\n}\n\n.key-plays-section-items {\n display: block;\n}\n\n.key-plays-section-items > * {\n margin-bottom: 20px;\n}\n\n.key-plays-section-items > *:last-child {\n margin-bottom: 0;\n}\n\n.key-plays-section-title {\n position: sticky;\n top: 0;\n z-index: 1;\n margin: 0;\n margin-bottom: 1rem;\n}\n\n.key-plays-bottom-padding {\n height: calc(100vh - 240px);\n min-height: 400px;\n width: 100%;\n}\n","",{version:3,sources:["webpack://./src/modules/key-plays/view/KeyPlaysView.styles.css"],names:[],mappings:"AAAA;EACE,cAAc;EACd,gBAAgB;EAChB,kDAAkD;EAClD,qBAAqB;EACrB,uBAAuB;EACvB,4BAA4B;AAC9B;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;EAChB,MAAM;EACN,UAAU;EACV,SAAS;EACT,mBAAmB;AACrB;;AAEA;EACE,2BAA2B;EAC3B,iBAAiB;EACjB,WAAW;AACb",sourcesContent:[".key-plays-view {\n display: block;\n overflow-y: auto;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n scrollbar-width: none;\n scroll-behavior: smooth;\n overscroll-behavior: contain;\n}\n\n.key-plays-view > * {\n margin-bottom: 1rem;\n}\n\n.key-plays-view > *:last-child {\n margin-bottom: 0;\n}\n\n.key-plays-section {\n display: block;\n position: relative;\n}\n\n.key-plays-section > * {\n margin-bottom: 1rem;\n}\n\n.key-plays-section > *:last-child {\n margin-bottom: 0;\n}\n\n.key-plays-section-items {\n display: block;\n}\n\n.key-plays-section-items > * {\n margin-bottom: 20px;\n}\n\n.key-plays-section-items > *:last-child {\n margin-bottom: 0;\n}\n\n.key-plays-section-title {\n position: sticky;\n top: 0;\n z-index: 1;\n margin: 0;\n margin-bottom: 1rem;\n}\n\n.key-plays-bottom-padding {\n height: calc(100vh - 240px);\n min-height: 400px;\n width: 100%;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,'.scrollable-container {\n position: relative;\n}\n\n\n.scrollable-container::before {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 3.625rem; /* 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: 6rem; /* 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;;;AAGA;EACE,WAAW;EACX,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,MAAM;EACN,gBAAgB,EAAE,+BAA+B;EACjD,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\n.scrollable-container::before {\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n height: 3.625rem; /* 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: 6rem; /* 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=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".key-play-card {\n display: block;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface2);\n contain: content;\n position: relative;\n}\n\n.key-play-card-content {\n display: block;\n width: 100%;\n position: relative;\n}\n\n.key-play-card-content .cardImage {\n display: inline-block;\n width: 33.33%;\n vertical-align: top;\n object-fit: cover;\n}\n\n.key-play-card-content .text-content {\n position: absolute;\n top: 50%;\n left: 33.33%;\n transform: translateY(-50%);\n width: 66.67%;\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\n text-align: center;\n box-sizing: border-box;\n}\n\n.key-play-card-content .multi-line {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: left;\n}\n\n.key-play-card progress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%;\n height: 8px;\n border-radius: 15px;\n background-color: var(--sdk-surface6);\n box-shadow: 0px 1px 3px 0px #10111366 inset;\n overflow: hidden;\n border-radius: 0;\n position: absolute;\n bottom: 0;\n}\n\n.key-play-card progress::-webkit-progress-bar,\n.key-play-card progress::-moz-progress-bar {\n background-color: var(--sdk-surface6);\n}\n\n.key-play-card progress::-webkit-progress-value {\n background-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card .score {\n display: block;\n text-align: center;\n padding: 10px;\n background-color: var(--sdk-surface4);\n}\n\n.key-play-card .score-team {\n display: inline-block;\n vertical-align: middle;\n margin: 0 2rem;\n}\n\n.key-play-card .score-team > div {\n display: inline-block;\n vertical-align: middle;\n}\n\n.key-play-card .score > *:last-child .score-value {\n margin-left: 0;\n margin-right: 1rem;\n}\n\n.key-play-card .score-team .score-value {\n margin-left: 1rem;\n}\n\n.key-play-card .error-state {\n position: absolute;\n width: 100%;\n height: 100%;\n display: block;\n text-align: center;\n background-color: var(--sdk-surface2);\n}\n\n.key-play-card .error-state > * {\n margin: 0.5rem;\n vertical-align: middle;\n}\n\n.key-play-card .error-state path {\n fill: var(--sdk-alertWarning);\n}\n\n.key-play-card .non-recent-error-state {\n position: absolute;\n top: 1.125rem;\n right: 1.125rem;\n}\n","",{version:3,sources:["webpack://./src/modules/key-plays/view/KeyPlayCardView.styles.css"],names:[],mappings:"AAAA;EACE,cAAc;EACd,uBAAuB;EACvB,qCAAqC;EACrC,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,cAAc;EACd,WAAW;EACX,kBAAkB;AACpB;;AAEA;EACE,qBAAqB;EACrB,aAAa;EACb,mBAAmB;EACnB,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,YAAY;EACZ,2BAA2B;EAC3B,aAAa;EACb,uCAAuC;EACvC,kBAAkB;EAClB,sBAAsB;AACxB;;AAEA;EACE,oBAAoB;EACpB,4BAA4B;EAC5B,qBAAqB;EACrB,gBAAgB;EAChB,uBAAuB;EACvB,gBAAgB;AAClB;;AAEA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,gBAAgB;EAChB,WAAW;EACX,WAAW;EACX,mBAAmB;EACnB,qCAAqC;EACrC,2CAA2C;EAC3C,gBAAgB;EAChB,gBAAgB;EAChB,kBAAkB;EAClB,SAAS;AACX;;AAEA;;EAEE,qCAAqC;AACvC;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,cAAc;EACd,kBAAkB;EAClB,aAAa;EACb,qCAAqC;AACvC;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;EACtB,cAAc;AAChB;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,cAAc;EACd,kBAAkB;EAClB,qCAAqC;AACvC;;AAEA;EACE,cAAc;EACd,sBAAsB;AACxB;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,eAAe;AACjB",sourcesContent:[".key-play-card {\n display: block;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface2);\n contain: content;\n position: relative;\n}\n\n.key-play-card-content {\n display: block;\n width: 100%;\n position: relative;\n}\n\n.key-play-card-content .cardImage {\n display: inline-block;\n width: 33.33%;\n vertical-align: top;\n object-fit: cover;\n}\n\n.key-play-card-content .text-content {\n position: absolute;\n top: 50%;\n left: 33.33%;\n transform: translateY(-50%);\n width: 66.67%;\n padding: 2.75rem 2.25rem 2.75rem 1.5rem;\n text-align: center;\n box-sizing: border-box;\n}\n\n.key-play-card-content .multi-line {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: left;\n}\n\n.key-play-card progress {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n width: 100%;\n height: 8px;\n border-radius: 15px;\n background-color: var(--sdk-surface6);\n box-shadow: 0px 1px 3px 0px #10111366 inset;\n overflow: hidden;\n border-radius: 0;\n position: absolute;\n bottom: 0;\n}\n\n.key-play-card progress::-webkit-progress-bar,\n.key-play-card progress::-moz-progress-bar {\n background-color: var(--sdk-surface6);\n}\n\n.key-play-card progress::-webkit-progress-value {\n background-color: var(--sdk-highlightPrimary);\n}\n\n.key-play-card .score {\n display: block;\n text-align: center;\n padding: 10px;\n background-color: var(--sdk-surface4);\n}\n\n.key-play-card .score-team {\n display: inline-block;\n vertical-align: middle;\n margin: 0 2rem;\n}\n\n.key-play-card .score-team > div {\n display: inline-block;\n vertical-align: middle;\n}\n\n.key-play-card .score > *:last-child .score-value {\n margin-left: 0;\n margin-right: 1rem;\n}\n\n.key-play-card .score-team .score-value {\n margin-left: 1rem;\n}\n\n.key-play-card .error-state {\n position: absolute;\n width: 100%;\n height: 100%;\n display: block;\n text-align: center;\n background-color: var(--sdk-surface2);\n}\n\n.key-play-card .error-state > * {\n margin: 0.5rem;\n vertical-align: middle;\n}\n\n.key-play-card .error-state path {\n fill: var(--sdk-alertWarning);\n}\n\n.key-play-card .non-recent-error-state {\n position: absolute;\n top: 1.125rem;\n right: 1.125rem;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".sdk--key-play-error-state-unsupportedEvent {\n padding: 2.25rem 1.5rem 0 1.5rem;\n display: block;\n}\n\n.sdk--key-play-error-state-unsupportedEvent::after {\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0) 0%,\n rgba(255, 255, 255, 0.08) 100%\n );\n}\n\n.sdk--key-play-error-state-unsupportedEvent h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-unsupportedEvent p {\n margin: 0;\n color: var(--sdk-text200);\n}\n\n.sdk--key-play-error-state-unsupportedEvent > * {\n margin-bottom: 1rem;\n}\n\n.sdk--key-play-error-state-unsupportedEvent > *:last-child {\n margin-bottom: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent {\n overflow-y: hidden;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n padding: 2.25rem 1.5rem 0 1.5rem;\n scrollbar-width: none;\n display: block;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent p {\n margin: 0;\n color: var(--sdk-text200);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent > * {\n margin-bottom: 6.25rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent > *:last-child {\n margin-bottom: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .main-content {\n display: block;\n text-align: center;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .main-content > * {\n margin-bottom: 1rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .main-content > *:last-child {\n margin-bottom: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples {\n display: block;\n position: relative;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples > * {\n margin-bottom: 1rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent\n .unpopulatedEvent-examples\n > *:last-child {\n margin-bottom: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples::after {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n bottom: 0;\n background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 92.2%);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent\n .unpopulatedEvent-examples\n .example {\n display: block;\n padding: 1.75rem 1.5rem;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface3);\n height: 8rem;\n}\n\n.sdk--key-play-error-state-tabLoadFailure {\n display: block;\n border-radius: 0.625rem;\n border: 0.188rem solid transparent;\n transition: border-color 0.2s ease-in-out;\n padding: 1.5rem;\n background-color: var(--sdk-surface4);\n}\n\n.sdk--key-play-error-state-tabLoadFailure h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-tabLoadFailure p {\n margin: 0;\n height: 5.375rem;\n}\n\n.sdk--key-play-error-state-tabLoadFailure > * {\n margin-bottom: 1rem;\n}\n\n.sdk--key-play-error-state-tabLoadFailure > *:last-child {\n margin-bottom: 0;\n}\n","",{version:3,sources:["webpack://./src/modules/key-plays/view/KeyPlayErrorStateView.styles.css"],names:[],mappings:"AAAA;EACE,gCAAgC;EAChC,cAAc;AAChB;;AAEA;EACE;;;;GAIC;AACH;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,yBAAyB;AAC3B;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,kDAAkD;EAClD,gCAAgC;EAChC,qBAAqB;EACrB,cAAc;AAChB;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,yBAAyB;AAC3B;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;;;EAGE,gBAAgB;AAClB;;AAEA;EACE,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,SAAS;EACT,qEAAqE;AACvE;;AAEA;;;EAGE,cAAc;EACd,uBAAuB;EACvB,uBAAuB;EACvB,qCAAqC;EACrC,YAAY;AACd;;AAEA;EACE,cAAc;EACd,uBAAuB;EACvB,kCAAkC;EAClC,yCAAyC;EACzC,eAAe;EACf,qCAAqC;AACvC;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,gBAAgB;AAClB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB",sourcesContent:[".sdk--key-play-error-state-unsupportedEvent {\n padding: 2.25rem 1.5rem 0 1.5rem;\n display: block;\n}\n\n.sdk--key-play-error-state-unsupportedEvent::after {\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0) 0%,\n rgba(255, 255, 255, 0.08) 100%\n );\n}\n\n.sdk--key-play-error-state-unsupportedEvent h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-unsupportedEvent p {\n margin: 0;\n color: var(--sdk-text200);\n}\n\n.sdk--key-play-error-state-unsupportedEvent > * {\n margin-bottom: 1rem;\n}\n\n.sdk--key-play-error-state-unsupportedEvent > *:last-child {\n margin-bottom: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent {\n overflow-y: hidden;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n padding: 2.25rem 1.5rem 0 1.5rem;\n scrollbar-width: none;\n display: block;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent p {\n margin: 0;\n color: var(--sdk-text200);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent > * {\n margin-bottom: 6.25rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent > *:last-child {\n margin-bottom: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .main-content {\n display: block;\n text-align: center;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .main-content > * {\n margin-bottom: 1rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .main-content > *:last-child {\n margin-bottom: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples {\n display: block;\n position: relative;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples > * {\n margin-bottom: 1rem;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent\n .unpopulatedEvent-examples\n > *:last-child {\n margin-bottom: 0;\n}\n\n.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples::after {\n content: '';\n width: 100%;\n height: 100%;\n position: absolute;\n bottom: 0;\n background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 92.2%);\n}\n\n.sdk--key-play-error-state-unpopulatedEvent\n .unpopulatedEvent-examples\n .example {\n display: block;\n padding: 1.75rem 1.5rem;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface3);\n height: 8rem;\n}\n\n.sdk--key-play-error-state-tabLoadFailure {\n display: block;\n border-radius: 0.625rem;\n border: 0.188rem solid transparent;\n transition: border-color 0.2s ease-in-out;\n padding: 1.5rem;\n background-color: var(--sdk-surface4);\n}\n\n.sdk--key-play-error-state-tabLoadFailure h3 {\n margin: 0;\n}\n\n.sdk--key-play-error-state-tabLoadFailure p {\n margin: 0;\n height: 5.375rem;\n}\n\n.sdk--key-play-error-state-tabLoadFailure > * {\n margin-bottom: 1rem;\n}\n\n.sdk--key-play-error-state-tabLoadFailure > *:last-child {\n margin-bottom: 0;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".action-button {\n padding: 23px 0;\n background-color: var(--sdk-accentSecondary);\n color: var(--sdk-text100);\n}\n\n.action-button:hover, .action-button[data-focused=true] {\n background-color: var(--sdk-accentPrimary);\n color: var(--sdk-text500);\n}\n","",{version:3,sources:["webpack://./src/components/molecules/ActionButton/ActionButton.styles.css"],names:[],mappings:"AAAA;EACE,eAAe;EACf,4CAA4C;EAC5C,yBAAyB;AAC3B;;AAEA;EACE,0CAA0C;EAC1C,yBAAyB;AAC3B",sourcesContent:[".action-button {\n padding: 23px 0;\n background-color: var(--sdk-accentSecondary);\n color: var(--sdk-text100);\n}\n\n.action-button:hover, .action-button[data-focused=true] {\n background-color: var(--sdk-accentPrimary);\n color: var(--sdk-text500);\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.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}\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;AACd;;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}\n\n.base-button > * {\n display: inline-block;\n vertical-align: middle;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".bets-view {\n overflow-y: auto;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n scrollbar-width: none;\n scroll-behavior: smooth;\n overscroll-behavior: contain;\n}\n\n.bets-view > * {\n margin-bottom: 1rem;\n}\n\n.bets-view > *:last-child {\n margin-bottom: 0;\n}\n\n.bets-view::-webkit-scrollbar {\n display: none;\n}\n\n.bets-bottom-padding {\n height: calc(100vh - 240px);\n min-height: 400px;\n width: 100%;\n}\n\n.bets-error-state-tabLoadFailure {\n padding: 1.5rem;\n background-color: var(--sdk-surface4);\n}\n\n.bets-error-state-tabLoadFailure > * {\n margin-bottom: 1rem;\n}\n\n.bets-error-state-tabLoadFailure > *:last-child {\n margin-bottom: 0;\n}\n\n.bets-error-state-tabLoadFailure h3 {\n margin: 0;\n}\n\n.bets-error-state-tabLoadFailure p {\n margin: 0;\n height: 5.375rem;\n}\n\n.scrollable-container[data-has-error='true']::before {\n background: none;\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/BetsView.styles.css"],names:[],mappings:"AAAA;EACE,gBAAgB;EAChB,kDAAkD;EAClD,qBAAqB;EACrB,uBAAuB;EACvB,4BAA4B;AAC9B;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,2BAA2B;EAC3B,iBAAiB;EACjB,WAAW;AACb;;AAEA;EACE,eAAe;EACf,qCAAqC;AACvC;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,SAAS;EACT,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB",sourcesContent:[".bets-view {\n overflow-y: auto;\n max-height: calc(100vh - 86px - 3.75rem - 3.75rem);\n scrollbar-width: none;\n scroll-behavior: smooth;\n overscroll-behavior: contain;\n}\n\n.bets-view > * {\n margin-bottom: 1rem;\n}\n\n.bets-view > *:last-child {\n margin-bottom: 0;\n}\n\n.bets-view::-webkit-scrollbar {\n display: none;\n}\n\n.bets-bottom-padding {\n height: calc(100vh - 240px);\n min-height: 400px;\n width: 100%;\n}\n\n.bets-error-state-tabLoadFailure {\n padding: 1.5rem;\n background-color: var(--sdk-surface4);\n}\n\n.bets-error-state-tabLoadFailure > * {\n margin-bottom: 1rem;\n}\n\n.bets-error-state-tabLoadFailure > *:last-child {\n margin-bottom: 0;\n}\n\n.bets-error-state-tabLoadFailure h3 {\n margin: 0;\n}\n\n.bets-error-state-tabLoadFailure p {\n margin: 0;\n height: 5.375rem;\n}\n\n.scrollable-container[data-has-error='true']::before {\n background: none;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".six-pack-table {\n padding: 0 2rem 0 2rem;\n border-collapse: separate;\n border-spacing: 0.25rem 1.5rem;\n background-color: var(--sdk-surface3);\n width: 100%;\n}\n\n.six-pack-table thead tr {\n color: var(--sdk-text200);\n}\n\n.six-pack-table thead th:not(:first-child) {\n width: 5.938rem;\n box-sizing: border-box;\n}\n\n.six-pack-table tbody td:not(:first-child) {\n text-align: center;\n padding: 0.625rem;\n border-radius: 0.25rem;\n width: 5.938rem;\n box-sizing: border-box;\n}\n\n.six-pack-table tbody td:not(:first-child):not(:nth-child(2)) {\n background-color: var(--sdk-surface4);\n border: 1px solid var(--sdk-surface5);\n}\n\n.six-pack-table tbody td span {\n color: var(--sdk-text200);\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/SixPack/SixPackView.style.css"],names:[],mappings:"AAAA;EACE,sBAAsB;EACtB,yBAAyB;EACzB,8BAA8B;EAC9B,qCAAqC;EACrC,WAAW;AACb;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,eAAe;EACf,sBAAsB;AACxB;;AAEA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,sBAAsB;EACtB,eAAe;EACf,sBAAsB;AACxB;;AAEA;EACE,qCAAqC;EACrC,qCAAqC;AACvC;;AAEA;EACE,yBAAyB;AAC3B",sourcesContent:[".six-pack-table {\n padding: 0 2rem 0 2rem;\n border-collapse: separate;\n border-spacing: 0.25rem 1.5rem;\n background-color: var(--sdk-surface3);\n width: 100%;\n}\n\n.six-pack-table thead tr {\n color: var(--sdk-text200);\n}\n\n.six-pack-table thead th:not(:first-child) {\n width: 5.938rem;\n box-sizing: border-box;\n}\n\n.six-pack-table tbody td:not(:first-child) {\n text-align: center;\n padding: 0.625rem;\n border-radius: 0.25rem;\n width: 5.938rem;\n box-sizing: border-box;\n}\n\n.six-pack-table tbody td:not(:first-child):not(:nth-child(2)) {\n background-color: var(--sdk-surface4);\n border: 1px solid var(--sdk-surface5);\n}\n\n.six-pack-table tbody td span {\n color: var(--sdk-text200);\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".my-bets-view {\n padding: 1rem;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface3);\n}\n\n.my-bets-view > * {\n margin-bottom: 1rem;\n}\n\n.my-bets-view > *:last-child {\n margin-bottom: 0;\n}\n\n.no-user-bets {\n background-color: var(--sdk-surface4);\n border-radius: 10px;\n display: block;\n width: 100%;\n text-align: center;\n padding: 38px 48px;\n text-transform: capitalize;\n box-sizing: border-box;\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/UserBets/UserBetsView.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,uBAAuB;EACvB,qCAAqC;AACvC;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,qCAAqC;EACrC,mBAAmB;EACnB,cAAc;EACd,WAAW;EACX,kBAAkB;EAClB,kBAAkB;EAClB,0BAA0B;EAC1B,sBAAsB;AACxB",sourcesContent:[".my-bets-view {\n padding: 1rem;\n border-radius: 0.625rem;\n background-color: var(--sdk-surface3);\n}\n\n.my-bets-view > * {\n margin-bottom: 1rem;\n}\n\n.my-bets-view > *:last-child {\n margin-bottom: 0;\n}\n\n.no-user-bets {\n background-color: var(--sdk-surface4);\n border-radius: 10px;\n display: block;\n width: 100%;\n text-align: center;\n padding: 38px 48px;\n text-transform: capitalize;\n box-sizing: border-box;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".bets-card-bets .single-bet:not(:last-child)::before {\n content: '';\n display: block;\n width: 1px;\n height: 100%;\n background-color: var(--sdk-surface6);\n position: absolute;\n bottom: 0;\n left: calc(24px + 1.5rem);\n transform: translateY(50%);\n}\n\n.bets-card-bets .single-bet[data-focusable='true'] {\n padding: 1.5rem;\n}\n\n.bets-card-bets .single-bet {\n position: relative;\n padding: 0 1.5rem;\n overflow: hidden; /* clearfix */\n}\n\n.bets-card-bets .single-bet > * {\n float: left;\n margin-right: 1rem;\n}\n\n.bets-card-bets .single-bet > *:last-child {\n margin-right: 0;\n}\n\n.bets-card-bets .single-bet:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.bets-card-bets .single-bet svg {\n z-index: 1;\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/UserBets/Parlay/Parlay.styles.css"],names:[],mappings:"AAAA;EACE,WAAW;EACX,cAAc;EACd,UAAU;EACV,YAAY;EACZ,qCAAqC;EACrC,kBAAkB;EAClB,SAAS;EACT,yBAAyB;EACzB,0BAA0B;AAC5B;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,kBAAkB;EAClB,iBAAiB;EACjB,gBAAgB,EAAE,aAAa;AACjC;;AAEA;EACE,WAAW;EACX,kBAAkB;AACpB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,WAAW;EACX,cAAc;EACd,WAAW;AACb;;AAEA;EACE,UAAU;AACZ",sourcesContent:[".bets-card-bets .single-bet:not(:last-child)::before {\n content: '';\n display: block;\n width: 1px;\n height: 100%;\n background-color: var(--sdk-surface6);\n position: absolute;\n bottom: 0;\n left: calc(24px + 1.5rem);\n transform: translateY(50%);\n}\n\n.bets-card-bets .single-bet[data-focusable='true'] {\n padding: 1.5rem;\n}\n\n.bets-card-bets .single-bet {\n position: relative;\n padding: 0 1.5rem;\n overflow: hidden; /* clearfix */\n}\n\n.bets-card-bets .single-bet > * {\n float: left;\n margin-right: 1rem;\n}\n\n.bets-card-bets .single-bet > *:last-child {\n margin-right: 0;\n}\n\n.bets-card-bets .single-bet:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.bets-card-bets .single-bet svg {\n z-index: 1;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".bet-outcome-badge {\n background-color: var(--sdk-surface2);\n padding: 0.625rem 0.75rem;\n border-radius: 0.5rem;\n float: right;\n}\n\n.bet-outcome-badge > * {\n display: inline-block;\n vertical-align: middle;\n margin-right: 0.375rem;\n}\n\n.bet-outcome-badge > *:last-child {\n margin-right: 0;\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.styles.css"],names:[],mappings:"AAAA;EACE,qCAAqC;EACrC,yBAAyB;EACzB,qBAAqB;EACrB,YAAY;AACd;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;EACtB,sBAAsB;AACxB;;AAEA;EACE,eAAe;AACjB",sourcesContent:[".bet-outcome-badge {\n background-color: var(--sdk-surface2);\n padding: 0.625rem 0.75rem;\n border-radius: 0.5rem;\n float: right;\n}\n\n.bet-outcome-badge > * {\n display: inline-block;\n vertical-align: middle;\n margin-right: 0.375rem;\n}\n\n.bet-outcome-badge > *:last-child {\n margin-right: 0;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".bet-pill {\n background-color: var(--sdk-surface5);\n border-radius: 2.5rem;\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n padding: 0.5rem 1rem;\n text-transform: capitalize;\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/components/BetPill/BetPill.styles.css"],names:[],mappings:"AAAA;EACE,qCAAqC;EACrC,qBAAqB;EACrB,mBAAmB;EACnB,sBAAsB;EACtB,kBAAkB;EAClB,oBAAoB;EACpB,0BAA0B;AAC5B",sourcesContent:[".bet-pill {\n background-color: var(--sdk-surface5);\n border-radius: 2.5rem;\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n padding: 0.5rem 1rem;\n text-transform: capitalize;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".bet-result {\n text-transform: capitalize;\n}\n\n.bet-result > * {\n display: inline-block;\n vertical-align: middle;\n}\n\n.bet-result span {\n margin-left: 0.25rem;\n color: var(--sdk-alertConfirmation);\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/UserBets/BetResult/BetResult.styles.css"],names:[],mappings:"AAAA;EACE,0BAA0B;AAC5B;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;AACxB;;AAEA;EACE,oBAAoB;EACpB,mCAAmC;AACrC",sourcesContent:[".bet-result {\n text-transform: capitalize;\n}\n\n.bet-result > * {\n display: inline-block;\n vertical-align: middle;\n}\n\n.bet-result span {\n margin-left: 0.25rem;\n color: var(--sdk-alertConfirmation);\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".bets-card {\n background-color: var(--sdk-surface4);\n padding: 1.5rem;\n}\n\n.bets-card > * {\n margin-bottom: 1.5rem;\n}\n\n.bets-card > *:last-child {\n margin-bottom: 0;\n}\n\n.bets-card-divider {\n width: 100%;\n height: 1px;\n background-color: var(--sdk-surface6);\n}\n\n.bets-card-footer {\n padding: 1rem 0;\n overflow: hidden; /* clearfix */\n}\n\n.bets-card-footer > *:first-child {\n float: left;\n}\n\n.bets-card-footer > *:last-child {\n float: right;\n}\n\n.bets-card-footer:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.bets-card-header {\n text-transform: capitalize;\n overflow: hidden; /* clearfix */\n}\n\n.bets-card-header > * {\n float: left;\n margin-right: 0.5rem;\n vertical-align: middle;\n}\n\n.bets-card-header > *:last-child {\n margin-right: 0;\n}\n\n.bets-card-header:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.bets-card-header span {\n color: var(--sdk-text200);\n}\n\n.bets-card-header > svg {\n margin-right: 0.5rem;\n}\n\n.bets-card-header .icon-container {\n border-radius: 50%;\n height: 48px;\n width: 48px;\n}\n\n.bets-card-header .icon-container[data-focused='true'] {\n background-color: var(--sdk-text100);\n}\n\n.bets-card-header .bets-card-status-container {\n float: right;\n overflow: hidden; /* clearfix */\n}\n\n.bets-card-header .bets-card-status-container > * {\n float: left;\n margin-right: 1rem;\n vertical-align: middle;\n}\n\n.bets-card-header .bets-card-status-container > *:last-child {\n margin-right: 0;\n}\n\n.bets-card-header .bets-card-status-container:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.bets-card-header .icon-container[data-focused='true'] path {\n fill: var(--sdk-text500);\n}\n\n.bets-card-event > * {\n margin-bottom: 1.5rem; /* inherit from parent gap */\n}\n\n.bets-card-event > *:last-child {\n margin-bottom: 0;\n}\n\n.bets-card-bets > * {\n margin-bottom: 1rem;\n}\n\n.bets-card-bets > *:last-child {\n margin-bottom: 0;\n}\n\n.bets-card .more-bets {\n padding: 0 1.5rem;\n color: var(--sdk-text200);\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/components/BetsCard/BetsCard.styles.css"],names:[],mappings:"AAAA;EACE,qCAAqC;EACrC,eAAe;AACjB;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,WAAW;EACX,WAAW;EACX,qCAAqC;AACvC;;AAEA;EACE,eAAe;EACf,gBAAgB,EAAE,aAAa;AACjC;;AAEA;EACE,WAAW;AACb;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,WAAW;EACX,cAAc;EACd,WAAW;AACb;;AAEA;EACE,0BAA0B;EAC1B,gBAAgB,EAAE,aAAa;AACjC;;AAEA;EACE,WAAW;EACX,oBAAoB;EACpB,sBAAsB;AACxB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,WAAW;EACX,cAAc;EACd,WAAW;AACb;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,kBAAkB;EAClB,YAAY;EACZ,WAAW;AACb;;AAEA;EACE,oCAAoC;AACtC;;AAEA;EACE,YAAY;EACZ,gBAAgB,EAAE,aAAa;AACjC;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,sBAAsB;AACxB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,WAAW;EACX,cAAc;EACd,WAAW;AACb;;AAEA;EACE,wBAAwB;AAC1B;;AAEA;EACE,qBAAqB,EAAE,4BAA4B;AACrD;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;EACjB,yBAAyB;AAC3B",sourcesContent:[".bets-card {\n background-color: var(--sdk-surface4);\n padding: 1.5rem;\n}\n\n.bets-card > * {\n margin-bottom: 1.5rem;\n}\n\n.bets-card > *:last-child {\n margin-bottom: 0;\n}\n\n.bets-card-divider {\n width: 100%;\n height: 1px;\n background-color: var(--sdk-surface6);\n}\n\n.bets-card-footer {\n padding: 1rem 0;\n overflow: hidden; /* clearfix */\n}\n\n.bets-card-footer > *:first-child {\n float: left;\n}\n\n.bets-card-footer > *:last-child {\n float: right;\n}\n\n.bets-card-footer:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.bets-card-header {\n text-transform: capitalize;\n overflow: hidden; /* clearfix */\n}\n\n.bets-card-header > * {\n float: left;\n margin-right: 0.5rem;\n vertical-align: middle;\n}\n\n.bets-card-header > *:last-child {\n margin-right: 0;\n}\n\n.bets-card-header:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.bets-card-header span {\n color: var(--sdk-text200);\n}\n\n.bets-card-header > svg {\n margin-right: 0.5rem;\n}\n\n.bets-card-header .icon-container {\n border-radius: 50%;\n height: 48px;\n width: 48px;\n}\n\n.bets-card-header .icon-container[data-focused='true'] {\n background-color: var(--sdk-text100);\n}\n\n.bets-card-header .bets-card-status-container {\n float: right;\n overflow: hidden; /* clearfix */\n}\n\n.bets-card-header .bets-card-status-container > * {\n float: left;\n margin-right: 1rem;\n vertical-align: middle;\n}\n\n.bets-card-header .bets-card-status-container > *:last-child {\n margin-right: 0;\n}\n\n.bets-card-header .bets-card-status-container:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.bets-card-header .icon-container[data-focused='true'] path {\n fill: var(--sdk-text500);\n}\n\n.bets-card-event > * {\n margin-bottom: 1.5rem; /* inherit from parent gap */\n}\n\n.bets-card-event > *:last-child {\n margin-bottom: 0;\n}\n\n.bets-card-bets > * {\n margin-bottom: 1rem;\n}\n\n.bets-card-bets > *:last-child {\n margin-bottom: 0;\n}\n\n.bets-card .more-bets {\n padding: 0 1.5rem;\n color: var(--sdk-text200);\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".single-bet {\n position: relative;\n overflow: hidden; /* clearfix */\n}\n\n.single-bet > * {\n float: left;\n margin-right: 1rem;\n}\n\n.single-bet > *:last-child {\n margin-right: 0;\n}\n\n.single-bet:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.single-bet img {\n width: 3rem;\n height: 3rem;\n border-radius: 50%;\n z-index: 1;\n}\n\n.single-bet-main-content {\n width: calc(100% - 4rem); /* Adjust based on image width + margins */\n}\n\n.single-bet-main-content > * {\n margin-bottom: 0.375rem;\n}\n\n.single-bet-main-content > *:last-child {\n margin-bottom: 0;\n}\n\n.single-bet-info {\n overflow: hidden; /* clearfix */\n}\n\n.single-bet-info > * {\n float: left;\n margin-right: 0.75rem;\n}\n\n.single-bet-info > *:last-child {\n margin-right: 0;\n}\n\n.single-bet-info:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.single-bet-info > div > * {\n margin-bottom: 0.25rem;\n}\n\n.single-bet-info > div > *:last-child {\n margin-bottom: 0;\n}\n\n.single-bet-info-description {\n color: var(--sdk-text200);\n}\n\n.single-bet-odds {\n float: right;\n color: var(--sdk-text200);\n}\n\n.single-bet-accrued > * {\n margin-bottom: 0.5rem;\n}\n\n.single-bet-accrued > *:last-child {\n margin-bottom: 0;\n}\n\n.single-bet-accrued-goal {\n overflow: hidden; /* clearfix */\n}\n\n.single-bet-accrued-goal:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.single-bet-accrued .single-bet-accrued-goal > span {\n color: var(--sdk-text200);\n}\n\n.single-bet-accrued .single-bet-accrued-goal > div {\n float: right;\n}\n\n.single-bet-accrued progress {\n width: 100%;\n height: 0.25rem;\n border-radius: 5rem;\n}\n\n.single-bet-accrued progress::-webkit-progress-bar {\n background-color: var(--sdk-surface6);\n border-radius: 5rem;\n}\n\n.single-bet-accrued progress[data-complete='false']::-webkit-progress-value {\n background-color: #53baed;\n border-right: 4px solid var(--sdk-surface4);\n}\n\n.single-bet-accrued progress::-webkit-progress-value {\n background-color: var(--sdk-alertConfirmation);\n border-radius: 5rem;\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/components/Bet/Bet.styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,gBAAgB,EAAE,aAAa;AACjC;;AAEA;EACE,WAAW;EACX,kBAAkB;AACpB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,WAAW;EACX,cAAc;EACd,WAAW;AACb;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,UAAU;AACZ;;AAEA;EACE,wBAAwB,EAAE,0CAA0C;AACtE;;AAEA;EACE,uBAAuB;AACzB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB,EAAE,aAAa;AACjC;;AAEA;EACE,WAAW;EACX,qBAAqB;AACvB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,WAAW;EACX,cAAc;EACd,WAAW;AACb;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,YAAY;EACZ,yBAAyB;AAC3B;;AAEA;EACE,qBAAqB;AACvB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB,EAAE,aAAa;AACjC;;AAEA;EACE,WAAW;EACX,cAAc;EACd,WAAW;AACb;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,WAAW;EACX,eAAe;EACf,mBAAmB;AACrB;;AAEA;EACE,qCAAqC;EACrC,mBAAmB;AACrB;;AAEA;EACE,yBAAyB;EACzB,2CAA2C;AAC7C;;AAEA;EACE,8CAA8C;EAC9C,mBAAmB;AACrB",sourcesContent:[".single-bet {\n position: relative;\n overflow: hidden; /* clearfix */\n}\n\n.single-bet > * {\n float: left;\n margin-right: 1rem;\n}\n\n.single-bet > *:last-child {\n margin-right: 0;\n}\n\n.single-bet:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.single-bet img {\n width: 3rem;\n height: 3rem;\n border-radius: 50%;\n z-index: 1;\n}\n\n.single-bet-main-content {\n width: calc(100% - 4rem); /* Adjust based on image width + margins */\n}\n\n.single-bet-main-content > * {\n margin-bottom: 0.375rem;\n}\n\n.single-bet-main-content > *:last-child {\n margin-bottom: 0;\n}\n\n.single-bet-info {\n overflow: hidden; /* clearfix */\n}\n\n.single-bet-info > * {\n float: left;\n margin-right: 0.75rem;\n}\n\n.single-bet-info > *:last-child {\n margin-right: 0;\n}\n\n.single-bet-info:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.single-bet-info > div > * {\n margin-bottom: 0.25rem;\n}\n\n.single-bet-info > div > *:last-child {\n margin-bottom: 0;\n}\n\n.single-bet-info-description {\n color: var(--sdk-text200);\n}\n\n.single-bet-odds {\n float: right;\n color: var(--sdk-text200);\n}\n\n.single-bet-accrued > * {\n margin-bottom: 0.5rem;\n}\n\n.single-bet-accrued > *:last-child {\n margin-bottom: 0;\n}\n\n.single-bet-accrued-goal {\n overflow: hidden; /* clearfix */\n}\n\n.single-bet-accrued-goal:after {\n content: '';\n display: table;\n clear: both;\n}\n\n.single-bet-accrued .single-bet-accrued-goal > span {\n color: var(--sdk-text200);\n}\n\n.single-bet-accrued .single-bet-accrued-goal > div {\n float: right;\n}\n\n.single-bet-accrued progress {\n width: 100%;\n height: 0.25rem;\n border-radius: 5rem;\n}\n\n.single-bet-accrued progress::-webkit-progress-bar {\n background-color: var(--sdk-surface6);\n border-radius: 5rem;\n}\n\n.single-bet-accrued progress[data-complete='false']::-webkit-progress-value {\n background-color: #53baed;\n border-right: 4px solid var(--sdk-surface4);\n}\n\n.single-bet-accrued progress::-webkit-progress-value {\n background-color: var(--sdk-alertConfirmation);\n border-radius: 5rem;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".segment-controller {\n border-radius: 0.625rem;\n display: table;\n width: 100%;\n table-layout: fixed;\n border-spacing: 0;\n}\n\n.segment-controller > * {\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n width: 33.333%;\n padding: 0 8px;\n}\n\n.segment-controller > *:first-child {\n padding-left: 0;\n}\n\n.segment-controller > *:last-child {\n padding-right: 0;\n}\n","",{version:3,sources:["webpack://./src/components/organisms/SegmentController/SegmentController.styles.css"],names:[],mappings:"AAAA;EACE,uBAAuB;EACvB,cAAc;EACd,WAAW;EACX,mBAAmB;EACnB,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,kBAAkB;EAClB,cAAc;EACd,cAAc;AAChB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,gBAAgB;AAClB",sourcesContent:[".segment-controller {\n border-radius: 0.625rem;\n display: table;\n width: 100%;\n table-layout: fixed;\n border-spacing: 0;\n}\n\n.segment-controller > * {\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n width: 33.333%;\n padding: 0 8px;\n}\n\n.segment-controller > *:first-child {\n padding-left: 0;\n}\n\n.segment-controller > *:last-child {\n padding-right: 0;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".segment-button {\n padding: 12px 0;\n background-color: transparent;\n color: var(--sdk-text100);\n transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;\n display: block;\n width: 100%;\n box-sizing: border-box;\n}\n\n.segment-button[data-active='true'] {\n background-color: var(--sdk-surface5);\n color: var(--sdk-text100);\n}\n\n.segment-button:hover,\n.segment-button[data-focused='true'] {\n background-color: var(--sdk-accentPrimary);\n color: var(--sdk-text500);\n}\n","",{version:3,sources:["webpack://./src/components/molecules/SegmentButton/SegmentButton.styles.css"],names:[],mappings:"AAAA;EACE,eAAe;EACf,6BAA6B;EAC7B,yBAAyB;EACzB,qEAAqE;EACrE,cAAc;EACd,WAAW;EACX,sBAAsB;AACxB;;AAEA;EACE,qCAAqC;EACrC,yBAAyB;AAC3B;;AAEA;;EAEE,0CAA0C;EAC1C,yBAAyB;AAC3B",sourcesContent:[".segment-button {\n padding: 12px 0;\n background-color: transparent;\n color: var(--sdk-text100);\n transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;\n display: block;\n width: 100%;\n box-sizing: border-box;\n}\n\n.segment-button[data-active='true'] {\n background-color: var(--sdk-surface5);\n color: var(--sdk-text100);\n}\n\n.segment-button:hover,\n.segment-button[data-focused='true'] {\n background-color: var(--sdk-accentPrimary);\n color: var(--sdk-text500);\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".hot-props-header {\n text-transform: capitalize;\n}\n\n.hot-props-header > * {\n display: inline-block;\n vertical-align: middle;\n margin-right: 0.5rem;\n}\n\n.hot-props-header > *:last-child {\n margin-right: 0;\n}\n\n.hot-props-title {\n margin-left: 0.25rem;\n font-size: 1.1rem;\n font-weight: 600;\n}\n\n.hot-props-subtitle {\n margin-left: 0.5rem;\n color: var(--sdk-text200);\n font-size: 1rem;\n font-weight: 400;\n}\n\n.hot-props-expand-icon {\n float: right;\n width: 2.25rem;\n height: 2.25rem;\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n}\n\n.hot-props-list > * {\n margin-bottom: 1rem;\n}\n\n.hot-props-list > *:last-child {\n margin-bottom: 0;\n}\n\n.hot-props-list .single-bet {\n background-color: rgba(255, 255, 255, 0.08);\n padding: 24px;\n}\n\n.hot-props-bet-icon {\n margin-right: 1rem;\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n}\n\n.hot-props-footer {\n margin-top: 1rem;\n color: var(--sdk-text100);\n font-weight: 600;\n font-size: 1.1rem;\n}\n\n.hot-props-bet-card .bets-card {\n background-color: var(--sdk-surface3);\n}\n\n.hot-props-bet-card .bets-card .icon-container {\n border-radius: 50%;\n height: 48px;\n width: 48px;\n}\n\n.hot-props-bet-card .bets-card .icon-container[data-focused='true'] {\n background-color: var(--sdk-text100);\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/HotProps/HotPropsView.css"],names:[],mappings:"AAAA;EACE,0BAA0B;AAC5B;;AAEA;EACE,qBAAqB;EACrB,sBAAsB;EACtB,oBAAoB;AACtB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,oBAAoB;EACpB,iBAAiB;EACjB,gBAAgB;AAClB;;AAEA;EACE,mBAAmB;EACnB,yBAAyB;EACzB,eAAe;EACf,gBAAgB;AAClB;;AAEA;EACE,YAAY;EACZ,cAAc;EACd,eAAe;EACf,mBAAmB;EACnB,sBAAsB;EACtB,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,2CAA2C;EAC3C,aAAa;AACf;;AAEA;EACE,kBAAkB;EAClB,mBAAmB;EACnB,sBAAsB;EACtB,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;EAChB,yBAAyB;EACzB,gBAAgB;EAChB,iBAAiB;AACnB;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,kBAAkB;EAClB,YAAY;EACZ,WAAW;AACb;;AAEA;EACE,oCAAoC;AACtC",sourcesContent:[".hot-props-header {\n text-transform: capitalize;\n}\n\n.hot-props-header > * {\n display: inline-block;\n vertical-align: middle;\n margin-right: 0.5rem;\n}\n\n.hot-props-header > *:last-child {\n margin-right: 0;\n}\n\n.hot-props-title {\n margin-left: 0.25rem;\n font-size: 1.1rem;\n font-weight: 600;\n}\n\n.hot-props-subtitle {\n margin-left: 0.5rem;\n color: var(--sdk-text200);\n font-size: 1rem;\n font-weight: 400;\n}\n\n.hot-props-expand-icon {\n float: right;\n width: 2.25rem;\n height: 2.25rem;\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n}\n\n.hot-props-list > * {\n margin-bottom: 1rem;\n}\n\n.hot-props-list > *:last-child {\n margin-bottom: 0;\n}\n\n.hot-props-list .single-bet {\n background-color: rgba(255, 255, 255, 0.08);\n padding: 24px;\n}\n\n.hot-props-bet-icon {\n margin-right: 1rem;\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n}\n\n.hot-props-footer {\n margin-top: 1rem;\n color: var(--sdk-text100);\n font-weight: 600;\n font-size: 1.1rem;\n}\n\n.hot-props-bet-card .bets-card {\n background-color: var(--sdk-surface3);\n}\n\n.hot-props-bet-card .bets-card .icon-container {\n border-radius: 50%;\n height: 48px;\n width: 48px;\n}\n\n.hot-props-bet-card .bets-card .icon-container[data-focused='true'] {\n background-color: var(--sdk-text100);\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".gambling-disclaimer {\n background-color: transparent;\n padding: 0px 24px;\n display: table !important;\n width: 100%;\n}\n\n.gambling-disclaimer svg {\n display: table-cell !important;\n vertical-align: top !important;\n padding-right: 1rem !important;\n width: 32px;\n}\n\n.gambling-disclaimer .gambling-disclaimer-text {\n display: table-cell !important;\n vertical-align: top !important;\n word-wrap: break-word;\n}\n\n.gambling-disclaimer-text {\n color: var(--sdk-text100);\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.styles.css"],names:[],mappings:"AAAA;EACE,6BAA6B;EAC7B,iBAAiB;EACjB,yBAAyB;EACzB,WAAW;AACb;;AAEA;EACE,8BAA8B;EAC9B,8BAA8B;EAC9B,8BAA8B;EAC9B,WAAW;AACb;;AAEA;EACE,8BAA8B;EAC9B,8BAA8B;EAC9B,qBAAqB;AACvB;;AAEA;EACE,yBAAyB;AAC3B",sourcesContent:[".gambling-disclaimer {\n background-color: transparent;\n padding: 0px 24px;\n display: table !important;\n width: 100%;\n}\n\n.gambling-disclaimer svg {\n display: table-cell !important;\n vertical-align: top !important;\n padding-right: 1rem !important;\n width: 32px;\n}\n\n.gambling-disclaimer .gambling-disclaimer-text {\n display: table-cell !important;\n vertical-align: top !important;\n word-wrap: break-word;\n}\n\n.gambling-disclaimer-text {\n color: var(--sdk-text100);\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".location-warning {\n background-color: transparent;\n padding: 0px 24px;\n display: table !important;\n width: 100%;\n}\n\n.location-warning svg {\n display: table-cell !important;\n vertical-align: top !important;\n padding-right: 1rem !important;\n width: 32px;\n}\n\n.location-warning .location-warning-text {\n display: table-cell !important;\n vertical-align: top !important;\n word-wrap: break-word;\n}\n\n.location-warning-text {\n color: var(--sdk-text100);\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/components/LocationWarning/LocationWarning.styles.css"],names:[],mappings:"AAAA;EACE,6BAA6B;EAC7B,iBAAiB;EACjB,yBAAyB;EACzB,WAAW;AACb;;AAEA;EACE,8BAA8B;EAC9B,8BAA8B;EAC9B,8BAA8B;EAC9B,WAAW;AACb;;AAEA;EACE,8BAA8B;EAC9B,8BAA8B;EAC9B,qBAAqB;AACvB;;AAEA;EACE,yBAAyB;AAC3B",sourcesContent:[".location-warning {\n background-color: transparent;\n padding: 0px 24px;\n display: table !important;\n width: 100%;\n}\n\n.location-warning svg {\n display: table-cell !important;\n vertical-align: top !important;\n padding-right: 1rem !important;\n width: 32px;\n}\n\n.location-warning .location-warning-text {\n display: table-cell !important;\n vertical-align: top !important;\n word-wrap: break-word;\n}\n\n.location-warning-text {\n color: var(--sdk-text100);\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".promo-code-banner {\n padding: 24px;\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n border-radius: 10px;\n text-align: center;\n}\n\n.promo-code-banner > * {\n margin-bottom: 32px;\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n\n.promo-code-banner > *:last-child {\n margin-bottom: 0;\n}\n\n.promo-content {\n width: 100%;\n text-align: center;\n}\n\n.promo-content > * {\n margin-bottom: 30px;\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n\n.promo-content > *:last-child {\n margin-bottom: 0;\n}\n\n.promo-logo-container {\n width: 100%;\n max-width: 465px;\n text-align: center;\n margin: 0 auto 2rem auto;\n}\n\n.promo-logo {\n width: 100%;\n max-width: 417px;\n height: 92.78px;\n z-index: 1;\n}\n\n.promo-tagline {\n width: 100%;\n height: 36px;\n text-align: center;\n color: #ffffff;\n}\n\n.promo-action-area {\n padding: 0px;\n width: 100%;\n height: 420px;\n z-index: 3;\n text-align: center;\n}\n\n.promo-action-area > * {\n margin-bottom: 32px;\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n\n.promo-action-area > *:last-child {\n margin-bottom: 0;\n}\n\n.qr-code-container {\n width: 300px;\n height: 300px;\n background: white;\n border-radius: 24px;\n text-align: center;\n display: block;\n margin: 0 auto 2rem auto;\n position: relative;\n}\n\n.qr-code-container .qr-code {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.qr-code {\n width: calc(100% - 20px);\n height: calc(100% - 20px);\n object-fit: contain;\n border-radius: 20px;\n}\n\n.promo-description {\n width: 100%;\n height: 72px;\n text-align: center;\n\n /* Sports System/White */\n color: #ffffff;\n}\n\n/* Responsive adjustments for smaller screens */\n@media (max-width: 768px) {\n .promo-code-banner {\n width: 100%;\n max-width: 568px;\n height: auto;\n min-height: 500px;\n padding: 24px;\n }\n\n .promo-content {\n width: 100%;\n height: auto;\n }\n\n .promo-logo-container {\n width: 100%;\n max-width: 400px;\n height: auto;\n padding: 16px;\n }\n\n .promo-logo {\n width: 100%;\n max-width: 350px;\n height: auto;\n }\n\n .promo-tagline {\n width: 100%;\n font-size: 24px;\n line-height: 32px;\n }\n\n .promo-action-area {\n width: 100%;\n }\n\n .qr-code-container {\n width: 250px;\n height: 250px;\n padding: 40px;\n }\n\n .promo-description {\n width: 100%;\n font-size: 24px;\n line-height: 32px;\n }\n}\n","",{version:3,sources:["webpack://./src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.styles.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,sBAAsB;EACtB,2BAA2B;EAC3B,4BAA4B;EAC5B,mBAAmB;EACnB,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;EACnB,cAAc;EACd,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,WAAW;EACX,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;EACnB,cAAc;EACd,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,WAAW;EACX,gBAAgB;EAChB,kBAAkB;EAClB,wBAAwB;AAC1B;;AAEA;EACE,WAAW;EACX,gBAAgB;EAChB,eAAe;EACf,UAAU;AACZ;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,cAAc;AAChB;;AAEA;EACE,YAAY;EACZ,WAAW;EACX,aAAa;EACb,UAAU;EACV,kBAAkB;AACpB;;AAEA;EACE,mBAAmB;EACnB,cAAc;EACd,iBAAiB;EACjB,kBAAkB;AACpB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,YAAY;EACZ,aAAa;EACb,iBAAiB;EACjB,mBAAmB;EACnB,kBAAkB;EAClB,cAAc;EACd,wBAAwB;EACxB,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT,gCAAgC;AAClC;;AAEA;EACE,wBAAwB;EACxB,yBAAyB;EACzB,mBAAmB;EACnB,mBAAmB;AACrB;;AAEA;EACE,WAAW;EACX,YAAY;EACZ,kBAAkB;;EAElB,wBAAwB;EACxB,cAAc;AAChB;;AAEA,+CAA+C;AAC/C;EACE;IACE,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,iBAAiB;IACjB,aAAa;EACf;;EAEA;IACE,WAAW;IACX,YAAY;EACd;;EAEA;IACE,WAAW;IACX,gBAAgB;IAChB,YAAY;IACZ,aAAa;EACf;;EAEA;IACE,WAAW;IACX,gBAAgB;IAChB,YAAY;EACd;;EAEA;IACE,WAAW;IACX,eAAe;IACf,iBAAiB;EACnB;;EAEA;IACE,WAAW;EACb;;EAEA;IACE,YAAY;IACZ,aAAa;IACb,aAAa;EACf;;EAEA;IACE,WAAW;IACX,eAAe;IACf,iBAAiB;EACnB;AACF",sourcesContent:[".promo-code-banner {\n padding: 24px;\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n border-radius: 10px;\n text-align: center;\n}\n\n.promo-code-banner > * {\n margin-bottom: 32px;\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n\n.promo-code-banner > *:last-child {\n margin-bottom: 0;\n}\n\n.promo-content {\n width: 100%;\n text-align: center;\n}\n\n.promo-content > * {\n margin-bottom: 30px;\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n\n.promo-content > *:last-child {\n margin-bottom: 0;\n}\n\n.promo-logo-container {\n width: 100%;\n max-width: 465px;\n text-align: center;\n margin: 0 auto 2rem auto;\n}\n\n.promo-logo {\n width: 100%;\n max-width: 417px;\n height: 92.78px;\n z-index: 1;\n}\n\n.promo-tagline {\n width: 100%;\n height: 36px;\n text-align: center;\n color: #ffffff;\n}\n\n.promo-action-area {\n padding: 0px;\n width: 100%;\n height: 420px;\n z-index: 3;\n text-align: center;\n}\n\n.promo-action-area > * {\n margin-bottom: 32px;\n display: block;\n margin-left: auto;\n margin-right: auto;\n}\n\n.promo-action-area > *:last-child {\n margin-bottom: 0;\n}\n\n.qr-code-container {\n width: 300px;\n height: 300px;\n background: white;\n border-radius: 24px;\n text-align: center;\n display: block;\n margin: 0 auto 2rem auto;\n position: relative;\n}\n\n.qr-code-container .qr-code {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.qr-code {\n width: calc(100% - 20px);\n height: calc(100% - 20px);\n object-fit: contain;\n border-radius: 20px;\n}\n\n.promo-description {\n width: 100%;\n height: 72px;\n text-align: center;\n\n /* Sports System/White */\n color: #ffffff;\n}\n\n/* Responsive adjustments for smaller screens */\n@media (max-width: 768px) {\n .promo-code-banner {\n width: 100%;\n max-width: 568px;\n height: auto;\n min-height: 500px;\n padding: 24px;\n }\n\n .promo-content {\n width: 100%;\n height: auto;\n }\n\n .promo-logo-container {\n width: 100%;\n max-width: 400px;\n height: auto;\n padding: 16px;\n }\n\n .promo-logo {\n width: 100%;\n max-width: 350px;\n height: auto;\n }\n\n .promo-tagline {\n width: 100%;\n font-size: 24px;\n line-height: 32px;\n }\n\n .promo-action-area {\n width: 100%;\n }\n\n .qr-code-container {\n width: 250px;\n height: 250px;\n padding: 40px;\n }\n\n .promo-description {\n width: 100%;\n font-size: 24px;\n line-height: 32px;\n }\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".panel-navigation {\n width: 100%;\n display: table;\n table-layout: fixed;\n border-spacing: 12px 0;\n}\n\n.panel-navigation > * {\n display: table-cell !important;\n vertical-align: middle;\n width: 25%;\n}\n\n.panel-navigation .panel-nav-button-container {\n display: table-cell !important;\n width: 100%;\n}\n\n.panel-navigation .panel-nav-button-container button {\n width: 100% !important;\n min-width: auto !important;\n}\n","",{version:3,sources:["webpack://./src/components/organisms/PanelNavigation/PanelNavigation.styles.css"],names:[],mappings:"AAAA;EACE,WAAW;EACX,cAAc;EACd,mBAAmB;EACnB,sBAAsB;AACxB;;AAEA;EACE,8BAA8B;EAC9B,sBAAsB;EACtB,UAAU;AACZ;;AAEA;EACE,8BAA8B;EAC9B,WAAW;AACb;;AAEA;EACE,sBAAsB;EACtB,0BAA0B;AAC5B",sourcesContent:[".panel-navigation {\n width: 100%;\n display: table;\n table-layout: fixed;\n border-spacing: 12px 0;\n}\n\n.panel-navigation > * {\n display: table-cell !important;\n vertical-align: middle;\n width: 25%;\n}\n\n.panel-navigation .panel-nav-button-container {\n display: table-cell !important;\n width: 100%;\n}\n\n.panel-navigation .panel-nav-button-container button {\n width: 100% !important;\n min-width: auto !important;\n}\n"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(3),o=n.n(a)()(i.a);o.push([e.i,".panel-nav-button-container {\n display: block;\n text-align: center;\n color: var(--sdk-text300);\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 min-width: 6.5rem;\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n margin-bottom: 0.625rem;\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}\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","",{version:3,sources:["webpack://./src/components/molecules/PanelNavButton/PanelNavButton.styles.css"],names:[],mappings:"AAAA;EACE,cAAc;EACd,kBAAkB;EAClB,yBAAyB;AAC3B;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,mCAAmC;AACrC;;AAEA;EACE,cAAc;EACd,qCAAqC;EACrC,iBAAiB;;EAEjB,qEAAqE;EACrE,uBAAuB;AACzB;;AAEA;;;EAGE,yBAAyB;AAC3B;;AAEA;;EAEE,kCAAkC;AACpC;;AAEA;;EAEE,0CAA0C;AAC5C;;AAEA;EACE,qCAAqC;AACvC;;AAEA;EACE,iCAAiC;AACnC",sourcesContent:[".panel-nav-button-container {\n display: block;\n text-align: center;\n color: var(--sdk-text300);\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 min-width: 6.5rem;\n\n transition: background-color 0.2s ease-in-out, color 0.3s ease-in-out;\n margin-bottom: 0.625rem;\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}\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"],sourceRoot:""}]),t.a=o},function(e,t,n){"use strict";var r=n(12),i=n(8),a=n.n(i),o=n(0),s=n(9);function l(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 c=()=>{};t.a=({forgetLastFocusedChild:e=!1,trackChildren:t=!1,autoRestoreFocus:n,blockNavigationOut:i=!1}={})=>u=>{var d;return d=class extends o.Component{constructor(...e){var t;super(...e),l(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||s.a}),l(this,"setFocus",e=>{s.b.isNativeMode()||s.b.setFocus(e)}),l(this,"navigateByDirection",s.b.navigateByDirection),l(this,"stealFocus",()=>{s.b.setFocus(this.state.realFocusKey,{focusKey:this.state.realFocusKey})}),l(this,"onUpdateFocus",e=>{this.setState({focused:e})}),l(this,"onUpdateHasFocusedChild",e=>{this.setState({hasFocusedChild:e})}),l(this,"onEnterPressHandler",e=>{const{onEnterPress:t=c,...n}=this.props;t(n,e)}),l(this,"onEnterReleaseHandler",()=>{const{onEnterRelease:e=c,...t}=this.props;e(t)}),l(this,"onBackPressHandler",e=>{const{onBackPress:t=c,...n}=this.props;t(n,e)}),l(this,"onArrowPressHandler",(e,t)=>{const{onArrowPress:n=c,...r}=this.props;return n(e,r,t)}),l(this,"onBecameFocusedHandler",(e,t)=>{const{onBecameFocused:n=c,...r}=this.props;n(e,r,t)}),l(this,"onBecameBlurredHandler",(e,t)=>{const{onBecameBlurred:n=c,...r}=this.props;n(e,r,t)})}getChildContext(){return{parentFocusKey:this.state.realFocusKey}}componentDidMount(){const{realFocusKey:a,parentFocusKey:o}=this.state,{preferredChildFocusKey:l,forgetLastFocusedChild:c=!1,trackChildren:u,focusable:d=!0,autoRestoreFocus:h=!0,blockNavigationOut:p=!1}=this.props;let f;if(s.b.isNativeMode())f=document.createElement("div");else{const e=Object(r.findDOMNode)(this);if(!e)throw new Error("Could not find DOM node");f=e}s.b.addFocusable({focusKey:a,node:f,parentFocusKey:o,preferredChildFocusKey:l,onEnterPressHandler:this.onEnterPressHandler,onEnterReleaseHandler:this.onEnterReleaseHandler,onBackPressHandler:this.onBackPressHandler,onArrowPressHandler:this.onArrowPressHandler,onBecameFocusedHandler:this.onBecameFocusedHandler,onBecameBlurredHandler:this.onBecameBlurredHandler,onUpdateFocus:this.onUpdateFocus,onUpdateHasFocusedChild:this.onUpdateHasFocusedChild,forgetLastFocusedChild:e||c,trackChildren:t||u,blockNavigationOut:i||p,autoRestoreFocus:void 0!==n?n:h,focusable:d})}componentDidUpdate(){const{realFocusKey:e}=this.state,{preferredChildFocusKey:t,focusable:n=!0,blockNavigationOut:a=!1}=this.props;let o;if(s.b.isNativeMode())o=document.createElement("div");else{const e=Object(r.findDOMNode)(this);if(!e)throw new Error("Could not find DOM node");o=e}s.b.updateFocusable(e,{node:o,preferredChildFocusKey:t,focusable:n,blockNavigationOut:i||a})}componentWillUnmount(){const{realFocusKey:e}=this.state;s.b.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","onEnterReleaseHandler","onArrowPressHandler","onUpdateFocus","onUpdateHasFocusedChild","forgetLastFocusedChild","trackChildren","autoRestoreFocus"]);return Object(o.createElement)(u,e)}},l(d,"contextTypes",{parentFocusKey:a.a.string}),l(d,"childContextTypes",{parentFocusKey:a.a.string}),d}},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(7);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 a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];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)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}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(7);e.exports=function(e,n){n=n||new FormData;var i=[];function a(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,o){if(r.isPlainObject(t)||r.isArray(t)){if(-1!==i.indexOf(t))throw Error("Circular reference detected in "+o);i.push(t),r.forEach(t,(function(t,i){if(!r.isUndefined(t)){var s,l=o?o+"."+i:i;if(t&&!o&&"object"==typeof t)if(r.endsWith(i,"{}"))t=JSON.stringify(t);else if(r.endsWith(i,"[]")&&(s=r.toArray(t)))return void s.forEach((function(e){!r.isUndefined(e)&&n.append(l,a(e))}));e(t,l)}})),i.pop()}else n.append(o,a(t))}(e),n}}).call(this,n(63).Buffer)},function(e,t,n){"use strict";var r=n(7),i=n(68),a=n(69),o=n(44),s=n(48),l=n(72),c=n(73),u=n(45),d=n(11),h=n(13),p=n(74);e.exports=function(e){return new Promise((function(t,n){var f,m=e.data,A=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete A["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";A.Authorization="Basic "+btoa(y+":"+E)}var w=s(e.baseURL,e.url);function C(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,a={data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),v()}),(function(e){n(e),v()}),a),b=null}}if(b.open(e.method.toUpperCase(),o(w,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 d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.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 d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var B=(e.withCredentials||c(w))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;B&&(A[e.xsrfHeaderName]=B)}"setRequestHeader"in b&&r.forEach(A,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete A[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(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)&&(f=function(e){b&&(n(!e||e&&e.type?new h:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),m||(m=null);var k=p(w);k&&-1===["http","https","file"].indexOf(k)?n(new d("Unsupported protocol "+k+":",d.ERR_BAD_REQUEST,e)):b.send(m)}))}},function(e,t,n){"use strict";var r=n(70),i=n(71);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(7);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 a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function o(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(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:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||a,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){var r;r=()=>(()=>{"use strict";var e=[,(e,t,n)=>{var r;n.r(t),n.d(t,{default:()=>i});const i=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e={}){var t,n,i=e;function a(){function e(e){const a=r;n=t=0,r=new Map,a.forEach(t=>{try{t(e)}catch(e){console.error(e)}}),this.pb(),i&&i.Tb()}let t=0,n=0,r=new Map,i=null,a=null;this.requestAnimationFrame=function(i){t||(t=requestAnimationFrame(e.bind(this)));const a=++n;return r.set(a,i),a},this.cancelAnimationFrame=function(e){r.delete(e),t&&0==r.size&&(cancelAnimationFrame(t),t=0)},this.Rb=function(e){a&&(document.body.remove(a),a=null),e||(a=document.createElement("div"),a.style.backgroundColor="black",a.style.position="fixed",a.style.right=0,a.style.top=0,a.style.color="white",a.style.padding="4px",a.innerHTML="RIVE FPS",e=function(e){a.innerHTML="RIVE FPS "+e.toFixed(1)},document.body.appendChild(a)),i=new function(){let t=0,n=0;this.Tb=function(){var r=performance.now();n?(++t,1e3<(r-=n)&&(e(1e3*t/r),t=n=0)):(n=r,t=0)}}},this.Ob=function(){a&&(document.body.remove(a),a=null),i=null},this.pb=function(){}}function o(e){console.assert(!0);const t=new Map;let n=-1/0;this.push=function(r){return r=r+((1<<e)-1)>>e,t.has(r)&&clearTimeout(t.get(r)),t.set(r,setTimeout((function(){t.delete(r),0==t.length?n=-1/0:r==n&&(n=Math.max(...t.keys()),console.assert(n<r))}),1e3)),n=Math.max(r,n),n<<e}}i.ready=new Promise((e,r)=>{t=e,n=r});const s=i.onRuntimeInitialized;i.onRuntimeInitialized=function(){s&&s();let e=i.decodeAudio;i.decodeAudio=function(t,n){n(t=e(t))};let t=i.decodeFont;i.decodeFont=function(e,n){n(e=t(e))};const n=i.FileAssetLoader;i.ptrToAsset=e=>{let t=i.ptrToFileAsset(e);return t.isImage?i.ptrToImageAsset(e):t.isFont?i.ptrToFontAsset(e):t.isAudio?i.ptrToAudioAsset(e):t},i.CustomFileAssetLoader=n.extend("CustomFileAssetLoader",{__construct:function({loadContents:e}){this.__parent.__construct.call(this),this.Gb=e},loadContents:function(e,t){return e=i.ptrToAsset(e),this.Gb(e,t)}}),i.CDNFileAssetLoader=n.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(e){let t=i.ptrToAsset(e);return""!==(e=t.cdnUuid)&&(n=t.cdnBaseUrl+"/"+e,(r=new XMLHttpRequest).responseType="arraybuffer",r.onreadystatechange=function(){4==r.readyState&&200==r.status&&(e=>{t.decode(new Uint8Array(e.response))})(r)},r.open("GET",n,!0),r.send(null),!0);var n,r}}),i.FallbackFileAssetLoader=n.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.lb=[]},addLoader:function(e){this.lb.push(e)},loadContents:function(e,t){for(let n of this.lb)if(n.loadContents(e,t))return!0;return!1}});let r=i.computeAlignment;i.computeAlignment=function(e,t,n,i,a=1){return r.call(this,e,t,n,i,a)}};const l="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),c=new function(){function e(){if(!t){var e=document.createElement("canvas"),o={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let l;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(l=e.getContext("webgl",o),n=1,!l)return console.log("No WebGL support. Image mesh will not be drawn."),!1}else if(l=e.getContext("webgl2",o))n=2;else{if(!(l=e.getContext("webgl",o)))return console.log("No WebGL support. Image mesh will not be drawn."),!1;n=1}function s(e,t,n){if(t=l.createShader(t),l.shaderSource(t,n),l.compileShader(t),0<((n=l.getShaderInfoLog(t))||"").length)throw n;l.attachShader(e,t)}if(l=new Proxy(l,{get:(e,t)=>e.isContextLost()?(c||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",t),c=!0),"function"==typeof e[t]?function(){}:void 0):"function"==typeof e[t]?function(...n){return e[t].apply(e,n)}:e[t],set(e,t,n){if(!e.isContextLost())return e[t]=n,!0;c||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+t),c=!0)}}),r=Math.min(l.getParameter(l.MAX_RENDERBUFFER_SIZE),l.getParameter(l.MAX_TEXTURE_SIZE)),s(e=l.createProgram(),l.VERTEX_SHADER,"attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }"),s(e,l.FRAGMENT_SHADER,"precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }"),l.bindAttribLocation(e,0,"vertex"),l.bindAttribLocation(e,1,"uv"),l.linkProgram(e),0<((o=l.getProgramInfoLog(e))||"").trim().length)throw o;i=l.getUniformLocation(e,"mat"),a=l.getUniformLocation(e,"translate"),l.useProgram(e),l.bindBuffer(l.ARRAY_BUFFER,l.createBuffer()),l.enableVertexAttribArray(0),l.enableVertexAttribArray(1),l.bindBuffer(l.ELEMENT_ARRAY_BUFFER,l.createBuffer()),l.uniform1i(l.getUniformLocation(e,"image"),0),l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),t=l}return!0}let t=null,n=0,r=0,i=null,a=null,s=0,l=0,c=!1;e(),this.hc=function(){return e(),r},this.Mb=function(e){t.deleteTexture&&t.deleteTexture(e)},this.Lb=function(r){if(!e())return null;const i=t.createTexture();return i?(t.bindTexture(t.TEXTURE_2D,i),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),2==n?(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_LINEAR),t.generateMipmap(t.TEXTURE_2D)):t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),i):null};const u=new o(8),d=new o(8),h=new o(10),p=new o(10);this.Qb=function(n,r,o,c,f){if(e()){var m=u.push(n),A=d.push(r);if(t.canvas){for(var g of(t.canvas.width==m&&t.canvas.height==A||(t.canvas.width=m,t.canvas.height=A),t.viewport(0,A-r,n,r),t.disable(t.SCISSOR_TEST),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.enable(t.SCISSOR_TEST),o.sort((e,t)=>t.xb-e.xb),m=h.push(c),s!=m&&(t.bufferData(t.ARRAY_BUFFER,8*m,t.DYNAMIC_DRAW),s=m),m=0,o))t.bufferSubData(t.ARRAY_BUFFER,m,g.Ua),m+=4*g.Ua.length;for(var v of(console.assert(m==4*c),o))t.bufferSubData(t.ARRAY_BUFFER,m,v.Db),m+=4*v.Db.length;for(var b of(console.assert(m==8*c),m=p.push(f),l!=m&&(t.bufferData(t.ELEMENT_ARRAY_BUFFER,2*m,t.DYNAMIC_DRAW),l=m),g=0,o))t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,g,b.indices),g+=2*b.indices.length;console.assert(g==2*f),b=0,v=!0,m=g=0;for(const e of o){e.image.Ka!=b&&(t.bindTexture(t.TEXTURE_2D,e.image.Ja||null),b=e.image.Ka),e.mc?(t.scissor(e.Za,A-e.$a-e.kb,e.Ac,e.kb),v=!0):v&&(t.scissor(0,A-r,n,r),v=!1),o=2/n;const s=-2/r;t.uniform4f(i,e.ha[0]*o*e.Ba,e.ha[1]*s*e.Ca,e.ha[2]*o*e.Ba,e.ha[3]*s*e.Ca),t.uniform2f(a,e.ha[4]*o*e.Ba+o*(e.Za-e.ic*e.Ba)-1,e.ha[5]*s*e.Ca+s*(e.$a-e.jc*e.Ca)+1),t.vertexAttribPointer(0,2,t.FLOAT,!1,0,m),t.vertexAttribPointer(1,2,t.FLOAT,!1,0,m+4*c),t.drawElements(t.TRIANGLES,e.indices.length,t.UNSIGNED_SHORT,g),m+=4*e.Ua.length,g+=2*e.indices.length}console.assert(m==4*c),console.assert(g==2*f)}}},this.canvas=function(){return e()&&t.canvas}},u=i.onRuntimeInitialized;i.onRuntimeInitialized=function(){function e(e){switch(e){case f.srcOver:return"source-over";case f.screen:return"screen";case f.overlay:return"overlay";case f.darken:return"darken";case f.lighten:return"lighten";case f.colorDodge:return"color-dodge";case f.colorBurn:return"color-burn";case f.hardLight:return"hard-light";case f.softLight:return"soft-light";case f.difference:return"difference";case f.exclusion:return"exclusion";case f.multiply:return"multiply";case f.hue:return"hue";case f.saturation:return"saturation";case f.color:return"color";case f.luminosity:return"luminosity"}}function t(e){return"rgba("+((16711680&e)>>>16)+","+((65280&e)>>>8)+","+((255&e)>>>0)+","+((4278190080&e)>>>24)/255+")"}function n(){0<B.length&&(c.Qb(C.drawWidth(),C.drawHeight(),B,k,P),B=[],P=k=0,C.reset(512,512));for(const e of w){for(const t of e.H)t();e.H=[]}w.clear()}u&&u();var r=i.RenderPaintStyle;const o=i.RenderPath,s=i.RenderPaint,d=i.Renderer,h=i.StrokeCap,p=i.StrokeJoin,f=i.BlendMode,m=r.fill,A=r.stroke,g=i.FillRule.evenOdd;let v=1;var b=i.RenderImage.extend("CanvasRenderImage",{__construct:function({la:e,xa:t}={}){this.__parent.__construct.call(this),this.Ka=v,v=v+1&2147483647||1,this.la=e,this.xa=t},__destruct:function(){this.Ja&&(c.Mb(this.Ja),URL.revokeObjectURL(this.Xa)),this.__parent.__destruct.call(this)},decode:function(e){var t=this;t.xa&&t.xa(t);var n=new Image;t.Xa=URL.createObjectURL(new Blob([e],{type:"image/png"})),n.onload=function(){t.Fb=n,t.Ja=c.Lb(n),t.size(n.width,n.height),t.la&&t.la(t)},n.src=t.Xa}}),y=o.extend("CanvasRenderPath",{__construct:function(){this.__parent.__construct.call(this),this.T=new Path2D},rewind:function(){this.T=new Path2D},addPath:function(e,t,n,r,i,a,o){var s=this.T,l=s.addPath;e=e.T;const c=new DOMMatrix;c.a=t,c.b=n,c.c=r,c.d=i,c.e=a,c.f=o,l.call(s,e,c)},fillRule:function(e){this.Wa=e},moveTo:function(e,t){this.T.moveTo(e,t)},lineTo:function(e,t){this.T.lineTo(e,t)},cubicTo:function(e,t,n,r,i,a){this.T.bezierCurveTo(e,t,n,r,i,a)},close:function(){this.T.closePath()}}),E=s.extend("CanvasRenderPaint",{color:function(e){this.Ya=t(e)},thickness:function(e){this.Ib=e},join:function(e){switch(e){case p.miter:this.Ia="miter";break;case p.round:this.Ia="round";break;case p.bevel:this.Ia="bevel"}},cap:function(e){switch(e){case h.butt:this.Ha="butt";break;case h.round:this.Ha="round";break;case h.square:this.Ha="square"}},style:function(e){this.Hb=e},blendMode:function(t){this.Eb=e(t)},clearGradient:function(){this.ja=null},linearGradient:function(e,t,n,r){this.ja={zb:e,Ab:t,cb:n,eb:r,Ra:[]}},radialGradient:function(e,t,n,r){this.ja={zb:e,Ab:t,cb:n,eb:r,Ra:[],ec:!0}},addStop:function(e,t){this.ja.Ra.push({color:e,stop:t})},completeGradient:function(){},draw:function(e,n,r){let i=this.Hb;var a=this.Ya,o=this.ja;if(e.globalCompositeOperation=this.Eb,null!=o){a=o.zb;var s=o.Ab;const n=o.cb;var l=o.eb;const r=o.Ra;o.ec?(o=n-a,l-=s,a=e.createRadialGradient(a,s,0,a,s,Math.sqrt(o*o+l*l))):a=e.createLinearGradient(a,s,n,l);for(let e=0,n=r.length;e<n;e++)s=r[e],a.addColorStop(s.stop,t(s.color));this.Ya=a,this.ja=null}switch(i){case A:e.strokeStyle=a,e.lineWidth=this.Ib,e.lineCap=this.Ha,e.lineJoin=this.Ia,e.stroke(n);break;case m:e.fillStyle=a,e.fill(n,r)}}});const w=new Set;let C=null,B=[],k=0,P=0;var x=i.CanvasRenderer=d.extend("Renderer",{__construct:function(e){this.__parent.__construct.call(this),this.S=[1,0,0,1,0,0],this.C=e.getContext("2d"),this.Va=e,this.H=[]},save:function(){this.S.push(...this.S.slice(this.S.length-6)),this.H.push(this.C.save.bind(this.C))},restore:function(){const e=this.S.length-6;if(6>e)throw"restore() called without matching save().";this.S.splice(e),this.H.push(this.C.restore.bind(this.C))},transform:function(e,t,n,r,i,a){const o=this.S,s=o.length-6;o.splice(s,6,o[s]*e+o[s+2]*t,o[s+1]*e+o[s+3]*t,o[s]*n+o[s+2]*r,o[s+1]*n+o[s+3]*r,o[s]*i+o[s+2]*a+o[s+4],o[s+1]*i+o[s+3]*a+o[s+5]),this.H.push(this.C.transform.bind(this.C,e,t,n,r,i,a))},rotate:function(e){const t=Math.sin(e);e=Math.cos(e),this.transform(e,t,-t,e,0,0)},_drawPath:function(e,t){this.H.push(t.draw.bind(t,this.C,e.T,e.Wa===g?"evenodd":"nonzero"))},_drawRiveImage:function(t,n,r,i){var a=t.Fb;if(a){var o=this.C,s=e(r);this.H.push((function(){o.globalCompositeOperation=s,o.globalAlpha=i,o.drawImage(a,0,0),o.globalAlpha=1}))}},_getMatrix:function(e){const t=this.S,n=t.length-6;for(let r=0;6>r;++r)e[r]=t[n+r]},_drawImageMesh:function(t,r,a,o,s,l,u,d,h,p,f){r=this.C.canvas.width;var m=this.C.canvas.height;const A=p-d,g=f-h;d=Math.max(d,0),h=Math.max(h,0),p=Math.min(p,r),f=Math.min(f,m);const v=p-d,b=f-h;if(console.assert(v<=Math.min(A,r)),console.assert(b<=Math.min(g,m)),!(0>=v||0>=b)){p=v<A||b<g,r=f=1;var y=Math.ceil(v*f),E=Math.ceil(b*r);m=c.hc(),y>m&&(f*=m/y,y=m),E>m&&(r*=m/E,E=m),C||(C=new i.DynamicRectanizer(m),C.reset(512,512)),0>(m=C.addRect(y,E))&&(n(),w.add(this),m=C.addRect(y,E),console.assert(0<=m));var x=65535&m,_=m>>16;B.push({ha:this.S.slice(this.S.length-6),image:t,Za:x,$a:_,ic:d,jc:h,Ac:y,kb:E,Ba:f,Ca:r,Ua:new Float32Array(s),Db:new Float32Array(l),indices:new Uint16Array(u),mc:p,xb:t.Ka<<1|(p?1:0)}),k+=s.length,P+=u.length;var T=this.C,S=e(a);this.H.push((function(){T.save(),T.resetTransform(),T.globalCompositeOperation=S,T.globalAlpha=o;const e=c.canvas();e&&T.drawImage(e,x,_,y,E,d,h,v,b),T.restore()}))}},_clipPath:function(e){this.H.push(this.C.clip.bind(this.C,e.T,e.Wa===g?"evenodd":"nonzero"))},clear:function(){w.add(this),this.H.push(this.C.clearRect.bind(this.C,0,0,this.Va.width,this.Va.height))},flush:function(){},translate:function(e,t){this.transform(1,0,0,1,e,t)}});i.makeRenderer=function(e){const t=new x(e),n=t.C;return new Proxy(t,{get(e,r){if("function"==typeof e[r])return function(...t){return e[r].apply(e,t)};if("function"==typeof n[r]){if(-1<l.indexOf(r))throw Error("RiveException: Method call to '"+r+"()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");return function(...e){t.H.push(n[r].bind(n,...e))}}return e[r]},set(e,r,i){if(r in n)return t.H.push(()=>{n[r]=i}),!0}})},i.decodeImage=function(e,t){new b({la:t}).decode(e)},i.renderFactory={makeRenderPaint:function(){return new E},makeRenderPath:function(){return new y},makeRenderImage:function(){let e=T;return new b({xa:()=>{e.total++},la:()=>{if(e.loaded++,e.loaded===e.total){const t=e.ready;t&&(t(),e.ready=null)}}})}};let _=i.load,T=null;i.load=function(e,t,n=!0){const r=new i.FallbackFileAssetLoader;return void 0!==t&&r.addLoader(t),n&&(t=new i.CDNFileAssetLoader,r.addLoader(t)),new Promise((function(t){let n=null;T={total:0,loaded:0,ready:function(){t(n)}},n=_(e,r),0==T.total&&t(n)}))};let S=i.RendererWrapper.prototype.align;i.RendererWrapper.prototype.align=function(e,t,n,r,i=1){S.call(this,e,t,n,r,i)},r=new a,i.requestAnimationFrame=r.requestAnimationFrame.bind(r),i.cancelAnimationFrame=r.cancelAnimationFrame.bind(r),i.enableFPSCounter=r.Rb.bind(r),i.disableFPSCounter=r.Ob,r.pb=n,i.resolveAnimationFrame=n,i.cleanup=function(){C&&C.delete()}};var d,h,p=Object.assign({},i),f="./this.program",m="object"==typeof window,A="function"==typeof importScripts,g="";(m||A)&&(A?g=self.location.href:"undefined"!=typeof document&&document.currentScript&&(g=document.currentScript.src),r&&(g=r),g=0!==g.indexOf("blob:")?g.substr(0,g.replace(/[?#].*/,"").lastIndexOf("/")+1):"",A&&(h=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),d=(e,t,n)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)});var v,b=i.print||console.log.bind(console),y=i.printErr||console.error.bind(console);Object.assign(i,p),p=null,i.thisProgram&&(f=i.thisProgram),i.wasmBinary&&(v=i.wasmBinary),i.noExitRuntime,"object"!=typeof WebAssembly&&H("no native wasm support detected");var E,w,C,B,k,P,x,_,T,S,I=!1;function R(){var e=E.buffer;i.HEAP8=C=new Int8Array(e),i.HEAP16=k=new Int16Array(e),i.HEAP32=x=new Int32Array(e),i.HEAPU8=B=new Uint8Array(e),i.HEAPU16=P=new Uint16Array(e),i.HEAPU32=_=new Uint32Array(e),i.HEAPF32=T=new Float32Array(e),i.HEAPF64=S=new Float64Array(e)}var M,F=[],L=[],O=[];function N(){var e=i.preRun.shift();F.unshift(e)}var j,D=0,U=null,W=null;function H(e){throw i.onAbort&&i.onAbort(e),y(e="Aborted("+e+")"),I=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),n(e),e}function V(e){return e.startsWith("data:application/octet-stream;base64,")}if(!V(j="canvas_advanced.wasm")){var z=j;j=i.locateFile?i.locateFile(z,g):g+z}function K(e){if(e==j&&v)return new Uint8Array(v);if(h)return h(e);throw"both async and sync fetching of the wasm failed"}function q(e,t,n){return function(e){if(!v&&(m||A)){if("function"==typeof fetch&&!e.startsWith("file://"))return fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()}).catch(()=>K(e));if(d)return new Promise((t,n)=>{d(e,e=>t(new Uint8Array(e)),n)})}return Promise.resolve().then(()=>K(e))}(e).then(e=>WebAssembly.instantiate(e,t)).then(e=>e).then(n,e=>{y("failed to asynchronously prepare wasm: "+e),H(e)})}var Y,X,G={456380:(e,t,n,r,i)=>{if("undefined"==typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if(void 0===window.h){window.h={Aa:0},window.h.I={},window.h.I.ya=e,window.h.I.capture=t,window.h.I.La=n,window.h.ga={},window.h.ga.stopped=r,window.h.ga.yb=i;let a=window.h;a.D=[],a.yc=function(e){for(var t=0;t<a.D.length;++t)if(null==a.D[t])return a.D[t]=e,t;return a.D.push(e),a.D.length-1},a.Cb=function(e){for(a.D[e]=null;0<a.D.length&&null==a.D[a.D.length-1];)a.D.pop()},a.Sc=function(e){for(var t=0;t<a.D.length;++t)if(a.D[t]==e)return a.Cb(t)},a.ra=function(e){return a.D[e]},a.Ta=["touchend","click"],a.unlock=function(){for(var e=0;e<a.D.length;++e){var t=a.D[e];null!=t&&null!=t.J&&t.state===a.ga.yb&&t.J.resume().then(()=>{Sn(t.qb)},e=>{console.error("Failed to resume audiocontext",e)})}a.Ta.map((function(e){document.removeEventListener(e,a.unlock,!0)}))},a.Ta.map((function(e){document.addEventListener(e,a.unlock,!0)}))}return window.h.Aa+=1,1},458558:()=>{void 0!==window.h&&(window.h.Ta.map((function(e){document.removeEventListener(e,window.h.unlock,!0)})),--window.h.Aa,0===window.h.Aa&&delete window.h)},458862:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,458966:()=>{try{var e=new(window.AudioContext||window.webkitAudioContext),t=e.sampleRate;return e.close(),t}catch(e){return 0}},459137:(e,t,n,r,i,a)=>{if(void 0===window.h)return-1;var o={},s={};return e==window.h.I.ya&&0!=n&&(s.sampleRate=n),o.J=new(window.AudioContext||window.webkitAudioContext)(s),o.J.suspend(),o.state=window.h.ga.stopped,n=0,e!=window.h.I.ya&&(n=t),o.Z=o.J.createScriptProcessor(r,n,t),o.Z.onaudioprocess=function(n){if(null!=o.sa&&0!=o.sa.length||(o.sa=new Float32Array(T.buffer,i,r*t)),e==window.h.I.capture||e==window.h.I.La){for(var s=0;s<t;s+=1)for(var l=n.inputBuffer.getChannelData(s),c=o.sa,u=0;u<r;u+=1)c[u*t+s]=l[u];Rn(a,r,i)}if(e==window.h.I.ya||e==window.h.I.La)for(Mn(a,r,i),s=0;s<n.outputBuffer.numberOfChannels;++s)for(l=n.outputBuffer.getChannelData(s),c=o.sa,u=0;u<r;u+=1)l[u]=c[u*t+s];else for(s=0;s<n.outputBuffer.numberOfChannels;++s)n.outputBuffer.getChannelData(s).fill(0)},e!=window.h.I.capture&&e!=window.h.I.La||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then((function(e){o.Da=o.J.createMediaStreamSource(e),o.Da.connect(o.Z),o.Z.connect(o.J.destination)})).catch((function(e){console.log("Failed to get user media: "+e)})),e==window.h.I.ya&&o.Z.connect(o.J.destination),o.qb=a,window.h.yc(o)},462014:e=>window.h.ra(e).J.sampleRate,462087:e=>{void 0!==(e=window.h.ra(e)).Z&&(e.Z.onaudioprocess=function(){},e.Z.disconnect(),e.Z=void 0),void 0!==e.Da&&(e.Da.disconnect(),e.Da=void 0),e.J.close(),e.J=void 0,e.qb=void 0},462487:e=>{window.h.Cb(e)},462537:e=>{(e=window.h.ra(e)).J.resume(),e.state=window.h.ga.yb},462676:e=>{(e=window.h.ra(e)).J.suspend(),e.state=window.h.ga.stopped}},Q=e=>{for(;0<e.length;)e.shift()(i)},Z=(e,t)=>{for(var n=0,r=e.length-1;0<=r;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n;n--)e.unshift("..");return e},$=e=>{var t="/"===e.charAt(0),n="/"===e.substr(-1);return(e=Z(e.split("/").filter(e=>!!e),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},J=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&(t=t.substr(0,t.length-1)),e+t):"."},ee=e=>{if("/"===e)return"/";var t=(e=(e=$(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},te=e=>(te=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);H("initRandomDevice")})())(e);function ne(){for(var e="",t=!1,n=arguments.length-1;-1<=n&&!t;n--){if("string"!=typeof(t=0<=n?arguments[n]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return(t?"/":"")+(e=Z(e.split("/").filter(e=>!!e),!t).join("/"))||"."}var re="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,ie=(e,t,n)=>{var r=t+n;for(n=t;e[n]&&!(n>=r);)++n;if(16<n-t&&e.buffer&&re)return re.decode(e.subarray(t,n));for(r="";t<n;){var i=e[t++];if(128&i){var a=63&e[t++];if(192==(224&i))r+=String.fromCharCode((31&i)<<6|a);else{var o=63&e[t++];65536>(i=224==(240&i)?(15&i)<<12|a<<6|o:(7&i)<<18|a<<12|o<<6|63&e[t++])?r+=String.fromCharCode(i):(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else r+=String.fromCharCode(i)}return r},ae=[],oe=e=>{for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);127>=r?t++:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,++n):t+=3}return t},se=(e,t,n,r)=>{if(!(0<r))return 0;var i=n;r=n+r-1;for(var a=0;a<e.length;++a){var o=e.charCodeAt(a);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a)),127>=o){if(n>=r)break;t[n++]=o}else{if(2047>=o){if(n+1>=r)break;t[n++]=192|o>>6}else{if(65535>=o){if(n+2>=r)break;t[n++]=224|o>>12}else{if(n+3>=r)break;t[n++]=240|o>>18,t[n++]=128|o>>12&63}t[n++]=128|o>>6&63}t[n++]=128|63&o}}return t[n]=0,n-i};function le(e,t){var n=Array(oe(e)+1);return e=se(e,n,0,n.length),t&&(n.length=e),n}var ce=[];function ue(e,t){ce[e]={input:[],F:[],V:t},De(e,de)}var de={open:function(e){var t=ce[e.node.za];if(!t)throw new Pe(43);e.s=t,e.seekable=!1},close:function(e){e.s.V.qa(e.s)},qa:function(e){e.s.V.qa(e.s)},read:function(e,t,n,r){if(!e.s||!e.s.V.jb)throw new Pe(60);for(var i=0,a=0;a<r;a++){try{var o=e.s.V.jb(e.s)}catch(e){throw new Pe(29)}if(void 0===o&&0===i)throw new Pe(6);if(null==o)break;i++,t[n+a]=o}return i&&(e.node.timestamp=Date.now()),i},write:function(e,t,n,r){if(!e.s||!e.s.V.Oa)throw new Pe(60);try{for(var i=0;i<r;i++)e.s.V.Oa(e.s,t[n+i])}catch(e){throw new Pe(29)}return r&&(e.node.timestamp=Date.now()),i}},he={jb:function(){e:{if(!ae.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e){e=null;break e}ae=le(e,!0)}e=ae.shift()}return e},Oa:function(e,t){null===t||10===t?(b(ie(e.F,0)),e.F=[]):0!=t&&e.F.push(t)},qa:function(e){e.F&&0<e.F.length&&(b(ie(e.F,0)),e.F=[])},bc:function(){return{Fc:25856,Hc:5,Ec:191,Gc:35387,Dc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},cc:function(){return 0},dc:function(){return[24,80]}},pe={Oa:function(e,t){null===t||10===t?(y(ie(e.F,0)),e.F=[]):0!=t&&e.F.push(t)},qa:function(e){e.F&&0<e.F.length&&(y(ie(e.F,0)),e.F=[])}};function fe(e,t){var n=e.j?e.j.length:0;n>=t||(t=Math.max(t,n*(1048576>n?2:1.125)>>>0),0!=n&&(t=Math.max(t,256)),n=e.j,e.j=new Uint8Array(t),0<e.v&&e.j.set(n.subarray(0,e.v),0))}var me,Ae,ge,ve,be={O:null,U:()=>be.createNode(null,"/",16895,0),createNode(e,t,n,r){if(24576==(61440&n)||4096==(61440&n))throw new Pe(63);return be.O||(be.O={dir:{node:{Y:be.l.Y,P:be.l.P,ka:be.l.ka,va:be.l.va,vb:be.l.vb,Bb:be.l.Bb,wb:be.l.wb,tb:be.l.tb,Ea:be.l.Ea},stream:{ba:be.m.ba}},file:{node:{Y:be.l.Y,P:be.l.P},stream:{ba:be.m.ba,read:be.m.read,write:be.m.write,pa:be.m.pa,mb:be.m.mb,ob:be.m.ob}},link:{node:{Y:be.l.Y,P:be.l.P,ma:be.l.ma},stream:{}},ab:{node:{Y:be.l.Y,P:be.l.P},stream:je}}),16384==(61440&(n=Re(e,t,n,r)).mode)?(n.l=be.O.dir.node,n.m=be.O.dir.stream,n.j={}):32768==(61440&n.mode)?(n.l=be.O.file.node,n.m=be.O.file.stream,n.v=0,n.j=null):40960==(61440&n.mode)?(n.l=be.O.link.node,n.m=be.O.link.stream):8192==(61440&n.mode)&&(n.l=be.O.ab.node,n.m=be.O.ab.stream),n.timestamp=Date.now(),e&&(e.j[t]=n,e.timestamp=n.timestamp),n},Kc:e=>e.j?e.j.subarray?e.j.subarray(0,e.v):new Uint8Array(e.j):new Uint8Array(0),l:{Y(e){var t={};return t.Jc=8192==(61440&e.mode)?e.id:1,t.Mc=e.id,t.mode=e.mode,t.Oc=1,t.uid=0,t.Lc=0,t.za=e.za,16384==(61440&e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.v:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.Bc=new Date(e.timestamp),t.Nc=new Date(e.timestamp),t.Ic=new Date(e.timestamp),t.Jb=4096,t.Cc=Math.ceil(t.size/t.Jb),t},P(e,t){if(void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&(t=t.size,e.v!=t))if(0==t)e.j=null,e.v=0;else{var n=e.j;e.j=new Uint8Array(t),n&&e.j.set(n.subarray(0,Math.min(t,e.v))),e.v=t}},ka(){throw xe[44]},va:(e,t,n,r)=>be.createNode(e,t,n,r),vb(e,t,n){if(16384==(61440&e.mode)){try{var r=Ie(t,n)}catch(e){}if(r)for(var i in r.j)throw new Pe(55)}delete e.parent.j[e.name],e.parent.timestamp=Date.now(),e.name=n,t.j[n]=e,t.timestamp=e.parent.timestamp,e.parent=t},Bb(e,t){delete e.j[t],e.timestamp=Date.now()},wb(e,t){var n,r=Ie(e,t);for(n in r.j)throw new Pe(55);delete e.j[t],e.timestamp=Date.now()},tb(e){var t,n=[".",".."];for(t in e.j)e.j.hasOwnProperty(t)&&n.push(t);return n},Ea:(e,t,n)=>((e=be.createNode(e,t,41471,0)).link=n,e),ma(e){if(40960!=(61440&e.mode))throw new Pe(28);return e.link}},m:{read(e,t,n,r,i){var a=e.node.j;if(i>=e.node.v)return 0;if(8<(e=Math.min(e.node.v-i,r))&&a.subarray)t.set(a.subarray(i,i+e),n);else for(r=0;r<e;r++)t[n+r]=a[i+r];return e},write(e,t,n,r,i,a){if(t.buffer===C.buffer&&(a=!1),!r)return 0;if((e=e.node).timestamp=Date.now(),t.subarray&&(!e.j||e.j.subarray)){if(a)return e.j=t.subarray(n,n+r),e.v=r;if(0===e.v&&0===i)return e.j=t.slice(n,n+r),e.v=r;if(i+r<=e.v)return e.j.set(t.subarray(n,n+r),i),r}if(fe(e,i+r),e.j.subarray&&t.subarray)e.j.set(t.subarray(n,n+r),i);else for(a=0;a<r;a++)e.j[i+a]=t[n+a];return e.v=Math.max(e.v,i+r),r},ba(e,t,n){if(1===n?t+=e.position:2===n&&32768==(61440&e.node.mode)&&(t+=e.node.v),0>t)throw new Pe(28);return t},pa(e,t,n){fe(e.node,t+n),e.node.v=Math.max(e.node.v,t+n)},mb(e,t,n,r,i){if(32768!=(61440&e.node.mode))throw new Pe(43);if(e=e.node.j,2&i||e.buffer!==C.buffer){if((0<n||n+t<e.length)&&(e=e.subarray?e.subarray(n,n+t):Array.prototype.slice.call(e,n,n+t)),n=!0,H(),!(t=void 0))throw new Pe(48);C.set(e,t)}else n=!1,t=e.byteOffset;return{o:t,M:n}},ob:(e,t,n,r)=>(be.m.write(e,t,0,r,n,!1),0)}},ye=null,Ee={},we=[],Ce=1,Be=null,ke=!0,Pe=null,xe={},_e=(e,t={})=>{if(!(e=ne(e)))return{path:"",node:null};if(8<(t=Object.assign({hb:!0,Qa:0},t)).Qa)throw new Pe(32);e=e.split("/").filter(e=>!!e);for(var n=ye,r="/",i=0;i<e.length;i++){var a=i===e.length-1;if(a&&t.parent)break;if(n=Ie(n,e[i]),r=$(r+"/"+e[i]),n.wa&&(!a||a&&t.hb)&&(n=n.wa.root),!a||t.gb)for(a=0;40960==(61440&n.mode);)if(n=ze(r),r=ne(J(r),n),n=_e(r,{Qa:t.Qa+1}).node,40<a++)throw new Pe(32)}return{path:r,node:n}},Te=e=>{for(var t;;){if(e===e.parent)return e=e.U.nb,t?"/"!==e[e.length-1]?`${e}/${t}`:e+t:e;t=t?`${e.name}/${t}`:e.name,e=e.parent}},Se=(e,t)=>{for(var n=0,r=0;r<t.length;r++)n=(n<<5)-n+t.charCodeAt(r)|0;return(e+n>>>0)%Be.length},Ie=(e,t)=>{var n;if(n=(n=Fe(e,"x"))?n:e.l.ka?0:2)throw new Pe(n,e);for(n=Be[Se(e.id,t)];n;n=n.lc){var r=n.name;if(n.parent.id===e.id&&r===t)return n}return e.l.ka(e,t)},Re=(e,t,n,r)=>(e=new Cn(e,t,n,r),t=Se(e.parent.id,e.name),e.lc=Be[t],Be[t]=e),Me=e=>{var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},Fe=(e,t)=>ke?0:!t.includes("r")||292&e.mode?t.includes("w")&&!(146&e.mode)||t.includes("x")&&!(73&e.mode)?2:0:2,Le=(e,t)=>{try{return Ie(e,t),20}catch(e){}return Fe(e,"wx")},Oe=e=>{if(!(e=we[e]))throw new Pe(8);return e},Ne=(e,t=-1)=>(ge||((ge=function(){this.h={}}).prototype={},Object.defineProperties(ge.prototype,{object:{get(){return this.node},set(e){this.node=e}},flags:{get(){return this.h.flags},set(e){this.h.flags=e}},position:{get(){return this.h.position},set(e){this.h.position=e}}})),e=Object.assign(new ge,e),-1==t&&(t=(()=>{for(var e=0;4096>=e;e++)if(!we[e])return e;throw new Pe(33)})()),e.X=t,we[t]=e),je={open:e=>{e.m=Ee[e.node.za].m,e.m.open&&e.m.open(e)},ba:()=>{throw new Pe(70)}},De=(e,t)=>{Ee[e]={m:t}},Ue=(e,t)=>{var n="/"===t,r=!t;if(n&&ye)throw new Pe(10);if(!n&&!r){var i=_e(t,{hb:!1});if(t=i.path,(i=i.node).wa)throw new Pe(10);if(16384!=(61440&i.mode))throw new Pe(54)}t={type:e,Qc:{},nb:t,kc:[]},(e=e.U(t)).U=t,t.root=e,n?ye=e:i&&(i.wa=t,i.U&&i.U.kc.push(t))},We=(e,t,n)=>{var r=_e(e,{parent:!0}).node;if(!(e=ee(e))||"."===e||".."===e)throw new Pe(28);var i=Le(r,e);if(i)throw new Pe(i);if(!r.l.va)throw new Pe(63);return r.l.va(r,e,t,n)},He=(e,t,n)=>{void 0===n&&(n=t,t=438),We(e,8192|t,n)},Ve=(e,t)=>{if(!ne(e))throw new Pe(44);var n=_e(t,{parent:!0}).node;if(!n)throw new Pe(44);t=ee(t);var r=Le(n,t);if(r)throw new Pe(r);if(!n.l.Ea)throw new Pe(63);n.l.Ea(n,t,e)},ze=e=>{if(!(e=_e(e).node))throw new Pe(44);if(!e.l.ma)throw new Pe(28);return ne(Te(e.parent),e.l.ma(e))},Ke=(e,t,n)=>{if(""===e)throw new Pe(44);if("string"==typeof t){var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(void 0===r)throw Error("Unknown file open mode: "+t);t=r}if(n=64&t?4095&(void 0===n?438:n)|32768:0,"object"==typeof e)var a=e;else{e=$(e);try{a=_e(e,{gb:!(131072&t)}).node}catch(e){}}if(r=!1,64&t)if(a){if(128&t)throw new Pe(20)}else a=We(e,n,0),r=!0;if(!a)throw new Pe(44);if(8192==(61440&a.mode)&&(t&=-513),65536&t&&16384!=(61440&a.mode))throw new Pe(54);if(!r&&(n=a?40960==(61440&a.mode)?32:16384==(61440&a.mode)&&("r"!==Me(t)||512&t)?31:Fe(a,Me(t)):44))throw new Pe(n);if(512&t&&!r){if(!(n="string"==typeof(n=a)?_e(n,{gb:!0}).node:n).l.P)throw new Pe(63);if(16384==(61440&n.mode))throw new Pe(31);if(32768!=(61440&n.mode))throw new Pe(28);if(r=Fe(n,"w"))throw new Pe(r);n.l.P(n,{size:0,timestamp:Date.now()})}return t&=-131713,(a=Ne({node:a,path:Te(a),flags:t,seekable:!0,position:0,m:a.m,zc:[],error:!1})).m.open&&a.m.open(a),!i.logReadFiles||1&t||(ve||(ve={}),e in ve||(ve[e]=1)),a},qe=(e,t,n)=>{if(null===e.X)throw new Pe(8);if(!e.seekable||!e.m.ba)throw new Pe(70);if(0!=n&&1!=n&&2!=n)throw new Pe(28);e.position=e.m.ba(e,t,n),e.zc=[]},Ye=()=>{Pe||((Pe=function(e,t){this.name="ErrnoError",this.node=t,this.pc=function(e){this.aa=e},this.pc(e),this.message="FS error"}).prototype=Error(),Pe.prototype.constructor=Pe,[44].forEach(e=>{xe[e]=new Pe(e),xe[e].stack="<generic error, no stack>"}))},Xe=(e,t,n)=>{e=$("/dev/"+e);var r=function(e,t){var n=0;return e&&(n|=365),t&&(n|=146),n}(!!t,!!n);Ae||(Ae=64);var i=Ae++<<8|0;De(i,{open:e=>{e.seekable=!1},close:()=>{n&&n.buffer&&n.buffer.length&&n(10)},read:(e,n,r,i)=>{for(var a=0,o=0;o<i;o++){try{var s=t()}catch(e){throw new Pe(29)}if(void 0===s&&0===a)throw new Pe(6);if(null==s)break;a++,n[r+o]=s}return a&&(e.node.timestamp=Date.now()),a},write:(e,t,r,i)=>{for(var a=0;a<i;a++)try{n(t[r+a])}catch(e){throw new Pe(29)}return i&&(e.node.timestamp=Date.now()),a}}),He(e,r,i)},Ge={},Qe=void 0;function Ze(){return x[(Qe+=4)-4>>2]}function $e(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?"_"+e:e}function Je(e,t){return{[e=$e(e)]:function(){return t.apply(this,arguments)}}[e]}function et(){this.M=[void 0],this.ib=[]}var tt=new et,nt=void 0;function rt(e){throw new nt(e)}var it=e=>(e||rt("Cannot use deleted val. handle = "+e),tt.get(e).value),at=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return tt.pa({ub:1,value:e})}};function ot(e){var t=Error,n=Je(e,(function(t){this.name=e,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},n}var st=void 0,lt=void 0;function ct(e){for(var t="";B[e];)t+=lt[B[e++]];return t}var ut=[];function dt(){for(;ut.length;){var e=ut.pop();e.g.fa=!1,e.delete()}}var ht=void 0,pt={};function ft(e,t){for(void 0===t&&rt("ptr should not be undefined");e.A;)t=e.na(t),e=e.A;return t}var mt={};function At(e){var t=ct(e=Fn(e));return xn(e),t}function gt(e,t){var n=mt[e];return void 0===n&&rt(t+" has unknown type "+At(e)),n}function vt(){}var bt=!1;function yt(e){--e.count.value,0===e.count.value&&(e.G?e.L.W(e.G):e.u.i.W(e.o))}var Et={},wt=void 0;function Ct(e){throw new wt(e)}function Bt(e,t){return t.u&&t.o||Ct("makeClassHandle requires ptr and ptrType"),!!t.L!=!!t.G&&Ct("Both smartPtrType and smartPtr must be specified"),t.count={value:1},kt(Object.create(e,{g:{value:t}}))}function kt(e){return"undefined"==typeof FinalizationRegistry?(kt=e=>e,e):(bt=new FinalizationRegistry(e=>{yt(e.g)}),vt=e=>{bt.unregister(e)},(kt=e=>{var t=e.g;return t.G&&bt.register(e,{g:t},e),e})(e))}var Pt={};function xt(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function _t(e){return this.fromWireType(x[e>>2])}var Tt={},St={};function It(e,t,n){function r(t){(t=n(t)).length!==e.length&&Ct("Mismatched type converter count");for(var r=0;r<e.length;++r)Mt(e[r],t[r])}e.forEach((function(e){St[e]=t}));var i=Array(t.length),a=[],o=0;t.forEach((e,t)=>{mt.hasOwnProperty(e)?i[t]=mt[e]:(a.push(e),Tt.hasOwnProperty(e)||(Tt[e]=[]),Tt[e].push(()=>{i[t]=mt[e],++o===a.length&&r(i)}))}),0===a.length&&r(i)}function Rt(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}function Mt(e,t,n={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");!function(e,t,n={}){var r=t.name;if(e||rt(`type "${r}" must have a positive integer typeid pointer`),mt.hasOwnProperty(e)){if(n.$b)return;rt(`Cannot register type '${r}' twice`)}mt[e]=t,delete St[e],Tt.hasOwnProperty(e)&&(t=Tt[e],delete Tt[e],t.forEach(e=>e()))}(e,t,n)}function Ft(e){rt(e.g.u.i.name+" instance already deleted")}function Lt(){}function Ot(e,t,n){if(void 0===e[t].B){var r=e[t];e[t]=function(){return e[t].B.hasOwnProperty(arguments.length)||rt(`Function '${n}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].B})!`),e[t].B[arguments.length].apply(this,arguments)},e[t].B=[],e[t].B[r.ea]=r}}function Nt(e,t,n){i.hasOwnProperty(e)?((void 0===n||void 0!==i[e].B&&void 0!==i[e].B[n])&&rt(`Cannot register public name '${e}' twice`),Ot(i,e,e),i.hasOwnProperty(n)&&rt(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`),i[e].B[n]=t):(i[e]=t,void 0!==n&&(i[e].Pc=n))}function jt(e,t,n,r,i,a,o,s){this.name=e,this.constructor=t,this.N=n,this.W=r,this.A=i,this.Ub=a,this.na=o,this.Pb=s,this.rb=[]}function Dt(e,t,n){for(;t!==n;)t.na||rt(`Expected null or instance of ${n.name}, got an instance of ${t.name}`),e=t.na(e),t=t.A;return e}function Ut(e,t){return null===t?(this.Na&&rt("null is not a valid "+this.name),0):(t.g||rt(`Cannot pass "${tn(t)}" as a ${this.name}`),t.g.o||rt("Cannot pass deleted object as a pointer of type "+this.name),Dt(t.g.o,t.g.u.i,this.i))}function Wt(e,t){if(null===t){if(this.Na&&rt("null is not a valid "+this.name),this.ua){var n=this.Pa();return null!==e&&e.push(this.W,n),n}return 0}if(t.g||rt(`Cannot pass "${tn(t)}" as a ${this.name}`),t.g.o||rt("Cannot pass deleted object as a pointer of type "+this.name),!this.ta&&t.g.u.ta&&rt(`Cannot convert argument of type ${t.g.L?t.g.L.name:t.g.u.name} to parameter type ${this.name}`),n=Dt(t.g.o,t.g.u.i,this.i),this.ua)switch(void 0===t.g.G&&rt("Passing raw pointer to smart pointer is illegal"),this.tc){case 0:t.g.L===this?n=t.g.G:rt(`Cannot convert argument of type ${t.g.L?t.g.L.name:t.g.u.name} to parameter type ${this.name}`);break;case 1:n=t.g.G;break;case 2:if(t.g.L===this)n=t.g.G;else{var r=t.clone();n=this.oc(n,at((function(){r.delete()}))),null!==e&&e.push(this.W,n)}break;default:rt("Unsupporting sharing policy")}return n}function Ht(e,t){return null===t?(this.Na&&rt("null is not a valid "+this.name),0):(t.g||rt(`Cannot pass "${tn(t)}" as a ${this.name}`),t.g.o||rt("Cannot pass deleted object as a pointer of type "+this.name),t.g.u.ta&&rt(`Cannot convert argument of type ${t.g.u.name} to parameter type ${this.name}`),Dt(t.g.o,t.g.u.i,this.i))}function Vt(e,t,n,r){this.name=e,this.i=t,this.Na=n,this.ta=r,this.ua=!1,this.W=this.oc=this.Pa=this.sb=this.tc=this.nc=void 0,void 0!==t.A?this.toWireType=Wt:(this.toWireType=r?Ut:Ht,this.K=null)}function zt(e,t,n){i.hasOwnProperty(e)||Ct("Replacing nonexistant public symbol"),void 0!==i[e].B&&void 0!==n?i[e].B[n]=t:(i[e]=t,i[e].ea=n)}var Kt=[],qt=e=>{var t=Kt[e];return t||(e>=Kt.length&&(Kt.length=e+1),Kt[e]=t=M.get(e)),t};function Yt(e,t){var n=(e=ct(e)).includes("j")?((e,t)=>{var n=[];return function(){if(n.length=0,Object.assign(n,arguments),e.includes("j")){var r=i["dynCall_"+e];r=n&&n.length?r.apply(null,[t].concat(n)):r.call(null,t)}else r=qt(t).apply(null,n);return r}})(e,t):qt(t);return"function"!=typeof n&&rt(`unknown function pointer with signature ${e}: ${t}`),n}var Xt=void 0;function Gt(e,t){var n=[],r={};throw t.forEach((function e(t){r[t]||mt[t]||(St[t]?St[t].forEach(e):(n.push(t),r[t]=!0))})),new Xt(e+": "+n.map(At).join([", "]))}function Qt(e,t,n,r,i){var a=t.length;2>a&&rt("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=null!==t[1]&&null!==n,s=!1;for(n=1;n<t.length;++n)if(null!==t[n]&&void 0===t[n].K){s=!0;break}var l="void"!==t[0].name,c=a-2,u=Array(c),d=[],h=[];return function(){if(arguments.length!==c&&rt(`function ${e} called with ${arguments.length} arguments, expected ${c} args!`),h.length=0,d.length=o?2:1,d[0]=i,o){var n=t[1].toWireType(h,this);d[1]=n}for(var a=0;a<c;++a)u[a]=t[a+2].toWireType(h,arguments[a]),d.push(u[a]);if(a=r.apply(null,d),s)xt(h);else for(var p=o?1:2;p<t.length;p++){var f=1===p?n:u[p-2];null!==t[p].K&&t[p].K(f)}return n=l?t[0].fromWireType(a):void 0}}function Zt(e,t){for(var n=[],r=0;r<e;r++)n.push(_[t+4*r>>2]);return n}function $t(e,t,n){return e instanceof Object||rt(`${n} with invalid "this": ${e}`),e instanceof t.i.constructor||rt(`${n} incompatible with "this" of type ${e.constructor.name}`),e.g.o||rt(`cannot call emscripten binding method ${n} on deleted object`),Dt(e.g.o,e.g.u.i,t.i)}function Jt(e){e>=tt.h&&0==--tt.get(e).ub&&tt.Zb(e)}function en(e,t,n){switch(t){case 0:return function(e){return this.fromWireType((n?C:B)[e])};case 1:return function(e){return this.fromWireType((n?k:P)[e>>1])};case 2:return function(e){return this.fromWireType((n?x:_)[e>>2])};default:throw new TypeError("Unknown integer type: "+e)}}function tn(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function nn(e,t){switch(t){case 2:return function(e){return this.fromWireType(T[e>>2])};case 3:return function(e){return this.fromWireType(S[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function rn(e,t,n){switch(t){case 0:return n?function(e){return C[e]}:function(e){return B[e]};case 1:return n?function(e){return k[e>>1]}:function(e){return P[e>>1]};case 2:return n?function(e){return x[e>>2]}:function(e){return _[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var an="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,on=(e,t)=>{for(var n=e>>1,r=n+t/2;!(n>=r)&&P[n];)++n;if(32<(n<<=1)-e&&an)return an.decode(B.subarray(e,n));for(n="",r=0;!(r>=t/2);++r){var i=k[e+2*r>>1];if(0==i)break;n+=String.fromCharCode(i)}return n},sn=(e,t,n)=>{if(void 0===n&&(n=2147483647),2>n)return 0;var r=t;n=(n-=2)<2*e.length?n/2:e.length;for(var i=0;i<n;++i)k[t>>1]=e.charCodeAt(i),t+=2;return k[t>>1]=0,t-r},ln=e=>2*e.length,cn=(e,t)=>{for(var n=0,r="";!(n>=t/4);){var i=x[e+4*n>>2];if(0==i)break;++n,65536<=i?(i-=65536,r+=String.fromCharCode(55296|i>>10,56320|1023&i)):r+=String.fromCharCode(i)}return r},un=(e,t,n)=>{if(void 0===n&&(n=2147483647),4>n)return 0;var r=t;n=r+n-4;for(var i=0;i<e.length;++i){var a=e.charCodeAt(i);if(55296<=a&&57343>=a&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),x[t>>2]=a,(t+=4)+4>n)break}return x[t>>2]=0,t-r},dn=e=>{for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);55296<=r&&57343>=r&&++n,t+=4}return t},hn={};function pn(e){var t=hn[e];return void 0===t?ct(e):t}var fn,mn=[],An=[],gn=[],vn={},bn=()=>{if(!fn){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:f||"./this.program"};for(e in vn)void 0===vn[e]?delete t[e]:t[e]=vn[e];var n=[];for(e in t)n.push(`${e}=${t[e]}`);fn=n}return fn},yn=e=>0==e%4&&(0!=e%100||0==e%400),En=[31,29,31,30,31,30,31,31,30,31,30,31],wn=[31,28,31,30,31,30,31,31,30,31,30,31];function Cn(e,t,n,r){e||(e=this),this.parent=e,this.U=e.U,this.wa=null,this.id=Ce++,this.name=t,this.mode=n,this.l={},this.m={},this.za=r}Object.defineProperties(Cn.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}}}),Ye(),Be=Array(4096),Ue(be,"/"),We("/tmp",16895,0),We("/home",16895,0),We("/home/web_user",16895,0),(()=>{We("/dev",16895,0),De(259,{read:()=>0,write:(e,t,n,r)=>r}),He("/dev/null",259),ue(1280,he),ue(1536,pe),He("/dev/tty",1280),He("/dev/tty1",1536);var e=new Uint8Array(1024),t=0,n=()=>(0===t&&(t=te(e).byteLength),e[--t]);Xe("random",n),Xe("urandom",n),We("/dev/shm",16895,0),We("/dev/shm/tmp",16895,0)})(),(()=>{We("/proc",16895,0);var e=We("/proc/self",16895,0);We("/proc/self/fd",16895,0),Ue({U:()=>{var t=Re(e,"fd",16895,73);return t.l={ka:(e,t)=>{var n=Oe(+t);return(e={parent:null,U:{nb:"fake"},l:{ma:()=>n.path}}).parent=e}},t}},"/proc/self/fd")})(),Object.assign(et.prototype,{get(e){return this.M[e]},has(e){return void 0!==this.M[e]},pa(e){var t=this.ib.pop()||this.M.length;return this.M[t]=e,t},Zb(e){this.M[e]=void 0,this.ib.push(e)}}),nt=i.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},tt.M.push({value:void 0},{value:null},{value:!0},{value:!1}),tt.h=tt.M.length,i.count_emval_handles=function(){for(var e=0,t=tt.h;t<tt.M.length;++t)void 0!==tt.M[t]&&++e;return e},st=i.PureVirtualError=ot("PureVirtualError");for(var Bn=Array(256),kn=0;256>kn;++kn)Bn[kn]=String.fromCharCode(kn);lt=Bn,i.getInheritedInstanceCount=function(){return Object.keys(pt).length},i.getLiveInheritedInstances=function(){var e,t=[];for(e in pt)pt.hasOwnProperty(e)&&t.push(pt[e]);return t},i.flushPendingDeletes=dt,i.setDelayFunction=function(e){ht=e,ut.length&&ht&&ht(dt)},wt=i.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Lt.prototype.isAliasOf=function(e){if(!(this instanceof Lt&&e instanceof Lt))return!1;var t=this.g.u.i,n=this.g.o,r=e.g.u.i;for(e=e.g.o;t.A;)n=t.na(n),t=t.A;for(;r.A;)e=r.na(e),r=r.A;return t===r&&n===e},Lt.prototype.clone=function(){if(this.g.o||Ft(this),this.g.ia)return this.g.count.value+=1,this;var e=kt,t=Object,n=t.create,r=Object.getPrototypeOf(this),i=this.g;return(e=e(n.call(t,r,{g:{value:{count:i.count,fa:i.fa,ia:i.ia,o:i.o,u:i.u,G:i.G,L:i.L}}}))).g.count.value+=1,e.g.fa=!1,e},Lt.prototype.delete=function(){this.g.o||Ft(this),this.g.fa&&!this.g.ia&&rt("Object already scheduled for deletion"),vt(this),yt(this.g),this.g.ia||(this.g.G=void 0,this.g.o=void 0)},Lt.prototype.isDeleted=function(){return!this.g.o},Lt.prototype.deleteLater=function(){return this.g.o||Ft(this),this.g.fa&&!this.g.ia&&rt("Object already scheduled for deletion"),ut.push(this),1===ut.length&&ht&&ht(dt),this.g.fa=!0,this},Vt.prototype.Vb=function(e){return this.sb&&(e=this.sb(e)),e},Vt.prototype.bb=function(e){this.W&&this.W(e)},Vt.prototype.argPackAdvance=8,Vt.prototype.readValueFromPointer=_t,Vt.prototype.deleteObject=function(e){null!==e&&e.delete()},Vt.prototype.fromWireType=function(e){function t(){return this.ua?Bt(this.i.N,{u:this.nc,o:n,L:this,G:e}):Bt(this.i.N,{u:this,o:e})}var n=this.Vb(e);if(!n)return this.bb(e),null;var r=function(e,t){return t=ft(e,t),pt[t]}(this.i,n);if(void 0!==r)return 0===r.g.count.value?(r.g.o=n,r.g.G=e,r.clone()):(r=r.clone(),this.bb(e),r);if(r=this.i.Ub(n),!(r=Et[r]))return t.call(this);r=this.ta?r.Kb:r.pointerType;var i=function e(t,n,r){return n===r?t:void 0===r.A||null===(t=e(t,n,r.A))?null:r.Pb(t)}(n,this.i,r.i);return null===i?t.call(this):this.ua?Bt(r.i.N,{u:r,o:i,L:this,G:e}):Bt(r.i.N,{u:r,o:i})},Xt=i.UnboundTypeError=ot("UnboundTypeError");var Pn={__syscall_fcntl64:function(e,t,n){Qe=n;try{var r=Oe(e);switch(t){case 0:var i=Ze();return 0>i?-28:Ne(r,i).X;case 1:case 2:return 0;case 3:return r.flags;case 4:return i=Ze(),r.flags|=i,0;case 5:return i=Ze(),k[i+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return x[Tn()>>2]=28,-1;default:return-28}}catch(e){if(void 0===Ge||"ErrnoError"!==e.name)throw e;return-e.aa}},__syscall_ioctl:function(e,t,n){Qe=n;try{var r=Oe(e);switch(t){case 21509:return r.s?0:-59;case 21505:if(!r.s)return-59;if(r.s.V.bc){t=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var i=Ze();x[i>>2]=25856,x[i+4>>2]=5,x[i+8>>2]=191,x[i+12>>2]=35387;for(var a=0;32>a;a++)C[i+a+17>>0]=t[a]||0}return 0;case 21510:case 21511:case 21512:return r.s?0:-59;case 21506:case 21507:case 21508:if(!r.s)return-59;if(r.s.V.cc)for(i=Ze(),t=[],a=0;32>a;a++)t.push(C[i+a+17>>0]);return 0;case 21519:return r.s?(i=Ze(),x[i>>2]=0):-59;case 21520:return r.s?-28:-59;case 21531:if(i=Ze(),!r.m.ac)throw new Pe(59);return r.m.ac(r,t,i);case 21523:return r.s?(r.s.V.dc&&(a=[24,80],i=Ze(),k[i>>1]=a[0],k[i+2>>1]=a[1]),0):-59;case 21524:case 21515:return r.s?0:-59;default:return-28}}catch(e){if(void 0===Ge||"ErrnoError"!==e.name)throw e;return-e.aa}},__syscall_openat:function(e,t,n,r){Qe=r;try{var i=t=t?ie(B,t):"";if("/"===i.charAt(0))t=i;else{var a=-100===e?"/":Oe(e).path;if(0==i.length)throw new Pe(44);t=$(a+"/"+i)}var o=r?Ze():0;return Ke(t,n,o).X}catch(e){if(void 0===Ge||"ErrnoError"!==e.name)throw e;return-e.aa}},_embind_create_inheriting_constructor:function(e,t,n){e=ct(e),t=gt(t,"wrapper"),n=it(n);var r=[].slice,i=t.i,a=i.N,o=i.A.N,s=i.A.constructor;for(var l in e=Je(e,(function(){i.A.rb.forEach(function(e){if(this[e]===o[e])throw new st(`Pure virtual function ${e} must be implemented in JavaScript`)}.bind(this)),Object.defineProperty(this,"__parent",{value:a}),this.__construct.apply(this,r.call(arguments))})),a.__construct=function(){this===a&&rt("Pass correct 'this' to __construct");var e=s.implement.apply(void 0,[this].concat(r.call(arguments)));vt(e);var t=e.g;e.notifyOnDestruction(),t.ia=!0,Object.defineProperties(this,{g:{value:t}}),kt(this),e=t.o,e=ft(i,e),pt.hasOwnProperty(e)?rt("Tried to register registered instance: "+e):pt[e]=this},a.__destruct=function(){this===a&&rt("Pass correct 'this' to __destruct"),vt(this);var e=this.g.o;e=ft(i,e),pt.hasOwnProperty(e)?delete pt[e]:rt("Tried to unregister unregistered instance: "+e)},e.prototype=Object.create(a),n)e.prototype[l]=n[l];return at(e)},_embind_finalize_value_object:function(e){var t=Pt[e];delete Pt[e];var n=t.Pa,r=t.W,i=t.fb;It([e],i.map(e=>e.Yb).concat(i.map(e=>e.rc)),e=>{var a={};return i.forEach((t,n)=>{var r=e[n],o=t.Wb,s=t.Xb,l=e[n+i.length],c=t.qc,u=t.sc;a[t.Sb]={read:e=>r.fromWireType(o(s,e)),write:(e,t)=>{var n=[];c(u,e,l.toWireType(n,t)),xt(n)}}}),[{name:t.name,fromWireType:function(e){var t,n={};for(t in a)n[t]=a[t].read(e);return r(e),n},toWireType:function(e,t){for(var i in a)if(!(i in t))throw new TypeError(`Missing field: "${i}"`);var o=n();for(i in a)a[i].write(o,t[i]);return null!==e&&e.push(r,o),o},argPackAdvance:8,readValueFromPointer:_t,K:r}]})},_embind_register_bigint:function(){},_embind_register_bool:function(e,t,n,r,i){var a=Rt(n);Mt(e,{name:t=ct(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:i},argPackAdvance:8,readValueFromPointer:function(e){if(1===n)var r=C;else if(2===n)r=k;else{if(4!==n)throw new TypeError("Unknown boolean type size: "+t);r=x}return this.fromWireType(r[e>>a])},K:null})},_embind_register_class:function(e,t,n,r,i,a,o,s,l,c,u,d,h){u=ct(u),a=Yt(i,a),s&&(s=Yt(o,s)),c&&(c=Yt(l,c)),h=Yt(d,h);var p=$e(u);Nt(p,(function(){Gt(`Cannot construct ${u} due to unbound types`,[r])})),It([e,t,n],r?[r]:[],(function(t){if(t=t[0],r)var n=t.i,i=n.N;else i=Lt.prototype;t=Je(p,(function(){if(Object.getPrototypeOf(this)!==o)throw new nt("Use 'new' to construct "+u);if(void 0===l.$)throw new nt(u+" has no accessible constructor");var e=l.$[arguments.length];if(void 0===e)throw new nt(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(l.$).toString()}) parameters instead!`);return e.apply(this,arguments)}));var o=Object.create(i,{constructor:{value:t}});t.prototype=o;var l=new jt(u,t,o,h,n,a,s,c);l.A&&(void 0===l.A.oa&&(l.A.oa=[]),l.A.oa.push(l)),n=new Vt(u,l,!0,!1),i=new Vt(u+"*",l,!1,!1);var d=new Vt(u+" const*",l,!1,!0);return Et[e]={pointerType:i,Kb:d},zt(p,t),[n,i,d]}))},_embind_register_class_class_function:function(e,t,n,r,i,a,o){var s=Zt(n,r);t=ct(t),a=Yt(i,a),It([],[e],(function(e){function r(){Gt(`Cannot call ${i} due to unbound types`,s)}var i=`${(e=e[0]).name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var l=e.i.constructor;return void 0===l[t]?(r.ea=n-1,l[t]=r):(Ot(l,t,i),l[t].B[n-1]=r),It([],s,(function(r){if(r=Qt(i,[r[0],null].concat(r.slice(1)),null,a,o),void 0===l[t].B?(r.ea=n-1,l[t]=r):l[t].B[n-1]=r,e.i.oa)for(const n of e.i.oa)n.constructor.hasOwnProperty(t)||(n.constructor[t]=r);return[]})),[]}))},_embind_register_class_class_property:function(e,t,n,r,i,a,o,s){t=ct(t),a=Yt(i,a),It([],[e],(function(e){var i=`${(e=e[0]).name}.${t}`,l={get(){Gt(`Cannot access ${i} due to unbound types`,[n])},enumerable:!0,configurable:!0};return l.set=s?()=>{Gt(`Cannot access ${i} due to unbound types`,[n])}:()=>{rt(i+" is a read-only property")},Object.defineProperty(e.i.constructor,t,l),It([],[n],(function(n){n=n[0];var i={get:()=>n.fromWireType(a(r)),enumerable:!0};return s&&(s=Yt(o,s),i.set=e=>{var t=[];s(r,n.toWireType(t,e)),xt(t)}),Object.defineProperty(e.i.constructor,t,i),[]})),[]}))},_embind_register_class_constructor:function(e,t,n,r,i,a){var o=Zt(t,n);i=Yt(r,i),It([],[e],(function(e){var n="constructor "+(e=e[0]).name;if(void 0===e.i.$&&(e.i.$=[]),void 0!==e.i.$[t-1])throw new nt(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.i.$[t-1]=()=>{Gt(`Cannot construct ${e.name} due to unbound types`,o)},It([],o,(function(r){return r.splice(1,0,null),e.i.$[t-1]=Qt(n,r,null,i,a),[]})),[]}))},_embind_register_class_function:function(e,t,n,r,i,a,o,s){var l=Zt(n,r);t=ct(t),a=Yt(i,a),It([],[e],(function(e){function r(){Gt(`Cannot call ${i} due to unbound types`,l)}var i=`${(e=e[0]).name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.i.rb.push(t);var c=e.i.N,u=c[t];return void 0===u||void 0===u.B&&u.className!==e.name&&u.ea===n-2?(r.ea=n-2,r.className=e.name,c[t]=r):(Ot(c,t,i),c[t].B[n-2]=r),It([],l,(function(r){return r=Qt(i,r,e,a,o),void 0===c[t].B?(r.ea=n-2,c[t]=r):c[t].B[n-2]=r,[]})),[]}))},_embind_register_class_property:function(e,t,n,r,i,a,o,s,l,c){t=ct(t),i=Yt(r,i),It([],[e],(function(e){var r=`${(e=e[0]).name}.${t}`,u={get(){Gt(`Cannot access ${r} due to unbound types`,[n,o])},enumerable:!0,configurable:!0};return u.set=l?()=>{Gt(`Cannot access ${r} due to unbound types`,[n,o])}:()=>{rt(r+" is a read-only property")},Object.defineProperty(e.i.N,t,u),It([],l?[n,o]:[n],(function(n){var o=n[0],u={get(){var t=$t(this,e,r+" getter");return o.fromWireType(i(a,t))},enumerable:!0};if(l){l=Yt(s,l);var d=n[1];u.set=function(t){var n=$t(this,e,r+" setter"),i=[];l(c,n,d.toWireType(i,t)),xt(i)}}return Object.defineProperty(e.i.N,t,u),[]})),[]}))},_embind_register_emval:function(e,t){Mt(e,{name:t=ct(t),fromWireType:function(e){var t=it(e);return Jt(e),t},toWireType:function(e,t){return at(t)},argPackAdvance:8,readValueFromPointer:_t,K:null})},_embind_register_enum:function(e,t,n,r){function i(){}n=Rt(n),t=ct(t),i.values={},Mt(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:function(e,t){return t.value},argPackAdvance:8,readValueFromPointer:en(t,n,r),K:null}),Nt(t,i)},_embind_register_enum_value:function(e,t,n){var r=gt(e,"enum");t=ct(t),e=r.constructor,r=Object.create(r.constructor.prototype,{value:{value:n},constructor:{value:Je(`${r.name}_${t}`,(function(){}))}}),e.values[n]=r,e[t]=r},_embind_register_float:function(e,t,n){n=Rt(n),Mt(e,{name:t=ct(t),fromWireType:function(e){return e},toWireType:function(e,t){return t},argPackAdvance:8,readValueFromPointer:nn(t,n),K:null})},_embind_register_function:function(e,t,n,r,i,a){var o=Zt(t,n);e=ct(e),i=Yt(r,i),Nt(e,(function(){Gt(`Cannot call ${e} due to unbound types`,o)}),t-1),It([],o,(function(n){return zt(e,Qt(e,[n[0],null].concat(n.slice(1)),null,i,a),t-1),[]}))},_embind_register_integer:function(e,t,n,r,i){t=ct(t),-1===i&&(i=4294967295),i=Rt(n);var a=e=>e;if(0===r){var o=32-8*n;a=e=>e<<o>>>o}n=t.includes("unsigned")?function(e,t){return t>>>0}:function(e,t){return t},Mt(e,{name:t,fromWireType:a,toWireType:n,argPackAdvance:8,readValueFromPointer:rn(t,i,0!==r),K:null})},_embind_register_memory_view:function(e,t,n){function r(e){e>>=2;var t=_;return new i(t.buffer,t[e+1],t[e])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];Mt(e,{name:n=ct(n),fromWireType:r,argPackAdvance:8,readValueFromPointer:r},{$b:!0})},_embind_register_std_string:function(e,t){var n="std::string"===(t=ct(t));Mt(e,{name:t,fromWireType:function(e){var t=_[e>>2],r=e+4;if(n)for(var i=r,a=0;a<=t;++a){var o=r+a;if(a==t||0==B[o]){if(i=i?ie(B,i,o-i):"",void 0===s)var s=i;else s+=String.fromCharCode(0),s+=i;i=o+1}}else{for(s=Array(t),a=0;a<t;++a)s[a]=String.fromCharCode(B[r+a]);s=s.join("")}return xn(e),s},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var r="string"==typeof t;r||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||rt("Cannot pass non-string to std::string");var i=n&&r?oe(t):t.length,a=_n(4+i+1),o=a+4;if(_[a>>2]=i,n&&r)se(t,B,o,i+1);else if(r)for(r=0;r<i;++r){var s=t.charCodeAt(r);255<s&&(xn(o),rt("String has UTF-16 code units that do not fit in 8 bits")),B[o+r]=s}else for(r=0;r<i;++r)B[o+r]=t[r];return null!==e&&e.push(xn,a),a},argPackAdvance:8,readValueFromPointer:_t,K:function(e){xn(e)}})},_embind_register_std_wstring:function(e,t,n){if(n=ct(n),2===t)var r=on,i=sn,a=ln,o=()=>P,s=1;else 4===t&&(r=cn,i=un,a=dn,o=()=>_,s=2);Mt(e,{name:n,fromWireType:function(e){for(var n,i=_[e>>2],a=o(),l=e+4,c=0;c<=i;++c){var u=e+4+c*t;c!=i&&0!=a[u>>s]||(l=r(l,u-l),void 0===n?n=l:(n+=String.fromCharCode(0),n+=l),l=u+t)}return xn(e),n},toWireType:function(e,r){"string"!=typeof r&&rt("Cannot pass non-string to C++ string type "+n);var o=a(r),l=_n(4+o+t);return _[l>>2]=o>>s,i(r,l+4,o+t),null!==e&&e.push(xn,l),l},argPackAdvance:8,readValueFromPointer:_t,K:function(e){xn(e)}})},_embind_register_value_object:function(e,t,n,r,i,a){Pt[e]={name:ct(t),Pa:Yt(n,r),W:Yt(i,a),fb:[]}},_embind_register_value_object_field:function(e,t,n,r,i,a,o,s,l,c){Pt[e].fb.push({Sb:ct(t),Yb:n,Wb:Yt(r,i),Xb:a,rc:o,qc:Yt(s,l),sc:c})},_embind_register_void:function(e,t){Mt(e,{fc:!0,name:t=ct(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},_emscripten_get_now_is_monotonic:()=>!0,_emval_as:function(e,t,n){e=it(e),t=gt(t,"emval::as");var r=[],i=at(r);return _[n>>2]=i,t.toWireType(r,e)},_emval_call_method:function(e,t,n,r,i){e=mn[e],t=it(t),n=pn(n);var a=[];return _[r>>2]=at(a),e(t,n,a,i)},_emval_call_void_method:function(e,t,n,r){(e=mn[e])(t=it(t),n=pn(n),null,r)},_emval_decref:Jt,_emval_get_method_caller:function(e,t){var n=function(e,t){for(var n=Array(e),r=0;r<e;++r)n[r]=gt(_[t+4*r>>2],"parameter "+r);return n}(e,t),r=n[0];t=r.name+"_$"+n.slice(1).map((function(e){return e.name})).join("_")+"$";var i=An[t];if(void 0!==i)return i;var a=Array(e-1);return i=function(e){var t=mn.length;return mn.push(e),t}((t,i,o,s)=>{for(var l=0,c=0;c<e-1;++c)a[c]=n[c+1].readValueFromPointer(s+l),l+=n[c+1].argPackAdvance;for(t=t[i].apply(t,a),c=0;c<e-1;++c)n[c+1].Nb&&n[c+1].Nb(a[c]);if(!r.fc)return r.toWireType(o,t)}),An[t]=i},_emval_get_module_property:function(e){return e=pn(e),at(i[e])},_emval_get_property:function(e,t){return e=it(e),t=it(t),at(e[t])},_emval_incref:function(e){4<e&&(tt.get(e).ub+=1)},_emval_new_array:function(){return at([])},_emval_new_cstring:function(e){return at(pn(e))},_emval_new_object:function(){return at({})},_emval_run_destructors:function(e){xt(it(e)),Jt(e)},_emval_set_property:function(e,t,n){e=it(e),t=it(t),n=it(n),e[t]=n},_emval_take_value:function(e,t){return e=(e=gt(e,"_emval_take_value")).readValueFromPointer(t),at(e)},abort:()=>{H("")},emscripten_asm_const_int:(e,t,n)=>{var r;for(gn.length=0,n>>=2;r=B[t++];)n+=105!=r&n,gn.push(105==r?x[n]:S[n++>>1]),++n;return G[e].apply(null,gn)},emscripten_date_now:function(){return Date.now()},emscripten_get_now:()=>performance.now(),emscripten_memcpy_big:(e,t,n)=>B.copyWithin(e,t,t+n),emscripten_resize_heap:e=>{var t=B.length;if(2147483648<(e>>>=0))return!1;for(var n=1;4>=n;n*=2){var r=t*(1+.2/n);r=Math.min(r,e+100663296);var i=Math;r=Math.max(e,r);e:{i=i.min.call(i,2147483648,r+(65536-r%65536)%65536)-E.buffer.byteLength+65535>>>16;try{E.grow(i),R();var a=1;break e}catch(e){}a=void 0}if(a)return!0}return!1},environ_get:(e,t)=>{var n=0;return bn().forEach((function(r,i){var a=t+n;for(i=_[e+4*i>>2]=a,a=0;a<r.length;++a)C[i++>>0]=r.charCodeAt(a);C[i>>0]=0,n+=r.length+1})),0},environ_sizes_get:(e,t)=>{var n=bn();_[e>>2]=n.length;var r=0;return n.forEach((function(e){r+=e.length+1})),_[t>>2]=r,0},fd_close:function(e){try{var t=Oe(e);if(null===t.X)throw new Pe(8);t.Ma&&(t.Ma=null);try{t.m.close&&t.m.close(t)}catch(e){throw e}finally{we[t.X]=null}return t.X=null,0}catch(e){if(void 0===Ge||"ErrnoError"!==e.name)throw e;return e.aa}},fd_read:function(e,t,n,r){try{e:{var i=Oe(e);e=t;for(var a,o=t=0;o<n;o++){var s=_[e>>2],l=_[e+4>>2];e+=8;var c=i,u=s,d=l,h=a,p=C;if(0>d||0>h)throw new Pe(28);if(null===c.X)throw new Pe(8);if(1==(2097155&c.flags))throw new Pe(8);if(16384==(61440&c.node.mode))throw new Pe(31);if(!c.m.read)throw new Pe(28);var f=void 0!==h;if(f){if(!c.seekable)throw new Pe(70)}else h=c.position;var m=c.m.read(c,p,u,d,h);f||(c.position+=m);var A=m;if(0>A){var g=-1;break e}if(t+=A,A<l)break;void 0!==a&&(a+=A)}g=t}return _[r>>2]=g,0}catch(e){if(void 0===Ge||"ErrnoError"!==e.name)throw e;return e.aa}},fd_seek:function(e,t,n,r,i){t=n+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*n:NaN;try{if(isNaN(t))return 61;var a=Oe(e);return qe(a,t,r),X=[a.position>>>0,(Y=a.position,1<=+Math.abs(Y)?0<Y?+Math.floor(Y/4294967296)>>>0:~~+Math.ceil((Y-+(~~Y>>>0))/4294967296)>>>0:0)],x[i>>2]=X[0],x[i+4>>2]=X[1],a.Ma&&0===t&&0===r&&(a.Ma=null),0}catch(e){if(void 0===Ge||"ErrnoError"!==e.name)throw e;return e.aa}},fd_write:function(e,t,n,r){try{e:{var i=Oe(e);e=t;for(var a,o=t=0;o<n;o++){var s=_[e>>2],l=_[e+4>>2];e+=8;var c=i,u=s,d=l,h=a,p=C;if(0>d||0>h)throw new Pe(28);if(null===c.X)throw new Pe(8);if(0==(2097155&c.flags))throw new Pe(8);if(16384==(61440&c.node.mode))throw new Pe(31);if(!c.m.write)throw new Pe(28);c.seekable&&1024&c.flags&&qe(c,0,2);var f=void 0!==h;if(f){if(!c.seekable)throw new Pe(70)}else h=c.position;var m=c.m.write(c,p,u,d,h,void 0);f||(c.position+=m);var A=m;if(0>A){var g=-1;break e}t+=A,void 0!==a&&(a+=A)}g=t}return _[r>>2]=g,0}catch(e){if(void 0===Ge||"ErrnoError"!==e.name)throw e;return e.aa}},strftime_l:(e,t,n,r)=>((e,t,n,r)=>{function i(e,t,n){for(e="number"==typeof e?e.toString():e||"";e.length<t;)e=n[0]+e;return e}function a(e,t){return i(e,t,"0")}function o(e,t){function n(e){return 0>e?-1:0<e?1:0}var r;return 0===(r=n(e.getFullYear()-t.getFullYear()))&&0===(r=n(e.getMonth()-t.getMonth()))&&(r=n(e.getDate()-t.getDate())),r}function s(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function l(e){var t=e.ca;for(e=new Date(new Date(e.da+1900,0,1).getTime());0<t;){var n=e.getMonth(),r=(yn(e.getFullYear())?En:wn)[n];if(!(t>r-e.getDate())){e.setDate(e.getDate()+t);break}t-=r-e.getDate()+1,e.setDate(1),11>n?e.setMonth(n+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return n=new Date(e.getFullYear()+1,0,4),t=s(new Date(e.getFullYear(),0,4)),n=s(n),0>=o(t,e)?0>=o(n,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var c=x[r+40>>2];for(var u in r={wc:x[r>>2],vc:x[r+4>>2],Fa:x[r+8>>2],Sa:x[r+12>>2],Ga:x[r+16>>2],da:x[r+20>>2],R:x[r+24>>2],ca:x[r+28>>2],Rc:x[r+32>>2],uc:x[r+36>>2],xc:c&&c?ie(B,c):""},n=n?ie(B,n):"",c={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})n=n.replace(new RegExp(u,"g"),c[u]);var d="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),h="January February March April May June July August September October November December".split(" ");for(u in c={"%a":e=>d[e.R].substring(0,3),"%A":e=>d[e.R],"%b":e=>h[e.Ga].substring(0,3),"%B":e=>h[e.Ga],"%C":e=>a((e.da+1900)/100|0,2),"%d":e=>a(e.Sa,2),"%e":e=>i(e.Sa,2," "),"%g":e=>l(e).toString().substring(2),"%G":e=>l(e),"%H":e=>a(e.Fa,2),"%I":e=>(0==(e=e.Fa)?e=12:12<e&&(e-=12),a(e,2)),"%j":e=>{for(var t=0,n=0;n<=e.Ga-1;t+=(yn(e.da+1900)?En:wn)[n++]);return a(e.Sa+t,3)},"%m":e=>a(e.Ga+1,2),"%M":e=>a(e.vc,2),"%n":()=>"\n","%p":e=>0<=e.Fa&&12>e.Fa?"AM":"PM","%S":e=>a(e.wc,2),"%t":()=>"\t","%u":e=>e.R||7,"%U":e=>a(Math.floor((e.ca+7-e.R)/7),2),"%V":e=>{var t=Math.floor((e.ca+7-(e.R+6)%7)/7);if(2>=(e.R+371-e.ca-2)%7&&t++,t)53==t&&(4==(n=(e.R+371-e.ca)%7)||3==n&&yn(e.da)||(t=1));else{t=52;var n=(e.R+7-e.ca-1)%7;(4==n||5==n&&yn(e.da%400-1))&&t++}return a(t,2)},"%w":e=>e.R,"%W":e=>a(Math.floor((e.ca+7-(e.R+6)%7)/7),2),"%y":e=>(e.da+1900).toString().substring(2),"%Y":e=>e.da+1900,"%z":e=>{var t=0<=(e=e.uc);return e=Math.abs(e)/60,(t?"+":"-")+String("0000"+(e/60*100+e%60)).slice(-4)},"%Z":e=>e.xc,"%%":()=>"%"},n=n.replace(/%%/g,"\0\0"),c)n.includes(u)&&(n=n.replace(new RegExp(u,"g"),c[u](r)));return(u=le(n=n.replace(/\0\0/g,"%"),!1)).length>t?0:(C.set(u,e),u.length-1)})(e,t,n,r)};!function(){function e(e){if(w=e=e.exports,E=w.memory,R(),M=w.__indirect_function_table,L.unshift(w.__wasm_call_ctors),D--,i.monitorRunDependencies&&i.monitorRunDependencies(D),0==D&&(null!==U&&(clearInterval(U),U=null),W)){var t=W;W=null,t()}return e}var t={env:Pn,wasi_snapshot_preview1:Pn};if(D++,i.monitorRunDependencies&&i.monitorRunDependencies(D),i.instantiateWasm)try{return i.instantiateWasm(t,e)}catch(e){y("Module.instantiateWasm callback failed with error: "+e),n(e)}(function(e,t){var n=j;return v||"function"!=typeof WebAssembly.instantiateStreaming||V(n)||n.startsWith("file://")||"function"!=typeof fetch?q(n,e,t):fetch(n,{credentials:"same-origin"}).then(r=>WebAssembly.instantiateStreaming(r,e).then(t,(function(r){return y("wasm streaming compile failed: "+r),y("falling back to ArrayBuffer instantiation"),q(n,e,t)})))})(t,(function(t){e(t.instance)})).catch(n)}();var xn=e=>(xn=w.free)(e),_n=e=>(_n=w.malloc)(e),Tn=()=>(Tn=w.__errno_location)(),Sn=i._ma_device__on_notification_unlocked=e=>(Sn=i._ma_device__on_notification_unlocked=w.ma_device__on_notification_unlocked)(e);i._ma_malloc_emscripten=(e,t)=>(i._ma_malloc_emscripten=w.ma_malloc_emscripten)(e,t),i._ma_free_emscripten=(e,t)=>(i._ma_free_emscripten=w.ma_free_emscripten)(e,t);var In,Rn=i._ma_device_process_pcm_frames_capture__webaudio=(e,t,n)=>(Rn=i._ma_device_process_pcm_frames_capture__webaudio=w.ma_device_process_pcm_frames_capture__webaudio)(e,t,n),Mn=i._ma_device_process_pcm_frames_playback__webaudio=(e,t,n)=>(Mn=i._ma_device_process_pcm_frames_playback__webaudio=w.ma_device_process_pcm_frames_playback__webaudio)(e,t,n),Fn=e=>(Fn=w.__getTypeName)(e);function Ln(){function e(){if(!In&&(In=!0,i.calledRun=!0,!I)){if(i.noFSInit||me||(me=!0,Ye(),i.stdin=i.stdin,i.stdout=i.stdout,i.stderr=i.stderr,i.stdin?Xe("stdin",i.stdin):Ve("/dev/tty","/dev/stdin"),i.stdout?Xe("stdout",null,i.stdout):Ve("/dev/tty","/dev/stdout"),i.stderr?Xe("stderr",null,i.stderr):Ve("/dev/tty1","/dev/stderr"),Ke("/dev/stdin",0),Ke("/dev/stdout",1),Ke("/dev/stderr",1)),ke=!1,Q(L),t(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var e=i.postRun.shift();O.unshift(e)}Q(O)}}if(!(0<D)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)N();Q(F),0<D||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),e()}),1)):e())}}if(i.__embind_initialize_bindings=()=>(i.__embind_initialize_bindings=w._embind_initialize_bindings)(),i.dynCall_iiji=(e,t,n,r,a)=>(i.dynCall_iiji=w.dynCall_iiji)(e,t,n,r,a),i.dynCall_jiji=(e,t,n,r,a)=>(i.dynCall_jiji=w.dynCall_jiji)(e,t,n,r,a),i.dynCall_iiiji=(e,t,n,r,a,o)=>(i.dynCall_iiiji=w.dynCall_iiiji)(e,t,n,r,a,o),i.dynCall_iij=(e,t,n,r)=>(i.dynCall_iij=w.dynCall_iij)(e,t,n,r),i.dynCall_jii=(e,t,n)=>(i.dynCall_jii=w.dynCall_jii)(e,t,n),i.dynCall_viijii=(e,t,n,r,a,o,s)=>(i.dynCall_viijii=w.dynCall_viijii)(e,t,n,r,a,o,s),i.dynCall_iiiiij=(e,t,n,r,a,o,s)=>(i.dynCall_iiiiij=w.dynCall_iiiiij)(e,t,n,r,a,o,s),i.dynCall_iiiiijj=(e,t,n,r,a,o,s,l,c)=>(i.dynCall_iiiiijj=w.dynCall_iiiiijj)(e,t,n,r,a,o,s,l,c),i.dynCall_iiiiiijj=(e,t,n,r,a,o,s,l,c,u)=>(i.dynCall_iiiiiijj=w.dynCall_iiiiiijj)(e,t,n,r,a,o,s,l,c,u),W=function e(){In||Ln(),In||(W=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();return Ln(),e.ready})},e=>{e.exports=JSON.parse('{"name":"@rive-app/canvas","version":"2.30.0","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}')},(e,t,n)=>{n.r(t),n.d(t,{Animation:()=>r.Animation});var r=n(4)},(e,t,n)=>{n.r(t),n.d(t,{Animation:()=>r});var r=function(){function e(e,t,n,r){this.animation=e,this.artboard=t,this.playing=r,this.loopCount=0,this.scrubTo=null,this.instance=new n.LinearAnimationInstance(e,t)}return Object.defineProperty(e.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this.instance.time},set:function(e){this.instance.time=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needsScrub",{get:function(){return null!==this.scrubTo},enumerable:!1,configurable:!0}),e.prototype.advance=function(e){null===this.scrubTo?this.instance.advance(e):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},e.prototype.apply=function(e){this.instance.apply(e)},e.prototype.cleanup=function(){this.instance.delete()},e}()},(e,t,n)=>{n.r(t),n.d(t,{AudioAssetWrapper:()=>a.AudioAssetWrapper,AudioWrapper:()=>a.AudioWrapper,BLANK_URL:()=>i.BLANK_URL,CustomFileAssetLoaderWrapper:()=>a.CustomFileAssetLoaderWrapper,FileAssetWrapper:()=>a.FileAssetWrapper,Finalizable:()=>a.Finalizable,FontAssetWrapper:()=>a.FontAssetWrapper,FontWrapper:()=>a.FontWrapper,ImageAssetWrapper:()=>a.ImageAssetWrapper,ImageWrapper:()=>a.ImageWrapper,finalizationRegistry:()=>a.finalizationRegistry,registerTouchInteractions:()=>r.registerTouchInteractions,sanitizeUrl:()=>i.sanitizeUrl});var r=n(6),i=n(7),a=n(8)},(e,t,n)=>{n.r(t),n.d(t,{registerTouchInteractions:()=>r});var r=function(e){var t=e.canvas,n=e.artboard,r=e.stateMachines,i=void 0===r?[]:r,a=e.renderer,o=e.rive,s=e.fit,l=e.alignment,c=e.isTouchScrollEnabled,u=void 0!==c&&c,d=e.layoutScaleFactor,h=void 0===d?1:d;if(!(t&&i.length&&a&&o&&n&&"undefined"!=typeof window))return null;var p=null,f=!1,m=function(e){if(f&&e instanceof MouseEvent)"mouseup"==e.type&&(f=!1);else{f=u&&"touchend"===e.type&&"touchstart"===p,p=e.type;var t=e.currentTarget.getBoundingClientRect(),r=function(e,t){var n,r;return["touchstart","touchmove"].indexOf(e.type)>-1&&(null===(n=e.touches)||void 0===n?void 0:n.length)?(t||e.preventDefault(),{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}):"touchend"===e.type&&(null===(r=e.changedTouches)||void 0===r?void 0:r.length)?{clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}(e,u),a=r.clientX,c=r.clientY;if(a||c){var d=a-t.left,m=c-t.top,A=o.computeAlignment(s,l,{minX:0,minY:0,maxX:t.width,maxY:t.height},n.bounds,h),g=new o.Mat2D;A.invert(g);var v=new o.Vec2D(d,m),b=o.mapXY(g,v),y=b.x(),E=b.y();switch(b.delete(),g.delete(),v.delete(),A.delete(),e.type){case"mouseout":for(var w=0,C=i;w<C.length;w++)C[w].pointerMove(y,E);break;case"touchmove":case"mouseover":case"mousemove":for(var B=0,k=i;B<k.length;B++)k[B].pointerMove(y,E);break;case"touchstart":case"mousedown":for(var P=0,x=i;P<x.length;P++)x[P].pointerDown(y,E);break;case"touchend":case"mouseup":for(var _=0,T=i;_<T.length;_++)T[_].pointerUp(y,E)}}}}.bind(void 0);return t.addEventListener("mouseover",m),t.addEventListener("mouseout",m),t.addEventListener("mousemove",m),t.addEventListener("mousedown",m),t.addEventListener("mouseup",m),t.addEventListener("touchmove",m,{passive:u}),t.addEventListener("touchstart",m,{passive:u}),t.addEventListener("touchend",m),function(){t.removeEventListener("mouseover",m),t.removeEventListener("mouseout",m),t.removeEventListener("mousemove",m),t.removeEventListener("mousedown",m),t.removeEventListener("mouseup",m),t.removeEventListener("touchmove",m),t.removeEventListener("touchstart",m),t.removeEventListener("touchend",m)}}},(e,t,n)=>{n.r(t),n.d(t,{BLANK_URL:()=>c,sanitizeUrl:()=>u});var r=/^([^\w]*)(javascript|data|vbscript)/im,i=/&#(\w+)(^\w|;)?/g,a=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,s=/^.+(:|&colon;)/gim,l=[".","/"],c="about:blank";function u(e){if(!e)return c;var t,n=(t=e,t.replace(o,"").replace(i,(function(e,t){return String.fromCharCode(t)}))).replace(a,"").replace(o,"").trim();if(!n)return c;if(function(e){return l.indexOf(e[0])>-1}(n))return n;var u=n.match(s);if(!u)return n;var d=u[0];return r.test(d)?c:n}},(e,t,n)=>{n.r(t),n.d(t,{AudioAssetWrapper:()=>h,AudioWrapper:()=>s,CustomFileAssetLoaderWrapper:()=>c,FileAssetWrapper:()=>u,Finalizable:()=>a,FontAssetWrapper:()=>p,FontWrapper:()=>l,ImageAssetWrapper:()=>d,ImageWrapper:()=>o,finalizationRegistry:()=>m});var r,i=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){this.selfUnref=!1},o=function(e){function t(t){var n=e.call(this)||this;return n._nativeImage=t,n}return i(t,e),Object.defineProperty(t.prototype,"nativeImage",{get:function(){return this._nativeImage},enumerable:!1,configurable:!0}),t.prototype.unref=function(){this.selfUnref&&this._nativeImage.unref()},t}(a),s=function(e){function t(t){var n=e.call(this)||this;return n._nativeAudio=t,n}return i(t,e),Object.defineProperty(t.prototype,"nativeAudio",{get:function(){return this._nativeAudio},enumerable:!1,configurable:!0}),t.prototype.unref=function(){this.selfUnref&&this._nativeAudio.unref()},t}(a),l=function(e){function t(t){var n=e.call(this)||this;return n._nativeFont=t,n}return i(t,e),Object.defineProperty(t.prototype,"nativeFont",{get:function(){return this._nativeFont},enumerable:!1,configurable:!0}),t.prototype.unref=function(){this.selfUnref&&this._nativeFont.unref()},t}(a),c=function(){function e(e,t){this._assetLoaderCallback=t,this.assetLoader=new e.CustomFileAssetLoader({loadContents:this.loadContents.bind(this)})}return e.prototype.loadContents=function(e,t){var n;return e.isImage?n=new d(e):e.isAudio?n=new h(e):e.isFont&&(n=new p(e)),this._assetLoaderCallback(n,t)},e}(),u=function(){function e(e){this._nativeFileAsset=e}return e.prototype.decode=function(e){this._nativeFileAsset.decode(e)},Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeFileAsset.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fileExtension",{get:function(){return this._nativeFileAsset.fileExtension},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniqueFilename",{get:function(){return this._nativeFileAsset.uniqueFilename},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAudio",{get:function(){return this._nativeFileAsset.isAudio},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isImage",{get:function(){return this._nativeFileAsset.isImage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFont",{get:function(){return this._nativeFileAsset.isFont},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cdnUuid",{get:function(){return this._nativeFileAsset.cdnUuid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nativeFileAsset",{get:function(){return this._nativeFileAsset},enumerable:!1,configurable:!0}),e}(),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.setRenderImage=function(e){this._nativeFileAsset.setRenderImage(e.nativeImage)},t}(u),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.setAudioSource=function(e){this._nativeFileAsset.setAudioSource(e.nativeAudio)},t}(u),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.setFont=function(e){this._nativeFileAsset.setFont(e.nativeFont)},t}(u),f=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.register=function(e){e.selfUnref=!0},t.prototype.unregister=function(e){},t}(FinalizationRegistry),m=new(FinalizationRegistry||f)((function(e){e.unref()}))}],t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{Alignment:()=>i,DataEnum:()=>L,EventType:()=>y,Fit:()=>t,Layout:()=>A,LoopType:()=>E,Rive:()=>M,RiveEventType:()=>v,RiveFile:()=>R,RuntimeLoader:()=>g,StateMachineInput:()=>b,StateMachineInputType:()=>m,Testing:()=>X,ViewModel:()=>F,ViewModelInstance:()=>O,ViewModelInstanceAssetImage:()=>K,ViewModelInstanceBoolean:()=>U,ViewModelInstanceColor:()=>z,ViewModelInstanceEnum:()=>H,ViewModelInstanceList:()=>V,ViewModelInstanceNumber:()=>D,ViewModelInstanceString:()=>j,ViewModelInstanceTrigger:()=>W,ViewModelInstanceValue:()=>N,decodeAudio:()=>G,decodeFont:()=>Z,decodeImage:()=>Q});var e,t,i,a=n(1),o=n(2),s=n(3),l=n(5),c=(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},d=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))},h=function(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},p=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isHandledError=!0,t}return c(t,e),t}(Error);!function(e){e.Cover="cover",e.Contain="contain",e.Fill="fill",e.FitWidth="fitWidth",e.FitHeight="fitHeight",e.None="none",e.ScaleDown="scaleDown",e.Layout="layout"}(t||(t={})),function(e){e.Center="center",e.TopLeft="topLeft",e.TopCenter="topCenter",e.TopRight="topRight",e.CenterLeft="centerLeft",e.CenterRight="centerRight",e.BottomLeft="bottomLeft",e.BottomCenter="bottomCenter",e.BottomRight="bottomRight"}(i||(i={}));var m,A=function(){function e(e){var n,r,a,o,s,l,c;this.fit=null!==(n=null==e?void 0:e.fit)&&void 0!==n?n:t.Contain,this.alignment=null!==(r=null==e?void 0:e.alignment)&&void 0!==r?r:i.Center,this.layoutScaleFactor=null!==(a=null==e?void 0:e.layoutScaleFactor)&&void 0!==a?a:1,this.minX=null!==(o=null==e?void 0:e.minX)&&void 0!==o?o:0,this.minY=null!==(s=null==e?void 0:e.minY)&&void 0!==s?s:0,this.maxX=null!==(l=null==e?void 0:e.maxX)&&void 0!==l?l:0,this.maxY=null!==(c=null==e?void 0:e.maxY)&&void 0!==c?c:0}return e.new=function(t){var n=t.fit,r=t.alignment,i=t.minX,a=t.minY,o=t.maxX,s=t.maxY;return console.warn("This function is deprecated: please use `new Layout({})` instead"),new e({fit:n,alignment:r,minX:i,minY:a,maxX:o,maxY:s})},e.prototype.copyWith=function(t){var n=t.fit,r=t.alignment,i=t.layoutScaleFactor,a=t.minX,o=t.minY,s=t.maxX,l=t.maxY;return new e({fit:null!=n?n:this.fit,alignment:null!=r?r:this.alignment,layoutScaleFactor:null!=i?i:this.layoutScaleFactor,minX:null!=a?a:this.minX,minY:null!=o?o:this.minY,maxX:null!=s?s:this.maxX,maxY:null!=l?l:this.maxY})},e.prototype.runtimeFit=function(e){return this.cachedRuntimeFit?this.cachedRuntimeFit:(n=this.fit===t.Cover?e.Fit.cover:this.fit===t.Contain?e.Fit.contain:this.fit===t.Fill?e.Fit.fill:this.fit===t.FitWidth?e.Fit.fitWidth:this.fit===t.FitHeight?e.Fit.fitHeight:this.fit===t.ScaleDown?e.Fit.scaleDown:this.fit===t.Layout?e.Fit.layout:e.Fit.none,this.cachedRuntimeFit=n,n);var n},e.prototype.runtimeAlignment=function(e){return this.cachedRuntimeAlignment?this.cachedRuntimeAlignment:(t=this.alignment===i.TopLeft?e.Alignment.topLeft:this.alignment===i.TopCenter?e.Alignment.topCenter:this.alignment===i.TopRight?e.Alignment.topRight:this.alignment===i.CenterLeft?e.Alignment.centerLeft:this.alignment===i.CenterRight?e.Alignment.centerRight:this.alignment===i.BottomLeft?e.Alignment.bottomLeft:this.alignment===i.BottomCenter?e.Alignment.bottomCenter:this.alignment===i.BottomRight?e.Alignment.bottomRight:e.Alignment.center,this.cachedRuntimeAlignment=t,t);var t},e}(),g=function(){function e(){}return e.loadRuntime=function(){a.default({locateFile:function(){return e.wasmURL}}).then((function(t){var n;for(e.runtime=t;e.callBackQueue.length>0;)null===(n=e.callBackQueue.shift())||void 0===n||n(e.runtime)})).catch((function(t){var n={message:(null==t?void 0:t.message)||"Unknown error",type:(null==t?void 0:t.name)||"Error",wasmError:t instanceof WebAssembly.CompileError||t instanceof WebAssembly.RuntimeError,originalError:t};console.debug("Rive WASM load error details:",n);var r="https://cdn.jsdelivr.net/npm/".concat(o.name,"@").concat(o.version,"/rive_fallback.wasm");if(e.wasmURL.toLowerCase()!==r)console.warn("Failed to load WASM from ".concat(e.wasmURL," (").concat(n.message,"), trying jsdelivr as a backup")),e.setWasmUrl(r),e.loadRuntime();else{var i=["Could not load Rive WASM file from ".concat(e.wasmURL," or ").concat(r,"."),"Possible reasons:","- Network connection is down","- WebAssembly is not supported in this environment","- The WASM file is corrupted or incompatible","\nError details:","- Type: ".concat(n.type),"- Message: ".concat(n.message),"- WebAssembly-specific error: ".concat(n.wasmError),"\nTo resolve, you may need to:","1. Check your network connection","2. Set a new WASM source via RuntimeLoader.setWasmUrl()","3. Call RuntimeLoader.loadRuntime() again"].join("\n");console.error(i)}}))},e.getInstance=function(t){e.isLoading||(e.isLoading=!0,e.loadRuntime()),e.runtime?t(e.runtime):e.callBackQueue.push(t)},e.awaitInstance=function(){return new Promise((function(t){return e.getInstance((function(e){return t(e)}))}))},e.setWasmUrl=function(t){e.wasmURL=t},e.getWasmUrl=function(){return e.wasmURL},e.isLoading=!1,e.callBackQueue=[],e.wasmURL="https://unpkg.com/".concat(o.name,"@").concat(o.version,"/rive.wasm"),e}();!function(e){e[e.Number=56]="Number",e[e.Trigger=58]="Trigger",e[e.Boolean=59]="Boolean"}(m||(m={}));var v,b=function(){function e(e,t){this.type=e,this.runtimeInput=t}return Object.defineProperty(e.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(e){this.runtimeInput.value=e},enumerable:!1,configurable:!0}),e.prototype.fire=function(){this.type===m.Trigger&&this.runtimeInput.fire()},e.prototype.delete=function(){this.runtimeInput=null},e}();!function(e){e[e.General=128]="General",e[e.OpenUrl=131]="OpenUrl"}(v||(v={}));var y,E,w=function(){function e(e,t,n,r){this.stateMachine=e,this.playing=n,this.artboard=r,this.inputs=[],this.instance=new t.StateMachineInstance(e,r),this.initInputs(t)}return Object.defineProperty(e.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statesChanged",{get:function(){for(var e=[],t=0;t<this.instance.stateChangedCount();t++)e.push(this.instance.stateChangedNameByIndex(t));return e},enumerable:!1,configurable:!0}),e.prototype.advance=function(e){this.instance.advance(e)},e.prototype.advanceAndApply=function(e){this.instance.advanceAndApply(e)},e.prototype.reportedEventCount=function(){return this.instance.reportedEventCount()},e.prototype.reportedEventAt=function(e){return this.instance.reportedEventAt(e)},e.prototype.initInputs=function(e){for(var t=0;t<this.instance.inputCount();t++){var n=this.instance.input(t);this.inputs.push(this.mapRuntimeInput(n,e))}},e.prototype.mapRuntimeInput=function(e,t){return e.type===t.SMIInput.bool?new b(m.Boolean,e.asBool()):e.type===t.SMIInput.number?new b(m.Number,e.asNumber()):e.type===t.SMIInput.trigger?new b(m.Trigger,e.asTrigger()):void 0},e.prototype.cleanup=function(){this.inputs.forEach((function(e){e.delete()})),this.inputs.length=0,this.instance.delete()},e.prototype.bindViewModelInstance=function(e){null!=e.runtimeInstance&&this.instance.bindViewModelInstance(e.runtimeInstance)},e}(),C=function(){function e(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]),this.runtime=e,this.artboard=t,this.eventManager=n,this.animations=r,this.stateMachines=i}return e.prototype.add=function(e,t,n){if(void 0===n&&(n=!0),0===(e=Y(e)).length)this.animations.forEach((function(e){return e.playing=t})),this.stateMachines.forEach((function(e){return e.playing=t}));else for(var r=this.animations.map((function(e){return e.name})),i=this.stateMachines.map((function(e){return e.name})),a=0;a<e.length;a++){var o=r.indexOf(e[a]),l=i.indexOf(e[a]);if(o>=0||l>=0)o>=0?this.animations[o].playing=t:this.stateMachines[l].playing=t;else{var c=this.artboard.animationByName(e[a]);if(c){var u=new s.Animation(c,this.artboard,this.runtime,t);u.advance(0),u.apply(1),this.animations.push(u)}else{var d=this.artboard.stateMachineByName(e[a]);if(d){var h=new w(d,this.runtime,t,this.artboard);this.stateMachines.push(h)}}}}return n&&(t?this.eventManager.fire({type:y.Play,data:this.playing}):this.eventManager.fire({type:y.Pause,data:this.paused})),t?this.playing:this.paused},e.prototype.initLinearAnimations=function(e,t){for(var n=this.animations.map((function(e){return e.name})),r=0;r<e.length;r++){var i=n.indexOf(e[r]);if(i>=0)this.animations[i].playing=t;else{var a=this.artboard.animationByName(e[r]);if(a){var o=new s.Animation(a,this.artboard,this.runtime,t);o.advance(0),o.apply(1),this.animations.push(o)}else console.error("Animation with name ".concat(e[r]," not found."))}}},e.prototype.initStateMachines=function(e,t){for(var n=this.stateMachines.map((function(e){return e.name})),r=0;r<e.length;r++){var i=n.indexOf(e[r]);if(i>=0)this.stateMachines[i].playing=t;else{var a=this.artboard.stateMachineByName(e[r]);if(a){var o=new w(a,this.runtime,t,this.artboard);this.stateMachines.push(o),t||o.advanceAndApply(0)}else console.warn("State Machine with name ".concat(e[r]," not found.")),this.initLinearAnimations([e[r]],t)}}},e.prototype.play=function(e){return this.add(e,!0)},e.prototype.pause=function(e){return this.add(e,!1)},e.prototype.scrub=function(e,t){var n=this.animations.filter((function(t){return e.includes(t.name)}));return n.forEach((function(e){return e.scrubTo=t})),n.map((function(e){return e.name}))},Object.defineProperty(e.prototype,"playing",{get:function(){return this.animations.filter((function(e){return e.playing})).map((function(e){return e.name})).concat(this.stateMachines.filter((function(e){return e.playing})).map((function(e){return e.name})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this.animations.filter((function(e){return!e.playing})).map((function(e){return e.name})).concat(this.stateMachines.filter((function(e){return!e.playing})).map((function(e){return e.name})))},enumerable:!1,configurable:!0}),e.prototype.stop=function(e){var t=this,n=[];if(0===(e=Y(e)).length)n=this.animations.map((function(e){return e.name})).concat(this.stateMachines.map((function(e){return e.name}))),this.animations.forEach((function(e){return e.cleanup()})),this.stateMachines.forEach((function(e){return e.cleanup()})),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var r=this.animations.filter((function(t){return e.includes(t.name)}));r.forEach((function(e){e.cleanup(),t.animations.splice(t.animations.indexOf(e),1)}));var i=this.stateMachines.filter((function(t){return e.includes(t.name)}));i.forEach((function(e){e.cleanup(),t.stateMachines.splice(t.stateMachines.indexOf(e),1)})),n=r.map((function(e){return e.name})).concat(i.map((function(e){return e.name})))}return this.eventManager.fire({type:y.Stop,data:n}),n},Object.defineProperty(e.prototype,"isPlaying",{get:function(){return this.animations.reduce((function(e,t){return e||t.playing}),!1)||this.stateMachines.reduce((function(e,t){return e||t.playing}),!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStopped",{get:function(){return 0===this.animations.length&&0===this.stateMachines.length},enumerable:!1,configurable:!0}),e.prototype.atLeastOne=function(e,t){var n;return void 0===t&&(t=!0),0===this.animations.length&&0===this.stateMachines.length&&(this.artboard.animationCount()>0?this.add([n=this.artboard.animationByIndex(0).name],e,t):this.artboard.stateMachineCount()>0&&this.add([n=this.artboard.stateMachineByIndex(0).name],e,t)),n},e.prototype.handleLooping=function(){for(var e=0,t=this.animations.filter((function(e){return e.playing}));e<t.length;e++){var n=t[e];0===n.loopValue&&n.loopCount?(n.loopCount=0,this.stop(n.name)):1===n.loopValue&&n.loopCount?(this.eventManager.fire({type:y.Loop,data:{animation:n.name,type:E.Loop}}),n.loopCount=0):2===n.loopValue&&n.loopCount>1&&(this.eventManager.fire({type:y.Loop,data:{animation:n.name,type:E.PingPong}}),n.loopCount=0)}},e.prototype.handleStateChanges=function(){for(var e=[],t=0,n=this.stateMachines.filter((function(e){return e.playing}));t<n.length;t++){var r=n[t];e.push.apply(e,r.statesChanged)}e.length>0&&this.eventManager.fire({type:y.StateChange,data:e})},e.prototype.handleAdvancing=function(e){this.eventManager.fire({type:y.Advance,data:e})},e}();!function(e){e.Load="load",e.LoadError="loaderror",e.Play="play",e.Pause="pause",e.Stop="stop",e.Loop="loop",e.Draw="draw",e.Advance="advance",e.StateChange="statechange",e.RiveEvent="riveevent",e.AudioStatusChange="audiostatuschange"}(y||(y={})),function(e){e.OneShot="oneshot",e.Loop="loop",e.PingPong="pingpong"}(E||(E={}));var B,k=function(){function e(e){void 0===e&&(e=[]),this.listeners=e}return e.prototype.getListeners=function(e){return this.listeners.filter((function(t){return t.type===e}))},e.prototype.add=function(e){this.listeners.includes(e)||this.listeners.push(e)},e.prototype.remove=function(e){for(var t=0;t<this.listeners.length;t++){var n=this.listeners[t];if(n.type===e.type&&n.callback===e.callback){this.listeners.splice(t,1);break}}},e.prototype.removeAll=function(e){var t=this;e?this.listeners.filter((function(t){return t.type===e})).forEach((function(e){return t.remove(e)})):this.listeners.splice(0,this.listeners.length)},e.prototype.fire=function(e){this.getListeners(e.type).forEach((function(t){return t.callback(e)}))},e}(),P=function(){function e(e){this.eventManager=e,this.queue=[]}return e.prototype.add=function(e){this.queue.push(e)},e.prototype.process=function(){for(;this.queue.length>0;){var e=this.queue.shift();(null==e?void 0:e.action)&&e.action(),(null==e?void 0:e.event)&&this.eventManager.fire(e.event)}},e}();!function(e){e[e.AVAILABLE=0]="AVAILABLE",e[e.UNAVAILABLE=1]="UNAVAILABLE"}(B||(B={}));var x,_=new(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._started=!1,t._enabled=!1,t._status=B.UNAVAILABLE,t}return c(t,e),t.prototype.delay=function(e){return d(this,void 0,void 0,(function(){return h(this,(function(t){return[2,new Promise((function(t){return setTimeout(t,e)}))]}))}))},t.prototype.timeout=function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){return[2,new Promise((function(e,t){return setTimeout(t,50)}))]}))}))},t.prototype.reportToListeners=function(){this.fire({type:y.AudioStatusChange}),this.removeAll()},t.prototype.enableAudio=function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){return this._enabled||(this._enabled=!0,this._status=B.AVAILABLE,this.reportToListeners()),[2]}))}))},t.prototype.testAudio=function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:if(this._status!==B.UNAVAILABLE||null===this._audioContext)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return e.sent(),this.enableAudio(),[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}}))}))},t.prototype._establishAudio=function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:return this._started?[3,5]:(this._started=!0,"undefined"!=typeof window?[3,1]:(this.enableAudio(),[3,5]));case 1:this._audioContext=new AudioContext,this.listenForUserAction(),e.label=2;case 2:return this._status!==B.UNAVAILABLE?[3,5]:[4,this.testAudio()];case 3:return e.sent(),[4,this.delay(1e3)];case 4:return e.sent(),[3,2];case 5:return[2]}}))}))},t.prototype.listenForUserAction=function(){var e=this;document.addEventListener("pointerdown",(function(){return d(e,void 0,void 0,(function(){return h(this,(function(e){return this.enableAudio(),[2]}))}))}),{once:!0})},t.prototype.establishAudio=function(){return d(this,void 0,void 0,(function(){return h(this,(function(e){return this._establishAudio(),[2]}))}))},Object.defineProperty(t.prototype,"systemVolume",{get:function(){return this._status===B.UNAVAILABLE?(this.testAudio(),0):1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),t}(k)),T=function(){function e(){}return e.prototype.observe=function(){},e.prototype.unobserve=function(){},e.prototype.disconnect=function(){},e}(),S=globalThis.ResizeObserver||T,I=new(function(){function e(){var e=this;this._elementsMap=new Map,this._onObservedEntry=function(t){var n=e._elementsMap.get(t.target);null!==n?n.onResize(0==t.target.clientWidth||0==t.target.clientHeight):e._resizeObserver.unobserve(t.target)},this._onObserved=function(t){t.forEach(e._onObservedEntry)},this._resizeObserver=new S(this._onObserved)}return e.prototype.add=function(e,t){var n={onResize:t,element:e};return this._elementsMap.set(e,n),this._resizeObserver.observe(e),n},e.prototype.remove=function(e){this._resizeObserver.unobserve(e.element),this._elementsMap.delete(e.element)},e}()),R=function(){function e(e){this.enableRiveAssetCDN=!0,this.referenceCount=0,this.destroyed=!1,this.src=e.src,this.buffer=e.buffer,e.assetLoader&&(this.assetLoader=e.assetLoader),this.enableRiveAssetCDN="boolean"!=typeof e.enableRiveAssetCDN||e.enableRiveAssetCDN,this.eventManager=new k,e.onLoad&&this.on(y.Load,e.onLoad),e.onLoadError&&this.on(y.LoadError,e.onLoadError)}return e.prototype.initData=function(){return d(this,void 0,void 0,(function(){var t,n,r,i,a;return h(this,(function(o){switch(o.label){case 0:return this.src?(t=this,[4,q(this.src)]):[3,2];case 1:t.buffer=o.sent(),o.label=2;case 2:return this.destroyed?[2]:(this.assetLoader&&(r=new l.CustomFileAssetLoaderWrapper(this.runtime,this.assetLoader),n=r.assetLoader),i=this,[4,this.runtime.load(new Uint8Array(this.buffer),n,this.enableRiveAssetCDN)]);case 3:return i.file=o.sent(),this.destroyed?(null===(a=this.file)||void 0===a||a.delete(),this.file=null,[2]):(null!==this.file?this.eventManager.fire({type:y.Load,data:this}):this.fireLoadError(e.fileLoadErrorMessage),[2])}}))}))},e.prototype.init=function(){return d(this,void 0,void 0,(function(){var t,n;return h(this,(function(r){switch(r.label){case 0:if(!this.src&&!this.buffer)return this.fireLoadError(e.missingErrorMessage),[2];r.label=1;case 1:return r.trys.push([1,4,,5]),t=this,[4,g.awaitInstance()];case 2:return t.runtime=r.sent(),this.destroyed?[2]:[4,this.initData()];case 3:return r.sent(),[3,5];case 4:return n=r.sent(),this.fireLoadError(n instanceof Error?n.message:e.fileLoadErrorMessage),[3,5];case 5:return[2]}}))}))},e.prototype.fireLoadError=function(e){throw this.eventManager.fire({type:y.LoadError,data:e}),new Error(e)},e.prototype.on=function(e,t){this.eventManager.add({type:e,callback:t})},e.prototype.off=function(e,t){this.eventManager.remove({type:e,callback:t})},e.prototype.cleanup=function(){var e;this.referenceCount-=1,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),null===(e=this.file)||void 0===e||e.delete(),this.file=null,this.destroyed=!0)},e.prototype.removeAllRiveEventListeners=function(e){this.eventManager.removeAll(e)},e.prototype.getInstance=function(){if(null!==this.file)return this.referenceCount+=1,this.file},e.missingErrorMessage="Rive source file or data buffer required",e.fileLoadErrorMessage="The file failed to load",e}(),M=function(){function e(e){var t,n=this;this.loaded=!1,this.destroyed=!1,this._observed=null,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._artboardWidth=void 0,this._artboardHeight=void 0,this._devicePixelRatioUsed=1,this._hasZeroSize=!1,this._audioEventListener=null,this._boundDraw=null,this._viewModelInstance=null,this._dataEnums=null,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(e){var t=n._hasZeroSize!==e;n._hasZeroSize=e,e?n._layout.maxX&&n._layout.maxY||n.resizeToCanvas():t&&n.resizeDrawingSurfaceToCanvas()},this.renderSecondTimer=0,this._boundDraw=this.draw.bind(this),this.canvas=e.canvas,e.canvas.constructor===HTMLCanvasElement&&(this._observed=I.add(this.canvas,this.onCanvasResize)),this.src=e.src,this.buffer=e.buffer,this.riveFile=e.riveFile,this.layout=null!==(t=e.layout)&&void 0!==t?t:new A,this.shouldDisableRiveListeners=!!e.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!e.isTouchScrollEnabled,this.automaticallyHandleEvents=!!e.automaticallyHandleEvents,this.enableRiveAssetCDN=void 0===e.enableRiveAssetCDN||e.enableRiveAssetCDN,this.eventManager=new k,e.onLoad&&this.on(y.Load,e.onLoad),e.onLoadError&&this.on(y.LoadError,e.onLoadError),e.onPlay&&this.on(y.Play,e.onPlay),e.onPause&&this.on(y.Pause,e.onPause),e.onStop&&this.on(y.Stop,e.onStop),e.onLoop&&this.on(y.Loop,e.onLoop),e.onStateChange&&this.on(y.StateChange,e.onStateChange),e.onAdvance&&this.on(y.Advance,e.onAdvance),e.onload&&!e.onLoad&&this.on(y.Load,e.onload),e.onloaderror&&!e.onLoadError&&this.on(y.LoadError,e.onloaderror),e.onplay&&!e.onPlay&&this.on(y.Play,e.onplay),e.onpause&&!e.onPause&&this.on(y.Pause,e.onpause),e.onstop&&!e.onStop&&this.on(y.Stop,e.onstop),e.onloop&&!e.onLoop&&this.on(y.Loop,e.onloop),e.onstatechange&&!e.onStateChange&&this.on(y.StateChange,e.onstatechange),e.assetLoader&&(this.assetLoader=e.assetLoader),this.taskQueue=new P(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:e.autoplay,autoBind:e.autoBind,animations:e.animations,stateMachines:e.stateMachines,artboard:e.artboard,useOffscreenRenderer:e.useOffscreenRenderer})}return Object.defineProperty(e.prototype,"viewModelCount",{get:function(){return this.file.viewModelCount()},enumerable:!1,configurable:!0}),e.new=function(t){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new e(t)},e.prototype.onSystemAudioChanged=function(){this.volume=this._volume},e.prototype.init=function(t){var n=this,r=t.src,i=t.buffer,a=t.riveFile,o=t.animations,s=t.stateMachines,l=t.artboard,c=t.autoplay,u=void 0!==c&&c,d=t.useOffscreenRenderer,h=void 0!==d&&d,p=t.autoBind,m=void 0!==p&&p;if(!this.destroyed){if(this.src=r,this.buffer=i,this.riveFile=a,!this.src&&!this.buffer&&!this.riveFile)throw new f(e.missingErrorMessage);var A=Y(o),v=Y(s);this.loaded=!1,this.readyForPlaying=!1,g.awaitInstance().then((function(e){n.destroyed||(n.runtime=e,n.removeRiveListeners(),n.deleteRiveRenderer(),n.renderer=n.runtime.makeRenderer(n.canvas,h),n.canvas.width||n.canvas.height||n.resizeDrawingSurfaceToCanvas(),n.initData(l,A,v,u,m).then((function(e){if(e)return n.setupRiveListeners()})).catch((function(e){console.error(e)})))})).catch((function(e){console.error(e)}))}},e.prototype.setupRiveListeners=function(e){var t=this;if(this.eventCleanup&&this.eventCleanup(),!this.shouldDisableRiveListeners){var n=(this.animator.stateMachines||[]).filter((function(e){return e.playing&&t.runtime.hasListeners(e.instance)})).map((function(e){return e.instance})),r=this.isTouchScrollEnabled;e&&"isTouchScrollEnabled"in e&&(r=e.isTouchScrollEnabled),this.eventCleanup=(0,l.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:n,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:r,layoutScaleFactor:this._layout.layoutScaleFactor})}},e.prototype.removeRiveListeners=function(){this.eventCleanup&&(this.eventCleanup(),this.eventCleanup=null)},e.prototype.initializeAudio=function(){var e,t=this;_.status==B.UNAVAILABLE&&(null===(e=this.artboard)||void 0===e?void 0:e.hasAudio)&&null===this._audioEventListener&&(this._audioEventListener={type:y.AudioStatusChange,callback:function(){return t.onSystemAudioChanged()}},_.add(this._audioEventListener),_.establishAudio())},e.prototype.initArtboardSize=function(){this.artboard&&(this._artboardWidth=this.artboard.width=this._artboardWidth||this.artboard.width,this._artboardHeight=this.artboard.height=this._artboardHeight||this.artboard.height)},e.prototype.initData=function(e,t,n,r,i){return d(this,void 0,void 0,(function(){var a,o,s;return h(this,(function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),null!=this.riveFile?[3,2]:(this.riveFile=new R({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),[4,this.riveFile.init()]);case 1:l.sent(),l.label=2;case 2:return this.riveFile?(this.file=this.riveFile.getInstance(),this.initArtboard(e,t,n,r,i),this.initArtboardSize(),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:y.Load,data:null!==(s=this.src)&&void 0!==s?s:"buffer"}),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,!0]):[2,!1];case 3:return a=l.sent(),o=(c=a)&&c.isHandledError?c.message:"Problem loading file; may be corrupt!",console.warn(o),this.eventManager.fire({type:y.LoadError,data:o}),[2,Promise.reject(o)];case 4:return[2]}var c}))}))},e.prototype.initArtboard=function(e,t,n,r,i){if(this.file){var a,o=e?this.file.artboardByName(e):this.file.defaultArtboard();if(!o){var s="Invalid artboard name or no default artboard";return console.warn(s),void this.eventManager.fire({type:y.LoadError,data:s})}if(this.artboard=o,o.volume=this._volume*_.systemVolume,this.artboard.animationCount()<1)throw s="Artboard has no animations",this.eventManager.fire({type:y.LoadError,data:s}),s;if(this.animator=new C(this.runtime,this.artboard,this.eventManager),t.length>0||n.length>0?(a=t.concat(n),this.animator.initLinearAnimations(t,r),this.animator.initStateMachines(n,r)):a=[this.animator.atLeastOne(r,!1)],this.taskQueue.add({event:{type:r?y.Play:y.Pause,data:a}}),i){var l=this.file.defaultArtboardViewModel(o);if(null!==l){var c=l.defaultInstance();if(null!==c){var u=new O(c,null);this.bindViewModelInstance(u)}}}}},e.prototype.drawFrame=function(){var e,t;(null===(e=null===document||void 0===document?void 0:document.timeline)||void 0===e?void 0:e.currentTime)?this.loaded&&this.artboard&&!this.frameRequestId&&(this._boundDraw(document.timeline.currentTime),null===(t=this.runtime)||void 0===t||t.resolveAnimationFrame()):this.startRendering()},e.prototype.draw=function(e,t){var n;this.frameRequestId=null;var r=performance.now();this.lastRenderTime||(this.lastRenderTime=e),this.renderSecondTimer+=e-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,null==t||t());var i=(e-this.lastRenderTime)/1e3;this.lastRenderTime=e;for(var a=0,o=this.animator.animations.filter((function(e){return e.playing||e.needsScrub})).sort((function(e){return e.needsScrub?-1:1}));a<o.length;a++){var s=o[a];s.advance(i),s.instance.didLoop&&(s.loopCount+=1),s.apply(1)}for(var c=0,u=this.animator.stateMachines.filter((function(e){return e.playing}));c<u.length;c++){var d=u[c],h=d.reportedEventCount();if(h)for(var p=0;p<h;p++){var f=d.reportedEventAt(p);if(f)if(f.type===v.OpenUrl){if(this.eventManager.fire({type:y.RiveEvent,data:f}),this.automaticallyHandleEvents){var m=document.createElement("a"),A=f,g=A.url,b=A.target,E=(0,l.sanitizeUrl)(g);g&&m.setAttribute("href",E),b&&m.setAttribute("target",b),E&&E!==l.BLANK_URL&&m.click()}}else this.eventManager.fire({type:y.RiveEvent,data:f})}d.advanceAndApply(i)}0==this.animator.stateMachines.length&&this.artboard.advance(i);var w=this.renderer;w.clear(),w.save(),this.alignRenderer(),this._hasZeroSize||this.artboard.draw(w),w.restore(),w.flush(),this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(i),this.frameCount++;var C=performance.now();for(this.frameTimes.push(C),this.durations.push(C-r);this.frameTimes[0]<=C-1e3;)this.frameTimes.shift(),this.durations.shift();null===(n=this._viewModelInstance)||void 0===n||n.handleCallbacks(),this.animator.isPlaying?this.startRendering():(this.animator.isPaused||this.animator.isStopped)&&(this.lastRenderTime=0)},e.prototype.alignRenderer=function(){var e=this.renderer,t=this.runtime,n=this._layout,r=this.artboard;e.align(n.runtimeFit(t),n.runtimeAlignment(t),{minX:n.minX,minY:n.minY,maxX:n.maxX,maxY:n.maxY},r.bounds,this._devicePixelRatioUsed*n.layoutScaleFactor)},Object.defineProperty(e.prototype,"fps",{get:function(){return this.durations.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameTime",{get:function(){return 0===this.durations.length?0:(this.durations.reduce((function(e,t){return e+t}),0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),e.prototype.cleanup=function(){var e,t;this.destroyed=!0,this.stopRendering(),this.cleanupInstances(),null!==this._observed&&I.remove(this._observed),this.removeRiveListeners(),this.file&&(null===(e=this.riveFile)||void 0===e||e.cleanup(),this.file=null),this.riveFile=null,this.deleteRiveRenderer(),null!==this._audioEventListener&&(_.remove(this._audioEventListener),this._audioEventListener=null),null===(t=this._viewModelInstance)||void 0===t||t.cleanup(),this._viewModelInstance=null,this._dataEnums=null},e.prototype.deleteRiveRenderer=function(){var e;null===(e=this.renderer)||void 0===e||e.delete(),this.renderer=null},e.prototype.cleanupInstances=function(){null!==this.eventCleanup&&this.eventCleanup(),this.stop(),this.artboard&&(this.artboard.delete(),this.artboard=null)},e.prototype.retrieveTextRun=function(e){var t;if(e)if(this.artboard){var n=this.artboard.textRun(e);if(n)return n;console.warn("Could not access a text run with name '".concat(e,"' in the '").concat(null===(t=this.artboard)||void 0===t?void 0:t.name,"' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime."))}else console.warn("Tried to access text run, but the Artboard is null");else console.warn("No text run name provided")},e.prototype.getTextRunValue=function(e){var t=this.retrieveTextRun(e);return t?t.text:void 0},e.prototype.setTextRunValue=function(e,t){var n=this.retrieveTextRun(e);n&&(n.text=t)},e.prototype.play=function(e,t){var n=this;e=Y(e),this.readyForPlaying?(this.animator.play(e),this.eventCleanup&&this.eventCleanup(),this.setupRiveListeners(),this.startRendering()):this.taskQueue.add({action:function(){return n.play(e,t)}})},e.prototype.pause=function(e){var t=this;e=Y(e),this.readyForPlaying?(this.eventCleanup&&this.eventCleanup(),this.animator.pause(e)):this.taskQueue.add({action:function(){return t.pause(e)}})},e.prototype.scrub=function(e,t){var n=this;e=Y(e),this.readyForPlaying?(this.animator.scrub(e,t||0),this.drawFrame()):this.taskQueue.add({action:function(){return n.scrub(e,t)}})},e.prototype.stop=function(e){var t=this;e=Y(e),this.readyForPlaying?(this.animator&&this.animator.stop(e),this.eventCleanup&&this.eventCleanup()):this.taskQueue.add({action:function(){return t.stop(e)}})},e.prototype.reset=function(e){var t,n,r=null==e?void 0:e.artboard,i=Y(null==e?void 0:e.animations),a=Y(null==e?void 0:e.stateMachines),o=null!==(t=null==e?void 0:e.autoplay)&&void 0!==t&&t,s=null!==(n=null==e?void 0:e.autoBind)&&void 0!==n&&n;this.cleanupInstances(),this.initArtboard(r,i,a,o,s),this.taskQueue.process()},e.prototype.load=function(e){this.file=null,this.stop(),this.init(e)},Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(e){this._layout=e,e.maxX&&e.maxY||this.resizeToCanvas(),this.loaded&&!this.animator.isPlaying&&this.drawFrame()},enumerable:!1,configurable:!0}),e.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height})},e.prototype.resizeDrawingSurfaceToCanvas=function(e){if(this.canvas instanceof HTMLCanvasElement&&window){var n=this.canvas.getBoundingClientRect(),r=n.width,i=n.height,a=e||window.devicePixelRatio||1;if(this.devicePixelRatioUsed=a,this.canvas.width=a*r,this.canvas.height=a*i,this.resizeToCanvas(),this.drawFrame(),this.layout.fit===t.Layout){var o=this._layout.layoutScaleFactor;this.artboard.width=r/o,this.artboard.height=i/o}}},Object.defineProperty(e.prototype,"source",{get:function(){return this.src},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"animationNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var e=[],t=0;t<this.artboard.animationCount();t++)e.push(this.artboard.animationByIndex(t).name);return e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stateMachineNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var e=[],t=0;t<this.artboard.stateMachineCount();t++)e.push(this.artboard.stateMachineByIndex(t).name);return e},enumerable:!1,configurable:!0}),e.prototype.stateMachineInputs=function(e){if(this.loaded){var t=this.animator.stateMachines.find((function(t){return t.name===e}));return null==t?void 0:t.inputs}},e.prototype.retrieveInputAtPath=function(e,t){if(e)if(this.artboard){var n=this.artboard.inputByPath(e,t);if(n)return n;console.warn("Could not access an input with name: '".concat(e,"', at path:'").concat(t,"'"))}else console.warn("Tried to access input: '".concat(e,"', at path: '").concat(t,"', but the Artboard is null"));else console.warn("No input name provided for path '".concat(t,"'"))},e.prototype.setBooleanStateAtPath=function(e,t,n){var r=this.retrieveInputAtPath(e,n);r&&(r.type===m.Boolean?r.asBool().value=t:console.warn("Input with name: '".concat(e,"', at path:'").concat(n,"' is not a boolean")))},e.prototype.setNumberStateAtPath=function(e,t,n){var r=this.retrieveInputAtPath(e,n);r&&(r.type===m.Number?r.asNumber().value=t:console.warn("Input with name: '".concat(e,"', at path:'").concat(n,"' is not a number")))},e.prototype.fireStateAtPath=function(e,t){var n=this.retrieveInputAtPath(e,t);n&&(n.type===m.Trigger?n.asTrigger().fire():console.warn("Input with name: '".concat(e,"', at path:'").concat(t,"' is not a trigger")))},e.prototype.retrieveTextAtPath=function(e,t){if(e)if(t)if(this.artboard){var n=this.artboard.textByPath(e,t);if(n)return n;console.warn("Could not access text with name: '".concat(e,"', at path:'").concat(t,"'"))}else console.warn("Tried to access text: '".concat(e,"', at path: '").concat(t,"', but the Artboard is null"));else console.warn("No path provided for text '".concat(e,"'"));else console.warn("No text name provided for path '".concat(t,"'"))},e.prototype.getTextRunValueAtPath=function(e,t){var n=this.retrieveTextAtPath(e,t);if(n)return n.text;console.warn("Could not get text with name: '".concat(e,"', at path:'").concat(t,"'"))},e.prototype.setTextRunValueAtPath=function(e,t,n){var r=this.retrieveTextAtPath(e,n);r?r.text=t:console.warn("Could not set text with name: '".concat(e,"', at path:'").concat(n,"'"))},Object.defineProperty(e.prototype,"playingStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter((function(e){return e.playing})).map((function(e){return e.name})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"playingAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter((function(e){return e.playing})).map((function(e){return e.name})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pausedAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter((function(e){return!e.playing})).map((function(e){return e.name})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pausedStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter((function(e){return!e.playing})).map((function(e){return e.name})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPlaying",{get:function(){return this.animator.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPaused",{get:function(){return this.animator.isPaused},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStopped",{get:function(){return this.animator.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.artboard?this.artboard.bounds:void 0},enumerable:!1,configurable:!0}),e.prototype.on=function(e,t){this.eventManager.add({type:e,callback:t})},e.prototype.off=function(e,t){this.eventManager.remove({type:e,callback:t})},e.prototype.unsubscribe=function(e,t){console.warn("This function is deprecated: please use `off()` instead."),this.off(e,t)},e.prototype.removeAllRiveEventListeners=function(e){this.eventManager.removeAll(e)},e.prototype.unsubscribeAll=function(e){console.warn("This function is deprecated: please use `removeAllRiveEventListeners()` instead."),this.removeAllRiveEventListeners(e)},e.prototype.stopRendering=function(){this.loaded&&this.frameRequestId&&(this.runtime.cancelAnimationFrame?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null)},e.prototype.startRendering=function(){this.loaded&&this.artboard&&!this.frameRequestId&&(this.runtime.requestAnimationFrame?this.frameRequestId=this.runtime.requestAnimationFrame(this._boundDraw):this.frameRequestId=requestAnimationFrame(this._boundDraw))},e.prototype.enableFPSCounter=function(e){this.runtime.enableFPSCounter(e)},e.prototype.disableFPSCounter=function(){this.runtime.disableFPSCounter()},Object.defineProperty(e.prototype,"contents",{get:function(){if(this.loaded){for(var e={artboards:[]},t=0;t<this.file.artboardCount();t++){for(var n=this.file.artboardByIndex(t),r={name:n.name,animations:[],stateMachines:[]},i=0;i<n.animationCount();i++){var a=n.animationByIndex(i);r.animations.push(a.name)}for(var o=0;o<n.stateMachineCount();o++){for(var s=n.stateMachineByIndex(o),l=s.name,c=new this.runtime.StateMachineInstance(s,n),u=[],d=0;d<c.inputCount();d++){var h=c.input(d);u.push({name:h.name,type:h.type})}r.stateMachines.push({name:l,inputs:u})}e.artboards.push(r)}return e}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this.artboard&&this.artboard.volume!==this._volume&&(this._volume=this.artboard.volume),this._volume},set:function(e){this._volume=e,this.artboard&&(this.artboard.volume=e*_.systemVolume)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"artboardWidth",{get:function(){var e;return this.artboard?this.artboard.width:null!==(e=this._artboardWidth)&&void 0!==e?e:0},set:function(e){this._artboardWidth=e,this.artboard&&(this.artboard.width=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"artboardHeight",{get:function(){var e;return this.artboard?this.artboard.height:null!==(e=this._artboardHeight)&&void 0!==e?e:0},set:function(e){this._artboardHeight=e,this.artboard&&(this.artboard.height=e)},enumerable:!1,configurable:!0}),e.prototype.resetArtboardSize=function(){this.artboard?(this.artboard.resetArtboardSize(),this._artboardWidth=this.artboard.width,this._artboardHeight=this.artboard.height):(this._artboardWidth=void 0,this._artboardHeight=void 0)},Object.defineProperty(e.prototype,"devicePixelRatioUsed",{get:function(){return this._devicePixelRatioUsed},set:function(e){this._devicePixelRatioUsed=e},enumerable:!1,configurable:!0}),e.prototype.bindViewModelInstance=function(e){var t;this.artboard&&!this.destroyed&&e&&e.runtimeInstance&&(e.internalIncrementReferenceCount(),null===(t=this._viewModelInstance)||void 0===t||t.cleanup(),this._viewModelInstance=e,this.animator.stateMachines.length>0?this.animator.stateMachines.forEach((function(t){return t.bindViewModelInstance(e)})):this.artboard.bindViewModelInstance(e.runtimeInstance))},Object.defineProperty(e.prototype,"viewModelInstance",{get:function(){return this._viewModelInstance},enumerable:!1,configurable:!0}),e.prototype.viewModelByIndex=function(e){var t=this.file.viewModelByIndex(e);return null!==t?new F(t):null},e.prototype.viewModelByName=function(e){var t=this.file.viewModelByName(e);return null!==t?new F(t):null},e.prototype.enums=function(){if(null===this._dataEnums){var e=this.file.enums();this._dataEnums=e.map((function(e){return new L(e)}))}return this._dataEnums},e.prototype.defaultViewModel=function(){if(this.artboard){var e=this.file.defaultArtboardViewModel(this.artboard);if(e)return new F(e)}return null},e.missingErrorMessage="Rive source file or data buffer required",e.cleanupErrorMessage="Attempt to use file after calling cleanup.",e}(),F=function(){function e(e){this._viewModel=e}return Object.defineProperty(e.prototype,"instanceCount",{get:function(){return this._viewModel.instanceCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._viewModel.name},enumerable:!1,configurable:!0}),e.prototype.instanceByIndex=function(e){var t=this._viewModel.instanceByIndex(e);return null!==t?new O(t,null):null},e.prototype.instanceByName=function(e){var t=this._viewModel.instanceByName(e);return null!==t?new O(t,null):null},e.prototype.defaultInstance=function(){var e=this._viewModel.defaultInstance();return null!==e?new O(e,null):null},e.prototype.instance=function(){var e=this._viewModel.instance();return null!==e?new O(e,null):null},Object.defineProperty(e.prototype,"properties",{get:function(){return this._viewModel.getProperties()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instanceNames",{get:function(){return this._viewModel.getInstanceNames()},enumerable:!1,configurable:!0}),e}(),L=function(){function e(e){this._dataEnum=e}return Object.defineProperty(e.prototype,"name",{get:function(){return this._dataEnum.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this._dataEnum.values},enumerable:!1,configurable:!0}),e}();!function(e){e.Number="number",e.String="string",e.Boolean="boolean",e.Color="color",e.Trigger="trigger",e.Enum="enum",e.List="list",e.Image="image"}(x||(x={}));var O=function(){function e(e,t){this._parents=[],this._children=[],this._viewModelInstances=new Map,this._propertiesWithCallbacks=[],this._referenceCount=0,this._runtimeInstance=e,null!==t&&this._parents.push(t)}return Object.defineProperty(e.prototype,"runtimeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),e.prototype.handleCallbacks=function(){0!==this._propertiesWithCallbacks.length&&(this._propertiesWithCallbacks.forEach((function(e){e.handleCallbacks()})),this._propertiesWithCallbacks.forEach((function(e){e.clearChanges()}))),this._children.forEach((function(e){return e.handleCallbacks()}))},e.prototype.addParent=function(e){this._parents.includes(e)||(this._parents.push(e),(this._propertiesWithCallbacks.length>0||this._children.length>0)&&e.addToViewModelCallbacks(this))},e.prototype.removeParent=function(e){var t=this._parents.indexOf(e);-1!==t&&(this._parents[t].removeFromViewModelCallbacks(this),this._parents.splice(t,1))},e.prototype.addToPropertyCallbacks=function(e){var t=this;this._propertiesWithCallbacks.includes(e)||(this._propertiesWithCallbacks.push(e),this._propertiesWithCallbacks.length>0&&this._parents.forEach((function(e){e.addToViewModelCallbacks(t)})))},e.prototype.removeFromPropertyCallbacks=function(e){var t=this;this._propertiesWithCallbacks.includes(e)&&(this._propertiesWithCallbacks=this._propertiesWithCallbacks.filter((function(t){return t!==e})),0===this._children.length&&0===this._propertiesWithCallbacks.length&&this._parents.forEach((function(e){e.removeFromViewModelCallbacks(t)})))},e.prototype.addToViewModelCallbacks=function(e){var t=this;this._children.includes(e)||(this._children.push(e),this._parents.forEach((function(e){e.addToViewModelCallbacks(t)})))},e.prototype.removeFromViewModelCallbacks=function(e){var t=this;this._children.includes(e)&&(this._children=this._children.filter((function(t){return t!==e})),0===this._children.length&&0===this._propertiesWithCallbacks.length&&this._parents.forEach((function(e){e.removeFromViewModelCallbacks(t)})))},e.prototype.clearCallbacks=function(){this._propertiesWithCallbacks.forEach((function(e){e.clearCallbacks()}))},e.prototype.propertyFromPath=function(e,t){var n=e.split("/");return this.propertyFromPathSegments(n,0,t)},e.prototype.viewModelFromPathSegments=function(e,t){var n=this.internalViewModelInstance(e[t]);return null!==n?t==e.length-1?n:n.viewModelFromPathSegments(e,t++):null},e.prototype.propertyFromPathSegments=function(e,t,n){var r,i,a,o,s,l,c,u,d,h,p,f,m,A,g,v;if(t<e.length-1){var b=this.internalViewModelInstance(e[t]);return null!==b?b.propertyFromPathSegments(e,t+1,n):null}var y=null;switch(n){case x.Number:if(null!==(y=null!==(i=null===(r=this._runtimeInstance)||void 0===r?void 0:r.number(e[t]))&&void 0!==i?i:null))return new D(y,this);break;case x.String:if(null!==(y=null!==(o=null===(a=this._runtimeInstance)||void 0===a?void 0:a.string(e[t]))&&void 0!==o?o:null))return new j(y,this);break;case x.Boolean:if(null!==(y=null!==(l=null===(s=this._runtimeInstance)||void 0===s?void 0:s.boolean(e[t]))&&void 0!==l?l:null))return new U(y,this);break;case x.Color:if(null!==(y=null!==(u=null===(c=this._runtimeInstance)||void 0===c?void 0:c.color(e[t]))&&void 0!==u?u:null))return new z(y,this);break;case x.Trigger:if(null!==(y=null!==(h=null===(d=this._runtimeInstance)||void 0===d?void 0:d.trigger(e[t]))&&void 0!==h?h:null))return new W(y,this);break;case x.Enum:if(null!==(y=null!==(f=null===(p=this._runtimeInstance)||void 0===p?void 0:p.enum(e[t]))&&void 0!==f?f:null))return new H(y,this);break;case x.List:if(null!==(y=null!==(A=null===(m=this._runtimeInstance)||void 0===m?void 0:m.list(e[t]))&&void 0!==A?A:null))return new V(y,this);break;case x.Image:if(null!==(y=null!==(v=null===(g=this._runtimeInstance)||void 0===g?void 0:g.image(e[t]))&&void 0!==v?v:null))return new K(y,this)}return null},e.prototype.internalViewModelInstance=function(t){var n;if(this._viewModelInstances.has(t))return this._viewModelInstances.get(t);var r=null===(n=this._runtimeInstance)||void 0===n?void 0:n.viewModel(t);if(null!==r){var i=new e(r,this);return i.internalIncrementReferenceCount(),this._viewModelInstances.set(t,i),i}return null},e.prototype.number=function(e){return this.propertyFromPath(e,x.Number)},e.prototype.string=function(e){return this.propertyFromPath(e,x.String)},e.prototype.boolean=function(e){return this.propertyFromPath(e,x.Boolean)},e.prototype.color=function(e){return this.propertyFromPath(e,x.Color)},e.prototype.trigger=function(e){return this.propertyFromPath(e,x.Trigger)},e.prototype.enum=function(e){return this.propertyFromPath(e,x.Enum)},e.prototype.list=function(e){return this.propertyFromPath(e,x.List)},e.prototype.image=function(e){return this.propertyFromPath(e,x.Image)},e.prototype.viewModel=function(e){var t=e.split("/"),n=t.length>1?this.viewModelFromPathSegments(t.slice(0,t.length-1),0):this;return null!=n?n.internalViewModelInstance(t[t.length-1]):null},e.prototype.internalReplaceViewModel=function(e,t){var n;if(null!==t.runtimeInstance){var r=(null===(n=this._runtimeInstance)||void 0===n?void 0:n.replaceViewModel(e,t.runtimeInstance))||!1;if(r){t.internalIncrementReferenceCount();var i=this.internalViewModelInstance(e);null!==i&&(i.removeParent(this),this._children.includes(i)&&(this._children=this._children.filter((function(e){return e!==i}))),i.cleanup()),this._viewModelInstances.set(e,t),t.addParent(this)}return r}return!1},e.prototype.replaceViewModel=function(e,t){var n,r=e.split("/"),i=r.length>1?this.viewModelFromPathSegments(r.slice(0,r.length-1),0):this;return null!==(n=null==i?void 0:i.internalReplaceViewModel(r[r.length-1],t))&&void 0!==n&&n},e.prototype.incrementReferenceCount=function(){var e;this._referenceCount++,null===(e=this._runtimeInstance)||void 0===e||e.incrementReferenceCount()},e.prototype.decrementReferenceCount=function(){var e;this._referenceCount--,null===(e=this._runtimeInstance)||void 0===e||e.decrementReferenceCount()},Object.defineProperty(e.prototype,"properties",{get:function(){var e;return(null===(e=this._runtimeInstance)||void 0===e?void 0:e.getProperties().map((function(e){return u({},e)})))||[]},enumerable:!1,configurable:!0}),e.prototype.internalIncrementReferenceCount=function(){this._referenceCount++},e.prototype.cleanup=function(){var e=this;if(this._referenceCount--,this._referenceCount<=0){this._runtimeInstance=null,this.clearCallbacks(),this._propertiesWithCallbacks=[],this._viewModelInstances.forEach((function(e){e.cleanup()})),this._viewModelInstances.clear();var t=p([],this._children,!0);this._children.length=0;var n=p([],this._parents,!0);this._parents.length=0,t.forEach((function(t){t.removeParent(e)})),n.forEach((function(t){t.removeFromViewModelCallbacks(e)}))}},e}(),N=function(){function e(e,t){this.callbacks=[],this._viewModelInstanceValue=e,this._parentViewModel=t}return e.prototype.on=function(e){0===this.callbacks.length&&this._viewModelInstanceValue.clearChanges(),this.callbacks.includes(e)||(this.callbacks.push(e),this._parentViewModel.addToPropertyCallbacks(this))},e.prototype.off=function(e){e?this.callbacks=this.callbacks.filter((function(t){return t!==e})):this.callbacks.length=0,0===this.callbacks.length&&this._parentViewModel.removeFromPropertyCallbacks(this)},e.prototype.internalHandleCallback=function(e){},e.prototype.handleCallbacks=function(){var e=this;this._viewModelInstanceValue.hasChanged&&this.callbacks.forEach((function(t){e.internalHandleCallback(t)}))},e.prototype.clearChanges=function(){this._viewModelInstanceValue.clearChanges()},e.prototype.clearCallbacks=function(){this.callbacks.length=0},Object.defineProperty(e.prototype,"name",{get:function(){return this._viewModelInstanceValue.name},enumerable:!1,configurable:!0}),e}(),j=function(e){function t(t,n){return e.call(this,t,n)||this}return c(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e(this.value)},t}(N),D=function(e){function t(t,n){return e.call(this,t,n)||this}return c(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e(this.value)},t}(N),U=function(e){function t(t,n){return e.call(this,t,n)||this}return c(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e(this.value)},t}(N),W=function(e){function t(t,n){return e.call(this,t,n)||this}return c(t,e),t.prototype.trigger=function(){return this._viewModelInstanceValue.trigger()},t.prototype.internalHandleCallback=function(e){e()},t}(N),H=function(e){function t(t,n){return e.call(this,t,n)||this}return c(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueIndex",{get:function(){return this._viewModelInstanceValue.valueIndex},set:function(e){this._viewModelInstanceValue.valueIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return this._viewModelInstanceValue.values},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e(this.value)},t}(N),V=function(e){function t(t,n){return e.call(this,t,n)||this}return c(t,e),Object.defineProperty(t.prototype,"length",{get:function(){return this._viewModelInstanceValue.size},enumerable:!1,configurable:!0}),t.prototype.addInstance=function(e){null!=e.runtimeInstance&&(this._viewModelInstanceValue.addInstance(e.runtimeInstance),e.addParent(this._parentViewModel))},t.prototype.addInstanceAt=function(e,t){return!(null==e.runtimeInstance||!this._viewModelInstanceValue.addInstanceAt(e.runtimeInstance,t)||(e.addParent(this._parentViewModel),0))},t.prototype.removeInstance=function(e){null!=e.runtimeInstance&&(this._viewModelInstanceValue.removeInstance(e.runtimeInstance),e.removeParent(this._parentViewModel))},t.prototype.removeInstanceAt=function(e){this._viewModelInstanceValue.removeInstanceAt(e)},t.prototype.instanceAt=function(e){var t=this._viewModelInstanceValue.instanceAt(e);return null!=t?new O(t,this._parentViewModel):null},t.prototype.swap=function(e,t){this._viewModelInstanceValue.swap(e,t)},t.prototype.internalHandleCallback=function(e){e()},t}(N),z=function(e){function t(t,n){return e.call(this,t,n)||this}return c(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),t.prototype.rgb=function(e,t,n){this._viewModelInstanceValue.rgb(e,t,n)},t.prototype.rgba=function(e,t,n,r){this._viewModelInstanceValue.argb(r,e,t,n)},t.prototype.argb=function(e,t,n,r){this._viewModelInstanceValue.argb(e,t,n,r)},t.prototype.alpha=function(e){this._viewModelInstanceValue.alpha(e)},t.prototype.opacity=function(e){this._viewModelInstanceValue.alpha(Math.round(255*Math.max(0,Math.min(1,e))))},t.prototype.internalHandleCallback=function(e){e(this.value)},t}(N),K=function(e){function t(t,n){return e.call(this,t,n)||this}return c(t,e),Object.defineProperty(t.prototype,"value",{set:function(e){var t;this._viewModelInstanceValue.value(null!==(t=null==e?void 0:e.nativeImage)&&void 0!==t?t:null)},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e()},t}(N),q=function(e){return d(void 0,void 0,void 0,(function(){var t;return h(this,(function(n){switch(n.label){case 0:return t=new Request(e),[4,fetch(t)];case 1:return[4,n.sent().arrayBuffer()];case 2:return[2,n.sent()]}}))}))},Y=function(e){return"string"==typeof e?[e]:e instanceof Array?e:[]},X={EventManager:k,TaskQueueManager:P},G=function(e){return d(void 0,void 0,void 0,(function(){var t,n;return h(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(t){return g.getInstance((function(n){n.decodeAudio(e,t)}))}))];case 1:return t=r.sent(),n=new l.AudioWrapper(t),l.finalizationRegistry.register(n,t),[2,n]}}))}))},Q=function(e){return d(void 0,void 0,void 0,(function(){var t,n;return h(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(t){return g.getInstance((function(n){n.decodeImage(e,t)}))}))];case 1:return t=r.sent(),n=new l.ImageWrapper(t),l.finalizationRegistry.register(n,t),[2,n]}}))}))},Z=function(e){return d(void 0,void 0,void 0,(function(){var t,n;return h(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(t){return g.getInstance((function(n){n.decodeFont(e,t)}))}))];case 1:return t=r.sent(),n=new l.FontWrapper(t),l.finalizationRegistry.register(n,t),[2,n]}}))}))}})(),r})(),e.exports=r()},function(e,t,n){e.exports=n(56)},function(e,t,n){"use strict";var r=n(55);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,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";var r=n(7),i=n(43),a=n(57),o=n(50);var s=function e(t){var n=new a(t),s=i(a.prototype.request,n);return r.extend(s,a.prototype,n),r.extend(s,n),s.create=function(n){return e(o(t,n))},s}(n(16));s.Axios=a,s.CanceledError=n(13),s.CancelToken=n(77),s.isCancel=n(49),s.VERSION=n(51).version,s.toFormData=n(46),s.AxiosError=n(11),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(78),s.isAxiosError=n(79),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var r=n(7),i=n(44),a=n(58),o=n(59),s=n(50),l=n(48),c=n(76),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new a,response:new a}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(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 a,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!i){var d=[o,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(l),a=Promise.resolve(t);d.length;)a=a.then(d.shift(),d.shift());return a}for(var h=t;r.length;){var p=r.shift(),f=r.shift();try{h=p(h)}catch(e){f(e);break}}try{a=o(h)}catch(e){return Promise.reject(e)}for(;l.length;)a=a.then(l.shift(),l.shift());return a},d.prototype.getUri=function(e){e=s(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){d.prototype[e]=function(t,n){return this.request(s(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(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},function(e,t,n){"use strict";var r=n(7);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(7),i=n(60),a=n(49),o=n(16),s=n(13);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}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||o.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(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(7),i=n(16);e.exports=function(e,t,n){var a=this||i;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!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:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!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 f(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(7);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
+ /*!
3
+ * The buffer module from node.js, for the browser.
4
+ *
5
+ * @author Feross Aboukhadijeh <http://feross.org>
6
+ * @license MIT
7
+ */
8
+ var r=n(65),i=n(66),a=n(67);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<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 d(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=h(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|f(t,n),i=(e=s(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|p(t.length);return 0===(e=s(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?s(e,0):h(e,t);if("Buffer"===t.type&&a(t.data))return h(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 d(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function f(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 U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function m(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 P(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return _(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function A(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(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:v(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):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var a,o=1,s=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;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(c(e,a+h)!==c(t,h)){d=!1;break}if(d)return a}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 a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function y(e,t,n,r){return H(U(t,e.length-n),e,n,r)}function E(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 w(e,t,n,r){return E(e,t,n,r)}function C(e,t,n,r){return H(W(t),e,n,r)}function B(e,t,n,r){return H(function(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a,o,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}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=o(),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?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(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,a=Math.min(n,r);i<a;++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(!a(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 o=e[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},l.byteLength=f,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)A(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)A(this,t,t+3),A(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)A(this,t,t+7),A(this,t+1,t+6),A(this,t+2,t+5),A(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):m.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 a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(r,i),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){a=c[d],o=u[d];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(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 a=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function x(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 _(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="",a=t;a<n;++a)i+=D(e[a]);return i}function S(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function I(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 R(e,t,n,r,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)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,a=Math.min(e.length-n,2);i<a;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function F(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i<a;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(e,t,n,r,a){return a||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,a){return a||L(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 a=0;a<i;++a)n[a]=this[a+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(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||I(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||I(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||I(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||I(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||I(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||I(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||I(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||I(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||I(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||I(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)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(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||R(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||R(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||R(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):F(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(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):F(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);R(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&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);R(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(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||R(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||R(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||R(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):F(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(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):F(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return O(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return O(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,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},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 a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=l.isBuffer(e)?e:U(new l(e,r).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function W(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).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(64))},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,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),o=r[0],s=r[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,d=s>0?o-4:o;for(n=0;n<d;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===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(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,a=[],o=0,s=n-i;o<s;o+=16383)a.push(u(e,o,o+16383>s?s:o+16383));1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;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,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
9
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
10
+ t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=c}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+p]=255&o,p+=f,o/=256,c-=8);e[n+p-f]|=128*m}},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(11);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(7);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},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(7),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,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},function(e,t,n){"use strict";var r=n(7);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(51).version,i=n(11),a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(a(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},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),a=r.length;a-- >0;){var o=r[a],s=t[o];if(s){var l=e[o],c=void 0===l||s(l,o,e);if(!0!==c)throw new i("option "+o+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+o,i.ERR_BAD_OPTION)}},validators:a}},function(e,t,n){"use strict";var r=n(13);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(7);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},function(e,t,n){"use strict";n.r(t);var r=n(14);t.default=r.a},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),a=n(15),o=n(1),s=n.n(o),l=n(18),c={insert:"head",singleton:!1},u=(s()(l.a,c),l.a.locals,n(24)),d={insert:"head",singleton:!1},h=(s()(u.a,d),u.a.locals,n(20)),p={insert:"head",singleton:!1};s()(h.a,p),h.a.locals;function f(){return(f=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)}function m(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 extends i.a.Component{constructor(...e){super(...e),m(this,"refsMap",[]),m(this,"hash",""),m(this,"lastHash",""),m(this,"state",{scrolled:!1}),m(this,"setRef",e=>{this.refsMap.push(e),this.hash=Math.random().toString(36).substring(2,15)}),m(this,"getOrderedRefs",()=>(this.hash===this.lastHash||(this.refsMap=this.refsMap.sort((e,t)=>{if(!this.props.scrollableContainerRef)return 0;const n=this.props.scrollableContainerRef.getBoundingClientRect(),r=e?e.getBoundingClientRect():{top:0,bottom:0},i=t?t.getBoundingClientRect():{top:0,bottom:0};return r.top-n.top-(i.top-n.top)}),this.lastHash=this.hash),this.refsMap)),m(this,"scrollToFocusedElement",async e=>{if(!this.props.scrollableContainerRef||!e.node)return;const t=this.getOrderedRefs();var n;await(n=0,new Promise(e=>setTimeout(e,n)));const r=this.props.scrollableContainerRef.getBoundingClientRect(),i=e.node.getBoundingClientRect();let a=-1;for(let n=t.length-1;n>=0;n--)if(t[n].contains(e.node)){a=n;break}if(-1===a)return void console.warn("Element not found in refsMap to focus to. Register the element wrapping it with <FocusableItem />");let o=!1;if(t.slice(a).forEach(e=>{const t=e.getBoundingClientRect();(t.bottom>r.bottom||t.top<r.top)&&(o=!0)}),!o)return;const s=0===a?0:this.props.scrollableContainerRef.scrollTop+(i.top-r.top-(this.props.containerTopOffset||0));this.props.scrollableContainerRef.scrollTop=s;const l=s>0;this.state.scrolled!==l&&this.setState({scrolled:l})})}getChildContext(){return{refsMap:this.refsMap,setRef:this.setRef,scrollToFocusedElement:this.scrollToFocusedElement}}componentWillUnmount(){this.refsMap=[],this.hash="",this.lastHash=""}render(){const{scrollableContainerRef:e,containerTopOffset:t,...n}=this.props;return i.a.createElement("div",f({className:"scrollable-container","data-scrolled":this.state.scrolled},n),this.props.children)}}m(A,"childContextTypes",{refsMap:i.a.PropTypes.arrayOf(i.a.PropTypes.instanceOf(HTMLElement)),setRef:i.a.PropTypes.func,scrollToFocusedElement:i.a.PropTypes.func});const g={setRef:e=>{},scrollToFocusedElement:()=>{},refsMap:[]},v={refsMap:i.a.PropTypes.arrayOf(i.a.PropTypes.instanceOf(HTMLElement)),setRef:i.a.PropTypes.func,scrollToFocusedElement:i.a.PropTypes.func};var b=A;function y(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 E extends i.a.Component{constructor(...e){super(...e),y(this,"ref",null),y(this,"context",g)}componentDidMount(){this.ref&&this.context.setRef&&this.context.setRef(this.ref)}render(){return i.a.createElement("div",{className:"focusable-item",ref:e=>this.ref=e},this.props.children)}}y(E,"contextTypes",v);var w=E;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)}class B extends i.a.Component{render(){const e=["base-button",this.props.className].join(" ");return i.a.createElement(w,null,i.a.createElement("button",C({},this.props,{className:e}),this.props.children))}}var k=B;class P extends i.a.Component{render(){return i.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 30 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{d:"M27.375 4.75H2.625V7H27.375V4.75Z",fill:"white"}),i.a.createElement("path",{d:"M25.125 0.25H4.875V2.5H25.125V0.25Z",fill:"white"}),i.a.createElement("path",{d:"M0.375 9.25V31.75H29.625V9.25H0.375ZM11.625 26.125V14.875L20.625 20.5L11.625 26.125Z",fill:"white"}))}}var x=P;class _ extends i.a.Component{render(){return i.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.1891 8.29879C18.6116 8.5331 18.9367 8.80345 19.162 9.10985C19.3873 9.41624 19.5 9.71863 19.5 10.019C19.5 10.3194 19.396 10.6158 19.1837 10.9102C18.9713 11.2026 18.6463 11.4669 18.2108 11.7012L10.9111 15.6724L3.58975 19.6035C3.15207 19.8378 2.74256 19.9679 2.36122 19.994C1.98204 20.02 1.65703 19.9619 1.38836 19.8177C1.12185 19.6735 0.905177 19.4453 0.742673 19.1328C0.582335 18.8204 0.5 18.4419 0.5 17.9994V2.00062C0.5 1.55805 0.573669 1.17956 0.721006 0.867153C0.87051 0.554748 1.09152 0.326452 1.38836 0.182265C1.6852 0.0380777 2.02104 -0.0199976 2.39372 0.00603615C2.76639 0.0340725 3.16507 0.164241 3.58975 0.398545L10.9111 4.36769L18.1891 8.29879Z",fill:"white"}))}}var T=_;class S extends i.a.Component{constructor(e){super(e)}render(){return i.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{d:"M26.4393 4.5H6.61944L3.34766 31.5C3.34766 31.5 19.7066 31.5 22.7432 31.5C23.3056 31.5 23.8679 31.4591 24.4251 31.3773C26.0406 31.1268 28.7193 30.3445 29.8491 27.6808C30.3501 26.4947 30.7387 23.1919 30.8665 22.3023C31.1783 20.1345 30.0178 18.8819 28.8625 18.1508C28.6069 17.9923 28.6733 17.6038 28.9647 17.5322C30.1814 17.2203 31.3266 16.571 31.6435 15.1906C31.8633 14.2192 32.0781 12.0872 32.2263 10.9011C32.9113 5.92643 29.568 4.5 26.4393 4.5ZM24.1542 19.792H15.8213L15.6117 21.5047H23.9497L23.4589 25.4773H10.1468L11.2715 16.3154H24.5836L24.1593 19.7869L24.1542 19.792ZM24.7779 14.7202H11.4658L11.9821 10.5227H25.2942L24.783 14.7202H24.7779Z",fill:"#9DA0A6"}))}}var I=S;class R extends i.a.Component{render(){return i.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("g",{clipPath:"url(#clip0_538_5831)"},i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5925 1.7998V32.6941H10.4849V14.8588H3.671V32.6941H0.899902V34.7641H35.099V32.6941H32.3603V8.0125H25.514V32.6941H21.4397V1.7998H14.5925Z",fill:"#9DA0A6"})),i.a.createElement("defs",null,i.a.createElement("clipPath",{id:"clip0_538_5831"},i.a.createElement("rect",{width:"36",height:"36",fill:"white"}))))}}var M=R;class F extends i.a.Component{render(){return i.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.96879 29.0297C11.6061 31.2694 14.6822 32.9334 18.0001 33.9152C21.3179 32.9334 24.394 31.2694 27.0313 29.0297C29.6686 26.7899 31.8089 24.0239 33.3151 20.9089C31.6987 16.1971 30.9721 11.2259 31.1722 6.24861C26.9818 4.51945 22.5273 3.51728 18.0001 3.28516C13.4728 3.51728 9.01831 4.51945 4.82788 6.24861C5.02804 11.2259 4.30143 16.1971 2.68506 20.9089C4.19119 24.0239 6.33149 26.7899 8.96879 29.0297ZM11.7503 14.7153L12.2646 10.5164H25.5772L25.0616 14.7153H11.7503ZM23.7355 25.4753H10.423L11.5486 16.3157H24.8599L24.4349 19.7871H16.1048L15.8917 21.4998H24.2282L23.7355 25.4753Z",fill:"#9DA0A6"}))}}var L=F;class O extends i.a.Component{render(){return i.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0022 0.75L21.8012 19.4545H0.203125L11.0022 0.75ZM11.7522 13.5V7.5H10.2522V13.5H11.7522ZM11.8022 14.95H10.2022V16.55H11.8022V14.95Z",fill:"#F58B00"}))}}var N=O;var j=e=>i.a.createElement("svg",{width:e.width,height:e.height,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5 34.5L24 34.5L24 37.5L10.5 37.5L10.5 24L13.5 24L13.5 34.5ZM34.5 24L34.5 13.5006L24.0006 13.5045L23.9994 10.5045L37.5 10.4994L37.5 24L34.5 24Z",fill:"white"}));var D=e=>i.a.createElement("svg",{width:e.width,height:e.height,viewBox:"0 0 49 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 39L20 28.5L9.5 28.5L9.5 25.5L23 25.5L23 39L20 39ZM39.5 22.5L26 22.5L26 9.00392L29 9.00392L29 19.5L39.5 19.5L39.5 22.5Z",fill:"white"}));var U=e=>i.a.createElement("svg",{width:e.width,height:e.height,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.29999 3.73242L12.8 10.2324L19.3 3.73242L21.0678 5.50019L14.5678 12.0002L21.0678 18.5002L19.3 20.268L12.8 13.768L6.29999 20.268L4.53223 18.5002L11.0322 12.0002L4.53223 5.50019L6.29999 3.73242Z",fill:"#FF7F7F"}));var W=e=>i.a.createElement("svg",{width:e.width,height:e.height,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.0678 6.50019L9.79999 18.768L3.53223 12.5002L5.29999 10.7324L9.79999 15.2324L20.3 4.73242L22.0678 6.50019Z",fill:"#41BA42"}));class H extends i.a.Component{constructor(e){super(e)}render(){return i.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.54183 0.327148L9.39895 0.669996C11.7818 1.62315 13.1252 3.98581 13.1252 7.08363V7.65808L14.6806 6.1026L15.1035 6.73694C15.9332 7.98141 17.2918 10.2078 17.2918 12.5003C17.2918 16.6478 14.0406 19.3753 10.0002 19.3753C5.95971 19.3753 2.7085 16.6478 2.7085 12.5003C2.7085 9.7532 4.31768 8.02946 5.74552 6.49998L5.79325 6.44885C7.27047 4.86611 8.54183 3.47254 8.54183 1.25029V0.327148ZM10.5323 10.5213L10.6145 10.7677C11.0056 11.941 11.4873 12.5422 11.892 13.0473L11.9337 13.0993C12.1409 13.3583 12.338 13.61 12.4799 13.9081C12.6244 14.2115 12.7085 14.5549 12.7085 15.0003C12.7085 16.496 11.4959 17.7086 10.0002 17.7086C8.50439 17.7086 7.29183 16.496 7.29183 15.0003C7.29183 13.5264 8.18282 11.9311 10.3096 10.655L10.5323 10.5213Z",fill:"#F58B00"}))}}var V=H;class z extends i.a.Component{constructor(e){super(e)}render(){return i.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 16C3 8.8203 8.8203 3 16 3C23.1797 3 29 8.8203 29 16C29 23.1797 23.1797 29 16 29C8.8203 29 3 23.1797 3 16ZM14.6001 12.0668H17.4001V9.26676H14.6001V12.0668ZM17.3333 22.6667V14H14.6667V22.6667H17.3333Z",fill:"#FFB759"}))}}var K=z;class q extends i.a.Component{constructor(e){super(e)}render(){return i.a.createElement("svg",{width:this.props.width,height:this.props.height,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.33333 1.66663C8.04467 1.66663 7 2.7113 7 3.99996V28C7 29.2886 8.04467 30.3333 9.33333 30.3333H22.6667C23.9553 30.3333 25 29.2886 25 28V3.99996C25 2.7113 23.9553 1.66663 22.6667 1.66663H9.33333ZM9 7.66663V23H23V7.66663H9ZM18 26H14V27.3333H18V26Z",fill:"#6C6E6F"}))}}const Y={keyPlays:x,play:T,bets:I,stats:M,fantasy:L,warning:N,expand:j,collapse:D,times:U,checkmark:W,flame:V,betsWarning:K,mobilePhone:q},X=e=>i.a.createElement("div",{style:{width:e.width,height:e.height}});class G extends i.a.Component{render(){const{iconName:e,width:t,height:n}=this.props,r=Y[e];return r?i.a.createElement(r,{iconName:e,width:t,height:n}):i.a.createElement(X,{width:t,height:n})}}var Q=G,Z=n(41),$={insert:"head",singleton:!1},J=(s()(Z.a,$),Z.a.locals,n(8)),ee=n.n(J),te=n(42);function ne(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 re extends i.a.Component{render(){const{iconName:e,active:t,children:n,focused:r}=this.props;return i.a.createElement("div",{className:["panel-nav-button-container","T02",t?"panel-nav-button-active":""].join(" "),"data-focused":r,"data-style":"display: flex;"},i.a.createElement(k,null,i.a.createElement(Q,{iconName:e,height:36,width:36})),n)}}ne(re,"displayName","PanelNavButton"),ne(re,"propTypes",{iconName:ee.a.string.isRequired,index:ee.a.number.isRequired,active:ee.a.bool.isRequired,children:ee.a.node,focused:ee.a.bool,onBecameFocused:ee.a.func,buttonRef:ee.a.oneOfType([ee.a.func,ee.a.object])});var ie=Object(te.a)()(re),ae=n(40),oe={insert:"head",singleton:!1},se=(s()(ae.a,oe),ae.a.locals,n(4)),le=n(10);var ce=e=>{const t=le.default.getMaestroEventViewModel();e.dataset.focused="false",Object(se.c)(),t.delegate.startFocusManagement()};function ue(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 de extends i.a.Component{constructor(...e){super(...e),ue(this,"handleArrowPress",(e,t,n)=>{"left"===e&&0===this.props.itemFocused&&n.layout?ce(n.layout.node):this.props.onArrowPress&&this.props.onArrowPress(e)})}render(){const{item:e,index:t}=this.props;return i.a.createElement(ie,{iconName:e.iconName,key:e.title,index:t,onBecameFocused:this.props.onBecameFocused(t),active:e.active,focusKey:"PANEL_NAV_BUTTON_"+t,onArrowPress:this.handleArrowPress},e.title)}}class he extends i.a.Component{constructor(...e){super(...e),ue(this,"state",{itemFocused:null,lastFocused:null}),ue(this,"handleBecameFocused",e=>()=>{this.state.lastFocused!==e&&this.state.lastFocused?Object(se.e)("PANEL_NAV_BUTTON_"+this.state.lastFocused):this.setState({itemFocused:e,lastFocused:null},()=>{this.props.items[e]&&this.props.items[e].onEnter()})}),ue(this,"handleArrowPress",e=>{"down"===e&&this.setState({lastFocused:this.state.itemFocused})})}render(){return i.a.createElement("div",{className:"panel-navigation"},this.props.items.map((e,t)=>i.a.createElement(de,{itemFocused:this.state.itemFocused,onBecameFocused:this.handleBecameFocused,onArrowPress:this.handleArrowPress,key:e.title,item:e,index:t})))}}var pe=he;function fe(){return(fe=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)}function me(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 Ae extends i.a.Component{constructor(e){super(e),me(this,"state",{failed:!1}),me(this,"handleError",()=>{this.setState({failed:!0})})}render(){return this.state.failed?(console.warn("Image failed to load:",this.props.src),null):i.a.createElement("img",fe({alt:this.props.alt||"Image"},this.props,{onError:this.handleError}))}}var ge=Ae;var ve=n(21),be={insert:"head",singleton:!1},ye=(s()(ve.a,be),ve.a.locals,Q);class Ee extends i.a.Component{render(){const{awayTeamScore:e,homeTeamScore:t,homeTeamName:n,awayTeamName:r}=this.props;return i.a.createElement("div",{className:"score","data-style":"display: flex;"},i.a.createElement("div",{className:"score-team T05_ALT","data-style":"display: flex;"},i.a.createElement("span",null,n),i.a.createElement("span",{className:"T30 score-value"},t)),i.a.createElement("div",{className:"score-team T05_ALT","data-style":"display: flex;"},i.a.createElement("span",{className:"T30 score-value"},e),i.a.createElement("span",null,r)))}}function we(){return(we=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)}function Ce(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 Be extends i.a.Component{constructor(e){super(e),Ce(this,"failedClipListener",()=>{}),Ce(this,"ref",null),Ce(this,"vm",void 0),Ce(this,"state",{failedClip:null}),Ce(this,"renderImage",()=>{const{playerImageUrl:e,teamImageUrl:t,thumbnailImageUrl:n}=this.props;return e?i.a.createElement(ge,{src:e,crossOrigin:"anonymous",alt:"Key Play Player Image",className:"cardImage"}):t?i.a.createElement(ge,{src:t,crossOrigin:"anonymous",alt:"Key Play Team Image",className:"cardImage"}):n?i.a.createElement(ge,{src:n,crossOrigin:"anonymous",alt:"Key Play Thumbnail Image",className:"cardImage"}):i.a.createElement(ge,{src:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCACQALgDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+O4tkcn0/z79ev/161Mg3dv8AD64/rjp3oAC3b3+n6e/8+negAB/z/Prn/DgUAG736cflyP5Z/CgA3Hpn/wDWOf65/WgYBvQ+n6H+eR396BBuzjnn6/55Geo+vU5oANxznPIoANx9cf8A18/j3Iz160AG73H8vftjsPy+goAM/wCfzx/9b/8AXQAu7/Pv0z9ff3+mABM/5/8Arfl9KAFLHue3+eP89u4FACbj69P0HP5D/PWgAzznJ57/AP16ADd/n36c9s9j6980ALuOePXOP8849B0oATJ9enT24oACxHOfT/Ae3f8AzzQAbvU/rj6D/wCsPwoAMn8+vv8AX/HrQBX3fTpj19c9Tx0IP/1qBgW9+vX3/wA/yoEG70PX16/rz2/HFAxSx554znr+X5f0oEJn8x+f/wCr6UDDceuen/6v6UCDd/8AX/n29eD6/SgYbvc/X8uc+nA60ALuPr0/z/kdKADcT39vw/r7fn1OaAE3HjnpjH8vzoEG737d+Tzx9aBiZ/l9OPfpwP8APagQu7pz7cH05oGLvP8AnOfXHXI46j6d6AE3die2Ov4/p/n1oAN2O/4E/U+vPP8AKgA3YPXB6/59aADcfX8vp7e39fegA3c8n9cHP/6qADd1Pr1/qP06fhQIN2e/t/n/AD9epyALuP8An/PrzmgZW3H1/wA//qoAM5/Hn/Pbv9fSgQm739Md/Tt/n8qBjtx/yAP88UtNQ/r+rCZ9/wDPt+fb29qYBu9/19un0PUj0HXvQAbj1z/nP9O/4+9AC7++eOvtx69Py9e1ABuOMf5GPf8AxoA77RfCayxR3Wps+JAHS0RihCHlfPcfMCw5MabWUYDODuRQR2cGm6fagCCzt48dGESmT8ZGBkY+7MTQBbeNJBtdEdem11DD06EEUAYd74a0m8BP2cW0hHElriLBznmMAwtz1zHk88gnNAzgdX8O3ulAzA/arQHHnxgq0YPQTR/N5YyMB1LR5xllZlWgDnN3p/nj3/DP4UAG7/OPxxj36460CDd05/Dt6/rj8aBhu568/wCf8KAF3f5P6f047mj+tgE3f5+vr6/4HnjFABuzznOefr/nOPb8BQAZz/n/ABoAN3/1vz7fyx+lAEG4+v8An+nXHHFABuP6f4/55oATcfX/AD0/rQAbsd+n+fx6fjjHajQA3f4+3H+f50AG7oO/Pr/kUABP+fr/AJHWgBdx9f8APOP5/nR/X9fcB23hDRUvZH1G6USQ28gjgiYZWScBXLsDwViBTavIZ25xsIYC56jQIKACgAoAayq6srAMrAqysAQykYIIPBBBwQeCKAPFvEWmjStSlhjVhbSbZ7XIJAR/vRhj18qQMnUnYEZjk0DMLdjvyfb0oAXcev8A9b/Pt+fWgPxE3H1/z/j/AJ70AGeB+Yo/UA3Z6H8v88ZoAXcRzn/PvQAm/wBwPp/P/wCv29uy0D+v6/r8w3Ed/wDPvTD+u5X3Y+n/AOruMfh2pf1/XyAXd/n3/Xrjkd6P6/r+rgJu9/1P1ph8g3H1/L/Ofr/9agA3e/6/57/rQGobvfHX8c+/f8aA8hd/8vT0/wDrnjt+FL+v6/rzATPX9aYX/r+r9z3Tw7YjT9ItIiMSSxi5n9fNnAcqR28tNkX/AADPJJJANygQUAFABQAUAYmv6UmradLDj/SI1aW1fHzLMqnCZ/uTAeW46chsbkXAB4USfp/Tn9KWgw3ev+f8/n+Zo0D+vv8A6/rcXcfX/J7f/q/wo0ATd/L9O3+fr2p6AG457/y//V/jR/WoBn/D/wDXil/Xp94XDd7++c/5/wAj0p6BqLuPqaWgFfd3z/n8aNAE3H3/AM9x/j6e1GnoH+Qu4nP5/wA+9MA3c+4+v8/z6YpAJuPr/np+f8u1GgBuz6f/AK/85/8ArUABbn/P+effr0o/HUCxap591bQnpNPDEevSSRUPA5PXH8u1H9f1+If1/X9aH0eBjgcAcADtTELQAUAFABQAUANYkKxUbmCkhem4gcDPueKAPmtpCzMzYyxLEehJJ4HUAc4FLqNDd34c8+v09Pw6Uaf1/X4gG739vT/Pb/OKNA/r5i7un9P8+5+maNg+QmfwpgG4+v8An29/15paB/X9f8EXceuaNAE3H1P+f8/pRoBBuPr7f57/AOfSjQBN34n/AD9D059fSjQP6/q39feG7tx/nPH8/wAelGgBu/z+n8/1o/r9WHqG7/J/+v8AT8KNP60DUN3H+foP8/1oHcXdx1/z/X/OKNBE9pP9nurWYn5YbiGU/SORG+vReMfhQB9LgggEHIPII5BB6EGmIWgAoAKACgAoAQkAEk4ABJJ6ADkk/SgD5kmkV5ZXUbVeR3VfRWbIGBwMAjpSK16f1/WozcfX/Pr9ffrRp/X9fkINx/z/AJ/KjQLibs9+v+f6fpQFxd3+f8/Sj+vmO/8AX9f1+IFj74+uf89aP67CDefX8/8AP8/ejToAm73/AM9KBkG7/OP8/wD1+/agP63/AK/rQTefX6f5/wA/kaNNf6/r+uwg3H1/yf8AGj+vu/r/ADC/9foKW/z/AJ6f0/KjTT+v6/q4f1/Wv/BDd/k+/b6f59KNBhux6fTtRp/XmFw3Z/P/AD+P+PFH/B/r+vzDb+v6/wCHOk8KaXBrOrpaXQdrdYJ55VjfYxCKqL8w5A8yVOnJ6dM0aC6HvdrCba3gt97SeREkKyN990jUIjPjgyFAN7AAM+5gqghQxFigAoAKACgAoAr3UH2m2nt/MaITxPC0iAF0SRSjlM8B9pOxiGCthirAbSAeB+KtKh0bV5LS23i3aGGeISNvcLIpRwWwNw82OTBPIBxzjNIdzm93T/P+evejQf8AX9f1+Iu70/z/APX4oD+v6+8TP+f89KP6/wCHF/X/AAwbv0/n2/8Arf8A6qNB3At15o0F8v6/4cXf2z/k/wCTiiw/kG78P5f5H0o6Bf8Ar7itmjQLilv/AK/+etH9ff8AMX9eX9f8AN35f/r74o03H/X9bibv8f8AP1/X8KNA/rzDd6/55o0/r+vmAbv8/rRoFw3flz/hRp/X9f16hc9E+GpB1q7B+9/Zc2Pcfa7Mt+u3rz1x3o6iPbKYgoAKACgAoAKACgDxH4kkDXLXHB/sqAn/AMC73H48c57AUmNHnu7tn8v8/n/jRoP+v6/r/gGfejQLi7j60aB/X9fqJu9Sfzo0C/l+P/AF3Hv09/8AP+frRp/wwX8ugm7v+f8An/PPvRp/X5Brp/W4u71/z/npQBW3++KAf9fl/X9MXcfyoC/9f1YN/P8An/P/AOr2oDtp/X9dbBu/n/8Ar/lRp/Xb+tg+Qbvx/wA/jRoF/L9P63DcfX/J/pRp/X9bgG7/AD/n1o03C52XgK9S18SWiu2xbyKe0yem+RPMiUn/AG5YY0A/vsKEwZ9C0yQoAKACgAoAKACgD558eXyXfiS7VGDLZpDZgggjfEu+Zep5SeSRGHGGUgj1Xf8Ar+upS06f8McduP8ASloH9f18hC3v/n/P609A/r+t+n9MUPjv/WjT+v6/rQPUN35/5z1o0+QCbv8AP50aBf8Ar+v+GF3H/P8An3o0C4bv8/59qPw/rQCvu7f4/l19T/Klp/X9f8AP6/r+thN2Oh/SndB/Wwu73/X/AD9KV0H9f1/XmJu/z/n/ADij/MLsXd/nt6Yx+lAX8v6/rqG7/P8An0/SjT+v60C4Bv8AP/16en/AC4qyMjK6MUdSGVlbayspDBlYYIYEAhhggjINHYL+R6n4O8Zavd61Z6dql8Z7W4SWGPfDbq3niMvCXmSJZXLFDGNznc8i7snBBcT8j2umIKACgAoAKAPFfGHjTV7PWb3TtLvfItrdYoHKwwO/nmMNPslkiaRCrP5eVIKvGWQjOaLjPK2kZ2Z3dmd2LM7MWZmbkszE5ZmJyWJJJOSc0h/10G7v8e1Gn9f1/wAEL+X9eX9ai7v85+vv/n6ZpBcTd7/j/jj2p6Bf/gff26i7v8+/r+n09qWn9f1YNf6/rzDd+HP+f8+9GgXDd/L/AD7UBt0/4cTf74H+e/6UAV93v/n+VGgf15hu/n/9Y/nRdB/X3f5i7vf/AD/n/PoaBf8Ar+v68uxux+v/ANf8KNAv/X9f8OG7/H8aNPwC/wDX9XDf0/z/APX/AF+tAeQbu3v/AJ5o0C/+Wv8AX+YbuO9A7/f/AF/X5m/4Vfb4k0Q5xnUrRf8AvqUJjnPXOB/k00J/1/XmfVFMkKACgAoAKAPlXxRIW8R652xql6vXP3J3X+gI9BxzS0/r7ijC3e9LQL7Buxij+v68wv27Cbvfp/8Aro+QC7vwo0C/kG40f1/X9feFw3elH9f1/XULhu/+t0oC/r/XcN3H+fT/AD/WjT+v1C/3/wBP8yvu/wA8f5/z9KLhcN2OPz/H9KNAuG7vn8fr/n/PWjQP6/r+vIN3+fxouh6Bv9/8/wA/89aBBu/z/n6//Wo0DTsG7/PPaj7h3/r+ugbvU9ef84oF9/8Al5HQeFBv8S6EOf8AkKWbdR/BMr9+3y8jqRwOaYX8j6vpkhQAUAFABQB8neKsr4k11WHP9q3zfg9w7r+akEfXip6lf1/X6mDu/XrRoF9tv8g3etGnYExN2P8AP0ov/X9f5hf+v6Qu7/P9KNAv5XE3fh/+rn/PSj+v6/r5hf8Ary/ryFDf596P66h/X9f8OG7/AD+nb0/xo0/r+uof1/X6ib+/9OvH+f50B/X9P1/4cg3f0/z/ACoVgv5Cbz7/AP1v8/56UB8hd3v+v+fw6UB8vw/roJu6fT1/z60f1/X9dB/IN3f9f8P/AK1H9f0gF3e9HUX9f1cN/v8A5x0o0/UPl5irudgigszEKqqNzMxOAoUZJJPAA5J4FAX/AK/zPZfB/wAPdbsdU0zWNRa0tobdzcNaeZJJebjC4jRkWLyEId1L/vyyAMNu4Yqgb/r5nuNBIUAFABQAUAeGeL/h7rl5qmp6vp5tLmC4c3K2qyOl5u8tfMRY3iELsXU7Ns+58gbQxxSKTPGySpKkFWBIKkEEEcEEcEEdCCMjvSuguG7n/P8An/PWi4XDd7/T/P8An+lAw3//AFv/AK30/wAaBBu/Pp/WjQd/IN+e/wDn/Io/r+v68g+Qbv8AP5Yo0F+AbvX/AD3o0D+tivu9D7/5/LjtQP8Ay6/1uG76/j/n3oC6Ddnv/n/P/wCv1AE3f59qLiuG7/PH+fSgdySJJJpEigjkmlkYIkUaNJJIx6KqIC7MT/CASaAuekaH8MNe1MJNqGzR7ViCRcAyXroepW0Ujyzxgi5lgcHBEbCnYVz2HRPAfh3Q2imitWvLyIhlvL5hPIrjBDRRAJbRFGGY3SHzV4JlYgGnYR2dAgoAKACgAoAKACgDidc8AeHdcaSd7d7G9lJZ7uxYRNI5YszSwsHt5WdiTI5iEz55lFFh3PH9c+GPiDTN0tgE1m2GebVSl4qgZy9o7EsT0AtpbhieqqDSsO55xIJInaOZHjkjYo8cisjo6nBVkYBlYHgggEHORUh8hu7+f+e/5U9B6Bv/AM/5557/AI0v6/roL+v66BuPt9P1/P8AWmP+vl/XQN3+fTvQIN3v2xQPQr7v/wBX+fpRcLhu9evHv6/WgP6/r/hxN34/5/z0oC/9f1/w5e0/T9Q1WcW2m2dxeznkpbxNIVH96QgbY055eQqg7sM0fIL/ANf1/X6euaD8Iruby5/EF4trEQGaxsystyf9iW5Ia3hPXPki54OA6nkOwrnsWj+G9F0GIR6ZYQwNjDXBXzLuTPXzLmTdMQeuwMI1yQiKOKYjcoEFABQAUAFABQAUAFABQAUAFAGBrXhnRPEEZTU7GKWTbtS6QeVeRY+75dymJNqnny3Lwk/fjYcUDvY8c174R39v5k+gXa30Iyy2V2VhvFA6JHPhbadveQWnHHzHqrdh3PJr6wvtLuGtdQtLizuF5MVxE8bEdAy7gA6H+F0LI3VWIpev9f1/THdf1/X9eRS3f45/z/k0Bfy/r/gChv8AP4H/ABzRcPz/AK/rUN359/50XC+xX3e/+f0pBdCbvf05/wA9v8igD1zwN8N5dbji1bW/MttKfElrbITHc365BEjNjMFm4+66kTTqd0JjjKTPSXcTf9bn0Np+m2GlW62unWcFnboABHBGqAkcbnYfNI56tJIzOxJLMSSaYi9QIKACgAoAKACgAoAKACgAoAKACgAoAKACgChqGmafqtu1rqVnb3tuwP7ueNX2kjG+Nj88UgH3ZImSRTyrAjNAHzt46+HM2gpJqujmW60kZa4hfL3GnA8b2Ycz2vYykeZCP9duXM1S12KTPKN3+f8APP8An3oGJu9/8/596Xy/r8A/r+kQbvf/ADxRcNP6X6HoPw58KjxPrYe6TdpWmCO6vRj5bh2Y/ZrI9eLhkdpeObeGZAyO6MGtfkDZ9aKqoqoiqiIoVEUBVVVGFVVGAqqAAAAAAMCqIHUAFABQAUAFABQAUAFABQAUAFABQAUAFABQAUAFADWVXVkdVdHUq6MAysrDDKynIZWBIIIIIODxQB8k/ETwuPDGuH7MpGmakr3ViAPlhw/+kWYPf7O7IU/6YSwhizbyZenoUn/XyOA3/j3/AM/5/KkPRAD/2Q==",crossOrigin:"anonymous",alt:"Key Play Thumbnail Image",className:"cardImage"})}),this.vm=le.default.getMaestroEventViewModel().keyPlaysViewModel}componentDidMount(){this.failedClipListener=this.vm.failedClips.subscribe(e=>{this.setState({failedClip:e[this.props.clipID]})}),this.props.setRef(this.ref)}componentWillUnmount(){this.failedClipListener&&this.failedClipListener()}render(){const{clipID:e,description:t,isPlaying:n,playbackProgress:r,isScoring:a,focused:o,awayTeamScore:s,homeTeamScore:l,homeTeamName:c,awayTeamName:u}=this.props,{failedClip:d}=this.state;return i.a.createElement("div",{className:"key-play-card focus-ring",id:e,"data-focused":o,"data-style":"display: flex;",ref:e=>this.ref=e},i.a.createElement("div",{className:"key-play-card-content"},this.renderImage(),i.a.createElement("div",{className:"text-content T05_ALT","data-style":"display: flex;"},i.a.createElement("div",{className:"multi-line"},t))),n&&null!==r&&i.a.createElement("progress",{value:r,max:"1"}),a&&i.a.createElement(Ee,{awayTeamScore:s,homeTeamScore:l,homeTeamName:c,awayTeamName:u}),"recentFailure"===d&&i.a.createElement("div",{className:"error-state","data-style":"display: flex;"},i.a.createElement(ye,{iconName:"warning",width:21.6,height:18.7}),i.a.createElement("span",{className:"T05_ALT"},"Could not play this clip. ")),"nonRecentFailure"===d&&i.a.createElement("div",{className:"non-recent-error-state"},i.a.createElement(ye,{iconName:"warning",width:21.6,height:18.7})))}}const ke=Object(te.a)()(Be);class Pe extends i.a.Component{constructor(...e){super(...e),Ce(this,"ref",null),Ce(this,"context",g),Ce(this,"setRef",e=>{this.ref=e}),Ce(this,"handleLeftPressed",e=>{"left"===e&&this.ref&&ce(this.ref)}),Ce(this,"onBecameFocused",e=>{this.context.scrollToFocusedElement(e)})}render(){return i.a.createElement(w,null,i.a.createElement(ke,we({},this.props,{setRef:this.setRef,onArrowPress:this.handleLeftPressed,onBecameFocused:this.onBecameFocused})))}}Ce(Pe,"contextTypes",v);var xe=n(19),_e={insert:"head",singleton:!1},Te=(s()(xe.a,_e),xe.a.locals,k),Se=n(23),Ie={insert:"head",singleton:!1};s()(Se.a,Ie),Se.a.locals;function Re(){return(Re=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 Me extends i.a.Component{render(){return i.a.createElement(Te,Re({className:"action-button T05_ALT"},this.props),this.props.children)}}var Fe=Object(te.a)()(Me),Le=n(22),Oe={insert:"head",singleton:!1};s()(Le.a,Oe),Le.a.locals;class Ne extends i.a.Component{render(){return i.a.createElement("div",{className:"sdk--key-play-error-state-unpopulatedEvent","data-style":"display: flex;"},i.a.createElement("div",{className:"main-content","data-style":"display: flex;"},i.a.createElement("h3",{className:"T70"},"Greatness takes time."),i.a.createElement("p",{className:"T20"},"Key plays are still in the making! Come back soon to check 'em out.")),i.a.createElement("div",{className:"unpopulatedEvent-examples","data-style":"display: flex;"},Array.from({length:4}).map((e,t)=>i.a.createElement("div",{key:t,className:"example","data-style":"display: flex;"}))))}}class je extends i.a.Component{render(){return i.a.createElement("div",{className:"sdk--key-play-error-state-unsupportedEvent","data-style":"display: flex;"},i.a.createElement("h3",{className:"T70"},"No Key Plays Available"),i.a.createElement("svg",{viewBox:"0 0 520 359",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.a.createElement("g",{opacity:"0.16"},i.a.createElement("path",{d:"M146.334 219.427V244.686L168.723 198.187V38.0215L165.279 40.3178V188.427L146.334 219.427Z",fill:"#6D6D6D"}),i.a.createElement("rect",{x:"94.6687",y:"219.427",width:"51.6662",height:"25.259",fill:"#777777"}),i.a.createElement("rect",{x:"145.187",y:"39.1694",width:"20.6665",height:"149.258",fill:"#666666"}),i.a.createElement("path",{d:"M146.335 219.427H94.6687L143.465 187.279H167.001L146.335 219.427Z",fill:"#666666"}),i.a.createElement("path",{d:"M375.389 219.427V244.686L353 198.187V38.0215L356.445 40.3178V188.427L375.389 219.427Z",fill:"#6D6D6D"}),i.a.createElement("rect",{width:"51.6662",height:"25.259",transform:"matrix(-1 0 0 1 427.055 219.427)",fill:"#777777"}),i.a.createElement("rect",{width:"20.6665",height:"149.258",transform:"matrix(-1 0 0 1 376.537 39.1694)",fill:"#666666"}),i.a.createElement("path",{d:"M375.389 219.427H427.055L378.259 187.279H354.722L375.389 219.427Z",fill:"#666666"}),i.a.createElement("path",{d:"M23.4844 141.354H496.517L410.981 121.835H93.5208L23.4844 141.354Z",fill:"#B1B1B1"}),i.a.createElement("rect",{x:"23.4844",y:"141.354",width:"473.033",height:"19.5183",fill:"#777777"}),i.a.createElement("rect",{x:"72.8545",y:"51.7993",width:"374.293",height:"45.9255",fill:"#CDCDCD"}))))}}class De extends i.a.Component{render(){const{focused:e}=this.props;return i.a.createElement("div",{"data-focused":e,className:"sdk--key-play-error-state-tabLoadFailure focus-ring","data-style":"display: flex;"},i.a.createElement("h3",{className:"T70"},"Let's try that again..."),i.a.createElement("p",{className:"T20"},"We're having trouble loading this."),i.a.createElement(Fe,{"data-focused":e,onEnterPress:this.props.onEnterPress},"Refresh"))}}const Ue=Object(te.a)()(De);class We extends i.a.Component{render(){const{errorState:e,onRetry:t}=this.props;return"unsupportedEvent"===e?i.a.createElement(je,null):"unpopulatedEvent"===e?i.a.createElement(Ne,null):"tabLoadFailure"===e?i.a.createElement(Ue,{onEnterPress:t}):null}}var He=We,Ve=b;function ze(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 Ke extends r.Component{constructor(e){var t,n;super(e),ze(this,"container",null),ze(this,"playbackProgressUnsub",null),ze(this,"playbackIndexUnsub",null),ze(this,"itemsUnsub",null),ze(this,"vm",void 0),ze(this,"handlePlayClip",e=>async()=>{await this.vm.playKeyPlay(e)}),this.vm=le.default.getMaestroEventViewModel().keyPlaysViewModel;const r=this.vm.items.value;this.state={scrollableContainer:null,playbackProgress:null!==(t=this.vm.currentClipPlaybackProgress.value)&&void 0!==t?t:null,playbackIndex:null!==(n=this.vm.currentlyPlayingClipIndex.value)&&void 0!==n?n:null,items:r.map(e=>({title:e.title,items:e.items.map(e=>({id:e.id,clipID:e.clipID,awayTeamScore:e.awayTeamScore,homeTeamScore:e.homeTeamScore,awayTeamName:e.awayTeamName,homeTeamName:e.homeTeamName,description:e.description,playerImageUrl:e.playerImageUrl||"",teamImageUrl:e.teamImageUrl||"",thumbnailImageUrl:e.thumbnailImageUrl||""}))}))}}componentDidMount(){this.playbackProgressUnsub=this.vm.currentClipPlaybackProgress.subscribe(e=>{this.setState({playbackProgress:null!=e?e:null})}),this.playbackIndexUnsub=this.vm.currentlyPlayingClipIndex.subscribe(e=>{this.setState({playbackIndex:null!=e?e:null})}),this.itemsUnsub=this.vm.items.subscribe(e=>{this.setState({items:e.map(e=>({title:e.title,items:e.items.map(e=>({id:e.id,clipID:e.clipID,awayTeamScore:e.awayTeamScore,homeTeamScore:e.homeTeamScore,awayTeamName:e.awayTeamName,homeTeamName:e.homeTeamName,description:e.description,playerImageUrl:e.playerImageUrl||"",teamImageUrl:e.teamImageUrl||"",thumbnailImageUrl:e.thumbnailImageUrl||""}))}))})}),this.setState({scrollableContainer:this.container})}componentWillUnmount(){this.playbackProgressUnsub&&this.playbackProgressUnsub(),this.playbackIndexUnsub&&this.playbackIndexUnsub(),this.itemsUnsub&&this.itemsUnsub()}render(){const{playbackProgress:e,playbackIndex:t,items:n,scrollableContainer:r}=this.state;return i.a.createElement(Ve,{scrollableContainerRef:r,containerTopOffset:32},i.a.createElement("div",{ref:e=>{this.container=e},className:"key-plays-view","data-style":"display: flex;"},n.map((n,r)=>i.a.createElement("div",{key:"section-"+r,className:"key-plays-section","data-style":"display: flex;"},i.a.createElement("h3",{className:"key-plays-section-title T10"},n.title),i.a.createElement("div",{className:"key-plays-section-items","data-style":"display: flex;"},n.items.map(n=>{const r=this.vm.allItems.findIndex(e=>e.id===n.id);return i.a.createElement(Pe,{key:n.id,id:n.id,clipID:n.clipID,description:n.description,awayTeamName:n.awayTeamName,homeTeamName:n.homeTeamName,awayTeamScore:n.awayTeamScore,homeTeamScore:n.homeTeamScore,playerImageUrl:n.playerImageUrl,teamImageUrl:n.teamImageUrl,thumbnailImageUrl:n.thumbnailImageUrl,isPlaying:this.vm.isCurrentlyPlaying(r),isScoring:Boolean(n.awayTeamScore&&n.homeTeamScore),playbackProgress:r===t?e:null,onEnterPress:this.handlePlayClip(r)})})))),i.a.createElement("div",{className:"key-plays-bottom-padding"})))}}class qe extends r.Component{constructor(e){super(e),ze(this,"errorStateUnsub",null),ze(this,"vm",void 0),ze(this,"handleRetry",async()=>{await this.vm.userRequestedNewKeyPlaysData(),Object(se.e)("PANEL_NAV_BUTTON_0")}),this.vm=le.default.getMaestroEventViewModel().keyPlaysViewModel,this.state={errorState:this.vm.errorState.value}}componentDidMount(){this.errorStateUnsub=this.vm.errorState.subscribe(e=>{this.setState({errorState:e})})}componentWillUnmount(){this.errorStateUnsub&&this.errorStateUnsub()}render(){const{errorState:e}=this.state;return e?i.a.createElement(He,{errorState:e,onRetry:this.handleRetry}):i.a.createElement(Ke,null)}}var Ye=n(26),Xe={insert:"head",singleton:!1};s()(Ye.a,Xe),Ye.a.locals;function Ge(){return(Ge=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)}function Qe(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 Ze extends i.a.Component{get columnOrder(){switch(this.props.item.data.sport){case"baseball":case"hockey":case"soccer":return["Moneyline","Total","Spread"];default:return["Spread","Total","Moneyline"]}}get isSoccer(){return"soccer"===this.props.item.data.sport.toLocaleLowerCase()}renderOrderedLineColumn(e){return this.columnOrder.map(t=>{switch(t){case"Moneyline":return i.a.createElement("td",{key:t},e.moneylineFirstLine);case"Spread":return i.a.createElement("td",{key:t},e.gameSpreadFirstLine,i.a.createElement("br",null),i.a.createElement("span",{className:"T02"},e.gameSpreadSecondLine));case"Total":return i.a.createElement("td",{key:t},e.totalPointsFirstLine,i.a.createElement("br",null),i.a.createElement("span",{className:"T02"},e.totalPointsSecondLine));default:return null}})}render(){const e=this.props.item.data,t=this.isSoccer?[e.homeTeamOdds,e.awayTeamOdds]:[e.awayTeamOdds,e.homeTeamOdds];return i.a.createElement(w,null,i.a.createElement("table",{className:"six-pack-table focus-ring T02","data-focused":this.props.focused},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",{scope:"col"}),i.a.createElement("th",{scope:"col"},"post"===this.props.item.data.gameState?"Close":"Open"),this.columnOrder.map(e=>i.a.createElement("th",{scope:"col",key:e},e)))),i.a.createElement("tbody",null,t.map((e,t)=>i.a.createElement("tr",{key:t,className:"T05_ALT"},i.a.createElement("td",null,e.teamAbbreviation),i.a.createElement("td",null,e.startOfGameFirstLine,i.a.createElement("br",null),i.a.createElement("span",{className:"T02"},e.startOfGameSecondLine)),this.renderOrderedLineColumn(e))))))}}const $e=Object(te.a)()(Ze);class Je extends i.a.Component{constructor(...e){super(...e),Qe(this,"context",g),Qe(this,"onBecameFocused",e=>{this.context.scrollToFocusedElement(e)}),Qe(this,"onArrowPress",(e,t,n)=>{"left"===e&&n.layout&&ce(n.layout.node.firstElementChild)})}render(){return i.a.createElement($e,Ge({},this.props,{onBecameFocused:this.onBecameFocused,onArrowPress:this.onArrowPress}))}}Qe(Je,"contextTypes",v);var et=n(25),tt={insert:"head",singleton:!1},nt=(s()(et.a,tt),et.a.locals,n(35)),rt={insert:"head",singleton:!1};s()(nt.a,rt),nt.a.locals;class it extends i.a.Component{render(){return i.a.createElement(k,{className:"segment-button T05_ALT","data-focused":this.props.focused,"data-active":this.props.active},this.props.children)}}var at=Object(te.a)()(it),ot=n(34),st={insert:"head",singleton:!1};s()(ot.a,st),ot.a.locals;function lt(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 ct extends i.a.Component{constructor(...e){super(...e),lt(this,"context",g),lt(this,"state",{activeIndex:0,lastActiveIndex:0}),lt(this,"onBecameFocused",(e,t)=>n=>{this.state.lastActiveIndex===t||null===this.state.lastActiveIndex?(this.setState({activeIndex:t,lastActiveIndex:null}),e.onEnter(),this.context.scrollToFocusedElement(n)):Object(se.e)("segment-controller-"+this.state.lastActiveIndex)}),lt(this,"handleArrowPress",e=>(t,n,r)=>{"down"!==t&&"up"!==t||this.setState({lastActiveIndex:this.state.activeIndex}),"left"===t&&0===e&&r.layout&&ce(r.layout.node.firstElementChild)})}render(){return i.a.createElement("div",{className:"segment-controller",style:{backgroundColor:this.props.backgroundColor}},this.props.items.map((e,t)=>i.a.createElement(at,{focusKey:"segment-controller-"+t,key:e.title,onBecameFocused:this.onBecameFocused(e,t),onArrowPress:this.handleArrowPress(t),active:this.state.activeIndex===t},e.title)))}}lt(ct,"contextTypes",v);var ut=ct,dt=n(27),ht={insert:"head",singleton:!1},pt=(s()(dt.a,ht),dt.a.locals,n(28)),ft={insert:"head",singleton:!1},mt=(s()(pt.a,ft),pt.a.locals,n(32)),At={insert:"head",singleton:!1};s()(mt.a,At),mt.a.locals;class gt extends i.a.Component{render(){return i.a.createElement(w,null,i.a.createElement("div",{className:"bets-card focus-ring","data-focused":this.props.focused,"data-style":"display: flex;"},this.props.header(this.props),i.a.createElement("div",{className:"bets-card-divider"}),this.props.children,this.props.footer(this.props)))}}var vt=Object(te.a)()(gt),bt=n(29),yt={insert:"head",singleton:!1};s()(bt.a,yt),bt.a.locals;var Et=e=>i.a.createElement("div",{className:"bet-outcome-badge T02","data-style":"display: flex;"},i.a.createElement(ye,{iconName:"WIN"===e.outcome?"checkmark":"times",width:24,height:24}),e.outcome);var wt=e=>{const t="NOT_SET"!==e.overrideOutcome?e.overrideOutcome:e.outcome;return i.a.createElement("div",{className:"bets-card-header T05_ALT","data-style":"display: flex;"},e.renderIcon?e.renderIcon():e.iconUrl&&i.a.createElement(ge,{crossOrigin:"anonymous",src:e.iconUrl,alt:e.betType+" Icon",width:28,height:22}),i.a.createElement("div",{className:"T05_ALT"},e.betType.toLocaleLowerCase()),i.a.createElement("span",{className:"T02"},e.children),i.a.createElement("div",{className:"bets-card-status-container","data-style":"display: flex;"},t&&"PENDING"!==t&&i.a.createElement(Et,{outcome:t}),e.legCountThreshold&&e.legCount&&e.legCount>e.legCountThreshold&&i.a.createElement("div",{className:"icon-container","data-focused":e.betCardProps.focused},i.a.createElement(ye,{iconName:e.cardExpanded?"collapse":"expand",width:48,height:48}))))},Ct=n(30),Bt={insert:"head",singleton:!1};s()(Ct.a,Bt),Ct.a.locals;var kt=e=>i.a.createElement("label",{className:"bet-pill","data-style":"display: flex;"},e.children),Pt=n(31),xt={insert:"head",singleton:!1};s()(Pt.a,xt),Pt.a.locals;var _t=({children:e})=>i.a.createElement("div",{className:"bet-result","data-style":"display: flex;"},e);var Tt=e=>{const t="NOT_SET"!==e.bet.overrideOutcome?e.bet.overrideOutcome:e.bet.outcome;return i.a.createElement("div",{className:"bets-card-footer T02","data-style":"display: flex;"},i.a.createElement(kt,null,"$",e.bet.betAmount," ",e.bet.type.toLowerCase()," ",e.bet.odds),"LOSS"!==t&&i.a.createElement(_t,null,e.bet.betDisplayStatement,i.a.createElement("span",null,"$",e.bet.payoutAmount)))},St=n(33),It={insert:"head",singleton:!1};s()(St.a,It),St.a.locals;class Rt extends i.a.Component{render(){const e=this.props.leg.points?Number(this.props.leg.points):0;return i.a.createElement(w,null,i.a.createElement("div",{className:"single-bet focus-ring focus-opacity","data-focusable":this.props.focusable,"data-focused":this.props.focused,"data-style":"display: flex;"},this.props.leg.iconDark&&i.a.createElement(ge,{crossOrigin:"anonymous",src:this.props.leg.iconDark,alt:"Bet Icon"}),i.a.createElement("div",{className:"single-bet-main-content T02","data-style":"display: flex;"},i.a.createElement("div",{className:"single-bet-info","data-style":"display: flex;"},i.a.createElement("div",{"data-style":"display: flex;"},i.a.createElement("div",{className:"T05_ALT"},this.props.leg.selectionText),i.a.createElement("span",{className:"single-bet-info-description"},this.props.leg.marketText)),i.a.createElement("div",{className:"single-bet-odds T01"},this.props.leg.odds)),this.props.leg.accrued&&i.a.createElement("div",{className:"single-bet-accrued","data-style":"display: flex;"},i.a.createElement("div",{className:"single-bet-accrued-goal","data-style":"display: flex;"},e,i.a.createElement("span",null,"/",this.props.leg.accrued.goal),i.a.createElement("div",null,Math.round(e/this.props.leg.accrued.goal*100),"%")),i.a.createElement("progress",{"data-complete":e===this.props.leg.accrued.goal,value:e,max:this.props.leg.accrued.goal})))))}}var Mt=Object(te.a)()(Rt);function Ft(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 Lt extends i.a.Component{constructor(...e){super(...e),Ft(this,"context",g),Ft(this,"onBecameFocused",e=>{this.context.scrollToFocusedElement(e)})}render(){return i.a.createElement("div",{key:this.props.event.displayName,className:"bets-card-event T10","data-style":"display: flex;"},i.a.createElement("div",{className:"T10"},this.props.event.displayName),i.a.createElement("div",{className:"bets-card-bets","data-style":"display: flex;"},this.props.event.legs.map((e,t)=>i.a.createElement(Mt,{key:`${this.props.betId}-${this.props.eventIndex}-${t}`,focusable:this.props.betsFocusable,focusKey:`sdk-bets-card-${this.props.betType}-bet-${this.props.betId}-${this.props.eventIndex}-${t}`,onArrowPress:this.props.onBetArrowPress(this.props.eventIndex,t),onBecameFocused:this.onBecameFocused,parentFocusKey:this.props.parentFocusKey,onBackPress:this.props.onBetBackPress,leg:e}))))}}Ft(Lt,"contextTypes",v);var Ot=Lt;function Nt(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 jt extends i.a.Component{constructor(...e){super(...e),Nt(this,"context",g),Nt(this,"onEnterPress",()=>{this.betsFocusable&&(this.props.hasFocusedChild||Object(se.e)(`sdk-bets-card-${this.betType}-bet-${this.props.bet.id}-0-0`))}),Nt(this,"focusCard",()=>{Object(se.e)(`${this.focusKeyPrefix}-${this.props.bet.id}`)}),Nt(this,"handleBetArrowPress",(e,t)=>(n,r,i)=>{if("up"===n&&0===t&&0===e)return this.focusCard(),!1;"left"===n&&i.layout&&ce(i.layout.node.firstElementChild)}),Nt(this,"handleCardArrowPress",(e,t,n)=>{"left"===e&&n.layout&&ce(n.layout.node.firstElementChild)}),Nt(this,"renderHeader",e=>{var t,n,r;return i.a.createElement(wt,{betCardProps:e,betType:this.betType,iconUrl:null===(t=this.props.bet.rewardInfo.icon)||void 0===t?void 0:t.dark,legCount:this.props.bet.legCount,outcome:this.props.bet.outcome,overrideOutcome:this.props.bet.overrideOutcome,cardExpanded:!!this.props.hasFocusedChild,legCountThreshold:3},null===(n=(r=this.props).renderHeaderContent)||void 0===n?void 0:n.call(r,e))}),Nt(this,"renderFooter",()=>i.a.createElement(Tt,{bet:this.props.bet})),Nt(this,"becameFocused",e=>{this.context.scrollToFocusedElement(e)})}get betsFocusable(){return this.props.bet.events.length>3}get events(){return this.props.hasFocusedChild?this.props.bet.events:this.props.bet.events.slice(0,3)}get focusKeyPrefix(){return`sdk-${this.props.bet.type.toLowerCase()}-card`}get betType(){return this.props.bet.type.toLowerCase()}render(){return i.a.createElement(vt,{header:this.renderHeader,footer:this.renderFooter,onEnterPress:this.onEnterPress,focusKey:`${this.focusKeyPrefix}-${this.props.bet.id}`,onArrowPress:this.handleCardArrowPress,onBecameFocused:this.becameFocused},this.events.map((e,t)=>i.a.createElement(Ot,{betType:this.betType,betsFocusable:this.betsFocusable,event:e,eventIndex:t,onBetArrowPress:this.handleBetArrowPress,key:e.displayName,betId:this.props.bet.id,parentFocusKey:this.props.focusKey,onBetBackPress:this.focusCard})),!this.props.hasFocusedChild&&this.betsFocusable&&i.a.createElement("div",{className:"more-bets T05_ALT"},"+",this.props.bet.legCount-3," more"))}}Nt(jt,"contextTypes",v);var Dt=Object(te.a)({trackChildren:!0})(jt);var Ut=({bet:e})=>i.a.createElement(Dt,{focusKey:"bets-parlay-card-"+e.id,bet:e,renderHeaderContent:()=>i.a.createElement("div",null,e.legCount," Leg",e.legCount>1?"s":"")});var Wt=({bet:e})=>i.a.createElement(Dt,{focusKey:"bets-boost-card-"+e.id,bet:e});var Ht=({bet:e})=>i.a.createElement(Dt,{focusKey:"bets-straight-card-"+e.id,bet:e});var Vt=({bet:e})=>i.a.createElement(Dt,{focusKey:"bets-teaser-card-"+e.id,bet:e,renderHeaderContent:()=>i.a.createElement("div",null,e.legCount," Point",1!==e.legCount?"s":""," Teaser")});function zt(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 Kt extends i.a.Component{constructor(...e){super(...e),zt(this,"state",{activeSegment:this.props.item.data.defaultTab}),zt(this,"setSegment",e=>()=>{this.state.activeSegment!==e&&this.setState({activeSegment:e})}),zt(this,"segmentItems",[{title:"Live",type:"live",onEnter:this.setSegment("live")},{title:"Settled",type:"settled",onEnter:this.setSegment("settled")},{title:"Upcoming",type:"upcoming",onEnter:this.setSegment("upcoming")}]),zt(this,"onSegmentChange",e=>{this.setState({activeSegment:e})}),zt(this,"renderBet",e=>{switch(e.type){case"PARLAY":return i.a.createElement(Ut,{key:e.id,bet:e});case"BOOST":return i.a.createElement(Wt,{key:e.id,bet:e});case"STRAIGHT":return i.a.createElement(Ht,{key:e.id,bet:e});case"TEASER":return i.a.createElement(Vt,{key:e.id,bet:e});default:return console.warn("unknown type",e.type),null}}),zt(this,"renderBets",()=>{var e;return null!==(e=this.bets)&&void 0!==e&&e.length?this.bets.map(e=>this.renderBet(e)):i.a.createElement("div",{className:"no-user-bets T05_ALT"},"No ",this.state.activeSegment," Bets")})}get bets(){switch(this.state.activeSegment){case"live":return this.props.item.data.bets.live;case"settled":return this.props.item.data.bets.settled;case"upcoming":return this.props.item.data.bets.upcoming;default:return null}}render(){return i.a.createElement("section",{className:"my-bets-view","data-style":"display: flex;"},i.a.createElement(ut,{items:this.segmentItems}),this.renderBets())}}var qt=Kt,Yt=n(36),Xt={insert:"head",singleton:!1};s()(Yt.a,Xt),Yt.a.locals;function Gt(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 Qt extends i.a.Component{constructor(...e){super(...e),Gt(this,"focusBet",e=>{Object(se.e)(this.getBetFocusKey(e))}),Gt(this,"focusCard",()=>{Object(se.e)(this.getCardFocusKey())}),Gt(this,"getTotalBets",()=>this.props.item.data.items.length||0),Gt(this,"handleEnterPress",()=>{Object(se.e)(this.getBetFocusKey(0))}),Gt(this,"context",g),Gt(this,"onCardBecameFocused",e=>{this.context.scrollToFocusedElement(e)}),Gt(this,"onBetBecameFocused",e=>{this.context.scrollToFocusedElement(e)}),Gt(this,"onBetArrowPress",e=>(t,n,r)=>{if("left"===t&&r.layout&&ce(r.layout.node.firstElementChild),0===e&&"up"===t)return this.focusCard(),!1}),Gt(this,"onCardArrowPress",(e,t,n)=>{"left"===e&&n.layout&&ce(n.layout.node.firstElementChild)})}getBetFocusKey(e){return`hotprops-bet-${this.props.item.id}-${e}`}getCardFocusKey(){return"hot-props-"+this.props.item.id}renderFlameIcon(){return i.a.createElement(Q,{iconName:"flame",width:20,height:20})}renderHeader(e){return i.a.createElement(wt,{betCardProps:e,betType:"Hot Props",cardExpanded:!!this.props.hasFocusedChild,renderIcon:this.renderFlameIcon,legCount:this.getTotalBets(),legCountThreshold:4})}renderFooter(e,t){return!t&&e>0?i.a.createElement("div",{className:"hot-props-footer"},"+",e," More"):null}get lineItems(){const e=this.props.item.data.items;return this.props.hasFocusedChild?e:e.slice(0,4)}render(){const{item:e,focused:t}=this.props,n=e.data.items.length-4;return i.a.createElement("div",{className:"hot-props-bet-card"},i.a.createElement(vt,{focusKey:this.getCardFocusKey(),focused:t,header:this.renderHeader.bind(this),footer:()=>this.renderFooter(n,!!this.props.hasFocusedChild),onEnterPress:this.handleEnterPress,onBecameFocused:this.onCardBecameFocused,onArrowPress:this.onCardArrowPress},i.a.createElement("div",{className:"hot-props-list","data-style":"display: flex;"},this.lineItems.map((e,t)=>i.a.createElement(Mt,{key:e.id,focusKey:this.getBetFocusKey(t),leg:e,focusable:this.props.hasFocusedChild,onBackPress:this.focusCard,onBecameFocused:this.onBetBecameFocused,onArrowPress:this.onBetArrowPress(t),parentFocusKey:this.props.focusKey})))))}}Gt(Qt,"contextTypes",v);var Zt=Object(te.a)({trackChildren:!0})(Qt),$t=n(37),Jt={insert:"head",singleton:!1};s()($t.a,Jt),$t.a.locals;class en extends i.a.Component{render(){return i.a.createElement(w,null,i.a.createElement("div",{className:"gambling-disclaimer"},i.a.createElement(Q,{iconName:"mobilePhone",width:32,height:32}),i.a.createElement("span",{className:"gambling-disclaimer-text T02"},this.props.text||"Odds by ESPN BET; 21+. Gambling Problem? Call 1-800-GAMBLER")))}}var tn=en,nn=n(38),rn={insert:"head",singleton:!1};s()(nn.a,rn),nn.a.locals;class an extends i.a.Component{render(){const{disclaimerText:e}=this.props,t=e||"You are in a location outside of our operating area. Visit about.espnbet.com for more detail.";return i.a.createElement(w,null,i.a.createElement("div",{className:"location-warning"},i.a.createElement(Q,{iconName:"betsWarning",width:32,height:32}),i.a.createElement("span",{className:"location-warning-text T02"},t)))}}var on=an;class sn extends i.a.Component{render(){return i.a.createElement("div",{"data-focused":this.props.focused,className:"bets-error-state-tabLoadFailure focus-ring"},i.a.createElement("h3",{className:"T70"},"Let's try that again..."),i.a.createElement("p",{className:"T20"},"We're having trouble loading this."),i.a.createElement(Fe,{"data-focused":this.props.focused,onEnterPress:this.props.onEnterPress},"Refresh"))}}var ln=Object(te.a)()(sn),cn=n(39),un={insert:"head",singleton:!1};s()(cn.a,un),cn.a.locals;function dn(){return(dn=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)}function hn(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 pn extends i.a.Component{render(){const{title:e,description:t,logo:n,qrCode:r,showLogo:a=!0,focused:o}=this.props;return i.a.createElement(w,null,i.a.createElement("div",{className:"promo-code-banner focus-ring","data-focused":o,style:{backgroundImage:"url(https://www.espn.com/redesign/assets/img/ictv/bkg_qr_bet.jpg)"}},i.a.createElement("div",{className:"promo-content"},a&&i.a.createElement("div",{className:"promo-logo-container"},i.a.createElement("img",{src:n,alt:"ESPN Bet Logo",className:"promo-logo"})),i.a.createElement("div",{className:"promo-tagline T20"},e)),i.a.createElement("div",{className:"promo-action-area"},i.a.createElement("div",{className:"qr-code-container"},i.a.createElement("img",{src:r,alt:"QR Code",className:"qr-code"})),i.a.createElement("div",{className:"promo-description T20"},t))))}}const fn=Object(te.a)()(pn);class mn extends i.a.Component{constructor(...e){super(...e),hn(this,"context",g),hn(this,"onBecameFocused",e=>{this.context.scrollToFocusedElement(e)}),hn(this,"onArrowPress",(e,t,n)=>{"left"===e&&n.layout&&ce(n.layout.node.firstElementChild)})}render(){return i.a.createElement(fn,dn({},this.props,{onBecameFocused:this.onBecameFocused,onArrowPress:this.onArrowPress}))}}function An(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}hn(mn,"contextTypes",v);class gn extends r.Component{constructor(e){super(e),An(this,"container",null),An(this,"betsItemsUnsub",null),An(this,"isDataLoadingUnsub",null),An(this,"errorStateUnsub",null),An(this,"vm",void 0),An(this,"renderBetItem",e=>{switch(e.type){case"sixPack":return i.a.createElement(Je,{key:e.id,item:e});case"userBets":return i.a.createElement(qt,{item:e,key:e.id});case"hotProps":return i.a.createElement(Zt,{focusKey:"hot-props-view-"+e.id,key:e.id,item:e});case"gamblingMessage":return i.a.createElement(tn,{text:e.data.text,key:e.id});case"locationDisclaimer":return i.a.createElement(on,{key:e.id,disclaimerText:e.data.text});case"promo":return i.a.createElement(mn,{description:e.data.description,logo:e.data.logo,qrCode:e.data.qrCode,title:e.data.title,showLogo:!!e.data.logo,key:e.id});default:return console.warn("Unknown bet item type: "+e.type),null}}),An(this,"clearTabLoadFailure",()=>{this.vm.clearTabLoadFailure()}),this.vm=le.default.getMaestroEventViewModel().betsViewModel,this.state={container:null,betsItems:this.vm.betsItems.value,isDataLoading:this.vm.isDataLoading.value,errorState:this.vm.errorState.value}}componentDidMount(){this.setState({container:this.container}),this.betsItemsUnsub=this.vm.betsItems.subscribe(e=>{this.setState({betsItems:e})}),this.isDataLoadingUnsub=this.vm.isDataLoading.subscribe(e=>{this.setState({isDataLoading:e})}),this.errorStateUnsub=this.vm.errorState.subscribe(e=>{this.setState({errorState:e})}),this.vm.init()}componentWillUnmount(){this.betsItemsUnsub&&this.betsItemsUnsub(),this.isDataLoadingUnsub&&this.isDataLoadingUnsub(),this.errorStateUnsub&&this.errorStateUnsub(),this.vm.cleanup()}render(){return i.a.createElement(Ve,{scrollableContainerRef:this.state.container,containerTopOffset:40,"data-has-error":"none"!==this.state.errorState},"tabLoadFailure"===this.state.errorState?i.a.createElement("div",null,i.a.createElement(ln,{onEnterPress:this.clearTabLoadFailure}),i.a.createElement("div",{className:"bets-bottom-padding"})):i.a.createElement("div",{className:"bets-view",ref:e=>this.container=e,"data-style":"display: flex;"},this.state.betsItems.map(this.renderBetItem),i.a.createElement("div",{className:"bets-bottom-padding"})))}}var vn=gn;function bn(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 yn=new a.a,En={keyPlays:i.a.createElement(qe,null),bets:i.a.createElement(vn,null),stats:i.a.createElement("div",{className:"panel-coming-soon T02","data-style":"display: flex;"},"Stats - Coming Soon"),fantasy:i.a.createElement("div",{className:"panel-coming-soon T02","data-style":"display: flex;"},"Fantasy - Coming Soon")};class wn extends i.a.Component{constructor(e){super(e),bn(this,"unsubscribe",null),this.state={activePanel:yn.currentPanel}}componentDidMount(){this.unsubscribe=yn.currentPanelObservable.subscribe(()=>{this.setState({activePanel:yn.currentPanel})})}componentWillUnmount(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)}goToPanel(e){return()=>{yn.currentPanel!==e&&(yn.currentPanel=e)}}render(){const{activePanel:e}=this.state,t=[{iconName:"keyPlays",onEnter:this.goToPanel("keyPlays"),title:"KEY PLAYS",active:"keyPlays"===e},{iconName:"bets",onEnter:this.goToPanel("bets"),title:"BETS",active:"bets"===e},{iconName:"stats",onEnter:this.goToPanel("stats"),title:"STATS",active:"stats"===e},{iconName:"fantasy",onEnter:this.goToPanel("fantasy"),title:"FANTASY",active:"fantasy"===e}];return i.a.createElement("div",{className:"sdk--panel-manager","data-style":"display: flex;"},i.a.createElement(pe,{items:t}),i.a.createElement("div",{className:"sdk--panel-wrapper"},En[e]))}}var Cn=wn;t.default=Cn},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r);const a={_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 o=n(1),s=n.n(o),l=n(17),c={insert:"head",singleton:!1};s()(l.a,c),l.a.locals;const u=a.colors,d=a.typography;class h extends i.a.Component{componentDidMount(){Object.keys(u).forEach(e=>{document.documentElement.style.setProperty("--sdk-"+e,u[e])}),Object.keys(d).forEach(e=>{document.documentElement.style.setProperty("--sdk-font-"+e,d[e])});if(!document.querySelector('script[src="https://unpkg.com/@rive-app/canvas"]')){const e=document.createElement("script");e.src="https://unpkg.com/@rive-app/canvas",document.body.appendChild(e)}}componentWillUnmount(){Object.keys(u).forEach(e=>{document.documentElement.style.removeProperty("--sdk-"+e)}),Object.keys(d).forEach(e=>{document.documentElement.style.removeProperty("--sdk-font-"+e)});const e=document.querySelector('script[src="https://unpkg.com/@rive-app/canvas"]');e&&e.remove()}render(){return i.a.createElement("div",{className:"sdk-wrapper"},this.props.children)}}var p=h;t.default=p}])}));
2
11
  //# sourceMappingURL=maestro-web-sdk.umd.js.map