@ebay/ui-core-react 8.5.0 → 8.5.2

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 (138) hide show
  1. package/badge-BWhBKWCu.js +1 -0
  2. package/button-DhwBC3vw.js +1 -0
  3. package/calendar-Bnx_QLoQ.js +1 -0
  4. package/checkbox-ebkMhvbJ.js +1 -0
  5. package/chip-CfMEg9CT.js +1 -0
  6. package/combobox-BzM04rYV.js +1 -0
  7. package/dialog-previous-button-DR6Ujner.js +1 -0
  8. package/dropdown-BGdrijmi.js +1 -0
  9. package/ebay-accordion/accordion.d.ts.map +1 -1
  10. package/ebay-accordion/index.js +2 -2
  11. package/ebay-alert-dialog/index.js +1 -1
  12. package/ebay-avatar/index.js +1 -1
  13. package/ebay-badge/index.js +1 -1
  14. package/ebay-breadcrumbs/index.js +1 -1
  15. package/ebay-button/index.js +1 -1
  16. package/ebay-calendar/index.js +1 -1
  17. package/ebay-carousel/index.js +1 -1
  18. package/ebay-ccd/index.js +1 -1
  19. package/ebay-character-count/index.js +1 -1
  20. package/ebay-checkbox/index.js +1 -1
  21. package/ebay-chip/index.js +1 -1
  22. package/ebay-chips-combobox/index.js +1 -1
  23. package/ebay-combobox/index.js +1 -1
  24. package/ebay-confirm-dialog/index.js +1 -1
  25. package/ebay-cta-button/index.js +1 -1
  26. package/ebay-date-textbox/index.js +1 -1
  27. package/ebay-details/index.js +1 -1
  28. package/ebay-details-CwOA53up.js +1 -0
  29. package/ebay-dialog-base/index.js +1 -41
  30. package/ebay-drawer-dialog-deprecated/index.js +1 -1
  31. package/ebay-education-notice/index.js +1 -1
  32. package/ebay-eek/index.js +1 -1
  33. package/ebay-fake-link/index.js +1 -1
  34. package/ebay-fake-menu/index.js +1 -1
  35. package/ebay-fake-menu-button/index.js +1 -1
  36. package/ebay-fake-tabs/index.js +1 -1
  37. package/ebay-field/index.js +1 -1
  38. package/ebay-file-input/index.js +1 -1
  39. package/ebay-file-preview-card/index.js +1 -1
  40. package/ebay-file-preview-card-group/index.js +1 -1
  41. package/ebay-filter/index.js +1 -1
  42. package/ebay-filter-menu/index.js +1 -1
  43. package/ebay-filter-menu-button/index.js +1 -1
  44. package/ebay-fullscreen-dialog-deprecated/index.js +1 -1
  45. package/ebay-icon/index.js +1 -1
  46. package/ebay-icon-button/index.js +1 -1
  47. package/ebay-image-placeholder/index.js +1 -1
  48. package/ebay-infotip/index.js +1 -5
  49. package/ebay-inline-notice/index.js +1 -1
  50. package/ebay-lightbox-dialog/index.js +1 -1
  51. package/ebay-listbox/index.js +1 -1
  52. package/ebay-listbox-button/index.js +2 -2
  53. package/ebay-menu/index.js +1 -1
  54. package/ebay-menu-button/index.js +1 -1
  55. package/ebay-notice-base/index.js +1 -1
  56. package/ebay-page-notice/index.js +1 -1
  57. package/ebay-pagination/index.js +1 -1
  58. package/ebay-panel-dialog/index.js +1 -1
  59. package/ebay-progress-bar/index.js +1 -1
  60. package/ebay-progress-bar-expressive/index.js +1 -1
  61. package/ebay-progress-spinner/index.js +1 -1
  62. package/ebay-progress-stepper/index.js +1 -1
  63. package/ebay-radio/index.js +1 -1
  64. package/ebay-section-notice/index.js +1 -1
  65. package/ebay-section-title/index.js +1 -1
  66. package/ebay-segmented-buttons/index.js +1 -1
  67. package/ebay-select/index.js +1 -1
  68. package/ebay-signal/index.js +1 -1
  69. package/ebay-skeleton/index.js +1 -1
  70. package/ebay-snackbar-dialog/index.js +1 -1
  71. package/ebay-split-button/index.js +1 -1
  72. package/ebay-star-rating/index.js +1 -1
  73. package/ebay-star-rating-select/index.js +1 -1
  74. package/ebay-svg/index.js +1 -1
  75. package/ebay-switch/index.js +1 -1
  76. package/ebay-table/index.js +1 -1
  77. package/ebay-tabs/index.js +1 -1
  78. package/ebay-textbox/index.js +1 -1
  79. package/ebay-toast-dialog/index.js +1 -1
  80. package/ebay-toggle-button/index.js +1 -1
  81. package/ebay-toggle-button-group/index.js +1 -1
  82. package/ebay-tooltip/index.js +1 -1
  83. package/ebay-tourtip/index.js +1 -1
  84. package/ebay-tri-state-checkbox/index.js +1 -1
  85. package/ebay-video/index.js +1 -385
  86. package/events/index.js +1 -1
  87. package/file-preview-card-D4qnvGtF.js +1 -0
  88. package/filter-menu-DVoaD81G.js +1 -0
  89. package/forwardRef-DBQKIlPy.js +1 -0
  90. package/hooks-B4eFIQlH.js +1 -0
  91. package/icon-C-bWGO-9.js +1 -0
  92. package/icon-button-CHW6Lezn.js +1 -0
  93. package/label-BRztS0pw.js +1 -0
  94. package/lightbox-dialog-B19PMyMY.js +1 -0
  95. package/menu-button-label-BsTtpKB2.js +1 -0
  96. package/menu-button-label-CN_zoO9F.js +1 -0
  97. package/menu-item-D_m4VPNi.js +1 -0
  98. package/menu-mTGSTnD8.js +1 -0
  99. package/notice-content-9iF4T8uB.js +1 -0
  100. package/notice-cta-CKl_qBge.js +1 -0
  101. package/notice-footer-G6VPjVZu.js +1 -0
  102. package/package.json +8 -4
  103. package/progress-spinner-BQ5Ms2Nu.js +1 -0
  104. package/radio-DLgEB-qH.js +1 -0
  105. package/random-id-DlJj_RWH.js +1 -0
  106. package/reduced-motion-CMIhlQVx.js +1 -0
  107. package/textbox-BYNinHFi.js +1 -0
  108. package/toggle-button-BLFYrRDI.js +1 -0
  109. package/tri-state-checkbox-BLbLOJc1.js +1 -0
  110. package/tslib.es6-C4EgNkz1.js +1 -0
  111. package/use-roving-index-DoAVBgsp.js +1 -0
  112. package/use-tooltip-mcJqLqOg.js +1 -0
  113. package/utils/index.js +1 -1
  114. package/utils-C9NL3q0j.js +1 -0
  115. package/dropdown-DyNGEyy6.js +0 -22
  116. package/forwardRef-BGhnwltg.js +0 -1
  117. package/hooks-BsnjMXtj.js +0 -1
  118. package/index-B9dsnEky.js +0 -1
  119. package/index-BL7hPwtY.js +0 -21
  120. package/index-Banoekuf.js +0 -29
  121. package/index-BeJlcxe3.js +0 -1
  122. package/index-BgDjcBrE.js +0 -1
  123. package/index-BsU6iXoe.js +0 -1
  124. package/index-D5FUVa4d.js +0 -1
  125. package/index-DmNrJCd8.js +0 -5
  126. package/index-Q8sL9uBq.js +0 -1
  127. package/index-plT9bPAi.js +0 -1
  128. package/label-ACiBnv5P.js +0 -1
  129. package/menu-item-BjtmFgwz.js +0 -1
  130. package/menu-nih_gX8y.js +0 -1
  131. package/notice-content-x5HJ49Mm.js +0 -1
  132. package/notice-cta-CFuZePI4.js +0 -1
  133. package/notice-footer-DAKaAyB_.js +0 -1
  134. package/random-id-5bEmzZsS.js +0 -1
  135. package/reduced-motion-CBVd9_aJ.js +0 -1
  136. package/tslib.es6-UTo0M824.js +0 -1
  137. package/use-tooltip-B1NgwD6z.js +0 -1
  138. package/utils-D1rplbEN.js +0 -1
@@ -1,385 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const lb=require("../tslib.es6-UTo0M824.js"),xi=require("../index-Banoekuf.js"),z3=require("../index-DmNrJCd8.js"),GI=require("../utils-D1rplbEN.js"),G3=require("../index-plT9bPAi.js"),VI=require("../ebay-progress-spinner/index.js"),sb=require("../index-BL7hPwtY.js");var B3={};/*
2
- @license
3
- Shaka Player
4
- Copyright 2016 Google LLC
5
- SPDX-License-Identifier: Apache-2.0
6
- */var eb;function qI(){return eb||(eb=1,function(He){(function(){var Xn=typeof window<"u"?window:xi.commonjsGlobal,Hn={};(function(oe,pr,la){var w;function et(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var Ni=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};function Fn(e){e=[typeof globalThis=="object"&&globalThis,e,typeof oe=="object"&&oe,typeof self=="object"&&self,typeof pr=="object"&&pr];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}var Nn=Fn(this);function Je(e,t){if(t)e:{var n=Nn;e=e.split(".");for(var i=0;i<e.length-1;i++){var a=e[i];if(!(a in n))break e;n=n[a]}e=e[e.length-1],i=n[e],t=t(i),t!=i&&t!=null&&Ni(n,e,{configurable:!0,writable:!0,value:t})}}Je("Symbol",function(e){function t(l){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new n(i+(l||"")+"_"+a++,l)}function n(l,f){this.g=l,Ni(this,"description",{configurable:!0,writable:!0,value:f})}if(e)return e;n.prototype.toString=function(){return this.g};var i="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",a=0;return t}),Je("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var i=Nn[t[n]];typeof i=="function"&&typeof i.prototype[e]!="function"&&Ni(i.prototype,e,{configurable:!0,writable:!0,value:function(){return Yi(et(this))}})}return e});function Yi(e){return e={next:e},e[Symbol.iterator]=function(){return this},e}function b(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if(typeof e.length=="number")return{next:et(e)};throw Error(String(e)+" is not an iterable or ArrayLike")}function Ue(e){if(!(e instanceof Array)){e=b(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}var Ii=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},ni;if(typeof Object.setPrototypeOf=="function")ni=Object.setPrototypeOf;else{var Eu;e:{var rr={a:!0},qr={};try{qr.__proto__=rr,Eu=qr.a;break e}catch{}Eu=!1}ni=Eu?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var sa=ni;function Xe(e,t){if(e.prototype=Ii(t.prototype),e.prototype.constructor=e,sa)sa(e,t);else for(var n in t)if(n!="prototype")if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}else e[n]=t[n];e.Om=t.prototype}function bn(){this.s=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.m=0,this.B=this.i=null}function gr(e){if(e.s)throw new TypeError("Generator is already running");e.s=!0}bn.prototype.u=function(e){this.h=e};function At(e,t){e.i={Zh:t,li:!0},e.g=e.m||e.j}bn.prototype.return=function(e){this.i={return:e},this.g=this.j};function O(e,t,n){return e.g=n,{value:t}}bn.prototype.A=function(e){this.g=e};function ve(e){e.g=0}function Le(e,t,n){e.m=t,n!=null&&(e.j=n)}function _n(e,t){e.m=0,e.j=t||0}function Ge(e,t,n){e.g=t,e.m=n||0}function je(e,t){return e.m=t||0,t=e.i.Zh,e.i=null,t}function re(e){e.B=[e.i],e.m=0,e.j=0}function Re(e,t){var n=e.B.splice(0)[0];(n=e.i=e.i||n)?n.li?e.g=e.m||e.j:n.A!=null&&e.j<n.A?(e.g=n.A,e.i=null):e.g=e.j:e.g=t}function ze(e){this.g=new bn,this.h=e}function Nt(e,t){gr(e.g);var n=e.g.l;return n?jt(e,"return"in n?n.return:function(i){return{value:i,done:!0}},t,e.g.return):(e.g.return(t),Jn(e))}function jt(e,t,n,i){try{var a=t.call(e.g.l,n);if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");if(!a.done)return e.g.s=!1,a;var l=a.value}catch(f){return e.g.l=null,At(e.g,f),Jn(e)}return e.g.l=null,i.call(e.g,l),Jn(e)}function Jn(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.s=!1,{value:t.value,done:!1}}catch(n){e.g.h=void 0,At(e.g,n)}if(e.g.s=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.li)throw t.Zh;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function It(e){this.next=function(t){return gr(e.g),e.g.l?t=jt(e,e.g.l.next,t,e.g.u):(e.g.u(t),t=Jn(e)),t},this.throw=function(t){return gr(e.g),e.g.l?t=jt(e,e.g.l.throw,t,e.g.u):(At(e.g,t),t=Jn(e)),t},this.return=function(t){return Nt(e,t)},this[Symbol.iterator]=function(){return this}}function Cn(e){function t(i){return e.next(i)}function n(i){return e.throw(i)}return new Promise(function(i,a){function l(f){f.done?i(f.value):Promise.resolve(f.value).then(t,n).then(l,a)}l(e.next())})}function q(e){return Cn(new It(new ze(e)))}function xt(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t}Je("Promise",function(e){function t(f){this.h=0,this.i=void 0,this.g=[],this.s=!1;var d=this.j();try{f(d.resolve,d.reject)}catch(g){d.reject(g)}}function n(){this.g=null}function i(f){return f instanceof t?f:new t(function(d){d(f)})}if(e)return e;n.prototype.h=function(f){if(this.g==null){this.g=[];var d=this;this.i(function(){d.l()})}this.g.push(f)};var a=Nn.setTimeout;n.prototype.i=function(f){a(f,0)},n.prototype.l=function(){for(;this.g&&this.g.length;){var f=this.g;this.g=[];for(var d=0;d<f.length;++d){var g=f[d];f[d]=null;try{g()}catch(m){this.j(m)}}}this.g=null},n.prototype.j=function(f){this.i(function(){throw f})},t.prototype.j=function(){function f(m){return function(S){g||(g=!0,m.call(d,S))}}var d=this,g=!1;return{resolve:f(this.H),reject:f(this.l)}},t.prototype.H=function(f){if(f===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof t)this.J(f);else{e:switch(typeof f){case"object":var d=f!=null;break e;case"function":d=!0;break e;default:d=!1}d?this.D(f):this.m(f)}},t.prototype.D=function(f){var d=void 0;try{d=f.then}catch(g){this.l(g);return}typeof d=="function"?this.K(d,f):this.m(f)},t.prototype.l=function(f){this.u(2,f)},t.prototype.m=function(f){this.u(1,f)},t.prototype.u=function(f,d){if(this.h!=0)throw Error("Cannot settle("+f+", "+d+"): Promise already settled in state"+this.h);this.h=f,this.i=d,this.h===2&&this.I(),this.B()},t.prototype.I=function(){var f=this;a(function(){if(f.C()){var d=Nn.console;typeof d<"u"&&d.error(f.i)}},1)},t.prototype.C=function(){if(this.s)return!1;var f=Nn.CustomEvent,d=Nn.Event,g=Nn.dispatchEvent;return typeof g>"u"?!0:(typeof f=="function"?f=new f("unhandledrejection",{cancelable:!0}):typeof d=="function"?f=new d("unhandledrejection",{cancelable:!0}):(f=Nn.document.createEvent("CustomEvent"),f.initCustomEvent("unhandledrejection",!1,!0,f)),f.promise=this,f.reason=this.i,g(f))},t.prototype.B=function(){if(this.g!=null){for(var f=0;f<this.g.length;++f)l.h(this.g[f]);this.g=null}};var l=new n;return t.prototype.J=function(f){var d=this.j();f.Je(d.resolve,d.reject)},t.prototype.K=function(f,d){var g=this.j();try{f.call(d,g.resolve,g.reject)}catch(m){g.reject(m)}},t.prototype.then=function(f,d){function g(x,M){return typeof x=="function"?function(R){try{m(x(R))}catch(L){S(L)}}:M}var m,S,T=new t(function(x,M){m=x,S=M});return this.Je(g(f,m),g(d,S)),T},t.prototype.catch=function(f){return this.then(void 0,f)},t.prototype.Je=function(f,d){function g(){switch(m.h){case 1:f(m.i);break;case 2:d(m.i);break;default:throw Error("Unexpected state: "+m.h)}}var m=this;this.g==null?l.h(g):this.g.push(g),this.s=!0},t.resolve=i,t.reject=function(f){return new t(function(d,g){g(f)})},t.race=function(f){return new t(function(d,g){for(var m=b(f),S=m.next();!S.done;S=m.next())i(S.value).Je(d,g)})},t.all=function(f){var d=b(f),g=d.next();return g.done?i([]):new t(function(m,S){function T(R){return function(L){x[R]=L,M--,M==0&&m(x)}}var x=[],M=0;do x.push(void 0),M++,i(g.value).Je(T(x.length-1),S),g=d.next();while(!g.done)})},t});function Ot(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Je("WeakMap",function(e){function t(g){if(this.g=(d+=Math.random()+1).toString(),g){g=b(g);for(var m;!(m=g.next()).done;)m=m.value,this.set(m[0],m[1])}}function n(){}function i(g){var m=typeof g;return m==="object"&&g!==null||m==="function"}function a(g){if(!Ot(g,f)){var m=new n;Ni(g,f,{value:m})}}function l(g){var m=Object[g];m&&(Object[g]=function(S){return S instanceof n?S:(Object.isExtensible(S)&&a(S),m(S))})}if(function(){if(!e||!Object.seal)return!1;try{var g=Object.seal({}),m=Object.seal({}),S=new e([[g,2],[m,3]]);return S.get(g)!=2||S.get(m)!=3?!1:(S.delete(g),S.set(m,4),!S.has(g)&&S.get(m)==4)}catch{return!1}}())return e;var f="$jscomp_hidden_"+Math.random();l("freeze"),l("preventExtensions"),l("seal");var d=0;return t.prototype.set=function(g,m){if(!i(g))throw Error("Invalid WeakMap key");if(a(g),!Ot(g,f))throw Error("WeakMap key fail: "+g);return g[f][this.g]=m,this},t.prototype.get=function(g){return i(g)&&Ot(g,f)?g[f][this.g]:void 0},t.prototype.has=function(g){return i(g)&&Ot(g,f)&&Ot(g[f],this.g)},t.prototype.delete=function(g){return i(g)&&Ot(g,f)&&Ot(g[f],this.g)?delete g[f][this.g]:!1},t}),Je("Map",function(e){function t(){var d={};return d.mc=d.next=d.head=d}function n(d,g){var m=d[1];return Yi(function(){if(m){for(;m.head!=d[1];)m=m.mc;for(;m.next!=m.head;)return m=m.next,{done:!1,value:g(m)};m=null}return{done:!0,value:void 0}})}function i(d,g){var m=g&&typeof g;m=="object"||m=="function"?l.has(g)?m=l.get(g):(m=""+ ++f,l.set(g,m)):m="p_"+g;var S=d[0][m];if(S&&Ot(d[0],m))for(d=0;d<S.length;d++){var T=S[d];if(g!==g&&T.key!==T.key||g===T.key)return{id:m,list:S,index:d,entry:T}}return{id:m,list:S,index:-1,entry:void 0}}function a(d){if(this[0]={},this[1]=t(),this.size=0,d){d=b(d);for(var g;!(g=d.next()).done;)g=g.value,this.set(g[0],g[1])}}if(function(){if(!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var d=Object.seal({x:4}),g=new e(b([[d,"s"]]));if(g.get(d)!="s"||g.size!=1||g.get({x:4})||g.set({x:4},"t")!=g||g.size!=2)return!1;var m=g.entries(),S=m.next();return S.done||S.value[0]!=d||S.value[1]!="s"?!1:(S=m.next(),!(S.done||S.value[0].x!=4||S.value[1]!="t"||!m.next().done))}catch{return!1}}())return e;var l=new WeakMap;a.prototype.set=function(d,g){d=d===0?0:d;var m=i(this,d);return m.list||(m.list=this[0][m.id]=[]),m.entry?m.entry.value=g:(m.entry={next:this[1],mc:this[1].mc,head:this[1],key:d,value:g},m.list.push(m.entry),this[1].mc.next=m.entry,this[1].mc=m.entry,this.size++),this},a.prototype.delete=function(d){return d=i(this,d),d.entry&&d.list?(d.list.splice(d.index,1),d.list.length||delete this[0][d.id],d.entry.mc.next=d.entry.next,d.entry.next.mc=d.entry.mc,d.entry.head=null,this.size--,!0):!1},a.prototype.clear=function(){this[0]={},this[1]=this[1].mc=t(),this.size=0},a.prototype.has=function(d){return!!i(this,d).entry},a.prototype.get=function(d){return(d=i(this,d).entry)&&d.value},a.prototype.entries=function(){return n(this,function(d){return[d.key,d.value]})},a.prototype.keys=function(){return n(this,function(d){return d.key})},a.prototype.values=function(){return n(this,function(d){return d.value})},a.prototype.forEach=function(d,g){for(var m=this.entries(),S;!(S=m.next()).done;)S=S.value,d.call(g,S[1],S[0],this)},a.prototype[Symbol.iterator]=a.prototype.entries;var f=0;return a});function Au(e,t){e instanceof String&&(e+="");var n=0,i=!1,a={next:function(){if(!i&&n<e.length){var l=n++;return{value:t(l,e[l]),done:!1}}return i=!0,{done:!0,value:void 0}}};return a[Symbol.iterator]=function(){return a},a}Je("Array.prototype.keys",function(e){return e||function(){return Au(this,function(t){return t})}}),Je("Set",function(e){function t(n){if(this.g=new Map,n){n=b(n);for(var i;!(i=n.next()).done;)this.add(i.value)}this.size=this.g.size}return function(){if(!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var n=Object.seal({x:4}),i=new e(b([n]));if(!i.has(n)||i.size!=1||i.add(n)!=i||i.size!=1||i.add({x:4})!=i||i.size!=2)return!1;var a=i.entries(),l=a.next();return l.done||l.value[0]!=n||l.value[1]!=n?!1:(l=a.next(),l.done||l.value[0]==n||l.value[0].x!=4||l.value[1]!=l.value[0]?!1:a.next().done)}catch{return!1}}()?e:(t.prototype.add=function(n){return n=n===0?0:n,this.g.set(n,n),this.size=this.g.size,this},t.prototype.delete=function(n){return n=this.g.delete(n),this.size=this.g.size,n},t.prototype.clear=function(){this.g.clear(),this.size=0},t.prototype.has=function(n){return this.g.has(n)},t.prototype.entries=function(){return this.g.entries()},t.prototype.values=function(){return this.g.values()},t.prototype.keys=t.prototype.values,t.prototype[Symbol.iterator]=t.prototype.values,t.prototype.forEach=function(n,i){var a=this;this.g.forEach(function(l){return n.call(i,l,l,a)})},t)}),Je("Array.prototype.values",function(e){return e||function(){return Au(this,function(t,n){return n})}}),Je("Array.from",function(e){return e||function(t,n,i){n=n??function(d){return d};var a=[],l=typeof Symbol<"u"&&Symbol.iterator&&t[Symbol.iterator];if(typeof l=="function"){t=l.call(t);for(var f=0;!(l=t.next()).done;)a.push(n.call(i,l.value,f++))}else for(l=t.length,f=0;f<l;f++)a.push(n.call(i,t[f],f));return a}}),Je("Object.is",function(e){return e||function(t,n){return t===n?t!==0||1/t===1/n:t!==t&&n!==n}}),Je("Array.prototype.includes",function(e){return e||function(t,n){var i=this;i instanceof String&&(i=String(i));var a=i.length;for(n=n||0,0>n&&(n=Math.max(n+a,0));n<a;n++){var l=i[n];if(l===t||Object.is(l,t))return!0}return!1}});function pl(e,t,n){if(e==null)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""}Je("String.prototype.includes",function(e){return e||function(t,n){return pl(this,t,"includes").indexOf(t,n||0)!==-1}}),Je("String.fromCodePoint",function(e){return e||function(t){for(var n="",i=0;i<arguments.length;i++){var a=Number(arguments[i]);if(0>a||1114111<a||a!==Math.floor(a))throw new RangeError("invalid_code_point "+a);65535>=a?n+=String.fromCharCode(a):(a-=65536,n+=String.fromCharCode(a>>>10&1023|55296),n+=String.fromCharCode(a&1023|56320))}return n}});function gl(e,t,n){e instanceof String&&(e=String(e));for(var i=e.length,a=0;a<i;a++){var l=e[a];if(t.call(n,l,a,e))return{ji:a,v:l}}return{ji:-1,v:void 0}}Je("Array.prototype.findIndex",function(e){return e||function(t,n){return gl(this,t,n).ji}}),Je("WeakSet",function(e){function t(n){if(this.g=new WeakMap,n){n=b(n);for(var i;!(i=n.next()).done;)this.add(i.value)}}return function(){if(!e||!Object.seal)return!1;try{var n=Object.seal({}),i=Object.seal({}),a=new e([n]);return!a.has(n)||a.has(i)?!1:(a.delete(n),a.add(i),!a.has(n)&&a.has(i))}catch{return!1}}()?e:(t.prototype.add=function(n){return this.g.set(n,!0),this},t.prototype.has=function(n){return this.g.has(n)},t.prototype.delete=function(n){return this.g.delete(n)},t)}),Je("Array.prototype.find",function(e){return e||function(t,n){return gl(this,t,n).v}}),Je("String.prototype.startsWith",function(e){return e||function(t,n){var i=pl(this,t,"startsWith"),a=i.length,l=t.length;n=Math.max(0,Math.min(n|0,i.length));for(var f=0;f<l&&n<a;)if(i[n++]!=t[f++])return!1;return f>=l}}),Je("Object.entries",function(e){return e||function(t){var n=[],i;for(i in t)Ot(t,i)&&n.push([i,t[i]]);return n}});var Qc=typeof Object.assign=="function"?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var a in i)Ot(i,a)&&(e[a]=i[a])}return e};Je("Object.assign",function(e){return e||Qc}),Je("Promise.prototype.finally",function(e){return e||function(t){return this.then(function(n){return Promise.resolve(t()).then(function(){return n})},function(n){return Promise.resolve(t()).then(function(){throw n})})}}),Je("Array.prototype.entries",function(e){return e||function(){return Au(this,function(t,n){return[t,n]})}}),Je("Number.isNaN",function(e){return e||function(t){return typeof t=="number"&&isNaN(t)}}),Je("String.prototype.repeat",function(e){return e||function(t){var n=pl(this,null,"repeat");if(0>t||1342177279<t)throw new RangeError("Invalid count value");t|=0;for(var i="";t;)t&1&&(i+=n),(t>>>=1)&&(n+=n);return i}}),Je("Number.EPSILON",function(){return Math.pow(2,-52)}),Je("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}),Je("Number.isFinite",function(e){return e||function(t){return typeof t!="number"?!1:!isNaN(t)&&t!==1/0&&t!==-1/0}}),Je("Object.values",function(e){return e||function(t){var n=[],i;for(i in t)Ot(t,i)&&n.push(t[i]);return n}}),Je("Math.log2",function(e){return e||function(t){return Math.log(t)/Math.LN2}}),Je("String.prototype.endsWith",function(e){return e||function(t,n){var i=pl(this,t,"endsWith");n===void 0&&(n=i.length),n=Math.max(0,Math.min(n|0,i.length));for(var a=t.length;0<a&&0<n;)if(i[--n]!=t[--a])return!1;return 0>=a}}),Je("Math.trunc",function(e){return e||function(t){if(t=Number(t),isNaN(t)||t===1/0||t===-1/0||t===0)return t;var n=Math.floor(Math.abs(t));return 0>t?-n:n}});function fd(e){if(e=Math.trunc(e)||0,0>e&&(e+=this.length),!(0>e||e>=this.length))return this[e]}Je("Array.prototype.at",function(e){return e||fd});function Ao(e){return e||fd}Je("Int8Array.prototype.at",Ao),Je("Uint8Array.prototype.at",Ao),Je("Uint8ClampedArray.prototype.at",Ao),Je("Int16Array.prototype.at",Ao),Je("Uint16Array.prototype.at",Ao),Je("Int32Array.prototype.at",Ao),Je("Uint32Array.prototype.at",Ao),Je("Float32Array.prototype.at",Ao),Je("Float64Array.prototype.at",Ao),Je("String.prototype.at",function(e){return e||fd});var dd=this||self;function xe(e,t){e=e.split(".");var n=dd;e[0]in n||typeof n.execScript>"u"||n.execScript("var "+e[0]);for(var i;e.length&&(i=e.shift());)e.length||t===void 0?n[i]&&n[i]!==Object.prototype[i]?n=n[i]:n=n[i]={}:n[i]=t}function lT(){}function hd(){}function Te(e,t){if(t)if(t instanceof Map)for(var n=b(t.keys()),i=n.next();!i.done;i=n.next())i=i.value,Object.defineProperty(this,i,{value:t.get(i),writable:!0,enumerable:!0});else for(n in t)Object.defineProperty(this,n,{value:t[n],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=oe.performance&&oe.performance.now?oe.performance.now():Date.now(),this.type=e,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function Ah(e){var t=new Te(e.type),n;for(n in e)Object.defineProperty(t,n,{value:e[n],writable:!0,enumerable:!0});return t}Te.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},Te.prototype.stopImmediatePropagation=function(){this.g=!0},Te.prototype.stopPropagation=function(){},xe("shaka.util.FakeEvent",Te);var Kp={Jl:"abrstatuschanged",Kl:"adaptation",Ll:"audiotrackchanged",Ml:"audiotrackschanged",Nl:"boundarycrossed",Ol:"buffering",Pl:"complete",Ql:"downloadcompleted",Rl:"downloadfailed",Sl:"downloadheadersreceived",Tl:"drmsessionupdate",Vl:"emsg",pm:"prft",Error:"error",Wl:"expirationupdated",Xl:"firstquartile",Yl:"gapjumped",am:"keystatuschanged",em:"loaded",fm:"loading",hm:"manifestparsed",im:"manifestupdated",jm:"mediaqualitychanged",lm:"mediasourcerecovered",Metadata:"metadata",mm:"midpoint",nm:"nospatialvideoinfo",om:"onstatechange",qm:"ratechange",sm:"segmentappended",tm:"sessiondata",um:"spatialvideoinfo",vm:"stalldetected",wm:"started",xm:"statechanged",ym:"streaming",zm:"textchanged",Am:"texttrackvisibility",Bm:"thirdquartile",Cm:"timelineregionadded",Dm:"timelineregionenter",Em:"timelineregionexit",Fm:"trackschanged",Hm:"unloading",Jm:"variantchanged"};function _y(){}function xu(){}function st(){}function xo(e){var t=xt.apply(1,arguments);Ua.has(e)||(Ua.add(e),st.apply(_y,Ue(t)))}function sT(){}function cT(){}function Qp(){}var Ua=new Set;oe.console&&(new Map().set(1,function(){return console.error.apply(console,Ue(xt.apply(0,arguments)))}).set(2,function(){return console.warn.apply(console,Ue(xt.apply(0,arguments)))}).set(3,function(){return console.info.apply(console,Ue(xt.apply(0,arguments)))}).set(4,function(){return console.log.apply(console,Ue(xt.apply(0,arguments)))}).set(5,function(){return console.debug.apply(console,Ue(xt.apply(0,arguments)))}).set(6,function(){return console.debug.apply(console,Ue(xt.apply(0,arguments)))}),st=function(){return console.warn.apply(console,Ue(xt.apply(0,arguments)))},xu=function(){console.error.apply(console,Ue(xt.apply(0,arguments)))});function wo(){this.g=new Map}w=wo.prototype,w.push=function(e,t){this.g.has(e)?this.g.get(e).push(t):this.g.set(e,[t])},w.get=function(e){return this.g.has(e)?this.g.get(e).slice():null},w.remove=function(e,t){if(this.g.has(e)){var n=this.g.get(e).filter(function(i){return i!=t});this.g.set(e,n),n.length||this.g.delete(e)}},w.forEach=function(e){this.g.forEach(function(t,n){e(n,t)})},w.size=function(){return this.g.size},w.keys=function(){return Array.from(this.g.keys())};function Tt(){this.Oa=new wo,this.ze=this}Tt.prototype.addEventListener=function(e,t){this.Oa&&this.Oa.push(e,t)},Tt.prototype.removeEventListener=function(e,t){this.Oa&&this.Oa.remove(e,t)},Tt.prototype.dispatchEvent=function(e){if(!this.Oa)return!0;var t=this.Oa.get(e.type)||[],n=this.Oa.get("All");for(n&&(t=t.concat(n)),t=b(t),n=t.next();!n.done;n=t.next()){n=n.value,e.target=this.ze,e.currentTarget=this.ze;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch{}if(e.g)break}return e.defaultPrevented},Tt.prototype.release=function(){this.Oa=null};function Zp(e,t){var n=[];e=b(e);for(var i=e.next();!i.done;i=e.next())n.push(t(i.value));return n}function P1(e,t){e=b(e);for(var n=e.next();!n.done;n=e.next())if(!t(n.value))return!1;return!0}function H1(e,t){e=b(e);for(var n=e.next();!n.done;n=e.next())if(t(n.value))return!0;return!1}function ml(e,t){var n=[];e=b(e);for(var i=e.next();!i.done;i=e.next())i=i.value,t(i)&&n.push(i);return n}var Qs=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/*
7
- @license
8
- Copyright 2006 The Closure Library Authors
9
- SPDX-License-Identifier: Apache-2.0
10
- */function un(e){var t;e instanceof un?(yl(this,e.ac),this.gd=e.gd,Qu(this,e.Cb),mr(this,e.Bd),this.qb=e.qb,wu(this,e.g.clone()),this.Oc=e.Oc):e&&(t=String(e).match(Qs))?(yl(this,t[1]||"",!0),this.gd=Co(t[2]||""),Qu(this,t[3]||"",!0),mr(this,t[4]),this.qb=Co(t[5]||"",!0),wu(this,t[6]||"",!0),this.Oc=Co(t[7]||"")):this.g=new gd(null)}w=un.prototype,w.ac="",w.gd="",w.Cb="",w.Bd=null,w.qb="",w.Oc="",w.toString=function(){var e=[],t=this.ac;if(t&&e.push(Mo(t,jy,!0),":"),t=this.Cb){e.push("//");var n=this.gd;n&&e.push(Mo(n,jy,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t=this.Bd,t!=null&&e.push(":",String(t))}return(t=this.qb)&&(this.Cb&&t.charAt(0)!="/"&&e.push("/"),e.push(Mo(t,t.charAt(0)=="/"?Wp:Jp,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.Oc)&&e.push("#",Mo(t,Y0)),e.join("")},w.resolve=function(e){var t=this.clone();t.ac==="data"&&(t=new un);var n=!!e.ac;n?yl(t,e.ac):n=!!e.gd,n?t.gd=e.gd:n=!!e.Cb,n?Qu(t,e.Cb):n=e.Bd!=null;var i=e.qb;if(n)mr(t,e.Bd);else if(n=!!e.qb){if(i.charAt(0)!="/")if(this.Cb&&!this.qb)i="/"+i;else{var a=t.qb.lastIndexOf("/");a!=-1&&(i=t.qb.substr(0,a+1)+i)}if(i==".."||i==".")i="";else if(i.indexOf("./")!=-1||i.indexOf("/.")!=-1){a=i.lastIndexOf("/",0)==0,i=i.split("/");for(var l=[],f=0;f<i.length;){var d=i[f++];d=="."?a&&f==i.length&&l.push(""):d==".."?((1<l.length||l.length==1&&l[0]!="")&&l.pop(),a&&f==i.length&&l.push("")):(l.push(d),a=!0)}i=l.join("/")}}return n?t.qb=i:n=e.g.toString()!=="",n?wu(t,e.g.clone()):n=!!e.Oc,n&&(t.Oc=e.Oc),t},w.clone=function(){return new un(this)};function yl(e,t,n){e.ac=n?Co(t,!0):t,e.ac&&(e.ac=e.ac.replace(/:$/,""))}function Qu(e,t,n){e.Cb=n?Co(t,!0):t}function mr(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.Bd=t}else e.Bd=null}function wu(e,t,n){t instanceof gd?e.g=t:(n||(t=Mo(t,vl)),e.g=new gd(t))}function Co(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function Mo(e,t,n){return e!=null?(e=encodeURI(e).replace(t,pd),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function pd(e){return e=e.charCodeAt(0),"%"+(e>>4&15).toString(16)+(e&15).toString(16)}var jy=/[#\/\?@]/g,Jp=/[#\?:]/g,Wp=/[#\?]/g,vl=/[#\?@]/g,Y0=/#/g;function gd(e){this.g=e||null}function X0(e){if(!e.ib&&(e.ib=new Map,e.Ld=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var i=t[n].indexOf("="),a=null;if(0<=i){var l=t[n].substring(0,i);a=t[n].substring(i+1)}else l=t[n];l=decodeURIComponent(l.replace(/\+/g," ")),a=a||"",e.add(l,decodeURIComponent(a.replace(/\+/g," ")))}}w=gd.prototype,w.ib=null,w.Ld=null;function yr(e){return X0(e),e.Ld}w.add=function(e,t){X0(this),this.g=null;var n=this.ib.has(e)?this.ib.get(e):null;return n||this.ib.set(e,n=[]),n.push(t),this.Ld++,this},w.set=function(e,t){return X0(this),this.g=null,this.ib.has(e)?this.ib.set(e,[t]):this.add(e,t),this},w.get=function(e){return X0(this),this.ib.get(e)||[]},w.toString=function(){if(this.g)return this.g;if(!this.ib||!this.ib.size)return"";for(var e=[],t=b(this.ib.keys()),n=t.next();!n.done;n=t.next()){var i=n.value;n=encodeURIComponent(i),i=this.ib.get(i);for(var a=0;a<i.length;a++){var l=n;i[a]!==""&&(l+="="+encodeURIComponent(i[a])),e.push(l)}}return this.g=e.join("&")},w.clone=function(){var e=new gd;if(e.g=this.g,this.ib){for(var t=new Map,n=b(this.ib),i=n.next();!i.done;i=n.next()){var a=b(i.value);i=a.next().value,a=a.next().value,t.set(i,a.concat())}e.ib=t,e.Ld=this.Ld}return e};function _i(){}function ji(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if((ArrayBuffer.isView(e)?e.buffer:e)==(ArrayBuffer.isView(t)?t.buffer:t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;var n=at(e);t=at(t);for(var i=0;i<e.byteLength;i++)if(n[i]!=t[i])return!1;return!0}function Yr(e){return ArrayBuffer.isView(e)?e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer:e}function at(e,t,n){return n=n===void 0?1/0:n,F0(e,t===void 0?0:t,n,Uint8Array)}function zy(e,t,n){return n=n===void 0?1/0:n,F0(e,t===void 0?0:t,n,Uint16Array)}function br(e,t,n){return n=n===void 0?1/0:n,F0(e,t===void 0?0:t,n,DataView)}function F0(e,t,n,i){var a=ArrayBuffer.isView(e)?e.buffer:e,l=1;"BYTES_PER_ELEMENT"in i&&(l=i.BYTES_PER_ELEMENT);var f=((e.byteOffset||0)+e.byteLength)/l;return e=Math.floor(Math.max(0,Math.min(((e.byteOffset||0)+t)/l,f))),new i(a,e,Math.floor(Math.min(e+Math.max(n,0),f))-e)}xe("shaka.util.BufferUtils",_i),_i.toDataView=br,_i.toUint16=zy,_i.toUint8=at,_i.toArrayBuffer=Yr,_i.equal=ji;function G(e,t,n){var i=xt.apply(3,arguments);this.severity=e,this.category=t,this.code=n,this.data=i,this.handled=!1,this.message="Shaka Error "+this.code;try{throw Error(this.message||"Shaka Error")}catch(a){this.stack=a.stack}}G.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")},xe("shaka.util.Error",G),G.Severity={RECOVERABLE:1,CRITICAL:2},G.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},G.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,MSS_MISSING_DATA_FOR_TRANSMUXING:3020,MSS_TRANSMUXING_FAILED:3022,TRANSMUXING_NO_VIDEO_DATA:3023,STREAMING_NOT_ALLOWED:3024,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM:4045,MSS_INVALID_XML:4046,MSS_LIVE_CONTENT_NOT_SUPPORTED:4047,AES_128_INVALID_IV_LENGTH:4048,AES_128_INVALID_KEY_LENGTH:4049,DASH_CONFLICTING_AES_128:4050,DASH_UNSUPPORTED_AES_128:4051,DASH_INVALID_PATCH:4052,HLS_EMPTY_MEDIA_PLAYLIST:4053,DASH_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4054,CANNOT_ADD_EXTERNAL_CHAPTERS_TO_LIVE_STREAM:4054,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,MIN_HDCP_VERSION_NOT_MATCH:6018,ERROR_CHECKING_HDCP_VERSION:6019,MISSING_EME_SUPPORT:6020,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,SRC_EQUALS_PRELOAD_NOT_SUPPORTED:7005,PRELOAD_DESTROYED:7006,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1e4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,MT_AD_MANAGER_NOT_INITIALIZED:10005,INTERSTITIAL_AD_MANAGER_NOT_INITIALIZED:10006,VAST_INVALID_XML:10007};function Zs(e){this.h=e,this.g=void 0}Zs.prototype.value=function(){return this.g===void 0&&(this.g=this.h()),this.g};function Xr(e,t){return e.length&&t.length&&e!==t?0<Js(e,t).length:!0}function Js(e,t){if(!e.length)return t;if(!t.length)return e;var n=[];e=b(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;for(var a=b(t),l=a.next();!l.done;l=a.next())if(l=l.value,i.keySystem==l.keySystem){a=new Map;for(var f=b((i.initData||[]).concat(l.initData||[])),d=f.next();!d.done;d=f.next())d=d.value,a.set(d.keyId,d);a=Array.from(a.values()),f=i.keyIds&&l.keyIds?new Set([].concat(Ue(i.keyIds),Ue(l.keyIds))):i.keyIds||l.keyIds,n.push({keySystem:i.keySystem,licenseServerUri:i.licenseServerUri||l.licenseServerUri,distinctiveIdentifierRequired:i.distinctiveIdentifierRequired||l.distinctiveIdentifierRequired,persistentStateRequired:i.persistentStateRequired||l.persistentStateRequired,videoRobustness:i.videoRobustness||l.videoRobustness,audioRobustness:i.audioRobustness||l.audioRobustness,serverCertificate:i.serverCertificate||l.serverCertificate,serverCertificateUri:i.serverCertificateUri||l.serverCertificateUri,initData:a,keyIds:f});break}}return n}function md(e){return e?!!e.match(/^com\.(microsoft|chromecast)\.playready/):!1}function bo(e){return e?!!e.match(/^com\.apple\.fps/):!1}var Xi=new Zs(function(){return Yr(new Uint8Array([0]))}),ts=new Map;function ca(e){this.h=e,this.g=null}ca.prototype.$=function(e){var t=this;this.stop();var n=!0,i=null;return this.g=function(){oe.clearTimeout(i),n=!1},i=oe.setTimeout(function(){n&&t.h()},1e3*e),this},ca.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Ke(e){this.h=e,this.g=null}Ke.prototype.Ia=function(){return this.stop(),this.h(),this},Ke.prototype.$=function(e){var t=this;return this.stop(),this.g=new ca(function(){t.h()}).$(e),this},Ke.prototype.xa=function(e){var t=this;return this.stop(),this.g=new ca(function(){t.g.$(e),t.h()}).$(e),this},Ke.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},xe("shaka.util.Timer",Ke),Ke.prototype.stop=Ke.prototype.stop,Ke.prototype.tickEvery=Ke.prototype.xa,Ke.prototype.tickAfter=Ke.prototype.$,Ke.prototype.tickNow=Ke.prototype.Ia;function fa(){var e=oe.ManagedMediaSource||oe.MediaSource;return!!(e&&e.isTypeSupported)}function xh(e){return eg().canPlayType(e)!=""}function Ws(){return!!navigator.userAgent.match(/Edge?\//)}function Zu(){return Tn("Xbox One")}function Sl(){return Tn("Tizen")}function da(){return Tn("Tizen 3")}function Ju(){return Tn("Web0S")}function Wu(){return Ju()&&K0()===38}function $a(){return Tn("CrKey")&&!$p()}function K0(){if(!Tn("Chrome")||navigator.userAgent.match(/Edge\//))return null;var e=navigator.userAgent.match(/Chrome\/(\d+)/);return e?parseInt(e[1],10):null}function ai(){return $s()&&(Q0()||wh())}function vr(){return Tn("PlayStation 5")}function Fr(){return Tn("PlayStation 4")}function ns(){return Tn("Hisense")||Tn("VIDAA")}function $p(){return Tn("VIZIO SmartCast")}function ha(){if(!ai()&&(!$s()||ai()))return null;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function wh(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)?!0:$s()&&1<navigator.maxTouchPoints}function Q0(){return navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase()=="macos":navigator.platform?navigator.platform.toLowerCase().includes("mac"):!1}function Tl(){return navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase()=="windows":navigator.platform?navigator.platform.toLowerCase().includes("win32"):!1}function eu(){return navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase()=="android":Tn("Android")}function Zc(){return navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase()=="fuchsia":Tn("Fuchsia")}function Z0(){return!!(Sl()||Ju()||Zu()||Fr()||vr()||$a()||ns()||$p()||$s()&&!ai())}function Tn(e){return(navigator.userAgent||"").includes(e)}function $s(){return(navigator.vendor||"").includes("Apple")}function eg(){return El||(ng||(ng=new Ke(function(){El=null})),(El=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(El=document.createElement("video")),ng.$(1),El)}function tg(){if(da()||Tn("Tizen 2")||Wu()||Fr()||vr())return!1;var e=ha();return!($s()&&!ai()&&e!=null&&15>e)}function Jc(){var e,t,n,i,a,l,f,d,g,m,S,T,x,M,R,L,I;return q(function(U){switch(U.g){case 1:if(e={width:1/0,height:1/0},$a()){if(M=oe.cast&&cast.__platform__&&cast.__platform__.canDisplayType,e.width=1280,e.height=720,Le(U,14),!(R=M)){U.A(16);break}return O(U,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160'),17)}if(Sl()){t=oe.devicePixelRatio,e.width=1920<oe.screen.width*t?3840:1920,e.height=1080<oe.screen.height*t?2160:1080;try{webapis.systeminfo&&webapis.systeminfo.getMaxVideoResolution?(n=webapis.systeminfo.getMaxVideoResolution(),e.width=n.width,e.height=n.height):webapis.productinfo.is8KPanelSupported&&webapis.productinfo.is8KPanelSupported()?(e.width=7680,e.height=4320):webapis.productinfo.isUdPanelSupported&&webapis.productinfo.isUdPanelSupported()&&(e.width=3840,e.height=2160)}catch{st("Tizen: Error detecting screen size, default screen size 1920x1080.")}U.A(3);break}if(Ju()){try{i=JSON.parse(oe.PalmSystem.deviceInfo),e.width=Math.max(1920,i.screenWidth),e.height=Math.max(1080,i.screenHeight)}catch{st("WebOS: Error detecting screen size, default screen size 1920x1080."),e.width=1920,e.height=1080}U.A(3);break}if(ns()){if(a=null,oe.Hisense_Get4KSupportState)try{a=oe.Hisense_Get4KSupportState()}catch{}a==null&&(a=Tn("UHD")),a?(e.width=3840,e.height=2160):(e.width=1920,e.height=1080),U.A(3);break}if(!Fr()&&!vr()){l=void 0;try{l=typeof Windows<"u"?Windows:chrome.webview.hostObjects.sync.Windows}catch{}if(l){e.width=1920,e.height=1080;try{f=new l.Media.Protection.ProtectionCapabilities,d=l.Media.Protection.ProtectionCapabilityResult,g=null;do g=f.isTypeSupported('video/mp4;codecs="hvc1,mp4a";features="decode-res-x=3840,decode-res-y=2160,decode-bitrate=20000,decode-fps=30,decode-bpc=10,display-res-x=3840,display-res-y=2160,display-bpc=8"',"com.microsoft.playready.recommendation");while(g===d.maybe);g===d.probably&&(e.width=3840,e.height=2160)}catch{st("Xbox: Error detecting screen size, default screen size 1920x1080.")}}else Zu()&&(e.width=1920,e.height=1080,st("Xbox: Error detecting screen size, default screen size 1920x1080."));U.A(3);break}return m=!1,Le(U,8),O(U,oe.msdk.device.getDisplayInfo(),10);case 10:S=U.h,m=S.resolution==="4K",Ge(U,9);break;case 8:return je(U),Le(U,11),O(U,oe.msdk.device.getDisplayInfoImmediate(),13);case 13:T=U.h,m=T.resolution==="4K",Ge(U,9);break;case 11:x=je(U),st("PlayStation: Failed to get the display info:",x);case 9:m?(e.width=3840,e.height=2160):(e.width=1920,e.height=1080),U.A(3);break;case 17:R=U.h;case 16:if(R){e.width=3840,e.height=2160,U.A(18);break}if(!(L=M)){U.A(19);break}return O(U,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=1920; height=1080'),20);case 20:L=U.h;case 19:L&&(e.width=1920,e.height=1080);case 18:Ge(U,3);break;case 14:I=je(U),xu("Failed to check canDisplayType:",I);case 3:return U.return(e)}})}function J0(e){return oe.matchMedia!==void 0&&oe.matchMedia("(color-gamut: p3)").matches?e?"HLG":"PQ":"SDR"}var ng=null,El=null;function Wc(){}function Rn(e){if(!e)return"";if(e=at(e),e[0]==239&&e[1]==187&&e[2]==191&&(e=e.subarray(3)),oe.TextDecoder&&!Fr())return e=new TextDecoder().decode(e),e.includes("�")&&xu('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),e;for(var t="",n=0;n<e.length;++n){var i=65533;if((e[n]&128)==0?i=e[n]:e.length>=n+2&&(e[n]&224)==192&&(e[n+1]&192)==128?(i=(e[n]&31)<<6|e[n+1]&63,n+=1):e.length>=n+3&&(e[n]&240)==224&&(e[n+1]&192)==128&&(e[n+2]&192)==128?(i=(e[n]&15)<<12|(e[n+1]&63)<<6|e[n+2]&63,n+=2):e.length>=n+4&&(e[n]&241)==240&&(e[n+1]&192)==128&&(e[n+2]&192)==128&&(e[n+3]&192)==128&&(i=(e[n]&7)<<18|(e[n+1]&63)<<12|(e[n+2]&63)<<6|e[n+3]&63,n+=3),65535>=i)t+=String.fromCharCode(i);else{i-=65536;var a=i&1023;t+=String.fromCharCode(55296+(i>>10)),t+=String.fromCharCode(56320+a)}}return t}function Ro(e,t,n){if(!e)return"";if(!n&&e.byteLength%2!=0)throw new G(2,2,2004);n=Math.floor(e.byteLength/2);var i=new Uint16Array(n);e=br(e);for(var a=0;a<n;a++)i[a]=e.getUint16(2*a,t);return yd(i)}function ka(e){function t(i){return n.byteLength<=i||9<=n[i]&&126>=n[i]}if(!e)return"";var n=at(e);if(n[0]==239&&n[1]==187&&n[2]==191)return Rn(n);if(n[0]==254&&n[1]==255)return Ro(n.subarray(2),!1);if(n[0]==255&&n[1]==254)return Ro(n.subarray(2),!0);if(n[0]==0&&n[2]==0)return Ro(e,!1);if(n[1]==0&&n[3]==0)return Ro(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return Rn(e);throw new G(2,2,2003)}function Do(e){if(oe.TextEncoder&&!Fr()){var t=new TextEncoder;return Yr(t.encode(e))}e=encodeURIComponent(e),e=unescape(e),t=new Uint8Array(e.length);for(var n=0;n<e.length;n++)t[n]=e[n].charCodeAt(0);return Yr(t)}function W0(e,t){for(var n=new ArrayBuffer(2*e.length),i=new DataView(n),a=0;a<e.length;++a)i.setUint16(2*a,e.charCodeAt(a),t);return n}function yd(e){return ig.value()(e)}function Fi(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&nbsp;":" ","&lrm;":"‎","&rlm;":"‏"},n=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,i=RegExp(n.source);return e&&i.test(e)?e.replace(n,function(a){return a[1]=="#"?(a=a[2]=="x"||a[2]=="X"?parseInt(a.substring(3),16):parseInt(a.substring(2),10),0<=a&&1114111>=a?String.fromCodePoint(a):""):t[a]||"'"}):e||""}xe("shaka.util.StringUtils",Wc),Wc.resetFromCharCode=function(){ig.g=void 0},Wc.toUTF16=W0,Wc.toUTF8=Do,Wc.fromBytesAutoDetect=ka,Wc.fromUTF16=Ro,Wc.fromUTF8=Rn;var ig=new Zs(function(){function e(n){try{var i=new Uint8Array(n);return 0<String.fromCharCode.apply(null,i).length}catch{return!1}}for(var t={Fc:65536};0<t.Fc;t={Fc:t.Fc},t.Fc/=2)if(e(t.Fc))return function(n){return function(i){for(var a="",l=0;l<i.length;l+=n.Fc)a+=String.fromCharCode.apply(null,i.subarray(l,l+n.Fc));return a}}(t);return null});function Li(){}function ec(e){return e=yd(at(e)),btoa(e)}function is(e,t){return t=t??!0,e=ec(e).replace(/\+/g,"-").replace(/\//g,"_"),t?e:e.replace(/[=]*$/,"")}function tu(e){e=oe.atob(e.replace(/-/g,"+").replace(/_/g,"/"));for(var t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}function Io(e){for(var t=e.length/2,n=new Uint8Array(t),i=0;i<t;i++)n[i]=oe.parseInt(e.substr(2*i,2),16);return n}function nu(e){var t=at(e);e="",t=b(t);for(var n=t.next();!n.done;n=t.next())n=n.value,n=n.toString(16),n.length==1&&(n="0"+n),e+=n;return e}function gn(){for(var e=xt.apply(0,arguments),t=0,n=0;n<e.length;++n)t+=e[n].byteLength;t=new Uint8Array(t);for(var i=n=0;i<e.length;++i){var a=e[i];ArrayBuffer.isView(a)&&a.BYTES_PER_ELEMENT===1?t.set(a,n):t.set(at(a),n),n+=a.byteLength}return t}xe("shaka.util.Uint8ArrayUtils",Li),Li.concat=gn,Li.toHex=nu,Li.fromHex=Io,Li.fromBase64=tu,Li.toBase64=is,Li.toStandardBase64=ec;function wi(e,t,n){if(n=n===void 0?"":n,t.length==0)return e;if(e.length==1&&t.length==1){var i=new un(e[0]);return t=new un(t[0]),t=i.resolve(t),n&&wu(t,n),[t.toString()]}t=t.map(function(d){return new un(d)}),i=[],e=b(e);for(var a=e.next();!a.done;a=e.next()){a=new un(a.value);for(var l=b(t),f=l.next();!f.done;f=l.next())f=a.resolve(f.value),n&&wu(f,n),i.push(f.toString())}return i}function Na(e,t,n,i){return e={keySystem:e,encryptionScheme:t,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:n||[],keyIds:new Set},i&&(e.keySystemUris=new Set([i])),e}function rs(e,t){t=t===void 0?"cenc":t;var n=[],i=[],a=[];e.forEach(function(f,d){var g=d;g.length!=22&&(g=is(Io(d),!1));var m=f;m.length!=22&&(m=is(Io(f),!1)),f={kty:"oct",kid:g,k:m},n.push(f),i.push(f.kid),a.push(d)}),e=JSON.stringify({keys:n});var l=JSON.stringify({kids:i});return l=[{initData:at(Do(l)),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",encryptionScheme:t,licenseServerUri:"data:application/json;base64,"+oe.btoa(e),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:l,keyIds:new Set(a)}}function Al(e,t){if(t.length==1)return t[0];if(e=Ki(e,t),e!=null)return e;throw new G(2,4,4025,t)}function Ki(e,t){var n=_a.get(e);n=b(n);for(var i=n.next();!i.done;i=n.next()){i=i.value;for(var a=b(t),l=a.next();!l.done;l=a.next())if(l=l.value,i.test(l.trim()))return l.trim()}return e==lt?"":null}function rg(e,t){var n=[];e=_a.get(e),e=b(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;for(var a=b(t),l=a.next();!l.done;l=a.next())l=l.value,i.test(l.trim())&&n.push(l.trim())}return n}var lt="text",ui={Ba:"video",aa:"audio",Na:lt,Rf:"image",Hl:"application"},$0=1/15,_a=new Map().set("audio",[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/,/^ac3$/,/^eac3$/]).set("video",[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]).set("text",[/^vtt$/,/^wvtt/,/^stpp/]);function Rr(){}function tc(e,t){return e=Wt(e),t=Wt(t),e.split("-")[0]==t.split("-")[0]}function nc(e,t){return e=Wt(e),t=Wt(t),e=e.split("-"),t=t.split("-"),e[0]==t[0]&&e.length==1&&t.length==2}function em(e,t){return e=Wt(e),t=Wt(t),e=e.split("-"),t=t.split("-"),e.length==2&&t.length==2&&e[0]==t[0]}function Wt(e){e=b(e.split("-x-"));var t=e.next().value;t=t===void 0?"":t,e=e.next().value,e=e===void 0?"":e;var n=b(t.split("-"));return t=n.next().value,t=t===void 0?"":t,n=n.next().value,n=n===void 0?"":n,e=e?"x-"+e:"",t=t.toLowerCase(),t=By.get(t)||t,n=n.toUpperCase(),(n?t+"-"+n:t)+(e?"-"+e:"")}function ag(e,t){var n=Lo(e),i=Lo(t);return e!=n&&t!=i&&n==i}function xl(e,t){return e=Wt(e),t=Wt(t),t==e?4:nc(t,e)?3:em(t,e)?2:nc(e,t)?1:0}function Lo(e){var t=e.indexOf("-");return e=0<=t?e.substring(0,t):e,e=e.toLowerCase(),e=By.get(e)||e}function ug(e){return e.language?Wt(e.language):e.audio&&e.audio.language?Wt(e.audio.language):e.video&&e.video.language?Wt(e.video.language):"und"}function og(e,t){e=Wt(e);var n=new Set;t=b(t);for(var i=t.next();!i.done;i=t.next())n.add(Wt(i.value));for(t=b(n),i=t.next();!i.done;i=t.next())if(i=i.value,i==e)return i;for(t=b(n),i=t.next();!i.done;i=t.next())if(i=i.value,nc(i,e))return i;for(t=b(n),i=t.next();!i.done;i=t.next())if(i=i.value,em(i,e))return i;for(n=b(n),t=n.next();!t.done;t=n.next())if(t=t.value,nc(e,t))return t;return null}xe("shaka.util.LanguageUtils",Rr),Rr.findClosestLocale=og,Rr.getLocaleForVariant=ug,Rr.getLocaleForText=function(e){return Wt(e.language||"und")},Rr.getBase=Lo,Rr.relatedness=xl,Rr.areSiblings=ag,Rr.normalize=Wt,Rr.isSiblingOf=em,Rr.isParentOf=nc,Rr.areLanguageCompatible=tc,Rr.areLocaleCompatible=function(e,t){return e=Wt(e),t=Wt(t),e==t};var By=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Qi(e){Tt.call(this),this.j=Wt(e),this.i=new Map,this.g=new Set,this.h=new Map}Xe(Qi,Tt),w=Qi.prototype,w.release=function(){Tt.prototype.release.call(this)},w.Qh=function(e){var t=this;this.g.clear(),e=b(e);for(var n=e.next();!n.done;n=e.next())this.g.add(Wt(n.value));tm(this),e=ml(this.g,function(i){return!t.h.has(i)}),e.length&&this.dispatchEvent(new Te("unknown-locales",new Map().set("locales",e))),e=ml(this.g,function(i){return t.h.has(i)}),e=new Map().set("locales",e.length?e:[this.j]),this.dispatchEvent(new Te("locale-changed",e))},w.Ua=function(e,t,n){e=Wt(e),n===void 0&&(n=Py);var i=this.h.get(e)||new Map;return t.forEach(function(a,l){i.has(l)&&n!=Py||i.set(l,a)}),this.h.set(e,i),tm(this),this.dispatchEvent(new Te("locale-updated")),this},w.hl=function(e){for(var t=b(e.keys()),n=t.next();!n.done;n=t.next())n=n.value,e.set(n,this.resolve(n))},w.resolve=function(e){var t=this.i.get(e);return t||(e=new Map().set("locales",Array.from(this.g)).set("missing",e),this.dispatchEvent(new Te("unknown-localization",e)),"")},w.Kj=function(){return this.g};function tm(e){for(var t=e.h,n=e.j,i=e.g,a=new Set,l=b(i),f=l.next(),d={};!f.done;d={$d:void 0},f=l.next()){d.$d=f.value,a.add(d.$d),a.add(Lo(d.$d)),f=ml(t.keys(),function(m){return function(S){return ag(S,m.$d)}}(d)),f.sort(),f=b(f);for(var g=f.next();!g.done;g=f.next())a.add(g.value);for(d=ml(t.keys(),function(m){return function(S){return Lo(S)==m.$d}}(d)),d.sort(),d=b(d),f=d.next();!f.done;f=d.next())a.add(f.value)}for(a.add(n),n=[],a=b(a),l=a.next();!l.done;l=a.next())(l=t.get(l.value))&&n.push(l);for(n.reverse(),e.i.clear(),t=b(n),a=t.next();!a.done;a=t.next())a.value.forEach(function(m,S){e.i.set(S,m)});for(t=e.i.keys(),a=new Set,n=b(e.g),l=n.next();!l.done;l=n.next())l=e.h.get(l.value)||new Map,fT(l,t,a);0<a.size&&(i=new Map().set("locales",Array.from(i)).set("missing",Array.from(a)),e.dispatchEvent(new Te("missing-localizations",i)))}function fT(e,t,n){t=b(t);for(var i=t.next();!i.done;i=t.next())i=i.value,e.get(i)||n.add(i)}xe("shaka.ui.Localization",Qi),Qi.prototype.getCurrentLocales=Qi.prototype.Kj,Qi.prototype.resolve=Qi.prototype.resolve,Qi.prototype.resolveDictionary=Qi.prototype.hl,Qi.prototype.insert=Qi.prototype.Ua,Qi.prototype.changeLocale=Qi.prototype.Qh,Qi.prototype.release=Qi.prototype.release;var Py=1;Qi.ConflictResolution={USE_OLD:0,USE_NEW:Py},Qi.UNKNOWN_LOCALES="unknown-locales",Qi.UNKNOWN_LOCALIZATION="unknown-localization",Qi.MISSING_LOCALIZATIONS="missing-localizations",Qi.LOCALE_CHANGED="locale-changed",Qi.LOCALE_UPDATED="locale-updated";function Ch(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}Ch.prototype.sample=function(e,t){var n=Math.pow(this.g,e);t=t*(1-n)+n*this.h,isNaN(t)||(this.h=t,this.i+=e)};function $c(e){return e.h/(1-Math.pow(e.g,e.i))}function Mh(){this.h=new Ch(2),this.j=new Ch(5),this.g=0,this.i=128e3,this.l=16e3}Mh.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},Mh.prototype.sample=function(e,t){if(!(t<this.l)){var n=8e3*t/e;e/=1e3,this.g+=t,this.h.sample(e,n),this.j.sample(e,n)}},Mh.prototype.getBandwidthEstimate=function(e){return this.g<this.i?e:Math.min($c(this.h),$c(this.j))};function Ft(){this.g=new wo}w=Ft.prototype,w.release=function(){this.$a(),this.g=null},w.o=function(e,t,n,i){this.g&&(e=new Hy(e,t,n,i),this.g.push(t,e))},w.wa=function(e,t,n,i){function a(f){l.Ea(e,t,a),n(f)}var l=this;this.o(e,t,a,i)},w.Ea=function(e,t,n){if(this.g){var i=this.g.get(t)||[];i=b(i);for(var a=i.next();!a.done;a=i.next())a=a.value,a.target!=e||n!=a.listener&&n||(a.Ea(),this.g.remove(t,a))}},w.$a=function(){if(this.g){for(var e=[],t=b(this.g.g.values()),n=t.next();!n.done;n=t.next())e.push.apply(e,Ue(n.value));for(e=b(e),t=e.next();!t.done;t=e.next())t.value.Ea();this.g.g.clear()}},xe("shaka.util.EventManager",Ft),Ft.prototype.removeAll=Ft.prototype.$a,Ft.prototype.unlisten=Ft.prototype.Ea,Ft.prototype.listenOnce=Ft.prototype.wa,Ft.prototype.listen=Ft.prototype.o,Ft.prototype.release=Ft.prototype.release;function Hy(e,t,n,i){this.target=e,this.type=t,this.listener=n,this.g=G1(e,i),this.target.addEventListener(t,n,this.g)}Hy.prototype.Ea=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};function G1(e,t){if(t==null)return!1;if(typeof t=="boolean")return t;var n=new Set(["passive","capture"]);return Object.keys(t).filter(function(i){return!n.has(i)}),Gy(e)?t:t.capture||!1}function Gy(e){var t=Vy;if(t==null){t=!1;try{var n={},i={get:function(){return t=!0,!1}};Object.defineProperty(n,"passive",i),Object.defineProperty(n,"capture",i),i=function(){},e.addEventListener("test",i,n),e.removeEventListener("test",i,n)}catch{t=!1}Vy=t}return t||!1}var Vy=void 0;xe("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});function wl(e,t){this.g=e,this.h=t}wl.prototype.toString=function(){return"v"+this.g+"."+this.h};function Gt(e,t){var n=new wl(5,0),i=bh,a=i.g,l=n.h-a.h;(0<(n.g-a.g||l)?i.i:i.h)(i.g,n,e,t)}function Cl(e,t,n,i){st([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",i].join(" "))}function $u(e,t,n,i){xu([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",i].join(" "))}var bh=null;function ef(e,t,n,i){this.g=null,this.l=e,this.i=t,this.m=n,this.s=i,this.j=!1;e:{if(typeof libDPIModule>"u"&&st("Could not find LCEVC Library dependencies on this page"),typeof LCEVCdec<"u")this.h=LCEVCdec;else if(typeof LcevcDil<"u")this.h=LcevcDil,this.j=!0,Gt("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{st("Could not find LCEVC Library on this page"),e=!1;break e}typeof this.h.SupportObject>"u"?(st("Could not find LCEVC Library on this page"),e=!1):(this.h.SupportObject.SupportStatus||st(this.h.SupportObject.SupportError),e=typeof this.h<"u"&&typeof libDPIModule<"u"&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}e&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function lg(e,t,n,i){i.type!=="video"||e.s&&!i.baseOriginalId||e.g&&e.g.appendBuffer(t,"video",i.id,-n,!e.s)}function iu(e){e.g&&e.i.classList.add("shaka-hidden")}ef.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function qy(e){return e&&typeof LCEVCdec<"u"?e.codecs=="lvc1":!1}xe("shaka.lcevc.Dec",ef),ef.prototype.release=ef.prototype.release;function zi(e){if(im.has(e))return im.get(e);var t=oe.ManagedMediaSource||oe.MediaSource;return t?(t=t.isTypeSupported(e),im.set(e,t),t):!1}function eo(){var e=oe.ManagedSourceBuffer||oe.SourceBuffer;return!!e&&!!e.prototype&&!!e.prototype.changeType}function nm(){var e=oe.ManagedMediaSource||oe.MediaSource;return e&&e.prototype?!!e.prototype.setLiveSeekableRange&&!!e.prototype.clearLiveSeekableRange:!1}var im=new Map;function Rh(){}Rh.prototype.extract=function(){},Rh.prototype.decode=function(){return[]},Rh.prototype.clear=function(){},Rh.prototype.getStreams=function(){return[]};function vd(){}vd.prototype.init=function(){},vd.prototype.parse=function(){return[]};function ic(){}ic.prototype.init=function(){},ic.prototype.i=function(){},ic.prototype.g=function(){},ic.prototype.j=function(){},xe("shaka.media.IClosedCaptionParser",ic);function ja(e){this.l=new vd,(e=rm(e.toLowerCase()))&&(this.l=e()),this.h=new Rh,(e=as)&&(this.h=e())}ja.prototype.init=function(e,t){t!==void 0&&t||this.g(),this.l.init(e)},ja.prototype.i=function(e){e=this.l.parse(e),e=b(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;var n=at(t.packet);0<n.length&&this.h.extract(n,t.pts)}return this.h.decode()},ja.prototype.g=function(){this.h.clear()},ja.prototype.j=function(){return this.h.getStreams()};function Oo(e,t){Dh.set(e,t)}function rm(e){return Dh.get(e)}xe("shaka.media.ClosedCaptionParser",ja),ja.findDecoder=function(){return as},ja.unregisterDecoder=function(){as=null},ja.registerDecoder=function(e){as=e},ja.findParser=rm,ja.unregisterParser=function(e){Dh.delete(e)},ja.registerParser=Oo;var Dh=new Map,as=null;function Cu(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Zi,this.scroll=am}xe("shaka.text.CueRegion",Cu);var Zi=1;Cu.units={PX:0,PERCENTAGE:Zi,LINES:2};var am="";Cu.scrollMode={NONE:am,UP:"up"};function tf(e,t){return typeof e=="number"&&typeof t=="number"&&isNaN(e)&&isNaN(t)?!0:e===t}function to(e,t){t=e.indexOf(t),-1<t&&e.splice(t,1)}function Ih(e,t,n){if(n||(n=tf),e.length!=t.length)return!1;t=t.slice(),e=b(e);for(var i=e.next(),a={};!i.done;a={ni:void 0},i=e.next()){if(a.ni=i.value,i=t.findIndex(function(l){return function(f){return n(l.ni,f)}}(a)),i==-1)return!1;t[i]=t[t.length-1],t.pop()}return t.length==0}function rc(e,t,n){if(e===t)return!0;if(!e||!t)return e==t;if(n||(n=tf),e.length!=t.length)return!1;for(var i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1;return!0}function za(e){this.h=e||"",this.g=0}function Ba(e){ac(e,/[ \t]+/gm)}function ac(e,t){return t.lastIndex=e.g,t=t.exec(e.h),t=t==null?null:{position:t.index,length:t[0].length,results:t},e.g==e.h.length||t==null||t.position!=e.g?null:(e.g+=t.length,t.results)}function Pa(e){return e.g==e.h.length?null:(e=ac(e,/[^ \t\n]*/gm))?e[0]:null}function Sd(e){if(e=ac(e,Td),e==null)return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:(Number(e[6])||0)/1e3+n+60*t+3600*(Number(e[1])||0)}function nf(e){return e?Sd(new za(e)):null}var Td=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function pa(e){function t(i){switch(typeof i){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return i;default:if(!i||ArrayBuffer.isView(i))return i;if(n.has(i))return null;var a=i.constructor==Array;if(i.constructor!=Object&&!a)return null;n.add(i);var l=a?[]:{},f;for(f in i)l[f]=t(i[f]);return a&&(l.length=i.length),l}}var n=new WeakSet;return t(e)}function uc(e){var t={},n;for(n in e)t[n]=e[n];return t}function rf(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++){var i=n.toString(),a=e[n];a!==void 0&&(a=rf(a))&&t.push(i+":"+a)}e="["+t.join(",")+"]"}else if(typeof e=="function")e="";else if(e instanceof Object){for(n=Object.keys(e),n.sort(),t=[],n=b(n),i=n.next();!i.done;i=n.next())a=i.value,i=JSON.stringify(a),a=e[a],a!==void 0&&(a=rf(a))&&t.push(i+":"+a);e="{"+t.join(",")+"}"}else e=JSON.stringify(e);return e}function Ed(e,t){var n=n===void 0?!1:n;return e=ka(e),us(e,t,n)}function us(e,t,n){return e=oc(e,n===void 0?!1:n),!t&&e.length?e[0]:(e=e.find(function(i){return t.split(",").includes(i.tagName)}))?e:null}function os(e){return fg.has(e)?fg.get(e):""}function oc(e,t){function n(l,f){f=f===void 0?!1:f;for(var d=[];e[a];)if(e.charCodeAt(a)==60){if(e.charCodeAt(a+1)===47){f=a+2,a=e.indexOf(">",a),f=e.substring(f,a);var g=f.indexOf(l);if(g==-1){var m=l.indexOf(".");0<m&&(g=f.indexOf(l.substring(0,m)))}if(g==-1)throw l=e.substring(0,a).split(`
11
- `),Error(`Unexpected close tag
12
- Line: `+(l.length-1)+`
13
- Column: `+(l[l.length-1].length+1)+`
14
- Char: `+e[a]);a+1&&(a+=1);break}else if(e.charCodeAt(a+1)===33){if(e.charCodeAt(a+2)==45){for(;a!==-1&&(e.charCodeAt(a)!==62||e.charCodeAt(a-1)!=45||e.charCodeAt(a-2)!=45||a==-1);)a=e.indexOf(">",a+1);a===-1&&(a=e.length)}else if(e.charCodeAt(a+2)===91&&e.charCodeAt(a+8)===91&&e.substr(a+3,5).toLowerCase()==="cdata"){g=e.indexOf("]]>",a),g==-1?(d.push(e.substr(a+9)),a=e.length):(d.push(e.substring(a+9,g)),a=g+3);continue}a++;continue}e:{m=f,a++;var S=i(),T={};for(g=[];e.charCodeAt(a)!==62&&e[a];){var x=e.charCodeAt(a);if(64<x&&91>x||96<x&&123>x){x=i();for(var M=e.charCodeAt(a);M&&M!==39&&M!==34&&!(64<M&&91>M||96<M&&123>M)&&M!==62;)a++,M=e.charCodeAt(a);var R=a+1;if(a=e.indexOf(e[a],R),R=e.slice(R,a),M===39||M===34){if(a===-1){if(m={tagName:S,attributes:T,children:g,parent:null},t)for(S=0;S<g.length;S++)typeof g[S]!="string"&&(g[S].parent=m);g=m;break e}}else R=null,a--;if(x.startsWith("xmlns:")){M=R;var L=x.split(":")[1];fg.set(M,L),af.set(L,M)}S==="tt"&&x==="xml:space"&&R==="preserve"&&(m=!0),T[x]=R}a++}for(e.charCodeAt(a-1)!==47?(a++,g=n(S,m)):a++,m={tagName:S,attributes:T,children:g,parent:null},S=g.length,T=0;T<S;T++)x=g[T],typeof x!="string"?t&&(x.parent=m):T==S-1&&x==`
15
- `&&g.pop();g=m}if(d.push(g),typeof g=="string")break;g.tagName[0]==="?"&&g.children&&(d.push.apply(d,Ue(g.children)),g.children=[])}else g=a,a=e.indexOf("<",a)-1,a===-2&&(a=e.length),g=e.slice(g,a+1),f?0<g.length&&d.push(g):(d.length&&g.length==1&&g[0]==`
16
- `||0<g.trim().length)&&d.push(g),a++;return d}function i(){for(var l=a;`\r
17
- >/= `.indexOf(e[a])===-1&&e[a];)a++;return e.slice(l,a)}var a=0;return n("")}function Lh(e){return typeof e=="string"}function um(e){var t=[];if(!e.children)return[];e=b(e.children);for(var n=e.next();!n.done;n=e.next())n=n.value,typeof n!="string"&&t.push(n);return t}function wt(e,t){var n=[];if(!e.children)return[];e=b(e.children);for(var i=e.next();!i.done;i=e.next())i=i.value,i.tagName===t&&n.push(i);return n}function Gn(e){return typeof e=="string"?Fi(e):(e=e.children.reduce(function(t,n){return typeof n=="string"?t+n:t},""),e===""?null:Fi(e))}function ar(e){return Array.from(e.children).every(function(t){return typeof t=="string"})?((e=Gn(e))&&(e=e.trim()),e):null}function Dn(e,t,n){if(n=n===void 0?[]:n,e.tagName===t&&n.push(e),e.children){e=b(e.children);for(var i=e.next();!i.done;i=e.next())Dn(i.value,t,n)}return n}function Wn(e,t){return e=wt(e,t),e.length!=1?null:e[0]}function Mu(e,t,n){return e=Ml(e,t,n),e.length!=1?null:e[0]}function ct(e,t,n,i){i=i===void 0?null:i;var a=null;return e=e.attributes[t],e!=null&&(a=n(e)),a??i}function ru(e,t,n){return t=os(t),e.attributes[t+":"+n]||null}function Ml(e,t,n){var i=os(t);if(t=[],e.children)for(n=i?i+":"+n:n,e=b(e.children),i=e.next();!i.done;i=e.next())(i=i.value)&&i.tagName===n&&t.push(i);return t}function Sr(e,t,n){t=b(t);for(var i=t.next();!i.done;i=t.next())if(i=ru(e,i.value,n))return i;return null}function au(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),e=Date.parse(e),isNaN(e)?null:e/1e3):null}function Ha(e){return!e||(e=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$","i").exec(e),!e)?null:(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null)}function Ad(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return!t||(e=Number(t[1]),!isFinite(e))?null:(t=Number(t[2]),isFinite(t)?{start:e,end:t}:null)}function Ci(e){return e=Number(e),e%1===0?e:null}function uu(e){return e=Number(e),e%1===0&&0<e?e:null}function ii(e){return e=Number(e),e%1===0&&0<=e?e:null}function ou(e){return e=Number(e),isNaN(e)?null:e}function no(e){return e?e.toLowerCase()==="true":!1}function V1(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function Oh(e){var t=[];e=Fi(e).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),e=b(e);for(var n=e.next();!n.done;n=e.next()){n=n.value;var i=n.match(/^([\w]+)/);if(i){var a=n.match(/(@id='(.*?)')/),l=n.match(/(@t='(\d+)')/),f=n.match(/(@n='(\d+)')/),d=n.match(/\[(\d+)\]/);t.push({name:i[0],id:a?a[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:l?Number(l[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:f?Number(f[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:d?Number(d[1])-1:null,sc:n.split("/@")[1]||null})}else n.startsWith("@")&&t.length&&(t[t.length-1].sc=n.slice(1))}return t}function Yy(e,t){var n=Oh(t.attributes.sel||"");if(n.length){var i=n[n.length-1],a=t.attributes.pos||null;n=i.position,n==null&&(i.t!==null&&(n=om(e,"t",i.t)),i.n!==null&&(n=om(e,"n",i.n))),n===null?n=a==="prepend"?0:e.length:a==="prepend"?--n:a==="after"&&++n,a=t.tagName,(i=i.sc)&&e[n]?sg(e[n],a,i,ar(t)||""):(a!=="remove"&&a!=="replace"||e.splice(n,1),a!=="add"&&a!=="replace"||e.splice.apply(e,[n,0].concat(Ue(t.children))))}}function om(e,t,n){var i=0;e=b(e);for(var a=e.next();!a.done;a=e.next()){if(Number(a.value.attributes[t])===n)return i;i++}return null}function sg(e,t,n,i){t==="remove"?delete e.attributes[n]:(t==="add"||t==="replace")&&(e.attributes[n]=i)}function Xy(e){var t="",n=e.tagName.split(":");0<n.length&&(t=n[0],t=af.has(t)?af.get(t):""),t=document.createElementNS(t,e.tagName);for(var i in e.attributes)t.setAttribute(i,e.attributes[i]);for(e=b(e.children),i=e.next();!i.done;i=e.next())i=i.value,n=void 0,typeof i=="string"?n=new Text(i):n=Xy(i),t.appendChild(n);return t}function cg(e){if(!e)return null;var t={tagName:e.tagName,attributes:uc(e.attributes),children:[],parent:null};e=b(e.children);for(var n=e.next();!n.done;n=e.next())n=n.value,typeof n=="string"||(n=cg(n),n.parent=t),t.children.push(n);return t}var fg=new Map,af=new Map;function Kt(e,t,n){this.startTime=e,this.endTime=t,this.payload=n,this.region=new Cu,this.position=null,this.positionAlign=sc,this.size=0,this.textAlign=Dr,this.direction=Uh,this.writingMode=Tr,this.lineInterpretation=fc,this.line=null,this.lineHeight="",this.lineAlign=ma,this.displayAlign=cc,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=wd,this.fontStyle=ss,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textCombineUpright="",this.textDecoration=[],this.textStrokeWidth=this.textStrokeColor=this.textShadow="",this.wrapLine=!0,this.id="",this.nestedCues=[],this.lineBreak=this.isContainer=!1,this.rubyTag=null,this.cellResolution={Mc:32,rows:15}}function lm(e,t){return e=new Kt(e,t,""),e.lineBreak=!0,e}Kt.prototype.clone=function(){var e=new Kt(0,0,""),t;for(t in this)e[t]=this[t],e[t]&&e[t].constructor==Array&&(e[t]=e[t].slice());return e};function Ga(e,t){if(e.payload!=t.payload||!(.001>Math.abs(e.startTime-t.startTime)&&.001>Math.abs(e.endTime-t.endTime)))return!1;for(var n in e)if(n!="startTime"&&n!="endTime"&&n!="payload"){if(n=="nestedCues"){if(!rc(e.nestedCues,t.nestedCues,Ga))return!1}else if(n=="region"||n=="cellResolution"){for(var i in e[n])if(e[n][i]!=t[n][i])return!1}else if(Array.isArray(e[n])){if(!rc(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1}return!0}function ga(e,t){t=t===void 0?new Map:t;var n=e.payload;if(n.includes("<")){t.size===0&&lc(t);var i=n;n=[];for(var a=-1,l=0;l<i.length;l++)i[l]==="<"?a=l+1:i[l]===">"&&0<a&&(a=i.substr(a,l-a),a.match(No)&&n.push(a),a=-1);for(n=b(n),l=n.next();!l.done;l=n.next())l=l.value,i=i.replace("<"+l+">",'<div time="'+l+'">'),i+="</div>";e:{l=i,a=[];var f=-1;n="",i=!1;for(var d=0;d<l.length;d++)if(l[d]==="/"){var g=l.indexOf(">",d);if(g===-1){n=l;break e}if((g=l.substring(d+1,g))&&g=="v"){i=!0;var m=null;if(a.length&&(m=a[a.length-1]),m){if(m===g)n+="/"+g+">";else{if(!m.startsWith("v")){n+=l[d];continue}n+="/"+m+">"}d+=g.length+1}else n+=l[d]}else n+=l[d]}else l[d]==="<"?(f=d+1,l[f]!="v"&&(f=-1)):l[d]===">"&&0<f&&(a.push(l.substr(f,d-f)),f=-1),n+=l[d];for(l=b(a),a=l.next();!a.done;a=l.next())a=a.value,f=a.replace(" ",".voice-"),n=n.replace("<"+a+">","<"+f+">"),n=n.replace("</"+a+">","</"+f+">"),i||(n+="</"+f+">")}n=ls(n),e.payload="";try{var S=us("<span>"+n+"</span>","span")}catch{}if(S)if(S=S.children,S.length!=1||S[0].tagName)for(S=b(S),n=S.next();!n.done;n=S.next())Uo(n.value,e,t);else e.payload=Fi(n);else e.payload=Fi(n)}else e.payload=Fi(n)}function lc(e){for(var t=b(Object.entries(_e)),n=t.next();!n.done;n=t.next()){var i=b(n.value);n=i.next().value,i=i.next().value;var a=new Kt(0,0,"");a.color=i,e.set("."+n,a)}for(t=b(Object.entries(io)),n=t.next();!n.done;n=t.next())i=b(n.value),n=i.next().value,i=i.next().value,a=new Kt(0,0,""),a.backgroundColor=i,e.set("."+n,a)}function ls(e){var t={"< ":""," >":" &gt;"},n=/(< +>|<\s|\s>)/g,i=RegExp(n.source);return e&&i.test(e)?e.replace(n,function(a){return t[a]||""}):e||""}function Uo(e,t,n){var i=t.clone();if(i.nestedCues=[],i.payload="",i.rubyTag="",i.line=null,i.region=new Cu,i.position=null,i.size=0,i.textAlign=Dr,e.tagName)for(var a=b(e.tagName.split(/(?=[ .])+/g)),l=a.next();!l.done;l=a.next()){var f=l=l.value;if(f.startsWith(".voice-")){var d=f.split("-").pop();f='v[voice="'+d+'"]',n.has(f)||(f="v[voice="+d+"]")}switch(n.has(f)&&(d=i,f=n.get(f))&&(d.backgroundColor=ko(f.backgroundColor,d.backgroundColor),d.color=ko(f.color,d.color),d.fontFamily=ko(f.fontFamily,d.fontFamily),d.fontSize=ko(f.fontSize,d.fontSize),d.textShadow=ko(f.textShadow,d.textShadow),d.fontWeight=f.fontWeight,d.fontStyle=f.fontStyle,d.opacity=f.opacity,d.rubyTag=f.rubyTag,d.textCombineUpright=f.textCombineUpright,d.wrapLine=f.wrapLine),l){case"br":i=lm(i.startTime,i.endTime),t.nestedCues.push(i);return;case"b":i.fontWeight=oi;break;case"i":i.fontStyle=ro;break;case"u":i.textDecoration.push(bu);break;case"font":(l=e.attributes.color)&&(i.color=l);break;case"div":if(l=e.attributes.time,!l)break;(l=nf(l))&&(i.startTime=l);break;case"ruby":case"rp":case"rt":i.rubyTag=l}}if(a=e.children,Lh(e)||a.length==1&&Lh(a[0]))for(n=Gn(e).split(`
18
- `),e=!0,n=b(n),a=n.next();!a.done;a=n.next())a=a.value,e||(e=lm(i.startTime,i.endTime),t.nestedCues.push(e)),0<a.length&&(e=i.clone(),e.payload=Fi(a),t.nestedCues.push(e)),e=!1;else for(t.nestedCues.push(i),t=b(a),e=t.next();!e.done;e=t.next())Uo(e.value,i,n)}function ko(e,t){return e&&0<e.length?e:t}xe("shaka.text.Cue",Kt),Kt.parseCuePayload=ga,Kt.equal=Ga,Kt.prototype.clone=Kt.prototype.clone;var sc="auto";Kt.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:sc};var Dr="center",uf={LEFT:"left",RIGHT:"right",CENTER:Dr,START:"start",END:"end"};Kt.textAlign=uf;var cc="after",xd={BEFORE:"before",CENTER:"center",AFTER:cc};Kt.displayAlign=xd;var Uh="ltr";Kt.direction={HORIZONTAL_LEFT_TO_RIGHT:Uh,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Tr="horizontal-tb";Kt.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Tr,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var fc=0;Kt.lineInterpretation={LINE_NUMBER:fc,PERCENTAGE:1};var ma="start",on={CENTER:"center",START:ma,END:"end"};Kt.lineAlign=on;var _e={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Kt.defaultTextColor=_e;var io={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Kt.defaultTextBackgroundColor=io;var wd=400,oi=700;Kt.fontWeight={NORMAL:wd,BOLD:oi};var ss="normal",ro="italic",kh={NORMAL:ss,ITALIC:ro,OBLIQUE:"oblique"};Kt.fontStyle=kh;var bu="underline";Kt.textDecoration={UNDERLINE:bu,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var No=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function ur(){}ur.prototype.destroy=function(){};function ya(e,t,n){Oi.set(e.toLowerCase().split(";")[0]+"-"+n,{priority:n,rf:t})}function Kr(e,t){for(var n=e.toLowerCase().split(";")[0],i=b([bl,dc,Nh,tn]),a=i.next();!a.done;a=i.next())if(a=Oi.get(n+"-"+a.value)){var l=a.rf(),f=l.isSupported(e,t);if(l.destroy(),f)return a.rf}return null}xe("shaka.transmuxer.TransmuxerEngine",ur),ur.findTransmuxer=Kr,ur.unregisterTransmuxer=function(e,t){Oi.delete(e.toLowerCase().split(";")[0]+"-"+t)},ur.registerTransmuxer=ya,ur.prototype.destroy=ur.prototype.destroy;var Oi=new Map,tn=1,Nh=2,dc=3,bl=4;ur.PluginPriority={FALLBACK:tn,PREFERRED_SECONDARY:Nh,PREFERRED:dc,APPLICATION:bl};function Bi(){}function Et(e,t){var n=e;return t&&!ao.includes(e)&&(n+='; codecs="'+t+'"'),n}function mn(e,t){return t&&(e+='; codecs="'+t+'"'),e}function Ru(e,t,n){var i=Et(e,t);return t=mn(e,t),Kr(t)?(e=Kr(t))?(e=e(),n=e.convertCodecs(n,t),e.destroy()):n=t:n=e!="video/mp2t"&&n=="audio"?i.replace("video","audio"):i,n}function _o(e,t,n){var i=[t];return _h.forEach(function(a,l){var f=e[l];l=="codecs"?ao.includes(e.mimeType)||i.push('codecs="'+n+'"'):f&&i.push(a+'="'+f+'"')}),e.hdr=="PQ"&&i.push('eotf="smpte2084"'),i.join(";")}function cs(e){return e.split(";")[0].split("/")[1]}function In(e){var t=sm(e);switch(e=t[0].toLowerCase(),t=t[1].toLowerCase(),!0){case(e==="mp4a"&&t==="69"):case(e==="mp4a"&&t==="6b"):case(e==="mp4a"&&t==="40.34"):return"mp3";case(e==="mp4a"&&t==="66"):case(e==="mp4a"&&t==="67"):case(e==="mp4a"&&t==="68"):case(e==="mp4a"&&t==="40.2"):case(e==="mp4a"&&t==="40.02"):case(e==="mp4a"&&t==="40.5"):case(e==="mp4a"&&t==="40.05"):case(e==="mp4a"&&t==="40.29"):case(e==="mp4a"&&t==="40.42"):return"aac";case(e==="mp4a"&&t==="a5"):case e==="ac3":case e==="ac-3":return"ac-3";case(e==="mp4a"&&t==="a6"):case e==="eac3":case e==="ec-3":return"ec-3";case e==="ac-4":return"ac-4";case(e==="mp4a"&&t==="b2"):return"dtsx";case(e==="mp4a"&&t==="a9"):return"dtsc";case e==="vp09":case e==="vp9":return"vp9";case e==="avc1":case e==="avc3":return"avc";case e==="hvc1":case e==="hev1":return"hevc";case e==="vvc1":case e==="vvi1":return"vvc";case e==="dvh1":case e==="dvhe":return t&&t.startsWith("05")?"dovi-p5":"dovi-hevc";case e==="dvav":case e==="dva1":return"dovi-avc";case e==="dav1":return"dovi-av1";case e==="dvc1":case e==="dvi1":return"dovi-vvc"}return e}function jo(e){var t=[];e=b(e.split(","));for(var n=e.next();!n.done;n=e.next())n=sm(n.value),t.push(n[0]);return t.sort().join(",")}function va(e){return e.split(";")[0]}function Er(e){return e=e.split(/ *; */),e.shift(),(e=e.find(function(t){return t.startsWith("codecs=")}))?e.split("=")[1].replace(/^"|"$/g,""):""}function of(e){return e==="application/x-mpegurl"||e==="application/vnd.apple.mpegurl"}function sm(e){e=e.split(".");var t=e[0];return e.shift(),[t,e.join(".")]}xe("shaka.util.MimeUtils",Bi),Bi.getFullTypeWithAllCodecs=mn,Bi.getFullType=Et;var _h=new Map().set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels"),ao=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Sa(e){this.i=null,this.j=e,this.C=!1,this.l=this.u=0,this.m=1/0,this.h=this.g=null,this.D="",this.B=function(){},this.s=new Map}function $n(e,t){Ji.set(e,t)}function uo(e){return Ji.get(e)}function lu(e){return Ji.has(e)?!0:e=="application/cea-608"||e=="application/cea-708"?!!as:!1}Sa.prototype.destroy=function(){return this.j=this.i=null,this.s.clear(),Promise.resolve()};function cm(e,t,n,i,a){var l,f,d,g,m,S,T;return q(function(x){if(x.g==1)return O(x,Promise.resolve(),2);if(!e.i||!e.j)return x.return();if(n==null||i==null)return e.i.parseInit(at(t)),x.return();for(l=e.C?n:e.u,f={periodStart:e.u,segmentStart:n,segmentEnd:i,vttOffset:l},d=e.i.parseMedia(at(t),f,a,[]),g=b(d),m=g.next();!m.done;m=g.next())S=m.value,e.B(S,a||null,f);T=d.filter(function(M){return M.startTime>=e.l&&M.startTime<e.m}),e.j.append(T),e.g==null&&(e.g=Math.max(n,e.l)),e.h=Math.min(i,e.m),ve(x)})}Sa.prototype.remove=function(e,t){var n=this;return q(function(i){if(i.g==1)return O(i,Promise.resolve(),2);!n.j||!n.j.remove(e,t)||n.g==null||t<=n.g||e>=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&t<n.h?n.g=t:e>n.g&&t>=n.h&&(n.h=e)),ve(i)})};function Fy(e,t,n){e.l=t,e.m=n}function Cd(e,t,n){if(e.D=t,t=e.s.get(t))for(var i=b(t.keys()),a=i.next();!a.done;a=i.next())(a=t.get(a.value).filter(function(l){return l.endTime<=n}))&&e.j.append(a)}function jh(e,t,n){t.startTime+=n,t.endTime+=n,t=b(t.nestedCues);for(var i=t.next();!i.done;i=t.next())jh(e,i.value,n)}function lf(e,t,n,i,a){var l=n+" "+i,f=new Map;t=b(t);for(var d=t.next();!d.done;d=t.next()){var g=d.value;d=g.stream,g=g.cue,f.has(d)||f.set(d,new Map),f.get(d).has(l)||f.get(d).set(l,[]),jh(e,g,a),g.startTime>=e.l&&g.startTime<e.m&&(f.get(d).get(l).push(g),d==e.D&&e.j.append([g]))}for(a=b(f.keys()),l=a.next();!l.done;l=a.next())for(l=l.value,e.s.has(l)||e.s.set(l,new Map),t=b(f.get(l).keys()),d=t.next();!d.done;d=t.next())d=d.value,g=f.get(l).get(d),e.s.get(l).set(d,g);e.g=e.g==null?Math.max(n,e.l):Math.min(e.g,Math.max(n,e.l)),e.h=Math.max(e.h,Math.min(i,e.m))}xe("shaka.text.TextEngine",Sa),Sa.prototype.destroy=Sa.prototype.destroy,Sa.findParser=uo,Sa.unregisterParser=function(e){Ji.delete(e)},Sa.registerParser=$n;var Ji=new Map;function dg(e,t){return e.concat(t)}function Ky(){}function Du(e){return e!=null}function sf(e,t){return Promise.race([t,new Promise(function(n,i){new Ke(i).$(e)})])}function Qy(){}function Ar(e,t,n,i,a){function l(U){var N=String(U.width||"")+String(U.height||"")+String(Math.round(U.frameRate||0))+(U.hdr||"")+U.fastSwitching;return U.dependencyStream&&(N+=U.dependencyStream.baseOriginalId||""),N}function f(U){var N=U.language+(U.channelsCount||0)+(U.audioSamplingRate||0)+U.roles.join(",")+U.label+U.groupId+U.fastSwitching;return U.dependencyStream&&(N+=U.dependencyStream.baseOriginalId||""),N}if(a.length){var d=e.textStreams;a=b(a);for(var g=a.next(),m={};!g.done;m={Ah:void 0},g=a.next())if(m.Ah=g.value,g=d.filter(function(U){return function(N){return!!(N.codecs.startsWith(U.Ah)||N.mimeType.startsWith(U.Ah))}}(m)),g.length){d=g;break}e.textStreams=d}if(d=e.variants,(t.length||n.length)&&(d=zh(d,t,n)),i.length){for(t=new wo,n=b(d),d=n.next();!d.done;d=n.next())d=d.value,t.push(String(d.video.width||0),d);var S=[];t.forEach(function(U,N){U=0;var j=[];N=b(N);for(var B=N.next(),Y={};!B.done;Y={Of:void 0},B=N.next())Y.Of=B.value,B=i.filter(function(P){return function(V){return P.Of.decodingInfos[0][V]}}(Y)).length,B>U?(U=B,j=[Y.Of]):B==U&&j.push(Y.Of);S.push.apply(S,Ue(j))}),d=S}for(n=new Set,t=new Set,d=b(d),a=d.next();!a.done;a=d.next())a=a.value,a.audio&&n.add(a.audio),a.video&&t.add(a.video);d=Array.from(n).sort(function(U,N){return U.bandwidth-N.bandwidth});var T=[];for(n=new Map,d=b(d),a=d.next();!a.done;a=d.next()){if(a=a.value,g=f(a),m=n.get(g)||[],m.length){var x=m[m.length-1],M=In(x.codecs),R=In(a.codecs);M!=R||a.bandwidth&&x.bandwidth&&!(a.bandwidth>x.bandwidth)||(m.push(a),T.push(a.id))}else m.push(a),T.push(a.id);n.set(g,m)}var L={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,"dovi-p5":.75,av01:.7,"dovi-av1":.65,vvc:.6};d=Array.from(t).sort(function(U,N){if(!U.bandwidth||!N.bandwidth||U.bandwidth==N.bandwidth){if(U.codecs&&N.codecs&&U.codecs!=N.codecs&&U.width==N.width){var j=In(U.codecs),B=In(N.codecs);if(j!=B)return(L[j]||1)-(L[B]||1)}return U.width-N.width}return U.bandwidth-N.bandwidth}),t=eo();var I=[];for(n=new Map,d=b(d),a=d.next();!a.done;a=d.next()){if(a=a.value,g=l(a),m=n.get(g)||[],m.length){if(x=m[m.length-1],!t&&(M=In(x.codecs),R=In(a.codecs),M!==R))continue;M=In(x.codecs),R=In(a.codecs),M!=R||a.bandwidth&&x.bandwidth&&!(a.bandwidth>x.bandwidth)||(m.push(a),I.push(a.id))}else m.push(a),I.push(a.id);n.set(g,m)}e.variants=e.variants.filter(function(U){var N=U.audio;return U=U.video,!(N&&!T.includes(N.id)||U&&!I.includes(U.id))})}function zh(e,t,n){t=b(t);for(var i=t.next(),a={};!i.done;a={fj:void 0},i=t.next())if(a.fj=i.value,i=e.filter(function(l){return function(f){return f.video&&f.video.codecs.startsWith(l.fj)}}(a)),i.length){e=i;break}for(n=b(n),t=n.next(),i={};!t.done;i={Lh:void 0},t=n.next())if(i.Lh=t.value,t=e.filter(function(l){return function(f){return f.audio&&f.audio.codecs.startsWith(l.Lh)}}(i)),t.length){e=t;break}return e}function fs(e,t,n){e.variants=e.variants.filter(function(i){return Rl(i,t,n)})}function Rl(e,t,n){function i(d,g,m){return d>=g&&d<=m}var a=e.video;if(a&&a.width&&a.height){var l=a.width,f=a.height;if(f>l&&(f=b([f,l]),l=f.next().value,f=f.next().value),!i(l,t.minWidth,Math.min(t.maxWidth,n.width))||!i(f,t.minHeight,Math.min(t.maxHeight,n.height))||!i(a.width*a.height,t.minPixels,t.maxPixels))return!1}return!(e&&e.video&&e.video.frameRate&&!i(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||e&&e.audio&&e.audio.channelsCount&&!i(e.audio.channelsCount,t.minChannelsCount,t.maxChannelsCount)||!i(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function hg(e,t,n,i){return n=n===void 0?[]:n,i=i===void 0?{}:i,q(function(a){return a.g==1?O(a,oo(e,t,0<t.offlineSessionIds.length,n,i),2):(dm(t),O(a,cf(t),0))})}function oo(e,t,n,i,a){var l,f;return q(function(d){if(d.g==1)return Zu()&&Ir(t.variants),O(d,gg(t.variants,n,!1,i),2);l=null,e&&(f=e.h)&&(l=f.keySystem),t.variants=t.variants.filter(function(g){var m=fm(g,l,a);if(!m){var S=[];g.audio&&S.push(cu(g.audio)),g.video&&S.push(cu(g.video))}return m}),ve(d)})}function Ir(e){var t=new Map().set("dvav","avc3").set("dva1","avc1").set("dvhe","hev1").set("dvh1","hvc1").set("dvc1","vvc1").set("dvi1","vvi1"),n=new Set;e=b(e);for(var i=e.next();!i.done;i=e.next())i=i.value,i.video&&n.add(i.video);for(n=b(n),e=n.next();!e.done;e=n.next()){e=e.value,i=b(t);for(var a=i.next();!a.done;a=i.next()){var l=b(a.value);if(a=l.next().value,l=l.next().value,e.codecs.includes(a)){e.codecs=e.codecs.replace(a,l);break}}}}function fm(e,t,n){if(!e.decodingInfos.some(function(g){return!(!g.supported||t&&(g=g.keySystemAccess)&&(n[g.keySystem]||g.keySystem)!=t)}))return!1;var i=Zu(),a=Tn("Firefox")&&eu(),l=e.video,f=l&&l.width||0,d=l&&l.height||0;return i&&l&&(1920<f||1080<d)&&(l.codecs.includes("avc1.")||l.codecs.includes("avc3."))||(i=l&&l.dependencyStream)&&!qy(i)?!1:(e=e.audio,!(a&&e&&e.encrypted&&e.codecs.toLowerCase().includes("opus")||e&&e.dependencyStream))}function pg(e,t){var n,i,a,l,f,d,g;return q(function(m){if(m.g==1){for(n=function(S,T){if(S){var x=uc(S);return x.supported=S.supported&&T.supported,x.powerEfficient=S.powerEfficient&&T.powerEfficient,x.smooth=S.smooth&&T.smooth,T.keySystemAccess&&!x.keySystemAccess&&(x.keySystemAccess=T.keySystemAccess),x}return T},i=null,a=[],l=b(t),f=l.next(),d={};!f.done;d={cache:void 0,Ie:void 0},f=l.next())g=f.value,d.Ie=rf(g),d.cache=hs,d.cache.has(d.Ie)?i=n(i,d.cache.get(d.Ie)):a.push(q1(g).then(function(S){return function(T){var x=null;T=b(T||[]);for(var M=T.next();!M.done;M=T.next())x=n(x,M.value);x&&(S.cache.set(S.Ie,x),i=n(i,x))}}(d)));return O(m,Promise.all(a),2)}i&&e.decodingInfos.push(i),ve(m)})}function q1(e){var t=[""];e.video&&(t=Er(e.video.contentType).split(","));var n=[""];e.audio&&(n=Er(e.audio.contentType).split(","));var i=[];t=b(t);for(var a=t.next();!a.done;a=t.next()){a=a.value;for(var l=b(n),f=l.next(),d={};!f.done;d={Nc:void 0},f=l.next())f=f.value,d.Nc=pa(e),e.video&&(d.Nc.video.contentType=Et(va(d.Nc.video.contentType),a)),e.audio&&(d.Nc.audio.contentType=Et(va(d.Nc.audio.contentType),f)),i.push(new Promise(function(g){return function(m,S){(eu()?sf(5,navigator.mediaCapabilities.decodingInfo(g.Nc)):navigator.mediaCapabilities.decodingInfo(g.Nc)).then(function(T){m(T)}).catch(S)}}(d)))}return Promise.all(i).catch(function(){return JSON.stringify(e),null})}function gg(e,t,n,i){var a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y;return q(function(P){switch(P.g){case 1:if(e.some(function(V){return V.decodingInfos.length}))return P.return();a=b(i),l=a.next(),f={};case 2:if(l.done){P.A(4);break}f.Di=l.value,d=!1,g=b(e),m=g.next();case 5:if(m.done){P.A(7);break}S=m.value,T=Dl(S,t,n).filter(function(V){return function(F){return F=F[0],(F.keySystemConfiguration&&F.keySystemConfiguration.keySystem)===V.Di}}(f)),x=b(T),M=x.next();case 8:if(M.done){P.A(10);break}return R=M.value,O(P,pg(S,R),9);case 9:M=x.next(),P.A(8);break;case 10:S.decodingInfos.length&&(d=!0),m=g.next(),P.A(5);break;case 7:if(d)return P.return();f={Di:void 0},l=a.next(),P.A(2);break;case 4:L=b(e),I=L.next();case 12:if(I.done){P.A(0);break}U=I.value,N=Dl(U,t,n).filter(function(V){return V=V[0],V=V.keySystemConfiguration&&V.keySystemConfiguration.keySystem,!V||!i.includes(V)}),j=b(N),B=j.next();case 15:if(B.done){I=L.next(),P.A(12);break}return Y=B.value,O(P,pg(U,Y),16);case 16:B=j.next(),P.A(15)}})}function Dl(e,t,n){var i=e.audio,a=e.video,l=[],f=[];if(a)for(var d=b(a.fullMimeTypes),g=d.next();!g.done;g=d.next()){g=g.value;var m=Er(g);if(m.includes(",")&&!i){var S=m.split(","),T=va(g);m=Al("video",S),S=Al("audio",S),S=hc(S,T),T=Ru(T,S,"audio"),f.push({contentType:T,channels:2,bitrate:e.bandwidth||1,samplerate:1,spatialRendering:!1})}if(m=pc(m),g={contentType:Ru(va(g),m,"video"),width:a.width||64,height:a.height||64,bitrate:a.bandwidth||e.bandwidth||1,framerate:a.frameRate||1},a.hdr)switch(a.hdr){case"SDR":g.transferFunction="srgb";break;case"PQ":g.transferFunction="pq";break;case"HLG":g.transferFunction="hlg"}a.colorGamut&&(g.colorGamut=a.colorGamut),l.push(g)}if(i)for(d=b(i.fullMimeTypes),g=d.next();!g.done;g=d.next())m=g.value,g=va(m),m=hc(Er(m),g),g=Ru(g,m,"audio"),f.push({contentType:g,channels:i.channelsCount||2,bitrate:i.bandwidth||e.bandwidth||1,samplerate:i.audioSamplingRate||1,spatialRendering:i.spatialAudio});for(d=[],l.length==0&&l.push(null),f.length==0&&f.push(null),l=b(l),g=l.next();!g.done;g=l.next())for(g=g.value,m=b(f),T=m.next();!T.done;T=m.next())T=T.value,S={type:n?"file":"media-source"},g&&(S.video=g),T&&(S.audio=T),d.push(S);if(f=(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]),!f.length)return[d];for(e=[],n=new Map,f=b(f),l=f.next();!l.done;l=f.next())l=l.value,n.get(l.keySystem)||n.set(l.keySystem,[]),n.get(l.keySystem).push(l);for(f=t?"required":"optional",t=t?["persistent-license"]:["temporary"],l=b(n.keys()),g=l.next();!g.done;g=l.next()){for(g=g.value,T=n.get(g),m=new Map,T=b(T),S=T.next();!S.done;S=T.next()){S=S.value;var x=S.videoRobustness+","+S.audioRobustness;m.get(x)||m.set(x,[]),m.get(x).push(S)}for(m=b(m.values()),T=m.next();!T.done;T=m.next()){T=T.value,S=[],x=b(d);for(var M=x.next();!M.done;M=x.next()){M=Object.assign({},M.value);for(var R={keySystem:g,initDataType:"cenc",persistentState:f,distinctiveIdentifier:"optional",sessionTypes:t},L=b(T),I=L.next();!I.done;I=L.next()){if(I=I.value,I.initData&&I.initData.length){for(var U=new Set,N=b(I.initData),j=N.next();!j.done;j=N.next())U.add(j.value.initDataType);R.initDataType=I.initData[0].initDataType}I.distinctiveIdentifierRequired&&(R.distinctiveIdentifier="required"),I.persistentStateRequired&&(R.persistentState="required"),I.sessionType&&(R.sessionTypes=[I.sessionType]),i&&(R.audio?(I.encryptionScheme&&(R.audio.encryptionScheme=R.audio.encryptionScheme||I.encryptionScheme),R.audio.robustness=R.audio.robustness||I.audioRobustness):(R.audio={robustness:I.audioRobustness},I.encryptionScheme&&(R.audio.encryptionScheme=I.encryptionScheme)),R.audio.robustness==""&&delete R.audio.robustness),a&&(R.video?(I.encryptionScheme&&(R.video.encryptionScheme=R.video.encryptionScheme||I.encryptionScheme),R.video.robustness=R.video.robustness||I.videoRobustness):(R.video={robustness:I.videoRobustness},I.encryptionScheme&&(R.video.encryptionScheme=I.encryptionScheme)),R.video.robustness==""&&delete R.video.robustness)}M.keySystemConfiguration=R,S.push(M)}e.push(S)}}return e}function hc(e,t){return e.toLowerCase()=="flac"?ai()?"fLaC":"flac":e.toLowerCase()==="opus"?ai()&&cs(t)=="mp4"?"Opus":"opus":e.toLowerCase()=="ac-3"&&da()?"ec-3":e}function pc(e){if(e.includes("avc1")){var t=e.split(".");if(t.length==3)return e=t.shift()+".",e+=parseInt(t.shift(),10).toString(16),e+=("000"+parseInt(t.shift(),10).toString(16)).slice(-4)}else if(e=="vp9")return"vp09.00.41.08";return e}function dm(e){e.textStreams=e.textStreams.filter(function(t){return t=Et(t.mimeType,t.codecs),lu(t)})}function cf(e){var t,n,i,a,l,f,d;return q(function(g){switch(g.g){case 1:t=[],n=b(e.imageStreams),i=n.next();case 2:if(i.done){g.A(4);break}if(a=i.value,l=a.mimeType,l=="application/mp4"&&a.codecs=="mjpg"&&(l="image/jpg"),Hh.has(l)){g.A(5);break}if(f=Gh.get(l),!f){Hh.set(l,!1),g.A(5);break}return O(g,hm(f),7);case 7:d=g.h,Hh.set(l,d);case 5:Hh.get(l)&&t.push(a),i=n.next(),g.A(2);break;case 4:e.imageStreams=t,ve(g)}})}function hm(e){return new Promise(function(t){var n=new Image;n.src=e,"decode"in n?n.decode().then(function(){t(!0)}).catch(function(){t(!1)}):n.onload=n.onerror=function(){t(n.height===2)}})}function Il(e){var t=e.audio,n=e.video,i=t?t.mimeType:null,a=n?n.mimeType:null,l=t?t.codecs:null,f=n?n.codecs:null,d=t?t.groupId:null,g=[];n&&g.push(n.mimeType),t&&g.push(t.mimeType),g=g[0]||null;var m=[];t&&m.push(t.kind),n&&m.push(n.kind),m=m[0]||null;var S=new Set;if(t)for(var T=b(t.roles),x=T.next();!x.done;x=T.next())S.add(x.value);if(n)for(T=b(n.roles),x=T.next();!x.done;x=T.next())S.add(x.value);if(e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:m,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:g,audioMimeType:i,videoMimeType:a,codecs:"",audioCodec:l,videoCodec:f,primary:e.primary,roles:Array.from(S),audioRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:d,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null,e.hdr=n.hdr||null,e.colorGamut=n.colorGamut||null,e.videoLayout=n.videoLayout||null,(i=n.dependencyStream)&&(e.width=i.width||e.width,e.height=i.height||e.height,e.videoCodec=i.codecs||e.videoCodec),f.includes(","))){e.channelsCount=n.channelsCount,e.audioSamplingRate=n.audioSamplingRate,e.spatialAudio=n.spatialAudio,e.originalLanguage=n.originalLanguage,e.audioMimeType=a,n=f.split(",");try{e.videoCodec=Al("video",n),e.audioCodec=Al("audio",n)}catch{}}return t&&(e.audioId=t.id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.spatialAudio=t.spatialAudio,e.label=t.label,e.audioRoles=t.roles,e.accessibilityPurpose=t.accessibilityPurpose,e.originalLanguage=t.originalLanguage,t=t.dependencyStream)&&(e.audioCodec=t.codecs||e.audioCodec),t=[],e.videoCodec&&t.push(e.videoCodec),e.audioCodec&&t.push(e.audioCodec),e.codecs=t.join(", "),e}function ds(e){return{id:e.id,active:!1,type:lt,bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,forced:e.forced,videoId:null,audioId:null,audioGroupId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId,originalImageId:null,accessibilityPurpose:e.accessibilityPurpose,originalLanguage:e.originalLanguage}}function Bh(e){var t=e.width||null,n=e.height||null,i=null;e.segmentIndex&&(i=Pu(e.segmentIndex));var a=e.tilesLayout;return i&&(a=i.tilesLayout||a),a&&t!=null&&(t/=Number(a.split("x")[0])),a&&n!=null&&(n/=Number(a.split("x")[1])),{id:e.id,active:!1,type:"image",bandwidth:e.bandwidth||0,language:"",label:null,kind:null,width:t,height:n,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:a||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:e.originalId,accessibilityPurpose:null,originalLanguage:null}}function Md(e){return e.__shaka_id||(e.__shaka_id=Zy++),e.__shaka_id}function mg(e){var t=ff(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,e.kind=="main"&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind],t.label=e.label),t}function ff(e){var t=e.language;return{id:Md(e),active:!1,type:"",bandwidth:0,language:Wt(t||"und"),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,audioGroupId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:t}}function bd(e){return e.allowedByApplication&&e.allowedByKeySystem&&e.disabledUntilTime==0}function Ph(e){return e.filter(function(t){return bd(t)})}function su(e,t,n,i){var a=e,l=e.filter(function(g){return g.primary});l.length&&(a=l);var f=a.length?a[0].language:"";if(a=a.filter(function(g){return g.language==f}),t){var d=og(Wt(t),e.map(function(g){return g.language}));d&&(a=e.filter(function(g){return Wt(g.language)==d}))}if(a=a.filter(function(g){return g.forced==i}),n){if(e=yg(a,n),e.length)return e}else if(e=a.filter(function(g){return g.roles.length==0}),e.length)return e;return e=a.map(function(g){return g.roles}).reduce(dg,[]),e.length?yg(a,e[0]):a}function yg(e,t){return e.filter(function(n){return n.roles.includes(t)})}function vg(e,t){t.length&&(t=t.filter(function(n){return In(e.codecs)==In(n.codecs)}).sort(function(n,i){return n.bandwidth&&i.bandwidth&&n.bandwidth!=i.bandwidth?n.bandwidth-i.bandwidth:(n.width||0)-(i.width||0)}),e.trickModeVideo=t[0],1<t.length&&(t=t.find(function(n){return e.width==n.width&&e.height==n.height})))&&(e.trickModeVideo=t)}function cu(e){return e.type=="audio"?"type=audio codecs="+e.codecs+" bandwidth="+e.bandwidth+" channelsCount="+e.channelsCount+" audioSamplingRate="+e.audioSamplingRate:e.type=="video"?"type=video codecs="+e.codecs+" bandwidth="+e.bandwidth+" frameRate="+e.frameRate+" width="+e.width+" height="+e.height:"unexpected stream type"}function Ll(e,t,n){if(n.autoShowText==0)return!1;if(n.autoShowText==1)return!0;var i=Wt(n.preferredTextLanguage);return t=Wt(t.language),n.autoShowText==2?tc(t,i):n.autoShowText==3?e?(e=Wt(e.language),tc(t,i)&&!tc(e,t)):!1:(st("Invalid autoShowText setting!"),!1)}xe("shaka.util.StreamUtils",Qy),Qy.meetsRestrictions=Rl;var hs=new Map,Zy=0,Hh=new Map().set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),Gh=new Map().set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function dn(){var e=this;this.I=null,this.l=!1,this.s=new Mh,this.j=new Ft,navigator.connection&&navigator.connection.addEventListener&&this.j.o(navigator.connection,"change",function(){if(e.l&&e.g.useNetworkInformation){e.s=new Mh,e.g&&e.s.configure(e.g.advanced);var t=e.chooseVariant();t&&navigator.onLine&&e.I(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch)}}),this.H=[],this.J=1,this.K=!1,this.h=this.m=this.g=this.u=null,this.B=new Ke(function(){if(e.l&&(e.g.restrictToElementSize||e.g.restrictToScreenSize)){var t=e.chooseVariant();t&&e.I(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch)}}),this.C=oe,"documentPictureInPicture"in oe&&this.j.o(oe.documentPictureInPicture,"enter",function(){e.C=oe.documentPictureInPicture.window,e.B&&e.B.Ia(),e.j.wa(e.C,"pagehide",function(){e.C=oe,e.B&&e.B.Ia()})}),this.D=this.i=null}w=dn.prototype,w.stop=function(){this.I=null,this.l=!1,this.H=[],this.J=1,this.m=this.u=null,this.h&&(this.h.disconnect(),this.h=null),this.B.stop(),this.D=this.i=null},w.release=function(){this.j.release(),this.B=null},w.init=function(e){this.I=e},w.chooseVariant=function(){var e=1/0,t=1/0;if(this.g.restrictToScreenSize){var n=this.g.ignoreDevicePixelRatio?1:this.C.devicePixelRatio;e=this.C.screen.height*n,t=this.C.screen.width*n}if(this.h&&this.g.restrictToElementSize){n=this.g.ignoreDevicePixelRatio?1:this.C.devicePixelRatio;var i=this.m.clientHeight,a=this.m.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.m&&(i=this.i.height,a=this.i.width),e=Math.min(e,i*n),t=Math.min(t,a*n)}if(n=this.H.filter(function(m){return m&&!(m.audio&&m.audio.fastSwitching||m.video&&m.video.fastSwitching)}),n.length||(n=this.H),i=n,n.length!=this.H.length&&(i=this.H.filter(function(m){return m&&!!(m.audio&&m.audio.fastSwitching||m.video&&m.video.fastSwitching)})),n=Rd(this,this.g.restrictions,i,1/0,1/0),e!=1/0||t!=1/0){for(n=Dd(n),n=b(n),a=n.next();!a.done;a=n.next())if(a=a.value,a.height>=e&&a.width>=t){e=a.height,t=a.width;break}n=Rd(this,this.g.restrictions,i,e,t)}for(e=this.getBandwidthEstimate(),i.length&&!n.length&&(n=Rd(this,null,i,1/0,1/0),n=[n[0]]),t=n[0]||null,i=0;i<n.length;i++){a=n[i];for(var l=isNaN(this.J)?1:Math.abs(this.J),f=l*a.bandwidth/this.g.bandwidthDowngradeTarget,d={bandwidth:1/0},g=i+1;g<n.length;g++)if(a.bandwidth!=n[g].bandwidth){d=n[g];break}l=l*d.bandwidth/this.g.bandwidthUpgradeTarget,e>=f&&e<=l&&(t.bandwidth!=a.bandwidth||t.bandwidth==a.bandwidth&&t.video&&a.video&&(t.video.width<a.video.width||t.video.height<a.video.height))&&(t=a)}return this.u=Date.now(),t},w.enable=function(){this.l=!0},w.disable=function(){this.l=!1},w.segmentDownloaded=function(e,t,n){e<this.g.cacheLoadThreshold||(this.s.sample(e,t),n&&this.u!=null&&this.l&&Sg(this))},w.trySuggestStreams=function(){this.u!=null&&this.l&&Sg(this)},w.getBandwidthEstimate=function(){var e=this.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(e=1e6*navigator.connection.downlink),navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&this.g.preferNetworkInformationBandwidth?e:(e=this.s.getBandwidthEstimate(e),this.D?this.D.getBandwidthEstimate(e):e)},w.setVariants=function(e){this.H=e},w.playbackRateChanged=function(e){this.J=e},w.setMediaElement=function(e){function t(){n.B.$(Tg)}var n=this;this.m=e,this.h&&(this.h.disconnect(),this.h=null),this.m&&"ResizeObserver"in oe&&(this.h=new ResizeObserver(t),this.h.observe(this.m)),this.j.o(e,"enterpictureinpicture",function(i){i.pictureInPictureWindow&&(n.i=i.pictureInPictureWindow,n.j.o(n.i,"resize",t))}),this.j.o(e,"leavepictureinpicture",function(){n.i&&n.j.Ea(n.i,"resize",t),n.i=null})},w.setCmsdManager=function(e){this.D=e},w.configure=function(e){this.g=e,this.s&&this.g&&this.s.configure(this.g.advanced)};function Sg(e){if(!e.K){var t=e.s;if(!(t.g>=t.i))return;e.K=!0,e.u-=1e3*(e.g.switchInterval-e.g.minTimeToSwitch)}Date.now()-e.u<1e3*e.g.switchInterval||(t=e.chooseVariant(),e.getBandwidthEstimate(),t&&e.I(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch))}function Rd(e,t,n,i,a){if(e.D){var l=e.D.ci();l&&(n=n.filter(function(f){return f.bandwidth&&l?f.bandwidth<=l:!0}))}return t&&(n=n.filter(function(f){return Rl(f,t,{width:a,height:i})})),n.sort(function(f,d){return f.bandwidth-d.bandwidth})}function Dd(e){var t=[];e=b(e);for(var n=e.next();!n.done;n=e.next())(n=n.value.video)&&n.height&&n.width&&t.push({height:n.height,width:n.width});return t.sort(function(i,a){return i.width-a.width})}xe("shaka.abr.SimpleAbrManager",dn),dn.prototype.configure=dn.prototype.configure,dn.prototype.setCmsdManager=dn.prototype.setCmsdManager,dn.prototype.setMediaElement=dn.prototype.setMediaElement,dn.prototype.playbackRateChanged=dn.prototype.playbackRateChanged,dn.prototype.setVariants=dn.prototype.setVariants,dn.prototype.getBandwidthEstimate=dn.prototype.getBandwidthEstimate,dn.prototype.trySuggestStreams=dn.prototype.trySuggestStreams,dn.prototype.segmentDownloaded=dn.prototype.segmentDownloaded,dn.prototype.disable=dn.prototype.disable,dn.prototype.enable=dn.prototype.enable,dn.prototype.chooseVariant=dn.prototype.chooseVariant,dn.prototype.init=dn.prototype.init,dn.prototype.release=dn.prototype.release,dn.prototype.stop=dn.prototype.stop;var Tg=1;xe("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function Lr(e,t){var n=Va();this.l=e.maxAttempts==null?n.maxAttempts:e.maxAttempts,this.j=e.baseDelay==null?n.baseDelay:e.baseDelay,this.s=e.fuzzFactor==null?n.fuzzFactor:e.fuzzFactor,this.m=e.backoffFactor==null?n.backoffFactor:e.backoffFactor,this.g=0,this.h=this.j,(this.i=t===void 0?!1:t)&&(this.g=1)}function Id(e){var t,n;return q(function(i){if(i.g==1){if(e.g>=e.l)if(e.i)e.g=1,e.h=e.j;else throw new G(2,7,1010);return t=e.g,e.g++,t==0?i.return():(n=e.h*(1+(2*Math.random()-1)*e.s),O(i,new Promise(function(a){new Ke(a).$(n/1e3)}),2))}e.h*=e.m,ve(i)})}function Va(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function Bt(){var e,t,n=new Promise(function(i,a){e=i,t=a});return n.resolve=e,n.reject=t,n}Bt.prototype.resolve=function(){},Bt.prototype.reject=function(){};function ft(e,t){this.promise=e,this.i=t,this.g=null}function En(e){return new ft(Promise.reject(e),function(){return Promise.resolve()})}function Mi(){var e=Promise.reject(new G(2,7,7001));return e.catch(function(){}),new ft(e,function(){return Promise.resolve()})}function ps(e){return new ft(Promise.resolve(e),function(){return Promise.resolve()})}function Iu(e){return new ft(e,function(){return e.catch(function(){})})}ft.prototype.abort=function(){return this.g||(this.g=this.i()),this.g};function gc(e){return new ft(Promise.all(e.map(function(t){return t.promise})),function(){return Promise.all(e.map(function(t){return t.abort()}))})}ft.prototype.finally=function(e){return this.promise.then(function(){return e(!0)},function(){return e(!1)}),this},ft.prototype.ab=function(e,t){function n(d){return function(g){if(a.g&&d)l.reject(f);else{var m=d?e:t;m?i=Ol(m,g,l):(d?l.resolve:l.reject)(g)}}}function i(){return l.reject(f),a.abort()}var a=this,l=new Bt;l.catch(function(){});var f=new G(2,7,7001);return this.promise.then(n(!0),n(!1)),new ft(l,function(){return i()})};function Ol(e,t,n){try{var i=e(t);return i&&i.promise&&i.abort?(n.resolve(i.promise),function(){return i.abort()}):(n.resolve(i),function(){return Promise.resolve(i).then(function(){},function(){})})}catch(a){return n.reject(a),function(){return Promise.resolve()}}}Nn.Object.defineProperties(ft.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}}),xe("shaka.util.AbortableOperation",ft),ft.prototype.chain=ft.prototype.ab,ft.prototype.finally=ft.prototype.finally,ft.all=gc,ft.prototype.abort=ft.prototype.abort,ft.notAbortable=Iu,ft.completed=ps,ft.aborted=Mi,ft.failed=En;function Qr(){this.g=[]}function fu(e,t){e.g.push(t.finally(function(){to(e.g,t)}))}Qr.prototype.destroy=function(){for(var e=[],t=b(this.g),n=t.next();!n.done;n=t.next())n=n.value,n.promise.catch(function(){}),e.push(n.abort());return this.g=[],Promise.all(e)};function yn(e,t,n,i,a,l,f){Tt.call(this),this.i=!1,this.u=new Qr,this.g=new Set,this.h=new Set,this.m=e||null,this.l=t||null,this.D=n||null,this.H=i||null,this.I=a||null,this.K=l||null,this.J=f||null,this.B=this.C=!1,this.s=16e3,this.j=new Map}Xe(yn,Tt),w=yn.prototype,w.oh=function(e){this.C=e},w.ph=function(e){this.B=e};function Kn(e,t,n,i){i=i===void 0?!1:i,n=n||Pi;var a=hf.get(e);(!a||n>=a.priority)&&hf.set(e,{priority:n,rf:t,Tk:i})}function Eg(e,t){for(var n=b(e.g),i=n.next();!i.done;i=n.next())t.g.add(i.value);for(e=b(e.h),n=e.next();!n.done;n=e.next())t.h.add(n.value)}w.Wk=function(e){this.g.add(e)},w.Cl=function(e){this.g.delete(e)},w.tj=function(){this.g.clear()},w.Xk=function(e){this.h.add(e)},w.Dl=function(e){this.h.delete(e)},w.uj=function(){this.h.clear()},w.Sh=function(){this.j.clear()};function yi(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:n===void 0?null:n}}w.destroy=function(){return this.i=!0,this.g.clear(),this.h.clear(),this.j.clear(),Tt.prototype.release.call(this),this.u.destroy()},w.request=function(e,t,n){var i=this,a=new Ld;if(this.i){var l=Promise.reject(new G(2,7,7001));return l.catch(function(){}),new Od(l,function(){return Promise.resolve()},a)}t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=t.retryParameters?pa(t.retryParameters):Va(),t.uris=pa(t.uris),l=df(this,e,t,n);var f=l.ab(function(){return pm(i,e,t,n,new Lr(t.retryParameters,!1),0,null,a)}),d=f.ab(function(x){return Y1(i,e,x,n)}),g=Date.now(),m=0;l.promise.then(function(){m=Date.now()-g},function(){});var S=0;f.promise.then(function(){S=Date.now()},function(){});var T=d.ab(function(x){var M=Date.now()-S,R=x.response;return R.timeMs+=m,R.timeMs+=M,x.vk||!i.m||R.fromCache||t.method=="HEAD"||e!=li||i.m(R.timeMs,R.data.byteLength,Ag(n)),i.J&&i.J(e,R,n),R},function(x){throw x&&(x.severity=2),x});return l=new Od(T.promise,function(){return T.abort()},a),fu(this.u,l),l};function df(e,t,n,i){function a(d){l=l.ab(function(){return n.body&&(n.body=Yr(n.body)),d(t,n,i)})}var l=ps(void 0);e.I&&a(e.I),e=b(e.g);for(var f=e.next();!f.done;f=e.next())a(f.value);return l.ab(void 0,function(d){throw d instanceof G&&d.code==7001?d:new G(2,1,1006,d)})}function pm(e,t,n,i,a,l,f,d){e.C&&(n.uris[l]=n.uris[l].replace("https://","http://")),e.B&&(n.uris[l]=n.uris[l].replace("http://","https://")),0<l&&e.K&&e.K(t,i,n.uris[l],n.uris[l-1]);var g=new un(n.uris[l]),m=g.ac,S=!1;m||(m=location.protocol,m=m.slice(0,-1),yl(g,m),n.uris[l]=g.toString()),m=m.toLowerCase();var T=(m=hf.get(m))?m.rf:null;if(!T)return En(new G(2,1,1e3,g));var x=m.Tk;(g=e.j.get(g.Cb))&&(n.headers["common-access-token"]=g);var M=null,R=null,L=!1,I=!1,U;return Iu(Id(a)).ab(function(){if(e.i)return Mi();U=Date.now();var N=0;n.requestStartTime=Date.now();var j=T(n.uris[l],n,t,function(P,V,F){M&&M.stop(),R&&R.$(Y/1e3),e.m&&t==li&&(N++,n.packetNumber=N,e.m(P,V,Ag(i),n),S=!0,d.g=F)},function(P){I=!0,n.timeToFirstByte=Date.now()-n.requestStartTime,e.l&&e.l(P,n,t)},{minBytesForProgressEvents:e.s});if(!x)return j;var B=n.retryParameters.connectionTimeout;B&&(M=new Ke(function(){L=!0,j.abort()}),M.$(B/1e3));var Y=n.retryParameters.stallTimeout;return Y&&(R=new Ke(function(){L=!0,j.abort()})),j}).ab(function(N){M&&M.stop(),R&&R.stop(),N.timeMs==null&&(N.timeMs=Date.now()-U);var j=N.headers["common-access-token"];if(j){var B=new un(N.uri);e.j.set(B.Cb,j)}return j={response:N,vk:S},!I&&e.l&&e.l(N.headers,n,t),e.D&&e.D(n,N),j},function(N){if(M&&M.stop(),R&&R.stop(),e.H){var j=null,B=0;N instanceof G&&(j=N,N.code==1001&&(B=N.data[1])),e.H(n,j,B,L)}if(e.i)return Mi();if(L&&(N=new G(1,1,1003,n.uris[l],t)),N instanceof G){if(N.code==7001)throw N;if(N.code==1010)throw f;if(N.severity==1){if(j=new Map().set("error",N),j=new Te("retry",j),j.cancelable=!0,e.dispatchEvent(j),j.defaultPrevented)throw N;return l=(l+1)%n.uris.length,pm(e,t,n,i,a,l,N,d)}}throw N})}function Y1(e,t,n,i){var a=ps(void 0);e=b(e.h);for(var l=e.next(),f={};!l.done;f={Gi:void 0},l=e.next())f.Gi=l.value,a=a.ab(function(d){return function(){var g=n.response;return g.data&&(g.data=Yr(g.data)),(0,d.Gi)(t,g,i)}}(f));return a.ab(function(){return n},function(d){var g=2;if(d instanceof G){if(d.code==7001)throw d;g=d.severity}throw new G(g,1,1007,d)})}function Ag(e){if(e){var t=e.segment;if(e=e.stream,t&&e&&e.fastSwitching&&t.s)return!1}return!0}xe("shaka.net.NetworkingEngine",yn),yn.prototype.request=yn.prototype.request,yn.prototype.destroy=yn.prototype.destroy,yn.makeRequest=yi,yn.defaultRetryParameters=function(){return Va()},yn.prototype.clearCommonAccessTokenMap=yn.prototype.Sh,yn.prototype.clearAllResponseFilters=yn.prototype.uj,yn.prototype.unregisterResponseFilter=yn.prototype.Dl,yn.prototype.registerResponseFilter=yn.prototype.Xk,yn.prototype.clearAllRequestFilters=yn.prototype.tj,yn.prototype.unregisterRequestFilter=yn.prototype.Cl,yn.prototype.registerRequestFilter=yn.prototype.Wk,yn.unregisterScheme=function(e){hf.delete(e)},yn.registerScheme=Kn,yn.prototype.setForceHTTPS=yn.prototype.ph,yn.prototype.setForceHTTP=yn.prototype.oh;function Ld(){this.g=0}yn.NumBytesRemainingClass=Ld;function Od(e,t,n){ft.call(this,e,t),this.h=n}Xe(Od,ft),yn.PendingRequest=Od;var li=1;yn.RequestType={MANIFEST:0,SEGMENT:li,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8},yn.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6,MEDIATAILOR_SESSION_INFO:7,MEDIATAILOR_TRACKING_INFO:8,MEDIATAILOR_STATIC_RESOURCE:9,MEDIATAILOR_TRACKING_EVENT:10,INTERSTITIAL_ASSET_LIST:11,INTERSTITIAL_AD_URL:12};var Pi=3;yn.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Pi};var hf=new Map;function gs(e){this.g=!1,this.h=new Bt,this.i=e}gs.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then(function(){e.h.resolve()},function(){e.h.resolve()}))};function Mt(e,t){if(e.g)throw t instanceof G&&t.code==7003?t:new G(2,7,7003,t)}function ms(e){for(var t=new Map,n=b(Object.keys(e)),i=n.next();!i.done;i=n.next())i=i.value,t.set(i,e[i]);return t}function zo(e){var t={};return e.forEach(function(n,i){t[i]=n}),t}function hn(e,t){this.h=br(e),this.i=t==xg,this.g=0}w=hn.prototype,w.Ma=function(){return this.g<this.h.byteLength},w.Ta=function(){return this.g},w.getLength=function(){return this.h.byteLength},w.ha=function(){try{var e=this.h.getUint8(this.g);return this.g+=1,e}catch{throw Bo()}},w.Da=function(){try{var e=this.h.getUint16(this.g,this.i);return this.g+=2,e}catch{throw Bo()}},w.X=function(){try{var e=this.h.getUint32(this.g,this.i);return this.g+=4,e}catch{throw Bo()}},w.bh=function(){try{var e=this.h.getInt32(this.g,this.i);return this.g+=4,e}catch{throw Bo()}},w.Cd=function(){try{if(this.i)var e=this.h.getUint32(this.g,!0),t=this.h.getUint32(this.g+4,!0);else t=this.h.getUint32(this.g,!1),e=this.h.getUint32(this.g+4,!1)}catch{throw Bo()}if(2097151<t)throw new G(2,3,3001);return this.g+=8,t*Math.pow(2,32)+e},w.Tb=function(e){if(this.g+e>this.h.byteLength)throw Bo();var t=at(this.h,this.g,e);return this.g+=e,t},w.skip=function(e){if(this.g+e>this.h.byteLength)throw Bo();this.g+=e},w.Hi=function(e){if(this.g<e)throw Bo();this.g-=e},w.seek=function(e){if(0>e||e>this.h.byteLength)throw Bo();this.g=e},w.$c=function(){for(var e=this.g;this.Ma()&&this.h.getUint8(this.g)!=0;)this.g+=1;return e=at(this.h,e,this.g-e),this.g+=1,Rn(e)};function Bo(){return new G(2,3,3e3)}xe("shaka.util.DataViewReader",hn),hn.prototype.readTerminatedString=hn.prototype.$c,hn.prototype.seek=hn.prototype.seek,hn.prototype.rewind=hn.prototype.Hi,hn.prototype.skip=hn.prototype.skip,hn.prototype.readBytes=hn.prototype.Tb,hn.prototype.readUint64=hn.prototype.Cd,hn.prototype.readInt32=hn.prototype.bh,hn.prototype.readUint32=hn.prototype.X,hn.prototype.readUint16=hn.prototype.Da,hn.prototype.readUint8=hn.prototype.ha,hn.prototype.getLength=hn.prototype.getLength,hn.prototype.getPosition=hn.prototype.Ta,hn.prototype.hasMoreData=hn.prototype.Ma;var xg=1;hn.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:xg};function Zt(){this.i=new Map,this.h=new Map,this.g=!1}w=Zt.prototype,w.box=function(e,t){return e=qh(e),this.i.set(e,gm),this.h.set(e,t),this},w.W=function(e,t){return e=qh(e),this.i.set(e,Yh),this.h.set(e,t),this},w.stop=function(){this.g=!0},w.parse=function(e,t,n){for(e=new hn(e,0),this.g=!1;e.Ma()&&!this.g;)this.yd(0,e,t,n)},w.yd=function(e,t,n,i){var a=t.Ta();if(i&&a+8>t.getLength())this.g=!0;else{var l=t.X(),f=t.X(),d=Ud(f),g=!1;switch(l){case 0:l=t.getLength()-a;break;case 1:if(i&&t.Ta()+8>t.getLength()){this.g=!0;return}l=t.Cd(),g=!0}var m=this.h.get(f);if(m){var S=null,T=null;if(this.i.get(f)==Yh){if(i&&t.Ta()+4>t.getLength()){this.g=!0;return}T=t.X(),S=T>>>24,T&=16777215}f=a+l,n&&f>t.getLength()&&(f=t.getLength()),i&&f>t.getLength()?this.g=!0:(i=f-t.Ta(),t=0<i?t.Tb(i):new Uint8Array(0),t=new hn(t,0),m({name:d,parser:this,partialOkay:n||!1,version:S,flags:T,reader:t,size:l,start:a+e,has64BitSize:g}))}else t.skip(Math.min(a+l-t.Ta(),t.getLength()-t.Ta()))}};function mt(e){for(var t=mc(e);e.reader.Ma()&&!e.parser.g;)e.parser.yd(e.start+t,e.reader,e.partialOkay)}function Ul(e){for(var t=mc(e),n=e.reader.X(),i=0;i<n&&(e.parser.yd(e.start+t,e.reader,e.partialOkay),!e.parser.g);i++);}function Ta(e){var t=mc(e);for(e.reader.skip(78);e.reader.Ma()&&!e.parser.g;)e.parser.yd(e.start+t,e.reader,e.partialOkay)}function Vh(e){var t=mc(e);e.reader.skip(8);var n=e.reader.Da();for(e.reader.skip(6),n==2?e.reader.skip(48):e.reader.skip(12),n==1&&e.reader.skip(16);e.reader.Ma()&&!e.parser.g;)e.parser.yd(e.start+t,e.reader,e.partialOkay)}function ys(e){return function(t){e(t.reader.Tb(t.reader.getLength()-t.reader.Ta()))}}function qh(e){var t=0;e=b(e);for(var n=e.next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function Ud(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,e&255)}function mc(e){return 8+(e.has64BitSize?8:0)+(e.flags!=null?4:0)}xe("shaka.util.Mp4Parser",Zt),Zt.headerSize=mc,Zt.typeToString=Ud,Zt.allData=ys,Zt.audioSampleEntry=Vh,Zt.visualSampleEntry=Ta,Zt.sampleDescription=Ul,Zt.children=mt,Zt.prototype.parseNext=Zt.prototype.yd,Zt.prototype.parse=Zt.prototype.parse,Zt.prototype.stop=Zt.prototype.stop,Zt.prototype.fullBox=Zt.prototype.W,Zt.prototype.box=Zt.prototype.box;var gm=0,Yh=1;function Xh(e){var t=this;this.g=[],this.h=[],this.data=[],new Zt().box("moov",mt).box("moof",mt).W("pssh",function(n){if(!(1<n.version)){var i=at(n.reader.h,-12,n.size);if(t.data.push(i),t.g.push(nu(n.reader.Tb(16))),0<n.version){i=n.reader.X();for(var a=0;a<i;a++){var l=nu(n.reader.Tb(16));t.h.push(l)}}}}).parse(e)}function kd(e,t,n,i){var a=e.length,l=t.length+16+a;0<i&&(l+=4+16*n.size);var f=new Uint8Array(l),d=br(f),g=0;if(d.setUint32(g,l),g+=4,d.setUint32(g,1886614376),g+=4,1>i?d.setUint32(g,0):d.setUint32(g,16777216),g+=4,f.set(t,g),g+=t.length,0<i)for(d.setUint32(g,n.size),g+=4,t=b(n),n=t.next();!n.done;n=t.next())n=Io(n.value),f.set(n,g),g+=n.length;return d.setUint32(g,a),f.set(e,g+4),f}function Fh(e){var t=this;this.D=e,this.j=this.B=null,this.oa=this.ba=!1,this.J=0,this.h=null,this.s=new Ft,this.i=new Map,this.S=[],this.C=new Map,this.L=!1,this.m=new Bt,this.g=null,this.u=function(n){n.severity==2&&t.m.reject(n),e.onError(n)},this.Y=new Map,this.ea=new Map,this.M=new Ke(function(){return F1(t)}),this.P=!1,this.N=[],this.U=!1,this.K=new Ke(function(){Po(t)}),this.m.catch(function(){}),this.l=new gs(function(){return mm(t)}),this.Z=!1,this.H=this.I=null,this.R=function(){return!1}}w=Fh.prototype,w.destroy=function(){return this.l.destroy()};function mm(e){return q(function(t){switch(t.g){case 1:return e.s.release(),e.s=null,e.m.reject(),e.K.stop(),e.K=null,e.M.stop(),e.M=null,O(t,Kh(e),2);case 2:if(!e.j){t.A(3);break}return Le(t,4),O(t,e.j.setMediaKeys(null),6);case 6:Ge(t,5);break;case 4:je(t);case 5:e.j=null;case 3:e.h=null,e.B=null,e.C=new Map,e.g=null,e.u=function(){},e.D=null,e.Z=!1,e.I=null,ve(t)}})}w.configure=function(e,t){this.g=e,t&&(this.R=t),this.K&&this.K.xa(this.g.updateExpirationTime)};function Jy(e,t,n){return e.oa=!0,e.C=new Map,e.P=n,X1(e,t,!1)}function kl(e,t,n,i){i=i===void 0?!0:i,e.C=new Map,n=b(n);for(var a=n.next();!a.done;a=n.next())e.C.set(a.value,{initData:null,initDataType:null});for(n=b(e.g.persistentSessionsMetadata),a=n.next();!a.done;a=n.next())a=a.value,e.C.set(a.sessionId,{initData:a.initData,initDataType:a.initDataType});return e.P=0<e.C.size,X1(e,t,i)}function ym(e,t,n,i,a,l){var f=new Map;return a={audioCapabilities:a,videoCapabilities:l,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:t},a.drmInfos=[{keySystem:t,licenseServerUri:n,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:i,serverCertificateUri:"",initData:null,keyIds:null}],f.set(t,a),$y(e,f,[])}function X1(e,t,n){var i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P;return q(function(V){if(V.g==1){for(gf(e.g.clearKeys,t),i=t.some(function(F){return!!(F.video&&F.video.drmInfos.length||F.audio&&F.audio.drmInfos.length)}),!i&&n&&(a=ms(e.g.servers),Q1(t,a)),l=new Set,f=b(t),d=f.next();!d.done;d=f.next())for(g=d.value,m=jd(g),S=b(m),T=S.next();!T.done;T=S.next())x=T.value,l.add(x);for(M=b(l),R=M.next();!R.done;R=M.next())L=R.value,nv(L,ms(e.g.servers),ms(e.g.advanced||{}),e.g.keySystemsMapping);for(I=function(F,K){var ee=[];F=b(F);for(var Q=F.next();!Q.done;Q=F.next()){Q=Q.value;var ne=Q[K]||e.g.advanced&&e.g.advanced[Q.keySystem]&&e.g.advanced[Q.keySystem][K]||"",ie;if((ie=ne=="")&&(ie=(ie=Q.keySystem)?!!ie.match(/^com\.widevine\.alpha/):!1),ie&&(K=="audioRobustness"?ne=[e.g.defaultAudioRobustnessForWidevine]:K=="videoRobustness"&&(ne=[e.g.defaultVideoRobustnessForWidevine])),typeof ne=="string")ee.push(Q);else if(Array.isArray(ne))for(ne.length===0&&(ne=[""]),ne=b(ne),ie=ne.next();!ie.done;ie=ne.next()){var ue={};ee.push(Object.assign({},Q,(ue[K]=ie.value,ue)))}}return ee},U=new Set,N=b(t),j=N.next();!j.done;j=N.next())B=j.value,B.video&&!U.has(B.video)&&(B.video.drmInfos=I(B.video.drmInfos,"videoRobustness"),B.video.drmInfos=I(B.video.drmInfos,"audioRobustness"),U.add(B.video)),B.audio&&!U.has(B.audio)&&(B.audio.drmInfos=I(B.audio.drmInfos,"videoRobustness"),B.audio.drmInfos=I(B.audio.drmInfos,"audioRobustness"),U.add(B.audio));return U.clear(),O(V,gg(t,e.P,e.Z,e.g.preferredKeySystems),2)}return Mt(e.l),Y=i||Object.keys(e.g.servers).length,Y?(P=$y(e,void 0,t),V.return(i?P:P.catch(function(){}))):(e.ba=!0,V.return(Promise.resolve()))})}function wg(e){var t;return q(function(n){switch(n.g){case 1:if(e.j.mediaKeys)return n.return();if(!e.I){n.A(2);break}return O(n,e.I,3);case 3:return Mt(e.l),n.return();case 2:return Le(n,4),e.I=e.j.setMediaKeys(e.B),O(n,e.I,6);case 6:Ge(n,5);break;case 4:t=je(n),e.u(new G(2,6,6003,t.message));case 5:Mt(e.l),ve(n)}})}function Lu(e,t){return q(function(n){if(n.g==1)return O(n,wg(e),2);Vn(e,t.initDataType,at(t.initData)),ve(n)})}w.Wb=function(e){var t=this,n;return q(function(i){if(i.g==1)return t.j===e?i.return():t.B?(t.j=e,t.s.wa(t.j,"play",function(){for(var a=b(t.N),l=a.next();!l.done;l=a.next())_d(t,l.value);t.U=!0,t.N=[]}),t.j.remote?(t.s.o(t.j.remote,"connect",function(){return Kh(t)}),t.s.o(t.j.remote,"connecting",function(){return Kh(t)}),t.s.o(t.j.remote,"disconnect",function(){return Kh(t)})):"webkitCurrentPlaybackTargetIsWireless"in t.j&&t.s.o(t.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Kh(t)}),t.H=t.h&&t.h.initData.find(function(a){return 0<a.initData.length})||null,n=t.h.keySystem,n.startsWith("com.microsoft.playready.recommendation")||n=="com.apple.fps"||!(t.H||t.C.size||t.g.parseInbandPsshEnabled)?(t.s.o(t.j,"encrypted",function(a){return Lu(t,a)}),i.A(2)):O(i,wg(t),2)):(t.s.wa(e,"encrypted",function(){t.u(new G(2,6,6010))}),i.return());yc(t).catch(function(){}),ve(i)})};function Cg(e){var t,n,i,a,l;return q(function(f){switch(f.g){case 1:if(!e.B||!e.h)return f.return();if(!e.h.serverCertificateUri||e.h.serverCertificate&&e.h.serverCertificate.length){f.A(2);break}return t=yi([e.h.serverCertificateUri],e.g.retryParameters),Le(f,3),n=e.D.kc.request(5,t,{isPreload:e.R()}),O(f,n.promise,5);case 5:i=f.h,e.h.serverCertificate=at(i.data),Ge(f,4);break;case 3:throw a=je(f),new G(2,6,6017,a);case 4:if(e.l.g)return f.return();case 2:return!e.h.serverCertificate||!e.h.serverCertificate.length?f.return():(Le(f,6),O(f,e.B.setServerCertificate(e.h.serverCertificate),8));case 8:Ge(f,0);break;case 6:throw l=je(f),new G(2,6,6004,l.message)}})}function Mg(e,t){var n,i,a;return q(function(l){if(l.g==1)return O(l,pf(e,t,{initData:null,initDataType:null}),2);if(l.g!=3)return n=l.h,n?(i=[],(a=e.i.get(n))&&(a.Hb=new Bt,i.push(a.Hb)),i.push(n.remove()),O(l,Promise.all(i),3)):l.return();e.i.delete(n),ve(l)})}function yc(e){var t,n,i,a,l;return q(function(f){if(f.g==1)return e.C.size?(e.C.forEach(function(d,g){pf(e,g,d)}),O(f,e.m,3)):f.A(2);if(f.g!=2){if(t=e.h&&e.h.keyIds||new Set([]),0<t.size&&K1(e))return f.return(e.m);e.L=!1,e.m=new Bt,e.m.catch(function(){})}for(n=(e.h?e.h.initData:[])||[],i=b(n),a=i.next();!a.done;a=i.next())l=a.value,Vn(e,l.initDataType,l.initData);return zd(e)&&e.m.resolve(),f.return(e.m)})}function Vn(e,t,n){if(n.length){if(e.g.ignoreDuplicateInitData){var i=e.i.values();i=b(i);for(var a=i.next();!a.done;a=i.next())if(ji(n,a.value.initData))return;var l=!1;if(e.C.forEach(function(f){!l&&ji(n,f.initData)&&(l=!0)}),l)return}e.L=!0,0<e.i.size&&zd(e)&&(e.m.resolve(),e.L=!1,e.m=new Bt,e.m.catch(function(){})),Nd(e,t,n,e.h.sessionType)}}function Wy(e){return e=e.i.keys(),e=Zp(e,function(t){return t.sessionId}),Array.from(e)}w.Dg=function(){var e=this,t=this.i.keys();return t=Zp(t,function(n){var i=e.i.get(n);return{sessionId:n.sessionId,sessionType:i.type,initData:i.initData,initDataType:i.initDataType}}),Array.from(t)},w.Qd=function(){var e=1/0,t=this.i.keys();t=b(t);for(var n=t.next();!n.done;n=t.next())n=n.value,isNaN(n.expiration)||(e=Math.min(e,n.expiration));return e},w.Re=function(){return zo(this.ea)};function $y(e,t,n){var i,a,l,f,d,g,m,S;return q(function(T){switch(T.g){case 1:if(i=new Map,n.length){a=ev(e,n,i),T.A(2);break}return O(T,Nl(e,t),3);case 3:a=T.h;case 2:if(l=a,!l)throw navigator.requestMediaKeySystemAccess?new G(2,6,6001):new G(2,6,6020);if(Mt(e.l),Le(T,4),l.getConfiguration(),f=e.g.keySystemsMapping[l.keySystem]||l.keySystem,n.length){var x=f,M=i.get(f),R=[],L=[],I=[],U=[],N=[],j=new Set,B=new Set;Sm(M,R,L,U,I,N,j,B);var Y=e.P?"persistent-license":"temporary";for(x={keySystem:x,encryptionScheme:R[0],licenseServerUri:L[0],distinctiveIdentifierRequired:M[0].distinctiveIdentifierRequired,persistentStateRequired:M[0].persistentStateRequired,sessionType:M[0].sessionType||Y,audioRobustness:M[0].audioRobustness||"",videoRobustness:M[0].videoRobustness||"",serverCertificate:U[0],serverCertificateUri:I[0],initData:N,keyIds:j},0<B.size&&(x.keySystemUris=B),M=b(M),B=M.next();!B.done;B=M.next())B=B.value,B.distinctiveIdentifierRequired&&(x.distinctiveIdentifierRequired=B.distinctiveIdentifierRequired),B.persistentStateRequired&&(x.persistentStateRequired=B.persistentStateRequired);M=x}else M=f,B=t.get(f),x=[],R=[],L=[],I=[],U=[],N=new Set,Sm(B.drmInfos,x,R,I,L,U,N),M={keySystem:M,encryptionScheme:x[0],licenseServerUri:R[0],distinctiveIdentifierRequired:B.distinctiveIdentifier=="required",persistentStateRequired:B.persistentState=="required",sessionType:B.sessionTypes[0]||"temporary",audioRobustness:(B.audioCapabilities?B.audioCapabilities[0].robustness:"")||"",videoRobustness:(B.videoCapabilities?B.videoCapabilities[0].robustness:"")||"",serverCertificate:I[0],serverCertificateUri:L[0],initData:U,keyIds:N};if(e.h=M,!e.h.licenseServerUri)throw new G(2,6,6012,e.h.keySystem);return O(T,l.createMediaKeys(),6);case 6:if(d=T.h,Mt(e.l),e.B=d,!(e.g.minHdcpVersion!=""&&"getStatusForPolicy"in e.B)){T.A(7);break}return Le(T,8),O(T,e.B.getStatusForPolicy({minHdcpVersion:e.g.minHdcpVersion}),10);case 10:if(g=T.h,g!="usable")throw new G(2,6,6018);Mt(e.l),Ge(T,7,4);break;case 8:throw m=je(T,4),m instanceof G?m:new G(2,6,6019,m.message);case 7:return e.ba=!0,O(T,Cg(e),11);case 11:Mt(e.l),Ge(T,0);break;case 4:throw S=je(T),Mt(e.l,S),e.h=null,S instanceof G?S:new G(2,6,6002,S.message)}})}function ev(e,t,n){for(var i=b(t),a=i.next();!a.done;a=i.next()){a=b(jd(a.value));for(var l=a.next();!l.done;l=a.next())l=l.value,n.has(l.keySystem)||n.set(l.keySystem,[]),n.get(l.keySystem).push(l)}if(n.size==1&&n.has(""))throw new G(2,6,6e3);i=e.g.preferredKeySystems,i.length||(a=ms(e.g.servers),a.size==1&&(i=Array.from(a.keys()))),a=b(i);var f=a.next();for(l={};!f.done;l={Ei:void 0},f=a.next()){l.Ei=f.value,f=b(t);for(var d=f.next();!d.done;d=f.next())if(d=d.value.decodingInfos.find(function(T){return function(x){return x.supported&&x.keySystemAccess!=null&&x.keySystemAccess.keySystem==T.Ei}}(l)))return d.keySystemAccess}for(a=b([!0,!1]),l=a.next();!l.done;l=a.next())for(l=l.value,f=b(t),d=f.next();!d.done;d=f.next()){d=b(d.value.decodingInfos);for(var g=d.next();!g.done;g=d.next())if(g=g.value,g.supported&&g.keySystemAccess){var m=g.keySystemAccess.keySystem;if(!i.includes(m)){var S=n.get(m);for(!S&&e.g.keySystemsMapping[m]&&(S=n.get(e.g.keySystemsMapping[m])),m=b(S),S=m.next();!S.done;S=m.next())if(!!S.value.licenseServerUri==l)return g.keySystemAccess}}}return null}function Nl(e,t){var n,i,a,l,f,d,g,m,S,T,x,M,R,L,I,U;return q(function(N){switch(N.g){case 1:if(t.size==1&&t.has(""))throw new G(2,6,6e3);for(i=b(t.values()),a=i.next();!a.done;a=i.next())l=a.value,l.audioCapabilities.length==0&&delete l.audioCapabilities,l.videoCapabilities.length==0&&delete l.videoCapabilities;f=b(e.g.preferredKeySystems),d=f.next();case 2:if(d.done){N.A(4);break}if(g=d.value,!t.has(g)){N.A(3);break}return m=t.get(g),Le(N,6),O(N,navigator.requestMediaKeySystemAccess(g,[m]),8);case 8:return n=N.h,N.return(n);case 6:je(N);case 7:Mt(e.l);case 3:d=f.next(),N.A(2);break;case 4:S=b([!0,!1]),T=S.next();case 9:if(T.done){N.A(11);break}x=T.value,M=b(t.keys()),R=M.next();case 12:if(R.done){T=S.next(),N.A(9);break}if(L=R.value,I=t.get(L),U=I.drmInfos.some(function(j){return!!j.licenseServerUri}),U!=x){N.A(13);break}return Le(N,15),O(N,navigator.requestMediaKeySystemAccess(L,[I]),17);case 17:return n=N.h,N.return(n);case 15:je(N);case 16:Mt(e.l);case 13:R=M.next(),N.A(12);break;case 11:return N.return(n)}})}function bg(e){zd(e)&&e.m.resolve()}function Rg(e,t){new Ke(function(){t.loaded=!0,bg(e)}).$(Bd)}function pf(e,t,n){var i,a,l,f,d,g,m;return q(function(S){switch(S.g){case 1:try{i=e.B.createSession("persistent-license")}catch(T){return a=new G(2,6,6005,T.message),e.u(a),S.return(Promise.reject(a))}return e.s.o(i,"message",function(T){e.j&&e.g.delayLicenseRequestUntilPlayed&&e.j.paused&&!e.U?e.N.push(T):_d(e,T)}),e.s.o(i,"keystatuseschange",function(T){return vm(e,T)}),l={initData:n.initData,initDataType:n.initDataType,loaded:!1,Xg:1/0,Hb:null,type:"persistent-license"},e.i.set(i,l),Le(S,2),O(S,i.load(t),4);case 4:return f=S.h,Mt(e.l),f||(e.i.delete(i),d=e.g.persistentSessionOnlinePlayback?1:2,e.u(new G(d,6,6013)),l.loaded=!0),Rg(e,l),bg(e),S.return(i);case 2:g=je(S),Mt(e.l,g),e.i.delete(i),m=e.g.persistentSessionOnlinePlayback?1:2,e.u(new G(m,6,6005,g.message)),l.loaded=!0,bg(e);case 3:return S.return(Promise.resolve())}})}function Nd(e,t,n,i){try{var a=e.B.createSession(i)}catch(l){e.u(new G(2,6,6005,l.message));return}e.s.o(a,"message",function(l){e.j&&e.g.delayLicenseRequestUntilPlayed&&e.j.paused&&!e.U?e.N.push(l):_d(e,l)}),e.s.o(a,"keystatuseschange",function(l){return vm(e,l)}),e.i.set(a,{initData:n,initDataType:t,loaded:!1,Xg:1/0,Hb:null,type:i});try{n=e.g.initDataTransform(n,t,e.h)}catch(l){t=l,l instanceof G||(t=new G(2,6,6016,l)),e.u(t);return}e.g.logLicenseExchange&&is(n),a.generateRequest(t,n).catch(function(l){if(!e.l.g){e.i.delete(a);var f=l.errorCode;if(f&&f.systemCode){var d=f.systemCode;0>d&&(d+=Math.pow(2,32)),d="0x"+d.toString(16)}e.u(new G(2,6,6006,l.message,l,d))}})}function tv(e){return q(function(t){return t.g==1?e.L?O(t,e.m,3):t.A(0):O(t,Promise.all(e.S.map(function(n){return n.promise})),0)})}function _d(e,t){var n,i,a,l,f,d,g,m,S,T,x,M,R,L;q(function(I){switch(I.g){case 1:if(n=t.target,e.g.logLicenseExchange&&is(t.message),i=e.i.get(n),a=e.h.licenseServerUri,l=e.g.advanced[e.h.keySystem],t.messageType=="individualization-request"&&l&&l.individualizationServer&&(a=l.individualizationServer),f=yi([a],e.g.retryParameters),f.body=t.message,f.method="POST",f.licenseRequestType=t.messageType,f.sessionId=n.sessionId,f.drmInfo=e.h,i&&(f.initData=i.initData,f.initDataType=i.initDataType),l&&l.headers)for(d in l.headers)f.headers[d]=l.headers[d];if(e.h.keySystem==="org.w3.clearkey"){var U=f,N=e.h;try{var j=ka(U.body);if(j){var B=JSON.parse(j);B.type||(B.type=N.sessionType,U.body=Do(JSON.stringify(B)))}}catch{}}if(md(e.h.keySystem))if(U=Ro(f.body,!0,!0),U.includes("PlayReadyKeyMessage")){for(U=us(U,"PlayReadyKeyMessage"),N=Dn(U,"HttpHeader"),N=b(N),j=N.next();!j.done;j=N.next())B=j.value,j=Dn(B,"name")[0],B=Dn(B,"value")[0],f.headers[Gn(j)]=Gn(B);U=Dn(U,"Challenge")[0],f.body=tu(Gn(U))}else f.headers["Content-Type"]="text/xml; charset=utf-8";return g=Date.now(),Le(I,2),S=e.D.kc.request(2,f,{isPreload:e.R()}),e.S.push(S),O(I,S.promise,4);case 4:m=I.h,to(e.S,S),Ge(I,3);break;case 2:return T=je(I),e.l.g||(x=new G(2,6,6007,T),e.i.size==1?(e.u(x),i&&i.Hb&&i.Hb.reject(x)):(i&&i.Hb&&i.Hb.reject(x),e.i.delete(n),zd(e)&&(e.m.resolve(),e.M.$(.1)))),I.return();case 3:return e.l.g?I.return():(e.J+=(Date.now()-g)/1e3,e.g.logLicenseExchange&&is(m.data),Le(I,5),O(I,n.update(m.data),7));case 7:Ge(I,6);break;case 5:return M=je(I),R=new G(2,6,6008,M.message),e.u(R),i&&i.Hb&&i.Hb.reject(R),I.return();case 6:if(e.l.g)return I.return();L=new Te("drmsessionupdate"),e.D.onEvent(L),i&&(i.Hb&&i.Hb.resolve(),Rg(e,i)),ve(I)}})}function vm(e,t){t=t.target;var n=e.i.get(t),i=!1;t.keyStatuses.forEach(function(l,f){if(typeof f=="string"){var d=f;f=l,l=d}if(md(e.h.keySystem)&&f.byteLength==16&&(Ws()||Fr()||Tn("sony.hbbtv.tv.G5"))){d=br(f);var g=d.getUint32(0,!0),m=d.getUint16(4,!0),S=d.getUint16(6,!0);d.setUint32(0,g,!1),d.setUint16(4,m,!1),d.setUint16(6,S,!1)}l!="status-pending"&&(n.loaded=!0),l=="expired"&&(i=!0),f=nu(f).slice(0,32),e.Y.set(f,l)});var a=t.expiration-Date.now();(0>a||i&&1e3>a)&&n&&!n.Hb&&(e.i.delete(t),Dg(t)),zd(e)&&(e.m.resolve(),e.M.$(Z1))}function F1(e){var t=e.Y,n=e.ea;n.clear(),t.forEach(function(i,a){return n.set(a,i)}),t=Array.from(n.values()),t.length&&t.every(function(i){return i=="expired"})&&e.u(new G(2,6,6014)),e.D.nf(zo(n))}function dT(){var e,t,n,i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne,ie,ue,ce,le,Se;return q(function(ke){if(ke.g==1){if(e="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" "),!(oe.MediaKeys&&oe.navigator&&oe.navigator.requestMediaKeySystemAccess&&oe.MediaKeySystemAccess&&oe.MediaKeySystemAccess.prototype.getConfiguration)){for(t={},n=b(e),i=n.next();!i.done;i=n.next())a=i.value,t[a]=null;return ke.return(t)}for(l="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" "),f=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],d=["150","2000","3000"],g={"com.widevine.alpha":f,"com.widevine.alpha.experiment":f,"com.microsoft.playready.recommendation":d},m=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],S=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],T={videoCapabilities:m,audioCapabilities:S,initDataTypes:["cenc","sinf","skd","keyids"]},x=[null,"cenc","cbcs","cbcs-1-9"],M=new Map,R=function(pt,$e){var fn,Ht,Lt,_t,an,Rt,Yt,vt,Dt,kn,Vr,mi,Ai;return q(function(hr){switch(hr.g){case 1:return Le(hr,2),O(hr,$e.createMediaKeys(),5);case 5:fn=hr.h;case 4:Ge(hr,3);break;case 2:return je(hr),hr.return();case 3:if(Lt=(Ht=$e.getConfiguration().sessionTypes)?Ht.includes("persistent-license"):!1,da()&&(Lt=!1),_t=$e.getConfiguration().videoCapabilities,an=$e.getConfiguration().audioCapabilities,Rt={persistentState:Lt,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},M.has(pt)&&M.get(pt)?Rt=M.get(pt):M.set(pt,Rt),(Yt=_t[0].encryptionScheme)&&!Rt.encryptionSchemes.includes(Yt)&&Rt.encryptionSchemes.push(Yt),(vt=_t[0].robustness)&&!Rt.videoRobustnessLevels.includes(vt)&&Rt.videoRobustnessLevels.push(vt),(Dt=an[0].robustness)&&!Rt.audioRobustnessLevels.includes(Dt)&&Rt.audioRobustnessLevels.push(Dt),"getStatusForPolicy"in fn){for(kn=[],Vr=b(l),mi=Vr.next(),Ai={};!mi.done;Ai={Ud:void 0},mi=Vr.next())Ai.Ud=mi.value,Rt.minHdcpVersions.includes(Ai.Ud)||kn.push(fn.getStatusForPolicy({minHdcpVersion:Ai.Ud}).then(function(oa){return function(z1){z1!="usable"||Rt.minHdcpVersions.includes(oa.Ud)||Rt.minHdcpVersions.push(oa.Ud)}}(Ai)));return O(hr,Promise.all(kn),0)}hr.A(0)}})},L=function(pt,$e,fn,Ht){var Lt,_t,an,Rt,Yt,vt,Dt,kn,Vr,mi;return q(function(Ai){switch(Ai.g){case 1:for(Le(Ai,2),Lt=pa(T),_t=b(Lt.videoCapabilities),an=_t.next();!an.done;an=_t.next())Rt=an.value,Rt.encryptionScheme=$e,Rt.robustness=fn;for(Yt=b(Lt.audioCapabilities),vt=Yt.next();!vt.done;vt=Yt.next())Dt=vt.value,Dt.encryptionScheme=$e,Dt.robustness=Ht;return kn=pa(Lt),kn.persistentState="required",kn.sessionTypes=["persistent-license"],Vr=[kn,Lt],eu()?O(Ai,sf(5,navigator.requestMediaKeySystemAccess(pt,Vr)),7):O(Ai,navigator.requestMediaKeySystemAccess(pt,Vr),6);case 6:mi=Ai.h,Ai.A(5);break;case 7:mi=Ai.h;case 5:return O(Ai,R(pt,mi),8);case 8:Ge(Ai,0);break;case 2:je(Ai),ve(Ai)}})},I=function(pt,$e,fn,Ht){var Lt,_t,an;return q(function(Rt){switch(Rt.g){case 1:return Le(Rt,2),Lt={type:"media-source",video:{contentType:m[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:S[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:pt,video:{encryptionScheme:$e,robustness:fn},audio:{encryptionScheme:$e,robustness:Ht}}},eu()?O(Rt,sf(5,navigator.mediaCapabilities.decodingInfo(Lt)),7):O(Rt,navigator.mediaCapabilities.decodingInfo(Lt),6);case 6:_t=Rt.h,Rt.A(5);break;case 7:_t=Rt.h;case 5:return an=_t.keySystemAccess,O(Rt,R(pt,an),8);case 8:Ge(Rt,0);break;case 2:je(Rt),ve(Rt)}})},U=b(e),N=U.next();!N.done;N=U.next())j=N.value,M.set(j,null);for(B=function(pt){return!(pt==="org.w3.clearkey"&&ai())},Y=[],P=b(x),V=P.next();!V.done;V=P.next())for(F=V.value,K=b(e),ee=K.next();!ee.done;ee=K.next())Q=ee.value,B(Q)&&(Y.push(L(Q,F,"","")),Y.push(I(Q,F,"","")));for(ne=b(e),ie=ne.next();!ie.done;ie=ne.next())for(ue=ie.value,ce=b(g[ue]||[]),le=ce.next();!le.done;le=ce.next())Se=le.value,B(ue)&&(Y.push(L(ue,null,Se,"")),Y.push(L(ue,null,"",Se)),Y.push(I(ue,null,Se,"")),Y.push(I(ue,null,"",Se)));return O(ke,Promise.all(Y),2)}return ke.return(zo(M))})}function Dg(e){return q(function(t){if(t.g==1)return Le(t,2),O(t,sf(Ig,Promise.all([e.close().catch(function(){}),e.closed])),4);if(t.g!=2)return Ge(t,0);je(t),ve(t)})}function Kh(e){var t;return q(function(n){return t=Array.from(e.i.entries()),e.i.clear(),O(n,Promise.all(t.map(function(i){i=b(i);var a=i.next().value,l=i.next().value;return q(function(f){if(f.g==1)return Le(f,2),e.oa||e.C.has(a.sessionId)||l.type!=="persistent-license"||e.g.persistentSessionOnlinePlayback?O(f,Dg(a),5):O(f,a.remove(),5);if(f.g!=2)return Ge(f,0);je(f),ve(f)})})),0)})}function jd(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function Po(e){e.i.forEach(function(t,n){var i=t.Xg,a=n.expiration;isNaN(a)&&(a=1/0),a!=i&&(e.D.onExpirationUpdated(n.sessionId,a),t.Xg=a)})}function zd(e){return e=e.i.values(),P1(e,function(t){return t.loaded})}function K1(e){for(var t=b(e.h&&e.h.keyIds||new Set([])),n=t.next();!n.done;n=t.next())if(e.Y.get(n.value)!=="usable")return!1;return!0}function Q1(e,t){var n=[];for(t.forEach(function(i,a){n.push({keySystem:a,licenseServerUri:i,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})}),e=b(e),t=e.next();!t.done;t=e.next())t=t.value,t.video&&(t.video.drmInfos=n),t.audio&&(t.audio.drmInfos=n)}function Sm(e,t,n,i,a,l,f,d){var g=[];e=b(e);for(var m=e.next(),S={};!m.done;S={Pa:void 0},m=e.next()){if(S.Pa=m.value,t.includes(S.Pa.encryptionScheme)||t.push(S.Pa.encryptionScheme),S.Pa.keySystem=="org.w3.clearkey"&&S.Pa.licenseServerUri.startsWith("data:application/json;base64,")?g.includes(S.Pa.licenseServerUri)||g.push(S.Pa.licenseServerUri):n.includes(S.Pa.licenseServerUri)||n.push(S.Pa.licenseServerUri),a.includes(S.Pa.serverCertificateUri)||a.push(S.Pa.serverCertificateUri),S.Pa.serverCertificate&&(i.some(function(M){return function(R){return ji(R,M.Pa.serverCertificate)}}(S))||i.push(S.Pa.serverCertificate)),S.Pa.initData){m=b(S.Pa.initData);for(var T=m.next(),x={};!T.done;x={Pg:void 0},T=m.next())x.Pg=T.value,l.some(function(M){return function(R){var L=M.Pg;return R.keyId&&R.keyId==L.keyId?!0:R.initDataType==L.initDataType&&ji(R.initData,L.initData)}}(x))||l.push(x.Pg)}if(S.Pa.keyIds)for(m=b(S.Pa.keyIds),T=m.next();!T.done;T=m.next())f.add(T.value);if(S.Pa.keySystemUris&&d)for(S=b(S.Pa.keySystemUris),m=S.next();!m.done;m=S.next())d.add(m.value)}if(g.length==1)n.push(g[0]);else if(0<g.length){for(t=[],g=b(g),i=g.next();!i.done;i=g.next())i=oe.atob(i.value.split("data:application/json;base64,").pop()),i=JSON.parse(i),t.push.apply(t,Ue(i.keys));g=JSON.stringify({keys:t}),n.push("data:application/json;base64,"+oe.btoa(g))}}function nv(e,t,n,i){var a=e.keySystem;a&&(a!="org.w3.clearkey"||!e.licenseServerUri)&&(t.size&&t.get(a)&&(t=t.get(a),e.licenseServerUri=t),e.keyIds||(e.keyIds=new Set),(n=n.get(a))&&(e.distinctiveIdentifierRequired||(e.distinctiveIdentifierRequired=n.distinctiveIdentifierRequired),e.persistentStateRequired||(e.persistentStateRequired=n.persistentStateRequired),e.serverCertificate||(e.serverCertificate=n.serverCertificate),n.sessionType&&(e.sessionType=n.sessionType),e.serverCertificateUri||(e.serverCertificateUri=n.serverCertificateUri)),i[a]&&(e.keySystem=i[a]),oe.cast&&oe.cast.__platform__&&a=="com.microsoft.playready"&&(e.keySystem="com.chromecast.playready"))}function gf(e,t){if(e=ms(e),e.size!=0){e=rs(e),t=b(t);for(var n=t.next();!n.done;n=t.next())n=n.value,n.video&&(n.video.drmInfos=[e]),n.audio&&(n.audio.drmInfos=[e])}}var Ig=1,Bd=5,Z1=.5;function Qh(e,t,n){for(n=n===void 0?!0:n,this.h=e,this.g=new Set([e]),t=t||[],e=b(t),t=e.next();!t.done;t=e.next())this.add(t.value,n)}Qh.prototype.add=function(e,t){var n=this.h;t=t===void 0?!0:t;var i;if(!(i=!!n.audio!=!!e.audio||!!n.video!=!!e.video||n.language!=e.language)&&(i=n.audio&&e.audio)){i=n.audio;var a=e.audio;i=!(!((!i.channelsCount||!a.channelsCount||2<i.channelsCount||2<a.channelsCount)&&i.channelsCount!=a.channelsCount||i.spatialAudio!==a.spatialAudio||t&&!Lg(i,a))&&Tm(i.roles,a.roles)&&i.groupId===a.groupId)}return!i&&(i=n.video&&e.video)&&(n=n.video,i=e.video,i=!((!t||Lg(n,i))&&Tm(n.roles,i.roles))),i?!1:(this.g.add(e),!0)},Qh.prototype.values=function(){return this.g.values()};function Lg(e,t){if(e.mimeType!=t.mimeType||(e=e.codecs.split(",").map(function(i){return jo(i)}),t=t.codecs.split(",").map(function(i){return jo(i)}),e.length!=t.length))return!1;e.sort(),t.sort();for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function Tm(e,t){if(e=new Set(e),t=new Set(t),e.delete("main"),t.delete("main"),e.size!=t.size)return!1;e=b(e);for(var n=e.next();!n.done;n=e.next())if(!t.has(n.value))return!1;return!0}xe("shaka.media.AdaptationSet",Qh),xe("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function Og(){}Og.prototype.create=function(){},Og.prototype.configure=function(){},xe("shaka.media.AdaptationSetCriteria",Og);function vc(){this.g=vs,this.i=new Map().set(vs,2).set(Ho,1),this.h=0}var Ho=0,vs=1;/*
19
- @license
20
- Shaka Player
21
- Copyright 2023 Google LLC
22
- SPDX-License-Identifier: Apache-2.0
23
- */function Zh(e,t,n){this.g=e,this.i=t,this.h=n}function mf(e,t){return q(function(n){if(n.g==1)return O(n,hg(e.h,t,e.g.drm.preferredKeySystems,e.g.drm.keySystemsMapping),2);if(e.g.streaming.dontChooseCodecs||Ar(t,e.g.preferredVideoCodecs,e.g.preferredAudioCodecs,e.g.preferredDecodingAttributes,e.g.preferredTextFormats),!t.variants.some(bd))throw new G(2,4,4032);return n.return(Em(e,t))})}function Ea(e,t){var n=e.g.restrictions;e=e.i;var i=!1;t=b(t.variants);for(var a=t.next();!a.done;a=t.next()){a=a.value;var l=a.allowedByApplication;a.allowedByApplication=Rl(a,n,e),l!=a.allowedByApplication&&(i=!0)}return i}function Em(e,t){var n=Ea(e,t);if(t){var i=e.h?e.h.h:null;if(i&&e.h.B){for(var a=new Set,l=b(t.variants),f=l.next();!f.done;f=l.next())f=f.value,f.audio&&a.add(f.audio),f.video&&a.add(f.video);for(a=b(a),l=a.next();!l.done;l=a.next())du(e,i.keySystem,l.value)}yf(e,t)}return n}function du(e,t,n){n=b(n.drmInfos);for(var i=n.next();!i.done;i=n.next())if(i=i.value,i.keySystem==t){i=b(i.initData||[]);for(var a=i.next();!a.done;a=i.next())a=a.value,Vn(e.h,a.initDataType,a.initData)}}function yf(e,t){e=e.h?e.h.Re():{};var n=Object.keys(e);n=n.length&&n[0]=="00";var i=!1,a=!1,l=new Set,f=new Set,d=new Set;t=b(t.variants);for(var g=t.next();!g.done;g=t.next())g=g.value,g.audio&&d.add(g.audio),g.video&&d.add(g.video),g.allowedByApplication?g.allowedByKeySystem&&(i=!0):a=!0;for(d=b(d),t=d.next();!t.done;t=d.next())if(t=t.value,t.keyIds.size)for(t=b(t.keyIds),g=t.next();!g.done;g=t.next()){g=g.value;var m=e[n?"00":g];m?Go.includes(m)&&f.add(m):l.add(g)}if(!i)throw e={hasAppRestrictions:a,missingKeys:Array.from(l),restrictedKeyStatuses:Array.from(f)},new G(2,4,4012,e)}var Go=["output-restricted","internal-error"];function Aa(){}function Wi(e,t){hu.set(e,t)}function Sc(){var e={};if(fa())for(var t=b(hu.keys()),n=t.next();!n.done;n=t.next())e[n.value]=!0;for(t=b(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]),n=t.next();!n.done;n=t.next())n=n.value,e[n]=fa()?hu.has(n):xh(n);return e}function _l(e,t){if(t){var n=hu.get(t.toLowerCase());if(n)return n}throw new G(2,4,4e3,e,t)}xe("shaka.media.ManifestParser",Aa),Aa.unregisterParserByMime=function(e){hu.delete(e)},Aa.registerParserByMime=Wi,Aa.registerParserByExtension=function(){Gt("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},Aa.AccessibilityPurpose={Im:"visually impaired",Zl:"hard of hearing"};var hu=new Map;function Ou(e,t){var n=null,i=null,a=null,l=null,f=e.X();return t&1&&(a=e.Cd()),t&2&&(l=e.X()),t&8&&(n=e.X()),t&16&&(i=e.X()),{trackId:f,Md:n,Nd:i,rj:a,Ii:l}}function Qn(e,t){return t==1?(t=e.X(),e=e.X(),{baseMediaDecodeTime:t*Math.pow(2,32)+e}):{baseMediaDecodeTime:e.X()}}function vf(e,t){return t==1?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),t=e.X(),e.skip(4),e=e.Da(),{timescale:t,language:String.fromCharCode((e>>10)+96)+String.fromCharCode(((e&960)>>5)+96)+String.fromCharCode((e&31)+96)}}function jl(e,t,n){var i=e.X(),a=[],l=null;n&1&&(l=e.bh()),n&4&&e.skip(4);for(var f=0;f<i;f++){var d={ih:null,sampleSize:null,yf:null};n&256&&(d.ih=e.X()),n&512&&(d.sampleSize=e.X()),n&1024&&e.skip(4),n&2048&&(d.yf=t==0?e.X():e.bh()),a.push(d)}return{Nm:i,hh:a,lg:l}}function Ug(e){e.skip(6),e.skip(2),e.skip(8);var t=e.Da();return e.skip(2),e.skip(2),e.skip(2),e=e.Da()+e.Da()/65536,{channelCount:t,sampleRate:e}}function Sf(e){return e=e.X(),{codec:Ud(e)}}function Pd(e){var t=null,n=null,i=e.Tb(4),a=String.fromCharCode(i[0]);if(a+=String.fromCharCode(i[1]),a+=String.fromCharCode(i[2]),a+=String.fromCharCode(i[3]),a==="nclx"){switch(e.Da()){case 1:case 5:case 6:case 7:t="srgb";break;case 9:t="rec2020";break;case 11:case 12:t="p3"}switch(i=e.Da(),e.Da(),i){case 1:case 6:case 13:case 14:case 15:n="SDR";break;case 16:n="PQ";break;case 18:n="HLG"}}return{colorGamut:t,qe:n}}function Vo(e,t){return t=t===void 0?!1:t,e=e.toString(16).toUpperCase(),t?e:("0"+e).slice(-2)}function Or(e){return(10>e?"0":"")+e}function qo(e){if(!iv){iv=!0;var t=new Uint8Array([105,115,111,109]),n=new Uint8Array([97,118,99,49]),i=new Uint8Array([0,0,0,1]);$h=dt("ftyp",t,i,t,n),t=dt("dref",uv),ep=dt("dinf",t)}this.g=e}function Tf(e){for(var t=[],n=b(e.g),i=n.next();!i.done;i=n.next()){var a=t,l=a.push,f=i.value;i=dt;var d=f.id+1,g=f.stream.width||0,m=f.stream.height||0;f.type=="audio"&&(m=g=0);var S=f.duration*f.timescale,T=Math.floor(S/(qa+1));switch(S=Math.floor(S%(qa+1)),d=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(Ue(jn(d,4)),[0,0,0,0],Ue(jn(T,4)),Ue(jn(S,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],Ue(jn(g,2)),[0,0],Ue(jn(m,2)),[0,0])),d=dt("tkhd",d),g=dt,T=f.duration*f.timescale,m=Math.floor(T/(qa+1)),T=Math.floor(T%(qa+1)),S=f.stream.language,S=S.charCodeAt(0)-96<<10|S.charCodeAt(1)-96<<5|S.charCodeAt(2)-96,m=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(Ue(jn(f.timescale,4)),Ue(jn(m,4)),Ue(jn(T,4)),Ue(jn(S,2)),[0,0])),m=dt("mdhd",m),T=f,S=new Uint8Array([]),T.type){case"video":S=Am;break;case"audio":S=Vd}T=dt("hdlr",S);e:{switch(f.type){case"video":f=dt("minf",dt("vmhd",Cm),ep,Jh(f));break e;case"audio":f=dt("minf",dt("smhd",Mm),ep,Jh(f));break e}f=new Uint8Array([])}f=g("mdia",m,T,f),i=i("trak",d,f),l.call(a,i)}for(t=gn.apply(Li,Ue(t)),l=e.g[0],n=dt,i=l.duration*l.timescale,a=Math.floor(i/(qa+1)),i=Math.floor(i%(qa+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(Ue(jn(l.timescale,4)),Ue(jn(a,4)),Ue(jn(i,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255])),a=dt("mvhd",a),i=[],e=b(e.g),g=e.next();!g.done;g=e.next())f=i,d=f.push,g=new Uint8Array([0,0,0,0].concat(Ue(jn(g.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),g=dt("trex",g),d.call(f,g);if(e=gn.apply(Li,Ue(i)),e=dt("mvex",e),i=[],l.encrypted){for(l=b(l.stream.drmInfos),f=l.next();!f.done;f=l.next())if(f=f.value,f.initData)for(f=b(f.initData),d=f.next();!d.done;d=f.next())i.push(d.value.initData);l=gn.apply(Li,Ue(i))}else l=new Uint8Array([]);return e=n("moov",a,t,e,l),t=new Uint8Array($h.byteLength+e.byteLength),t.set($h),t.set(e,$h.byteLength),t}function Jh(e){var t=dt,n="aac";e.codecs.includes("mp3")?n="mp3":e.codecs.includes("ac-3")?n=da()?"ec-3":"ac-3":e.codecs.includes("ec-3")?n="ec-3":e.codecs.includes("opus")&&(n="opus");var i=new Uint8Array([]);switch(e.type){case"video":if(e.codecs.includes("avc1")){if(n=e.stream.width||0,i=e.stream.height||0,0<e.Va.byteLength)var a=dt("avcC",e.Va);else{a=dt;for(var l=7,f=[],d=[],g=0,m=0,S=0,T=0;T<e.Ab.length;T++){var x=Hi(e.Ab[T]);switch(x[0]&31){case 7:f.push(x),l+=x.length+2;break;case 8:d.push(x),l+=x.length+2}}for(0<f.length&&(g=f[0][1],S=f[0][2],m=f[0][3]),l=new Uint8Array(l),T=0,l[T++]=1,l[T++]=g,l[T++]=S,l[T++]=m,l[T++]=255,l[T++]=224|f.length,g=0;g<f.length;g++)l[T++]=(f[g].length&65280)>>8,l[T++]=f[g].length&255,l.set(f[g],T),T+=f[g].length;for(l[T++]=d.length,f=0;f<d.length;f++)l[T++]=(d[f].length&65280)>>8,l[T++]=d[f].length&255,l.set(d[f],T),T+=d[f].length;a=a("avcC",l)}n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(Ue(jn(n,2)),Ue(jn(i,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),i="avc1",d=Wh(e),f=new Uint8Array([]),e.encrypted&&(f=Tc(0,e.stream,e.codecs),i="encv"),i=dt(i,n,a,d,f)}else e.codecs.includes("hvc1")&&(i=e.stream.width||0,a=e.stream.height||0,n=new Uint8Array([]),0<e.Va.byteLength&&(n=dt("hvcC",e.Va)),i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(Ue(jn(i,2)),Ue(jn(a,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),a="hvc1",d=Wh(e),f=new Uint8Array([]),e.encrypted&&(f=Tc(0,e.stream,e.codecs),a="encv"),i=dt(a,i,n,d,f));break;case"audio":n=="mp3"?e=dt(".mp3",Hd(e)):n=="ac-3"?(n=dt("dac3",e.Ja),i="ac-3",a=new Uint8Array([]),e.encrypted&&(a=Tc(0,e.stream,e.codecs),i="enca"),e=dt(i,Hd(e),n,a)):n=="ec-3"?(n=dt("dec3",e.Ja),i="ec-3",a=new Uint8Array([]),e.encrypted&&(a=Tc(0,e.stream,e.codecs),i="enca"),e=dt(i,Hd(e),n,a)):n=="opus"?(n=dt("dOps",e.Ja),i="Opus",a=new Uint8Array([]),e.encrypted&&(a=Tc(0,e.stream,e.codecs),i="enca"),e=dt(i,Hd(e),n,a)):(0<e.Ja.byteLength?n=dt("esds",e.Ja):(n=dt,i=e.id+1,a=e.stream.channelsCount||2,f=e.stream.audioSamplingRate||44100,g=Al("audio",e.codecs.split(",")),m={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12},d=m[f],(g==="mp4a.40.5"||g==="mp4a.40.29")&&(d=m[2*f]),f=parseInt(g.split(".").pop(),10),i=new Uint8Array([0,0,0,0,3,25].concat(Ue(jn(i,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,f<<3|d>>>1,d<<7|a<<3,6,1,2])),n=n("esds",i)),i="mp4a",a=new Uint8Array([]),e.encrypted&&(a=Tc(0,e.stream,e.codecs),i="enca"),e=dt(i,Hd(e),n,a)),i=e}return e=dt("stsd",av,i),t("stbl",e,dt("stts",kg),dt("stsc",xm),dt("stsz",wm),dt("stco",rv))}function Wh(e){if(!e.bb&&!e.cb)return new Uint8Array([]);var t=e.cb;return e=new Uint8Array([].concat(Ue(jn(e.bb,4)),Ue(jn(t,4)))),dt("pasp",e)}function Hd(e){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.stream.channelsCount||2,0,16,0,0,0,0].concat(Ue(jn(e.stream.audioSamplingRate||44100,2)),[0,0]))}function Tc(e,t,n){e=dt,n=new Uint8Array([].concat(Ue(jn(xr(n.split(".")[0]),4)))),n=dt("frma",n);var i="cenc",a=t.drmInfos[0];a&&a.encryptionScheme&&(i=a.encryptionScheme),i=new Uint8Array([0,0,0,0].concat(Ue(jn(xr(i),4)),[0,1,0,0])),i=dt("schm",i),a=dt;var l=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t=b(t.drmInfos);for(var f=t.next();!f.done;f=t.next())if((f=f.value)&&f.keyIds&&f.keyIds.size){f=b(f.keyIds);for(var d=f.next();!d.done;d=f.next())l=Hi(d.value)}return t=new Uint8Array([0,0,0,0,0,0,1,8]),t=dt("tenc",t,l),e("sinf",n,i,a("schi",t))}function Gd(e){var t=[];e=b(e.g);for(var n=e.next();!n.done;n=e.next()){n=n.value;var i=t.push,a=i.apply,l=dt,f=new Uint8Array([0,0,0,0].concat(Ue(jn(n.data?n.data.Ub:0,4))));f=dt("mfhd",f);var d,g=n.data?n.data.yb:[],m=new Uint8Array(4+g.length);for(d=0;d<g.length;d++){var S=g[d].flags;m[d+4]=S.mb<<4|S.pb<<2|S.ob}g=dt("sdtp",m);var T=g.length+92;m=dt,d=new Uint8Array([0,0,0,58].concat(Ue(jn(n.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),d=dt("tfhd",d),S=n.data?n.data.baseMediaDecodeTime:0;var x=Math.floor(S%(qa+1));S=new Uint8Array([1,0,0,0].concat(Ue(jn(Math.floor(S/(qa+1)),4)),Ue(jn(x,4)))),S=dt("tfdt",S);var M=T;T=n.data?n.data.yb:[],x=T.length;var R=12+16*x,L=new Uint8Array(R);for(M+=8+R,L.set([n.type==="video"?1:0,0,15,1].concat(Ue(jn(x,4)),Ue(jn(M,4))),0),M=0;M<x;M++){var I=T[M];R=jn(I.duration,4);var U=jn(I.size,4),N=I.flags;I=jn(I.ub,4),L.set([].concat(Ue(R),Ue(U),[N.wb<<2|N.mb,N.pb<<6|N.ob<<4|N.xb,N.kb&61440,N.kb&15],Ue(I)),12+16*M)}T=dt("trun",L),g=m("traf",d,S,T,g),l=l("moof",f,g),a.call(i,t,[l,Uu(n)])}return gn.apply(Li,Ue(t))}function Uu(e){return e=(e.data?e.data.yb:[]).map(function(t){return t.data}),e=gn.apply(Li,Ue(e)),dt("mdat",e)}function jn(e,t){var n=[];for(--t;0<=t;t--)n.push(e>>8*t&255);return n}function Hi(e){for(var t=new Uint8Array(e.length/2),n=0;n<e.length/2;n+=1)t[n]=parseInt(String(e[2*n]+e[2*n+1]),16);return t}function xr(e){for(var t=0,n=0;n<e.length;n+=1)t|=e.charCodeAt(n)<<8*(e.length-n-1);return t}function dt(e){var t=xt.apply(1,arguments),n=Ef.get(e);n||(n=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)],Ef.set(e,n));for(var i=8,a=t.length-1;0<=a;a--)i+=t[a].byteLength;for(a=new Uint8Array(i),a[0]=i>>24&255,a[1]=i>>16&255,a[2]=i>>8&255,a[3]=i&255,a.set(n,4),n=0,i=8;n<t.length;n++)a.set(t[n],i),i+=t[n].byteLength;return a}var iv=!1,qa=Math.pow(2,32)-1,Ef=new Map,Am=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Vd=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),kg=new Uint8Array([0,0,0,0,0,0,0,0]),xm=new Uint8Array([0,0,0,0,0,0,0,0]),rv=new Uint8Array([0,0,0,0,0,0,0,0]),wm=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Cm=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Mm=new Uint8Array([0,0,0,0,0,0,0,0]),av=new Uint8Array([0,0,0,0,0,0,0,1]),$h=new Uint8Array([]),uv=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ep=new Uint8Array([]);function bm(e){e=at(e);var t=null;return new Zt().box("moov",mt).box("trak",mt).box("mdia",mt).box("minf",mt).box("stbl",mt).W("stsd",Ul).box("enca",function(n){return t=n.reader.h,Vh(n)}).box("sinf",mt).box("frma",function(n){n.parser.stop(),Sf(n.reader).codec==="ec-3"&&t&&t.getUint16(16)!==2&&t.setUint16(16,2)}).parse(e),e}function Af(e,t,n){function i(M){T.push({box:M,xi:1701733217})}function a(M){T.push({box:M,xi:1701733238})}function l(M){g=!0,M.parser.stop()}function f(M){S.push(M),mt(M)}var d=t=at(t),g=!1,m,S=[],T=[];if(new Zt().box("moov",f).box("trak",f).box("mdia",f).box("minf",f).box("stbl",f).W("stsd",function(M){m=M,S.push(M),Ul(M)}).W("encv",l).W("enca",l).W("dvav",a).W("dva1",a).W("dvh1",a).W("dvhe",a).W("dvc1",a).W("dvi1",a).W("hev1",a).W("hvc1",a).W("avc1",a).W("avc3",a).W("ac-3",i).W("ec-3",i).W("ac-4",i).W("Opus",i).W("fLaC",i).W("mp4a",i).parse(t),g)return t;if(T.length==0||!m)throw nu(t),new G(2,3,3019,n);T.reverse(),n=b(T);for(var x=n.next();!x.done;x=n.next())x=x.value,d=Dm(e,d,m,x.box,S,x.xi);return Ws()&&Tl()&&!Zu()?(e=new Uint8Array(t.byteLength+d.byteLength),e.set(d),e.set(t,d.byteLength),e):d}function Ng(e){e=at(e);var t=[];new Zt().box("mdat",function(f){t.push(f)}).parse(e);for(var n=[],i=0;i<t.length;i++){var a=t[i-1],l=t[i];n.push(Rm(e.subarray(a?a.start+a.size:0,l.start+l.size)))}return gn.apply(Li,Ue(n))}function Rm(e){function t(T){f.push(T),mt(T)}var n,i,a,l,f=[];if(new Zt().box("moof",t).box("traf",t).W("tfhd",function(T){n=T,a=Ou(T.reader,T.flags)}).W("trun",function(T){i=T,l=jl(T.reader,T.version,T.flags)}).parse(e),a&&a.Ii!==2){var d=n.start+mc(n)+4+(a.rj!==null?8:0),g=br(e);if(a.Ii!==null)g.setUint32(d,2);else{lo(e,n.start,n.size+4);var m=g.getUint32(n.start+8);g.setUint32(n.start+8,m|2),l&&l.lg!==null&&g.setInt32(i.start+mc(i)+4,l.lg+4),m=e.subarray(0,d),g=e.subarray(d),e=new Uint8Array(e.byteLength+4),e.set(m),m=[];for(var S=3;0<=S;S--)m.push(2>>8*S&255);for(e.set(new Uint8Array(m),d),e.set(g,d+4),d=b(f),g=d.next();!g.done;g=d.next())g=g.value,lo(e,g.start,g.size+4)}}return e}function Dm(e,t,n,i,a,l){var f=Tc(new qo([]),e,i.name),d=t.subarray(i.start,i.start+i.size);for(e=new Uint8Array(i.size+f.byteLength),e.set(d,0),br(e).setUint32(4,l),e.set(f,i.size),lo(e,0,e.byteLength),l=new Uint8Array(t.byteLength+e.byteLength),i=ai()||Zu()||Ws()?i.start:i.start+i.size,f=t.subarray(i),l.set(t.subarray(0,i)),l.set(e,i),l.set(f,i+e.byteLength),t=b(a),a=t.next();!a.done;a=t.next())a=a.value,lo(l,a.start,a.size+e.byteLength);return e=br(l,n.start),n=mc(n),t=e.getUint32(n),e.setUint32(n,t+1),l}function lo(e,t,n){e=br(e,t),t=e.getUint32(0),t!=0&&(t==1?(e.setUint32(8,n>>32),e.setUint32(12,n&4294967295)):e.setUint32(0,n))}function Im(e){function t(a){i.push({start:a.start,size:a.size}),mt(a)}var n=at(e),i=[];return new Zt().box("moov",t).box("trak",t).box("mdia",t).box("minf",t).box("stbl",t).box("stsd",function(a){i.push({start:a.start,size:a.size});for(var l=br(n,a.start),f=0;f<a.size-3;f++){var d=l.getUint32(f);d==1633889587?l.setUint32(f,1700998451):d==1684103987&&l.setUint32(f,1684366131)}}).parse(n),n}function xa(e,t,n,i,a,l,f,d){this.T=e,this.startByte=t,this.endByte=n,this.wd=i===void 0?null:i,this.timescale=a===void 0?null:a,this.h=l===void 0?null:l,this.aesKey=f===void 0?null:f,this.g=this.mimeType=this.codecs=null,this.encrypted=d===void 0?!1:d}xa.prototype.xc=function(){return this.startByte},xa.prototype.uc=function(){return this.endByte},xa.prototype.le=function(e){this.h=e},xa.prototype.Zb=function(){return this.h};function _g(e,t){return e===t?!0:e&&t?e.xc()==t.xc()&&e.uc()==t.uc()&&rc(e.T().sort(),t.T().sort())&&ji(e.Zb(),t.Zb()):e==t}xe("shaka.media.InitSegmentReference",xa),xa.prototype.getEndByte=xa.prototype.uc,xa.prototype.getStartByte=xa.prototype.xc;function Ye(e,t,n,i,a,l,f,d,g,m,S,T,x,M,R,L){for(m=m===void 0?[]:m,M=M===void 0?so:M,this.startTime=e,this.j=this.endTime=t,this.D=n,this.startByte=i,this.endByte=a,this.ia=l,this.timestampOffset=f,this.appendWindowStart=d,this.appendWindowEnd=g,this.g=m,this.tilesLayout=S===void 0?"":S,this.C=T===void 0?null:T,this.h=x===void 0?null:x,this.status=M,this.preload=!1,this.l=!0,this.m=!1,this.aesKey=R===void 0?null:R,this.thumbnailSprite=null,this.i=-1,this.B=L===void 0?!1:L,this.H=this.s=!1,e=b(this.g),t=e.next();!t.done;t=e.next())t.value.ti();this.B&&this.g.length&&this.g[this.g.length-1].si(),this.u=this.bandwidth=this.mimeType=this.codecs=null,this.I=!1}w=Ye.prototype,w.T=function(){return this.D()},w.getStartTime=function(){return this.startTime},w.Mj=function(){return this.endTime},w.xc=function(){return this.startByte},w.uc=function(){return this.endByte},w.kk=function(){return this.tilesLayout},w.jk=function(){return this.C},w.yc=function(){return this.status},w.Lk=function(){this.status=Yd},w.Ug=function(){this.preload=!0},w.isPreload=function(){return this.preload},w.vd=function(){this.l=!1},w.Bk=function(){return this.l},w.ti=function(){this.s=!0},w.Dk=function(){return this.s},w.si=function(){this.H=!0},w.Ck=function(){return this.H},w.ri=function(){this.m=!0},w.wk=function(){return this.m},w.Ef=function(e){this.thumbnailSprite=e},w.ik=function(){return this.thumbnailSprite},w.offset=function(e){this.startTime+=e,this.endTime+=e,this.j+=e;for(var t=b(this.g),n=t.next();!n.done;n=t.next())n=n.value,n.startTime+=e,n.endTime+=e,n.j+=e},w.xh=function(e){this.h==null?xu("Sync attempted without sync time!"):(e=this.h-e-this.startTime,.001<=Math.abs(e)&&this.offset(e))},w.le=function(e,t){this.u=e,this.I=t===void 0?!1:t},w.Zb=function(e){var t=this.u;return(e===void 0||e)&&this.I&&(this.u=null),t};function qd(e,t){e.ia=t,e=b(e.g);for(var n=e.next();!n.done;n=e.next())qd(n.value,t)}xe("shaka.media.SegmentReference",Ye),Ye.prototype.getSegmentData=Ye.prototype.Zb,Ye.prototype.setSegmentData=Ye.prototype.le,Ye.prototype.syncAgainst=Ye.prototype.xh,Ye.prototype.offset=Ye.prototype.offset,Ye.prototype.getThumbnailSprite=Ye.prototype.ik,Ye.prototype.setThumbnailSprite=Ye.prototype.Ef,Ye.prototype.hasByterangeOptimization=Ye.prototype.wk,Ye.prototype.markAsByterangeOptimization=Ye.prototype.ri,Ye.prototype.isLastPartial=Ye.prototype.Ck,Ye.prototype.markAsLastPartial=Ye.prototype.si,Ye.prototype.isPartial=Ye.prototype.Dk,Ye.prototype.markAsPartial=Ye.prototype.ti,Ye.prototype.isIndependent=Ye.prototype.Bk,Ye.prototype.markAsNonIndependent=Ye.prototype.vd,Ye.prototype.isPreload=Ye.prototype.isPreload,Ye.prototype.markAsPreload=Ye.prototype.Ug,Ye.prototype.markAsUnavailable=Ye.prototype.Lk,Ye.prototype.getStatus=Ye.prototype.yc,Ye.prototype.getTileDuration=Ye.prototype.jk,Ye.prototype.getTilesLayout=Ye.prototype.kk,Ye.prototype.getEndByte=Ye.prototype.uc,Ye.prototype.getStartByte=Ye.prototype.xc,Ye.prototype.getEndTime=Ye.prototype.Mj,Ye.prototype.getStartTime=Ye.prototype.getStartTime,Ye.prototype.getUris=Ye.prototype.T;var so=0,Yd=1;Ye.Status={Il:so,Gm:Yd,gm:2};function Ut(e){return e.length==1&&1e-4>e.end(0)-e.start(0)}function jg(e){return!e||Ut(e)?null:e.length?e.end(e.length-1):null}function ov(e,t){return!e||!e.length||Ut(e)||t>e.end(e.length-1)?!1:t>=e.start(0)}function Lm(e,t){if(!e||!e.length||Ut(e))return 0;var n=0;e=b(Ya(e));for(var i=e.next();!i.done;i=e.next()){var a=i.value;i=a.start,a=a.end,a>t&&(n+=a-Math.max(i,t))}return n}function zg(e,t,n){return!e||!e.length||Ut(e)?null:(e=Ya(e).findIndex(function(i,a,l){return i.start>t&&(a==0||l[a-1].end-t<=n)}),0<=e?e:null)}function Ya(e){if(!e)return[];for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}function Bg(){}function Ne(e){return document.createElement(e)}function zn(){var e=document.createElement("button");return e.setAttribute("type","button"),e}function Yo(e,t){var n=document.createElement("source");return n.src=e,n.type=t===void 0?"":t,n}function Zr(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function lv(e,t){var n,i,a,l,f;return q(function(d){if(d.g==1)return"fonts"in document&&"FontFace"in oe?O(d,document.fonts.ready,2):d.return();if(!("entries"in document.fonts))return d.return();for(n=function(g){g=g.entries();for(var m=[],S=g.next();S.done===!1;)m.push(S.value),S=g.next();return m},i=b(n(document.fonts)),a=i.next();!a.done;a=i.next())if(l=a.value,l.family===e&&l.display==="swap")return d.return();f=new FontFace(e,"url("+t+")",{display:"swap"}),document.fonts.add(f),ve(d)})}xe("shaka.util.Dom",Bg),Bg.removeAllChildren=Zr;/*
24
- @license
25
- Shaka Player
26
- Copyright 2022 Google LLC
27
- SPDX-License-Identifier: Apache-2.0
28
- */function Om(){}function co(e,t){return t+10<=e.length&&e[t]===73&&e[t+1]===68&&e[t+2]===51&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function xf(e,t){return t+10<=e.length&&e[t]===51&&e[t+1]===68&&e[t+2]===73&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function tp(e,t){var n=(e[t]&127)<<21;return n|=(e[t+1]&127)<<14,n|=(e[t+2]&127)<<7,n|=e[t+3]&127}function Um(e){var t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(e.type==="APIC"){if(2>e.size||e.data[0]!==3)return null;var n=e.data.subarray(1).indexOf(0);if(n===-1)return null;var i=Rn(at(e.data,1,n)),a=e.data[2+n],l=e.data.subarray(3+n).indexOf(0);if(l===-1)return null;var f=Rn(at(e.data,3+n,l)),d;return i==="-->"?d=Rn(at(e.data,4+n+l)):d=Yr(e.data.subarray(4+n+l)),t.mimeType=i,t.pictureType=a,t.description=f,t.data=d,t}return e.type==="TXXX"?2>e.size||e.data[0]!==3||(i=e.data.subarray(1).indexOf(0),i===-1)?null:(n=Rn(at(e.data,1,i)),e=Rn(at(e.data,2+i)).replace(/\0*$/,""),t.description=n,t.data=e,t):e.type==="WXXX"?2>e.size||e.data[0]!==3||(i=e.data.subarray(1).indexOf(0),i===-1)?null:(n=Rn(at(e.data,1,i)),e=Rn(at(e.data,2+i)).replace(/\0*$/,""),t.description=n,t.data=e,t):e.type==="PRIV"?2>e.size||(n=e.data.indexOf(0),n===-1)?null:(n=Rn(at(e.data,0,n)),t.description=n,n=="com.apple.streaming.transportStreamTimestamp"?(n=e.data.subarray(n.length+1),e=n[3]&1,n=(n[4]<<23)+(n[5]<<15)+(n[6]<<7)+n[7],n/=45,e&&(n+=4772185884e-2),t.data=n):(e=Yr(e.data.subarray(n.length+1)),t.data=e),t):e.type[0]==="T"?2>e.size||e.data[0]!==3?null:(e=Rn(e.data.subarray(1)).replace(/\0*$/,""),t.data=e,t):e.type[0]==="W"?(e=Rn(e.data).replace(/\0*$/,""),t.data=e,t):e.data?(t.data=Yr(e.data),t):null}function Xa(e){for(var t=0,n=[];co(e,t);){var i=tp(e,t+6);for(e[t+5]>>6&1&&(t+=10),t+=10,i=t+i;t+10<i;){var a=e.subarray(t),l=tp(a,4);a={type:String.fromCharCode(a[0],a[1],a[2],a[3]),size:l,data:a.subarray(10,10+l)},(l=Um(a))&&n.push(l),t+=a.size+10}xf(e,t)&&(t+=10)}return n}function di(e,t){for(var n=t=t===void 0?0:t,i=0;co(e,t);)e[t+5]>>6&1&&(i+=10),i+=10,i+=tp(e,t+6),xf(e,t+10)&&(i+=10),t+=i;return 0<i?e.subarray(n,n+i):new Uint8Array([])}xe("shaka.util.Id3Utils",Om),Om.getID3Data=di,Om.getID3Frames=Xa;function Xo(e,t){if(this.j=e,t!==void 0&&t){t=new Uint8Array(e.byteLength);for(var n=0,i=0;i<e.byteLength;i++)2<=i&&e[i]==3&&e[i-1]==0&&e[i-2]==0||(t[n]=e[i],n++);this.j=at(t,0,n)}this.i=this.j.byteLength,this.g=this.h=0}function np(e){var t=e.j.byteLength-e.i,n=new Uint8Array(4),i=Math.min(4,e.i);i!==0&&(n.set(e.j.subarray(t,t+i)),e.h=new hn(n,0).X(),e.g=8*i,e.i-=i)}function Bn(e,t){if(e.g<=t){t-=e.g;var n=Math.floor(t/8);t-=8*n,e.g-=n,np(e)}e.h<<=t,e.g-=t}function kt(e,t){var n=Math.min(e.g,t),i=e.h>>>32-n;return e.g-=n,0<e.g?e.h<<=n:0<e.i&&np(e),n=t-n,0<n?i<<n|kt(e,n):i}function Pg(e){var t;for(t=0;t<e.g;++t)if((e.h&2147483648>>>t)!==0)return e.h<<=t,e.g-=t,t;return np(e),t+Pg(e)}function Jr(e){Bn(e,1+Pg(e))}function Oe(e){var t=Pg(e);return kt(e,t+1)-1}function $i(e){return e=Oe(e),1&e?1+e>>>1:-1*(e>>>1)}function Ve(e){return kt(e,1)===1}function Qe(e){return kt(e,8)}function Xd(e,t){for(var n=8,i=8,a=0;a<t;a++)i!==0&&(i=$i(e),i=(n+i+256)%256),n=i===0?n:i}function sv(e){return Qe(e),Oe(e),Oe(e)}xe("shaka.util.ExpGolomb",Xo);function An(){this.I=null,this.J=!1,this.m=this.K=null,this.j=[],this.g=[],this.B=this.C=null,this.i=[],this.h=[],this.D=null,this.l=[],this.H=this.s=this.u=null}w=An.prototype,w.clearData=function(){this.j=[],this.g=[],this.i=[],this.h=[],this.l=[]},w.parse=function(e){if(564>e.length)return this;for(var t=Math.max(0,vi(e)),n=e.length-(e.length+t)%188,i=!1,a=t;a<n;a+=188)if(e[a]==71){var l=!!(e[a+1]&64),f=((e[a+1]&31)<<8)+e[a+2];if(1<(e[a+3]&48)>>4){var d=a+5+e[a+4];if(d==a+188)continue}else d=a+4;switch(f){case 0:l&&(d+=e[d]+1),this.I=(e[d+10]&31)<<8|e[d+11];break;case 17:case 8191:break;case this.I:l&&(d+=e[d]+1),l=e,f={audio:-1,video:-1,We:-1,audioCodec:"",videoCodec:""};var g=d+3+((l[d+1]&15)<<8|l[d+2])-4;for(d+=12+((l[d+10]&15)<<8|l[d+11]);d<g;){var m=(l[d+1]&31)<<8|l[d+2],S=(l[d+3]&15)<<8|l[d+4];switch(l[d]){case 6:if(0<S)for(var T=d+5,x=S;2<x;){var M=l[T+1]+2;switch(l[T]){case 5:var R=yd(l.subarray(T+2,T+M));f.audio==-1&&R==="Opus"?(f.audio=m,f.audioCodec="opus"):f.video==-1&&R==="AV01"&&(f.video=m,f.videoCodec="av1");break;case 106:f.audio==-1&&(f.audio=m,f.audioCodec="ac3");break;case 122:f.audio==-1&&(f.audio=m,f.audioCodec="ec3");break;case 124:f.audio==-1&&(f.audio=m,f.audioCodec="aac");break;case 127:f.audioCodec=="opus"&&(R=null,l[T+2]===128&&(R=l[T+3]),R!=null&&(this.H={channelCount:(R&15)===0?2:R&15,sj:R,sampleRate:48e3}))}T+=M,x-=M}break;case 15:f.audio==-1&&(f.audio=m,f.audioCodec="aac");break;case 17:f.audio==-1&&(f.audio=m,f.audioCodec="aac-loas");break;case 21:f.We==-1&&(f.We=m);break;case 27:f.video==-1&&(f.video=m,f.videoCodec="avc");break;case 3:case 4:f.audio==-1&&(f.audio=m,f.audioCodec="mp3");break;case 36:f.video==-1&&(f.video=m,f.videoCodec="hvc");break;case 129:f.audio==-1&&(f.audio=m,f.audioCodec="ac3");break;case 132:case 135:f.audio==-1&&(f.audio=m,f.audioCodec="ec3")}d+=S+5}l=f,l.video!=-1&&(this.K=l.video,this.m=l.videoCodec),l.audio!=-1&&(this.C=l.audio,this.B=l.audioCodec),l.We!=-1&&(this.D=l.We),i&&!this.J&&(i=!1,a=t-188),this.J=!0;break;case this.K:d=e.subarray(d,a+188),l?this.j.push([d]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(d);break;case this.C:d=e.subarray(d,a+188),l?this.i.push([d]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(d);break;case this.D:d=e.subarray(d,a+188),l?this.l.push([d]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(d);break;default:i=!0}}return this};function wa(e,t){if((t[0]<<16|t[1]<<8|t[2])!==1)return null;var n={data:new Uint8Array(0),packetLength:t[4]<<8|t[5],pts:null,dts:null,nalus:[]};if(n.packetLength&&n.packetLength>t.byteLength-6)return null;var i=t[7];if(i&192){var a=536870912*(t[9]&14)+4194304*(t[10]&255)+16384*(t[11]&254)+128*(t[12]&255)+(t[13]&254)/2;e.u==null&&(e.u=a),n.pts=km(a,e.u),e.u=n.pts,n.dts=n.pts,i&64&&(i=536870912*(t[14]&14)+4194304*(t[15]&255)+16384*(t[16]&254)+128*(t[17]&255)+(t[18]&254)/2,e.s==null&&(e.s=i),n.dts=km(i,e.s)),e.s=n.dts}return e=t[8]+9,t.byteLength<=e?null:(n.data=t.subarray(e),n)}w.Sk=function(e){return Gt("TsParser.parseAvcNalus","Please use parseNalus function instead."),this.Zg(e,{be:null,state:null})},w.Zg=function(e,t){var n=e.pts?e.pts/9e4:null;e=e.data;var i=e.byteLength,a=1;this.m=="hvc"&&(a=2);var l=t.state||0,f=l,d=0,g=[],m=-1,S=0;for(l==-1&&(m=0,S=this.m=="hvc"?e[0]>>1&63:e[0]&31,l=0,d=1);d<i;){var T=e[d++];l?l===1?l=T?0:2:T?T==1?(T=d-l-1,0<=m?g.push({data:e.subarray(m+a,T),fullData:e.subarray(m,T),type:S,time:n,state:null}):(l=g.length?g[g.length-1]:t.be)&&(f&&d<=4-f&&l.state&&(l.data=l.data.subarray(0,l.data.byteLength-f),l.fullData=l.fullData.subarray(0,l.fullData.byteLength-f)),0<T&&(T=e.subarray(0,T),l.data=gn(l.data,T),l.fullData=gn(l.fullData,T),l.state=0)),d<i?(S=this.m=="hvc"?e[d]>>1&63:e[d]&31,m=d,l=0):l=-1):l=0:l=3:l=T?0:1}return 0<=m&&0<=l&&g.push({data:e.subarray(m+a,i),fullData:e.subarray(m,i),type:S,time:n,state:l}),!g.length&&t.be&&(n=g.length?g[g.length-1]:t.be)&&(n.data=gn(n.data,e),n.fullData=gn(n.fullData,e)),t.state=l,g},w.getMetadata=function(){for(var e=[],t=b(this.l),n=t.next();!n.done;n=t.next())n=gn.apply(Li,Ue(n.value)),(n=wa(this,n))&&e.push({cueTime:n.pts?n.pts/9e4:null,data:n.data,frames:Xa(n.data),dts:n.dts,pts:n.pts});return e},w.vb=function(){if(this.i.length&&!this.h.length){for(var e=!1,t=b(this.i),n=t.next();!n.done;n=t.next()){var i=gn.apply(Li,Ue(n.value)),a=wa(this,i);n=this.h.length?this.h[this.h.length-1]:null,a&&a.pts!=null&&a.dts!=null&&(!n||n.pts!=a.pts&&n.dts!=a.dts)?(this.h.length&&a.dts<(n.dts||0)&&(e=!0),this.h.push(a)):this.h.length&&(i=a?a.data:i)&&(n=this.h.pop(),n.data=gn(n.data,i),this.h.push(n))}e&&(this.h=this.h.sort(function(l,f){var d=(l.pts||0)-(f.pts||0);return(l.dts||0)-(f.dts||0)||d}))}return this.h},w.Rc=function(e){if(e=e===void 0?!0:e,this.j.length&&!this.g.length){for(var t=!1,n=b(this.j),i=n.next();!i.done;i=n.next()){var a=gn.apply(Li,Ue(i.value)),l=wa(this,a);i=this.g.length?this.g[this.g.length-1]:null,l&&l.pts!=null&&l.dts!=null&&(!i||i.pts!=l.pts&&i.dts!=l.dts)?(this.g.length&&l.dts<(i.dts||0)&&(t=!0),this.g.push(l)):this.g.length&&(a=l?l.data:a)&&(i=this.g.pop(),i.data=gn(i.data,a),this.g.push(i))}if(e){for(n={be:null,state:null},i=[],a=b(this.g),l=a.next();!l.done;l=a.next())l=l.value,l.nalus=this.Zg(l,n),l.nalus.length&&(i.push(l),n.be=l.nalus[l.nalus.length-1]);this.g=i}t&&(this.g=this.g.sort(function(f,d){var g=(f.pts||0)-(d.pts||0);return(f.dts||0)-(d.dts||0)||g}))}return e?this.g:(e=this.g,this.g=[],e)},w.getStartTime=function(e){if(e=="audio"){e=null;var t=this.vb();return t.length&&(e=t[0],e=Math.min(e.dts,e.pts)/9e4),e}return e=="video"?(e=null,t=this.Rc(!1),t.length&&(e=t[0],e=Math.min(e.dts,e.pts)/9e4),e):null},w.Pd=function(){return{audio:this.B,video:this.m}},w.Ve=function(){for(var e=[],t=b(this.Rc()),n=t.next();!n.done;n=t.next())e.push.apply(e,Ue(n.value.nalus));return e},w.rk=function(){Gt("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var e=this.Kg();return{height:e.height,width:e.width}},w.Kg=function(){return this.m=="hvc"?Wr(this):Hg(this)};function Fa(e){var t=e.Rc();return 1<t.length&&(e=t[0].pts,t=t[1].pts,!isNaN(t-e))?String(1/(t-e)*9e4):null}function Hg(e){var t={height:null,width:null,codec:null,frameRate:null},n=e.Ve();if(!n.length||(n=n.find(function(M){return M.type==7}),!n))return t;n=new Xo(n.data);var i=Qe(n),a=Qe(n),l=Qe(n);if(Jr(n),wf.includes(i)){var f=Oe(n);if(f===3&&Bn(n,1),Jr(n),Jr(n),Bn(n,1),Ve(n)){f=f!==3?8:12;for(var d=0;d<f;d++)Ve(n)&&(6>d?Xd(n,16):Xd(n,64))}}if(Jr(n),f=Oe(n),f===0)Oe(n);else if(f===1)for(Bn(n,1),Jr(n),Jr(n),f=Oe(n),d=0;d<f;d++)Jr(n);Jr(n),Bn(n,1),f=Oe(n),d=Oe(n);var g=kt(n,1);g===0&&Bn(n,1),Bn(n,1);var m=0,S=0,T=0,x=0;return Ve(n)&&(m=Oe(n),S=Oe(n),T=Oe(n),x=Oe(n)),t.height=String((2-g)*(d+1)*16-2*T-2*x),t.width=String(16*(f+1)-2*m-2*S),t.codec="avc1."+("0"+i.toString(16).toUpperCase()).slice(-2)+("0"+a.toString(16).toUpperCase()).slice(-2)+("0"+l.toString(16).toUpperCase()).slice(-2),t.frameRate=Fa(e),t}function Wr(e){var t={height:null,width:null,codec:null,frameRate:null},n=e.Ve();if(!n.length||(n=n.find(function(Y){return Y.type==33}),!n))return t;var i=new Xo(n.fullData,!0);Qe(i),Qe(i),kt(i,4);var a=kt(i,3);Ve(i);var l=kt(i,2),f=kt(i,1),d=kt(i,5),g=kt(i,32);n=Qe(i);for(var m=Qe(i),S=Qe(i),T=Qe(i),x=Qe(i),M=Qe(i),R=Qe(i),L=[],I=[],U=0;U<a;U++)L.push(Ve(i)),I.push(Ve(i));if(0<a)for(U=a;8>U;U++)kt(i,2);for(U=0;U<a;U++)L[U]&&kt(i,88),I[U]&&Qe(i);Oe(i),a=Oe(i),a==3&&kt(i,1),L=Oe(i),I=Oe(i);var N=U=0,j=0,B=0;return Ve(i)&&(U+=Oe(i),N+=Oe(i),j+=Oe(i),B+=Oe(i)),t.width=String(L-(U+N)*(a===1||a===2?2:1)),t.height=String(I-(j+B)*(a===1?2:1)),i=function(Y){for(var P=0,V=0;32>V;V++)P|=(Y>>V&1)<<31-V;return P>>>0}(g),f=f==1?"H":"L",l="hvc1"+("."+["","A","B","C"][l]+d),l+="."+i.toString(16).toUpperCase(),l+="."+f+R,M&&(l+="."+M.toString(16).toUpperCase()),x&&(l+="."+x.toString(16).toUpperCase()),T&&(l+="."+T.toString(16).toUpperCase()),S&&(l+="."+S.toString(16).toUpperCase()),m&&(l+="."+m.toString(16).toUpperCase()),n&&(l+="."+n.toString(16).toUpperCase()),t.codec=l,t.frameRate=Fa(e),t}function km(e,t){var n=1;for(e>t&&(n=-1);4294967296<Math.abs(t-e);)e+=8589934592*n;return e}function pu(e){return!(0>vi(e))}function vi(e){for(var t=Math.min(1e3,e.length-564),n=0;n<t;){if(e[n]==71&&e[n+188]==71&&e[n+376]==71)return n;n++}return-1}xe("shaka.util.TsParser",An),An.syncOffset=vi,An.probe=pu,An.prototype.getVideoInfo=An.prototype.Kg,An.prototype.getVideoResolution=An.prototype.rk,An.prototype.getVideoNalus=An.prototype.Ve,An.prototype.getCodecs=An.prototype.Pd,An.prototype.getStartTime=An.prototype.getStartTime,An.prototype.getVideoData=An.prototype.Rc,An.prototype.getAudioData=An.prototype.vb,An.prototype.getMetadata=An.prototype.getMetadata,An.prototype.parseNalus=An.prototype.Zg,An.prototype.parseAvcNalus=An.prototype.Sk,An.prototype.parse=An.prototype.parse,An.prototype.clearData=An.prototype.clearData,An.Timescale=9e4;var wf=[100,110,122,244,44,83,86,118,128,138,139,134];function fo(e,t,n,i){var a=this;this.g=e,this.M=n,this.B=null,this.ba=t,this.l=new Map,this.C=new Map,this.Fa=new Map,this.h=null,this.Oa=!1,this.L=i||null,this.s=new Map,this.u=new Ft,this.j=new Map,this.P=null,this.K=new Bt,this.La="",this.Ya=!1,this.za=!0,this.N=!1,this.D=this.R=null,this.i=ip(this,this.K),this.Ha=this.I=!1,this.J=new gs(function(){return qn(a)}),this.H=!1,this.S="UNKNOWN",this.Sa=this.Xa=!1,this.Ka=new Bt,this.m=!1,this.ua=null,this.Z=new Map,this.oa=this.U=this.qa=this.Y=null,this.ea=new Bt,this.g.remote&&(this.N=this.g.remote.state!="disconnected",this.u.o(this.g.remote,"connect",function(){a.N=a.g.remote.state!="disconnected"}),this.u.o(this.g.remote,"connecting",function(){a.N=a.g.remote.state!="disconnected"}),this.u.o(this.g.remote,"disconnect",function(){a.N=a.g.remote.state!="disconnected"}))}function ip(e,t){if(e.za=!0,oe.ManagedMediaSource){e.D||(e.g.disableRemotePlayback=!0);var n=new ManagedMediaSource;e.u.o(n,"startstreaming",function(){e.za=!0}),e.u.o(n,"endstreaming",function(){e.za=!1})}else n=new MediaSource;return e.u.wa(n,"sourceopen",function(){URL.revokeObjectURL(e.La),t.resolve()}),e.u.wa(e.g,"playing",function(){e.Ya=!0}),e.La=Ur(n),e.g.removeAttribute("src"),e.R&&e.g.removeChild(e.R),e.D&&e.g.removeChild(e.D),e.R=Yo(e.La),e.g.appendChild(e.R),e.D&&e.g.appendChild(e.D),e.g.load(),n}function Ca(e,t,n){e.g&&oe.ManagedMediaSource&&e.i&&(e.D&&e.g.removeChild(e.D),e.D=Yo(t,n),e.g.appendChild(e.D),e.g.disableRemotePlayback=!1)}function cv(e,t){var n,i,a,l,f,d,g,m,S,T,x;return q(function(M){if(M.g==1)return e.createSegmentIndex?O(M,e.createSegmentIndex(),2):M.A(2);if(!e.segmentIndex)return M.return(!1);if(e.segmentIndex.getNumReferences()==0)return M.return(!0);for(n=ui,i=new Set,a=b(e.segmentIndex),l=a.next();!l.done;l=a.next())if(f=l.value,d=f.mimeType||e.mimeType||"",g=f.codecs||e.codecs||"",(d!=e.mimeType||g!=e.codecs)&&(m=d+":"+g,!i.has(m))){if(i.add(m),t==n.Na){if(S=Et(d,g),!lu(S))return M.return(!1)}else if(t==n.Ba?g=pc(g):t==n.aa&&(g=hc(g,d)),T=_o(e,d,g),x=mn(d,g),!zi(T)&&!Kr(x))return M.return(!1)}return M.return(!0)})}function Ec(){var e='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.05.01",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4.02.01.01",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(Ue(ao)),t={};e=b(e);for(var n=e.next();!n.done;n=e.next()){n=n.value,lu(n)?t[n]=!0:t[n]=fa()?zi(n)||!!Kr(n):xh(n);var i=n.split(";")[0];t[i]=t[i]||t[n]}return t}w=fo.prototype,w.destroy=function(){return this.J.destroy()};function qn(e){var t,n,i,a,l,f,d,g,m,S,T,x,M,R,L;return q(function(I){if(I.g==1){for(t=[],n=b(e.s),i=n.next();!i.done;i=n.next())for(a=i.value,l=b(a),f=l.next().value,d=l.next().value,g=d[0],m=f,e.s.set(m,d.slice(0,1)),g&&t.push(g.p.catch(Ky)),S=b(d.slice(1)),T=S.next();!T.done;T=S.next())x=T.value,x.p.reject(new G(2,7,7003,void 0));return e.h&&t.push(e.h.destroy()),O(I,Promise.all(t),2)}for(M=b(e.j.values()),R=M.next();!R.done;R=M.next())L=R.value,L.destroy();e.u&&(e.u.release(),e.u=null),e.g&&e.D&&e.g.removeChild(e.D),e.g&&e.R&&(e.g.removeChild(e.R),e.g.load(),e.g.disableRemotePlayback=!1),e.g=null,e.R=null,e.D=null,e.B=null,e.i=null,e.h=null,e.ba=null,e.l.clear(),e.Fa.clear(),e.j.clear(),e.P=null,e.s.clear(),e.L=null,e.Z.clear(),e.M=null,ve(I)})}w.init=function(e,t,n,i){t=t===void 0?!1:t,n=n===void 0?"UNKNOWN":n,i=i===void 0?!1:i;var a=this,l,f,d,g,m,S;return q(function(T){switch(T.g){case 1:return l=ui,O(T,a.K,2);case 2:if(!Ac(a)&&!Fo(a)){T.A(3);break}return xu("Expected MediaSource to be open during init(); reopening the media source."),a.K=new Bt,a.i=ip(a,a.K),O(T,a.K,3);case 3:a.H=t,a.S=n,a.Xa=i,a.Sa=!a.H&&a.S=="HLS"&&!a.Xa,a.Z.clear(),a.Y=null,a.qa=null,a.U=null,a.oa=null,a.ea=new Bt,f=b(e.keys()),d=f.next();case 5:if(d.done){T.A(7);break}return g=d.value,m=e.get(g),O(T,Ss(a,g,m,m.codecs),8);case 8:a.m?(a.s.set(l.aa,[]),a.s.set(l.Ba,[])):a.s.set(g,[]),d=f.next(),T.A(5);break;case 7:(S=e.get(l.aa))&&S.isAudioMuxedInVideo&&(a.m=!0),ve(T)}})};function Ss(e,t,n,i){var a,l,f,d,g,m,S,T,x,M,R,L;return q(function(I){switch(I.g){case 1:return a=ui,l=lT,f=hd,O(I,cv(n,t),2);case 2:if(f.call(l,I.h,"Type negotiation should happen before MediaSourceEngine.init!"),t==a.aa&&i&&(i=hc(i,n.mimeType)),d=Et(n.mimeType,i),t==a.Na){Gg(e,d,e.H,n.external),I.A(0);break}if(g=e.B.forceTransmux,(!zi(d)||!e.H&&ao.includes(d))&&(g=!0),m=mn(n.mimeType,i),!g){I.A(4);break}if(S=Ki(a.aa,(i||"").split(",")),T=Ki(a.Ba,(i||"").split(",")),!S||!T){I.A(5);break}return e.m=!0,O(I,Ss(e,a.aa,n,S),6);case 6:return O(I,Ss(e,a.Ba,n,T),7);case 7:return I.return();case 5:(x=Kr(m))&&(M=x(),e.j.set(t,M),d=M.convertCodecs(t,m));case 4:R=d+e.B.addExtraFeaturesToSourceBuffer(d),Mt(e.J);try{L=e.i.addSourceBuffer(R)}catch(U){throw new G(2,3,3015,U,"The mediaSource_ status was "+e.i.readyState+" expected 'open'",null)}e.H&&(L.mode=Es),e.u.o(L,"error",function(){var U=e.s.get(t)[0];U.p.reject(new G(2,3,3014,e.g.error?e.g.error.code:0,U.uri))}),e.u.o(L,"updateend",function(){return Ma(e,t)}),e.l.set(t,L),e.C.set(t,d),e.Fa.set(t,!!n.drmInfos.length),ve(I)}})}w.configure=function(e){this.B=e,this.h&&(this.h.B=e.modifyCueCallback)};function Gi(e){return e.za&&!e.N&&!e.I}function Gg(e,t,n,i){e.h||(e.h=new Sa(e.ba),e.h&&(e.h.B=e.B.modifyCueCallback));var a=e.h;i=i||e.Oa,e=e.S,t=="application/cea-608"||t=="application/cea-708"?a.i=null:(a.i=Ji.get(t)(),a.i.setSequenceMode?a.i.setSequenceMode(n):Gt("Text parsers w/ setSequenceMode",'Text parsers should have a "setSequenceMode" method!'),a.i.setManifestType?a.i.setManifestType(e):Gt("Text parsers w/ setManifestType",'Text parsers should have a "setManifestType" method!'),a.C=i)}function Ac(e){return e.I?!1:e.i?e.i.readyState=="ended":!0}function Fo(e){return e.I?!1:e.i?e.i.readyState=="closed":!0}function Vg(e,t){return e.l.size?t==lt?e=e.h.g:(e=Cf(e,t),e=!e||Ut(e)?null:e.length==1&&0>e.start(0)?0:e.length?e.start(0):null):e=null,e}function or(e,t){return e.l.size?t==lt?e.h.h:jg(Cf(e,t)):null}function fv(e,t,n){return t==lt?(e=e.h,e.h==null||e.h<n?0:e.h-Math.max(n,e.g)):(e=Cf(e,t),Lm(e,n))}w.Lb=function(){var e={total:this.I?[]:Ya(this.g.buffered),audio:Ya(Cf(this,"audio")),video:Ya(Cf(this,"video")),text:[]};if(this.h){var t=this.h.g,n=this.h.h;t!=null&&n!=null&&e.text.push({start:t,end:n})}return e};function Cf(e,t){if(e.I||e.N)return null;try{return e.l.get(t).buffered}catch{return e.l.has(t),null}}function J1(e,t,n,i,a,l){var f=null,d=[],g=at(n);if(ao.includes(l))t=Xa(g),t.length&&i&&((n=t.find(function(M){return M.description==="com.apple.streaming.transportStreamTimestamp"}))&&(f=Math.round(n.data)/1e3),e.M.onMetadata([{cueTime:i.startTime,data:g,frames:t,dts:i.startTime,pts:i.startTime}],0,i.endTime));else if(l.includes("/mp4")&&i&&i.ia&&i.ia.timescale){var m=i.ia.timescale;if(!isNaN(m)){var S=a.emsgSchemeIdUris!=null&&0<a.emsgSchemeIdUris.length||e.B.dispatchAllEmsgBoxes,T=0,x=!1;g=new Zt,S&&g.W("emsg",function(M){var R=a.emsgSchemeIdUris;if(M.version===0)var L=M.reader.$c(),I=M.reader.$c(),U=M.reader.X(),N=M.reader.X(),j=M.reader.X(),B=M.reader.X(),Y=i.startTime+N/U;else U=M.reader.X(),Y=M.reader.Cd()/U+i.timestampOffset,N=Y-i.startTime,j=M.reader.X(),B=M.reader.X(),L=M.reader.$c(),I=M.reader.$c();M=M.reader.Tb(M.reader.getLength()-M.reader.Ta()),(R&&R.includes(L)||e.B.dispatchAllEmsgBoxes)&&(L=="urn:mpeg:dash:event:2012"?e.M.Rk():(R=Y+j/U,U={startTime:Y,endTime:R,schemeIdUri:L,value:I,timescale:U,presentationTimeDelta:N,eventDuration:j,id:B,messageData:M},B=new Map().set("detail",U),new Te("emsg",B).cancelable=!0,e.M.Pk(U),(L=="https://aomedia.org/emsg/ID3"||L=="https://developer.apple.com/streaming/emsg-id3")&&(L=Xa(M),L.length&&e.M.onMetadata([{cueTime:Y,data:M,frames:L,dts:Y,pts:Y}],0,R))))}),g.W("prft",function(M){var R=M.reader,L=M.version;R.X(),M=R.X();var I=R.X();M=1e3*M+I/Math.pow(2,32)*1e3,L===0?R=R.X():(L=R.X(),R=R.X(),R=L*Math.pow(2,32)+R),M=new Date(new Date(Date.UTC(1900,0,1,0,0,0)).getTime()+M).getTime(),R=new Map().set("detail",{wallClockTime:M,programStartDate:new Date(M-R/m*1e3)}),R=new Te("prft",R),e.M.onEvent(R)}).box("moof",mt).box("traf",mt).W("tfdt",function(M){x||(T=Qn(M.reader,M.version).baseMediaDecodeTime/m,x=!0,S||M.parser.stop())}).parse(n,!0),x&&i.timestampOffset==0&&(f=T)}}else l.includes("/mp4")||l.includes("/webm")||!pu(g)||(e.Z.has(t)?e.Z.get(t).clearData():e.Z.set(t,new An),d=e.Z.get(t).parse(g),g=d.getStartTime(t),g!=null&&(f=g),d=d.getMetadata());return{timestamp:f,metadata:d}}function Un(e,t,n,i,a,l,f,d,g,m){f=f===void 0?!1:f,d=d===void 0?!1:d,g=g===void 0?!1:g,m=m===void 0?!1:m;var S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee;return q(function(Q){switch(Q.g){case 1:if(S=ui,t!=S.Na){Q.A(2);break}if(e.S!="HLS"){Q.A(3);break}return O(Q,e.Ka,4);case 4:T=Q.h,e.h.u=T;case 3:return O(Q,cm(e.h,n,i?i.startTime:null,i?i.endTime:null,i?i.T()[0]:null),5);case 5:return Q.return();case 2:if(m||!e.m){Q.A(6);break}return O(Q,Un(e,S.aa,n,i,a,l,f,d,g,!0),7);case 7:return O(Q,Un(e,S.Ba,n,i,a,l,f,d,g,!0),8);case 8:return Q.return();case 6:if(!e.l.has(t))return Q.return();if(x=e.l.get(t).timestampOffset,M=e.C.get(t),e.j.has(t)&&(M=e.j.get(t).getOriginalMimeType()),i&&(R=J1(e,t,n,i,a,M),L=R.timestamp,I=R.metadata,L!=null&&(e.Y==null&&t==S.Ba&&(e.Y=L,e.qa=i.startTime,e.U!=null&&(U=0,e.qa==e.oa&&(U=e.Y-e.U),e.ea.resolve(U))),e.U==null&&t==S.aa&&(e.U=L,e.oa=i.startTime,e.Y!=null&&(N=0,e.qa==e.oa&&(N=e.Y-e.U),e.ea.resolve(N))),j=L,B=ao,!e.H&&B.includes(e.C.get(t))&&(j=0),Y=i.startTime-j,P=Math.abs(x-Y),(.001<=P||f||d)&&(!g||0<Y||!x)&&(x=Y,e.Sa&&(si(e,t,function(){return Nu(e,t)},null),si(e,t,function(){return pi(e,t,x)},null))),(t==S.Ba||!e.l.has(S.Ba))&&e.Ka.resolve(x)),I.length)&&e.M.onMetadata(I,x,i?i.endTime:null),l&&t==S.Ba&&(e.h||Gg(e,"application/cea-608",e.H,!1),e.P||(V=M.split(";",1)[0],e.P=new ja(V)),i?(F=e.P.i(n),F.length&&lf(e.h,F,i.startTime,i.endTime,x)):e.P.init(n,d)),!e.j.has(t)){Q.A(9);break}return O(Q,e.j.get(t).transmux(n,a,i,e.i.duration,t),10);case 10:n=Q.h;case 9:if(n=ap(e,a,n,i,t),!i||!e.H||t==S.Na){Q.A(11);break}if(!f&&!d){Q.A(11);break}if(K=i.startTime,e.S!="HLS"||e.m||t!=S.aa||!e.l.has(S.Ba)){Q.A(13);break}return O(Q,e.ea,14);case 14:ee=Q.h,.15<Math.abs(ee)&&(K-=ee);case 13:si(e,t,function(){return Nu(e,t)},null),si(e,t,function(){return pi(e,t,K)},null);case 11:return O(Q,si(e,t,function(){var ne=n;e.L&&lg(e.L,ne,x,a),e.l.get(t).appendBuffer(ne)},i?i.T()[0]:null),15);case 15:ve(Q)}})}function hi(e,t){var n=or(e,"video")||0;Cd(e.h,t,n)}function xn(e){e.h&&Cd(e.h,"",0)}w.remove=function(e,t,n){var i=this,a;return q(function(l){return l.g==1?(a=ui,e==a.Na?O(l,i.h.remove(t,n),0):n>t?O(l,si(i,e,function(){return rp(i,e,t,n)},null),5):l.A(0)):i.m?O(l,si(i,a.aa,function(){return rp(i,a.aa,t,n)},null),0):l.A(0)})};function vn(e,t){var n;return q(function(i){return i.g==1?(n=ui,t==n.Na?e.h?O(i,e.h.remove(0,1/0),0):i.return():O(i,si(e,t,function(){return rp(e,t,0,e.i.duration)},null),4)):e.m?O(i,si(e,n.aa,function(){return rp(e,n.aa,0,e.i.duration)},null),0):i.A(0)})}w.flush=function(e){var t=this,n;return q(function(i){return i.g==1?(n=ui,e==n.Na?i.return():O(i,si(t,e,function(){t.g.currentTime-=.001,Ma(t,e)},null),2)):t.m?O(i,si(t,n.aa,function(){var a=n.aa;t.g.currentTime-=.001,Ma(t,a)},null),0):i.A(0)})};function ei(e,t,n,i,a,l,f,d,g){var m,S,T;return q(function(x){return x.g==1?(m=ui,t==m.Na?(l||(e.h.u=n),Fy(e.h,i,a),x.return()):(S=[],O(x,up(e,t,f,d,g),2))):(T=x.h,T||(S.push(si(e,t,function(){return Nu(e,t)},null)),e.m&&S.push(si(e,m.aa,function(){return Nu(e,m.aa)},null))),l||(S.push(si(e,t,function(){return pi(e,t,n)},null)),e.m&&S.push(si(e,m.aa,function(){return pi(e,m.aa,n)},null))),(i!=0||a!=1/0)&&(S.push(si(e,t,function(){var M=e.l.get(t);M.appendWindowStart=0,M.appendWindowEnd=a,M.appendWindowStart=i,Ma(e,t)},null)),e.m&&S.push(si(e,m.aa,function(){var M=m.aa,R=e.l.get(M);R.appendWindowStart=0,R.appendWindowEnd=a,R.appendWindowStart=i,Ma(e,M)},null))),S.length?O(x,Promise.all(S),0):x.A(0))})}function ku(e,t,n){var i,a;return q(function(l){return l.g==1?(i=ui,t==i.Na||(t==i.Ba&&(e.Ka=new Bt),!e.H||(a=or(e,t))&&.1>Math.abs(a-n))?l.return():(si(e,t,function(){return Nu(e,t)},null),e.m&&si(e,i.aa,function(){return Nu(e,i.aa)},null),O(l,si(e,t,function(){return pi(e,t,n)},null),2))):e.m?O(l,si(e,i.aa,function(){return pi(e,i.aa,n)},null),0):l.A(0)})}w.endOfStream=function(e){var t=this;return q(function(n){return O(n,_u(t,function(){Ac(t)||Fo(t)||(e?t.i.endOfStream(e):t.i.endOfStream())}),0)})},w.rb=function(e){var t=this;return q(function(n){return O(n,_u(t,function(){if(e<t.i.duration)for(var i=b(t.l.keys()),a=i.next();!a.done;a=i.next()){a=a.value;var l={start:function(){},p:new Bt,uri:null};t.s.get(a).unshift(l)}t.i.duration=e,t.ua=e}),0)})},w.getDuration=function(){return this.i.duration};function Ts(e,t,n){q(function(i){return e.J.g||e.g.error||e.N||e.I||Ac(e)||Fo(e)?i.return():O(i,_u(e,function(){Ac(e)||Fo(e)||e.i.setLiveSeekableRange(t,n)}),0)})}function Mf(e){q(function(t){return e.J.g||e.g.error||e.N||e.I||Ac(e)||Fo(e)?t.return():O(t,_u(e,function(){Ac(e)||Fo(e)||e.i.clearLiveSeekableRange()}),0)})}function rp(e,t,n,i){i<=n?Ma(e,t):e.l.get(t).remove(n,i)}function Nu(e,t){var n=e.l.get(t),i=n.appendWindowStart,a=n.appendWindowEnd;n.abort(),n.appendWindowStart=i,n.appendWindowEnd=a,Ma(e,t)}function pi(e,t,n){0>n&&(n+=.001);var i=!0;e.S=="HLS"&&(i=or(e,t),i=!i||.15<Math.abs(i-n)),i&&(e.l.get(t).timestampOffset=n),Ma(e,t)}function Ma(e,t){if(e.I||e.J.g){var n=e.s.get(t);n&&n.length&&((n=n[0])&&n.p&&n.p.resolve(),e.s.set(t,[]))}else(n=e.s.get(t)[0])&&(n.p.resolve(),ju(e,t))}function si(e,t,n,i){return Mt(e.J),n={start:n,p:new Bt,uri:i},e.s.get(t).push(n),e.s.get(t).length==1&&Fd(e,t),n.p}function _u(e,t){var n,i,a,l,f,d,g,m,S,T,x,M,R;return q(function(L){switch(L.g){case 1:for(Mt(e.J),n=[],i=Array.from(e.l.keys()),a=b(i),l=a.next(),f={};!l.done;f={ready:void 0},l=a.next())d=l.value,f.ready=new Bt,g={start:function(I){return function(){return I.ready.resolve()}}(f),p:f.ready,uri:null},m=e.s.get(d),m.push(g),n.push(f.ready),m.length==1&&g.start();return Le(L,2),O(L,Promise.all(n),4);case 4:Ge(L,3);break;case 2:throw S=je(L),S;case 3:return Le(L,5,6),O(L,t(),6);case 6:for(re(L),T=b(i),x=T.next();!x.done;x=T.next())M=x.value,ju(e,M);Re(L,0);break;case 5:throw R=je(L),new G(2,3,3015,R,e.g.error||"No error in the media element",null)}})}function ju(e,t){e.s.get(t).shift(),Fd(e,t)}function Fd(e,t){var n=e.s.get(t)[0];if(n)try{n.start()}catch(i){i.name=="QuotaExceededError"?n.p.reject(new G(2,3,3017,t)):Gi(e)?n.p.reject(new G(2,3,3015,i,e.g.error||"No error in the media element",n.uri)):n.p.reject(new G(2,3,3024,t)),ju(e,t)}}function ap(e,t,n,i,a){if(cs(e.C.get(a))!="mp4")return n;var l=i===null,f=e.Fa.get(a),d=e.M.Qj(),g=!1;return i&&i.ia&&(g=i.ia.encrypted),i=i?i.T()[0]:null,e.B.correctEc3Enca&&l&&a==="audio"&&(n=bm(n)),(e=e.B.insertFakeEncryptionInInit&&f)&&(d=md(d),e=ai()&&a==="audio"||Sl()||Zu()||Tn("SOPOpenBrowser")||Ws()&&Tl()&&d),e&&(l?n=Af(t,n,i):((t=!g)&&(t=ai()&&a==="audio"),t&&(n=Ng(n)))),l&&da()&&(n=Im(n)),n}function zu(e,t,n,i){return si(e,t,function(){if(t!==lt){if(e.C.get(t),eo()){e.j.has(t)&&(e.j.get(t).destroy(),e.j.delete(t)),i&&e.j.set(t,i);var a=n+e.B.addExtraFeaturesToSourceBuffer(n);e.l.get(t).changeType(a),e.C.set(t,n)}Ma(e,t)}},null)}function dv(e,t){var n,i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y;return q(function(P){switch(P.g){case 1:if(e.I)return P.return();for(n=ui,e.I=!0,e.m=!1,i=e.g.currentTime,a=e.g.autoplay,e.g.paused||(e.Ha=!0),e.Ya&&(e.g.autoplay=!1),_n(P,2),e.u.$a(),l=b(e.j.values()),f=l.next();!f.done;f=l.next())d=f.value,d.destroy();for(g=b(e.l.values()),m=g.next();!m.done;m=g.next()){S=m.value;try{e.i.removeSourceBuffer(S)}catch{}}return e.j.clear(),e.l.clear(),T=e.i.duration,e.K=new Bt,e.i=ip(e,e.K),O(P,e.K,4);case 4:!isNaN(T)&&T?e.i.duration=T:!isNaN(e.ua)&&e.ua&&(e.i.duration=e.ua),x=new Bt,M=e.i.sourceBuffers,R=t.size,L=0,I=function(){L++,L===R&&(x.resolve(),e.u.Ea(M,"addsourcebuffer",I))},e.u.o(M,"addsourcebuffer",I),U=b(t.keys()),N=U.next();case 5:return N.done?((Y=t.get(n.aa))&&Y.isAudioMuxedInVideo&&(e.m=!0),e.m&&!e.s.has(n.aa)&&e.s.set(n.aa,[]),e.g.currentTime=i,O(P,x,2)):(j=N.value,B=t.get(j),O(P,Ss(e,j,B,B.codecs),6));case 6:N=U.next(),P.A(5);break;case 2:re(P),e.I=!1,Mt(e.J),e.u.wa(e.g,"canplaythrough",function(){e.J.g||(e.g.autoplay=a,e.Ha&&(e.Ha=!1,e.g.play()))}),Re(P,0)}})}function Nm(e,t){return _u(e,function(){return dv(e,t)})}function qg(e,t,n,i){var a=!1,l=Ki("audio",(i||"").split(",")),f=Ki("video",(i||"").split(",")),d=f;t=="audio"&&(d=l),d||(d=i),i=Et(n,d);var g=e.B.forceTransmux;if((!zi(i)||!e.H&&ao.includes(i))&&(g=!0),g&&(e=mn(n,d),n=Kr(e))){var m=n();l&&f&&(a=!0),i=m.convertCodecs(t,e)}return t=In(Er(i)),{Ch:m,Al:a,Nh:va(i),codec:t,mimeType:i}}function up(e,t,n,i,a){var l,f,d,g,m,S,T,x,M,R,L,I,U,N;return q(function(j){return j.g==1?(l=ui,t==l.Na?j.return(!1):(f=In(Er(e.C.get(t))),d=va(e.C.get(t)),g=qg(e,t,n,i),m=g.Ch,S=g.Al,T=g.Nh,x=g.codec,M=g.mimeType,R=!0,S&&e.C.has(l.aa)&&(L=qg(e,l.aa,n,i),I=In(Er(e.C.get(l.aa))),U=va(e.C.get(l.aa)),R=I==L.codec&&U==L.Nh,L.Ch&&L.Ch.destroy()),f===x&&d===T&&R?(e.j.has(t)&&!m?(e.j.get(t).destroy(),e.j.delete(t)):!e.j.has(t)&&m?e.j.set(t,m):m&&(e.j.has(t)&&e.j.get(t).transmux!=m.transmux?(e.j.get(t).destroy(),e.j.delete(t),e.j.set(t,m)):m.destroy()),j.return(!1)):(N=!0,(e.m||S&&m&&!e.j.has(t))&&(N=!1),N&&e.B.codecSwitchingStrategy==="smooth"&&eo()?O(j,zu(e,t,M,m),3):(m&&m.destroy(),O(j,Nm(e,a),3))))):j.return(!0)})}function bf(e,t,n,i){if(t==lt)var a=!1;else{a=In(Er(e.C.get(t)));var l=va(e.C.get(t)),f=Et(n,i),d=e.B.forceTransmux;(!zi(f)||!e.H&&ao.includes(f))&&(d=!0),n=mn(n,i),d&&(d=Kr(n))&&(d=d(),f=d.convertCodecs(t,n),d.destroy()),t=In(Er(f)),f=va(f),a=a!==t||l!==f}return a?e.B.codecSwitchingStrategy!=="smooth"||!eo()||e.m:!1}var Ur=oe.URL.createObjectURL,Es="sequence";function We(e,t,n){this.i=e,this.D=t,this.s=this.l=1/0,this.h=1,this.g=this.j=null,this.B=0,this.C=!0,this.K=!1,this.J=0,this.H=n===void 0?!0:n,this.I=0,this.u=!1,this.m=e}w=We.prototype,w.getDuration=function(){return this.l},w.Wj=function(){return this.h},w.Ri=function(e){this.i=e},w.rb=function(e){this.l=e},w.ck=function(){return this.i},w.Ni=function(e){this.B=e},w.ed=function(e){e&&!this.C&&(this.K=!0),this.C=e},w.Bf=function(e){this.s=e},w.Ue=function(){return this.s},w.mh=function(e){this.D=e},w.Lj=function(){return this.D},w.Bi=function(e,t){if(e.length!=0){var n=(Date.now()+this.B)/1e3;if(e=e.filter(function(a){return a.start+t<n}),e.length!=0){var i=e[e.length-1].end+t;this.lf(e[0].start+t),this.h=e.reduce(function(a,l){return Math.max(a,l.end-l.start)},this.h),this.g=Math.max(this.g,i),this.i!=null&&this.H&&!this.u&&(this.i=n-this.g-this.h)}}},w.ce=function(e){if(e.length!=0){var t=e[0].startTime,n=e[0].endTime,i=(Date.now()+this.B)/1e3;e=b(e);for(var a=e.next();!a.done;a=e.next())a=a.value,i<a.startTime||(t=Math.min(t,a.startTime),n=Math.max(n,a.endTime),this.h=Math.max(this.h,a.endTime-a.startTime));this.lf(t),this.g=Math.max(this.g,n),this.i!=null&&this.H&&!this.u&&(this.i=i-this.g-this.h)}},w.Ai=function(e,t){this.lf(e),t==1/0||this.V()||(this.g=Math.max(this.g,t))},w.Xj=function(){return this.g},w.ef=function(){this.u=!0},w.Fk=function(){return this.u},w.Pi=function(e){this.m=e},w.Pj=function(){return this.m},w.lf=function(e){this.j==null?this.j=e:this.K||(this.j=Math.min(this.j,e))},w.Vg=function(e){this.h=Math.max(this.h,e)},w.offset=function(e){this.j!=null&&(this.j+=e),this.g!=null&&(this.g+=e)},w.V=function(){return this.l==1/0&&!this.C},w.Vc=function(){return this.l!=1/0&&!this.C},w.Fb=function(){return Math.max(this.J,this.wc()-this.s)},w.Ti=function(e){this.J=e},w.wc=function(){return this.V()||this.Vc()?Math.min(Math.max(0,(Date.now()+this.B)/1e3-this.h-this.i)+this.I,this.l):this.g?Math.min(this.g,this.l):this.l},w.Rd=function(e){var t=Math.max(this.j,this.J);return this.s==1/0?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.wc()-this.s+e,this.Eb()))},w.Yb=function(){return this.Rd(0)},w.Eb=function(){return Math.max(0,this.wc()-(this.V()||this.Vc()?this.D:0))},w.dj=function(){return!(this.i==null||this.g!=null&&this.H)},w.Mi=function(e){this.I=e},w.Cj=function(){return this.I},xe("shaka.media.PresentationTimeline",We),We.prototype.getAvailabilityTimeOffset=We.prototype.Cj,We.prototype.setAvailabilityTimeOffset=We.prototype.Mi,We.prototype.usingPresentationStartTime=We.prototype.dj,We.prototype.getSeekRangeEnd=We.prototype.Eb,We.prototype.getSeekRangeStart=We.prototype.Yb,We.prototype.getSafeSeekRangeStart=We.prototype.Rd,We.prototype.getSegmentAvailabilityEnd=We.prototype.wc,We.prototype.setUserSeekStart=We.prototype.Ti,We.prototype.getSegmentAvailabilityStart=We.prototype.Fb,We.prototype.isInProgress=We.prototype.Vc,We.prototype.isLive=We.prototype.V,We.prototype.offset=We.prototype.offset,We.prototype.notifyMaxSegmentDuration=We.prototype.Vg,We.prototype.notifyMinSegmentStartTime=We.prototype.lf,We.prototype.getInitialProgramDateTime=We.prototype.Pj,We.prototype.setInitialProgramDateTime=We.prototype.Pi,We.prototype.isStartTimeLocked=We.prototype.Fk,We.prototype.lockStartTime=We.prototype.ef,We.prototype.getMaxSegmentEndTime=We.prototype.Xj,We.prototype.notifyPeriodDuration=We.prototype.Ai,We.prototype.notifySegments=We.prototype.ce,We.prototype.notifyTimeRange=We.prototype.Bi,We.prototype.getDelay=We.prototype.Lj,We.prototype.setDelay=We.prototype.mh,We.prototype.getSegmentAvailabilityDuration=We.prototype.Ue,We.prototype.setSegmentAvailabilityDuration=We.prototype.Bf,We.prototype.setStatic=We.prototype.ed,We.prototype.setClockOffset=We.prototype.Ni,We.prototype.getPresentationStartTime=We.prototype.ck,We.prototype.setDuration=We.prototype.rb,We.prototype.setPresentationStartTime=We.prototype.Ri,We.prototype.getMaxSegmentDuration=We.prototype.Wj,We.prototype.getDuration=We.prototype.getDuration;function kr(e,t,n,i){var a=this;this.u=i,this.g=e,this.C=t,this.h=n,this.s=new Ft,this.l=!1,this.H=e.readyState,this.I=this.D=this.j=0,this.m=_m(this),this.B=!1,this.s.o(e,"waiting",function(){return Rf(a)}),this.i=new Ke(function(){Rf(a)}).xa(this.h.gapJumpTimerTime)}kr.prototype.release=function(){this.s&&(this.s.release(),this.s=null),this.i!=null&&(this.i.stop(),this.i=null),this.m&&(this.m.release(),this.m=null),this.g=this.C=this.u=null},kr.prototype.pf=function(){this.B=!0,this.i&&this.i.xa(this.h.gapJumpTimerTime),Rf(this)};function Rf(e){if(e.g.readyState!=0){if(e.g.seeking){if(!e.l)return}else e.l=!1;if(!e.g.paused||e.g.currentTime==e.j&&(e.g.autoplay||e.g.currentTime!=e.j)){e.g.readyState!=e.H&&(e.H=e.g.readyState);var t;if(!(t=!e.m)){t=e.m;var n=t.j,i=zm(n),a=n.g.currentTime,l=Date.now()/1e3;(t.g!=a||t.m!=i)&&(t.l=l,t.g=a,t.m=i,t.h=!1),a=l-t.l,(i=a>=t.s&&i&&!t.h)&&(t.i&&t.i(t.g,a),t.h=!0,t.g=n.g.currentTime),t=!i}t&&(t=e.g.currentTime,n=e.g.buffered,i=zg(n,t,e.h.gapDetectionThreshold),i==null||i==0&&!e.B||(a=n.start(i),(l=e.h.gapPadding)&&(a=Math.ceil(100*(a+l))/100),a>=e.C.Eb()||.001>a-t||(i!=0&&n.end(i-1),e.g.currentTime=a,t==e.j&&(e.j=a),e.D++,e.u(new Te("gapjumped")))))}}}function _m(e){if(!e.h.stallEnabled)return null;var t=e.h.stallSkip;return new jm(new op(e.g),e.h.stallThreshold,function(){var n;return q(function(i){if(i.g==1)return n=Ya(e.g.buffered),n.length?t?(e.g.currentTime+=t,i.A(2)):O(i,e.g.play(),3):i.return();if(i.g!=2){if(!e.g)return i.return();e.g.pause(),e.g.play()}e.I++,e.u(new Te("stalldetected")),ve(i)})})}function jm(e,t,n){this.j=e,this.m=zm(e),this.g=e.g.currentTime,this.l=Date.now()/1e3,this.h=!1,this.s=t,this.i=n}jm.prototype.release=function(){this.i=this.j=null};function op(e){this.g=e}function zm(e){if(e.g.paused||e.g.playbackRate==0||e.g.buffered.length==0)var t=!1;else e:{t=e.g.currentTime,e=b(Ya(e.g.buffered));for(var n=e.next();!n.done;n=e.next())if(n=n.value,!(t<n.start-.1||t>n.end-.5)){t=!0;break e}t=!1}return t}function Nr(e,t,n,i){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?i():(t=hv.value().get(t),n.wa(e,t,i))}var hv=new Zs(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Bu(e,t,n,i){var a=this;this.g=e,this.m=t,this.u=n,this.l=null,this.j=function(){return a.l==null&&(a.l=i()),a.l},this.s=!1,this.h=new Ft,this.i=new If(e),Nr(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){pv(a,a.j())})}Bu.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i!=null&&(this.i.release(),this.i=null),this.m=function(){},this.g=null};function Df(e){return e.s?e.g.currentTime:e.j()}function lp(e,t){0<e.g.readyState?xc(e.i,t):Nr(e.g,HTMLMediaElement.HAVE_METADATA,e.h,function(){pv(e,e.j())})}function pv(e,t){.001>Math.abs(e.g.currentTime-t)?As(e):(e.h.wa(e.g,"seeking",function(){As(e)}),xc(e.i,e.g.currentTime&&e.g.currentTime!=0?e.g.currentTime:t))}function As(e){e.s=!0,e.h.o(e.g,"seeking",function(){return e.m()}),e.u(e.g.currentTime)}function If(e){var t=this;this.g=e,this.m=10,this.j=this.l=this.i=0,this.h=new Ke(function(){0>=t.i||t.g.currentTime!=t.l||t.g.currentTime===t.j?t.h.stop():(t.g.currentTime=t.j,t.i--)})}If.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null};function xc(e,t){e.l=e.g.currentTime,e.j=t,e.i=e.m,e.g.currentTime=t,e.h.xa(.1)}function zl(e){this.h=e,this.j=!1,this.g=null,this.i=new Ft}w=zl.prototype,w.ready=function(){function e(){if(t.g==null||t.g==0&&t.h.duration!=1/0)t.j=!0;else{var n=t.h.currentTime,i=t.g;0>t.g&&(i=Math.max(0,n+t.g)),n!=i?(t.i.wa(t.h,"seeking",function(){t.j=!0}),t.h.currentTime=i):t.j=!0}}var t=this;Nr(this.h,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){e()})},w.release=function(){this.i&&(this.i.release(),this.i=null),this.h=null},w.Sf=function(e){this.g=this.j?this.g:e},w.Ee=function(){return(this.j?this.h.currentTime:this.g)||0},w.Hh=function(){return 0},w.Gh=function(){return 0},w.zi=function(){};function Bm(e,t,n,i,a,l){var f=this;this.i=e,this.g=t.presentationTimeline,this.l=n,this.u=a,this.s=null,this.j=new kr(e,t.presentationTimeline,n,l),this.h=new Bu(e,function(){e:{var d=f.j;d.l=!0,d.B=!1,d.i&&d.i.xa(d.h.gapJumpTimerTime),Rf(d);var g=Df(f.h);if(d=Lf(f,g),!nm()&&.001<Math.abs(d-g)){if(g=!1,!$a()||$a()&&eu())g=!0;else{var m=Date.now()/1e3,S=$a()&&Zc()?3:1;(!f.s||f.s<m-S)&&(f.s=m,g=!0)}if(g){lp(f.h,d),d=void 0;break e}}f.u(),d=void 0}return d},function(d){var g=f.j;g.g.seeking&&!g.l&&(g.l=!0,g.j=d),g.i&&g.i.xa(g.h.gapJumpTimerTime),Rf(g)},function(){var d=i;return d==null?d=1/0>f.g.getDuration()?f.g.Yb():f.g.Eb():0>d&&(d=f.g.Eb()+d),gv(f,Of(f,d))}),this.m=new Ke(function(){if(f.i.readyState!=0&&!f.i.paused){var d=Df(f.h),g=f.g.Yb(),m=f.g.Eb();3>m-g&&(g=m-3),d<g&&(d=Lf(f,d),f.i.currentTime=d)}})}w=Bm.prototype,w.ready=function(){this.m.xa(.25)},w.release=function(){this.h&&(this.h.release(),this.h=null),this.j&&(this.j.release(),this.j=null),this.m&&(this.m.stop(),this.m=null),this.i=this.h=this.g=this.l=null,this.u=function(){}},w.Sf=function(e){lp(this.h,e)},w.Ee=function(){var e=Df(this.h);return 0<this.i.readyState&&!this.i.paused?Of(this,e):e},w.Hh=function(){return this.j.I},w.Gh=function(){return this.j.D},w.zi=function(){this.j.pf()};function gv(e,t){var n=e.g.getDuration();return t>=n?n-e.l.durationBackoff:t}function Lf(e,t){var n=e.l.rebufferingGoal,i=e.l.safeSeekOffset,a=e.g.Yb(),l=e.g.Eb(),f=e.g.getDuration();3>l-a&&(a=l-3);var d=e.g.Rd(n),g=e.g.Rd(i);return n=e.g.Rd(n+i),t>=f?gv(e,t):t>l?l-e.l.safeSeekEndOffset:t<a?ov(e.i.buffered,g)?g:n:t>=d||ov(e.i.buffered,t)?t:n}function Of(e,t){var n=e.g.Yb();return t<n?n:(e=e.g.Eb(),t>e?e:t)}function Vt(e){this.g=e,this.m=null,this.i=0,this.s=!1}w=Vt.prototype,w.getNumReferences=function(){return this.g.length},w.getNumEvicted=function(){return this.i},w.release=function(){this.s||(this.g=[],this.m&&this.m.stop(),this.m=null)},w.Mk=function(){this.s=!0},w.Kb=function(e){for(var t=b(this.g),n=t.next();!n.done;n=t.next())e(n.value)};function Pu(e){return e.g[0]||null}w.find=function(e){for(var t=this.g.length-1,n=t;0<=n;--n){var i=this.g[n],a=n<t?this.g[n+1].startTime:i.endTime;if(e>=i.startTime&&e<a)return n+this.i}return this.g.length&&e<this.g[0].startTime?this.i:null},w.get=function(e){return this.g.length==0?null:(e-=this.i,0>e||e>=this.g.length?null:this.g[e])},w.offset=function(e){if(!this.s)for(var t=b(this.g),n=t.next();!n.done;n=t.next())n.value.offset(e)},w.hf=function(e){if(!this.s&&e.length){var t=Math.round(1e3*e[0].startTime)/1e3;this.g=this.g.filter(function(n){return Math.round(1e3*n.startTime)/1e3<t}),this.g.push.apply(this.g,Ue(e))}},w.ae=function(e,t){var n=this;e=e.filter(function(i){return i.endTime>t&&(n.g.length==0||i.endTime>n.g[0].startTime)}),this.hf(e),this.eb(t)},w.eb=function(e){if(!this.s){var t=this.g.length;this.g=this.g.filter(function(n){return n.endTime>e}),this.i+=t-this.g.length}},w.pd=function(e,t,n){if(n=n===void 0?!1:n,!this.s){for(;this.g.length&&this.g[this.g.length-1].startTime>=t;)this.g.pop();for(;this.g.length&&this.g[0].endTime<=e;)this.g.shift(),n||this.i++;this.g.length!=0&&(e=this.g[this.g.length-1],t=new Ye(e.startTime,t,e.D,e.startByte,e.endByte,e.ia,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.g,e.tilesLayout,e.C,e.h,e.status,e.aesKey),t.mimeType=e.mimeType,t.codecs=e.codecs,t.i=e.i,this.g[this.g.length-1]=t)}},w.If=function(e,t){var n=this;this.s||(this.m&&this.m.stop(),this.m=new Ke(function(){var i=t();i?n.g.push.apply(n.g,Ue(i)):(n.m.stop(),n.m=null)}),this.m.xa(e))},Vt.prototype[Symbol.iterator]=function(){return this.Xb(0)},Vt.prototype.Xb=function(e,t,n){t=t===void 0?!1:t,n=n===void 0?!1:n;var i=this.find(e);if(i==null)return null;var a=this.get(i);n?i++:i--;var l=-1;if(a&&0<a.g.length)for(var f=a.g.length-1;0<=f;--f){var d=a.g[f];if(e>=d.startTime&&e<d.endTime){if(!t){for(;f&&!d.l;)f--,d=a.g[f];if(!d.l)return xu("No independent partial segment found!"),null}n?i--:i++,l=f-1;break}}return new gu(this,i,l,n)};function sp(e,t,n){return e=new Ye(e,e+t,function(){return n},0,null,null,e,e,e+t),new Vt([e])}xe("shaka.media.SegmentIndex",Vt),Vt.forSingleSegment=sp,Vt.prototype.getIteratorForTime=Vt.prototype.Xb,Vt.prototype.updateEvery=Vt.prototype.If,Vt.prototype.fit=Vt.prototype.pd,Vt.prototype.evict=Vt.prototype.eb,Vt.prototype.mergeAndEvict=Vt.prototype.ae,Vt.prototype.offset=Vt.prototype.offset,Vt.prototype.get=Vt.prototype.get,Vt.prototype.find=Vt.prototype.find,Vt.prototype.markImmutable=Vt.prototype.Mk,Vt.prototype.release=Vt.prototype.release,Vt.prototype.getNumEvicted=Vt.prototype.getNumEvicted,Vt.prototype.getNumReferences=Vt.prototype.getNumReferences;function gu(e,t,n,i){this.i=e,this.h=t,this.g=n,this.reverse=i}w=gu.prototype,w.Fd=function(e){this.reverse=e},w.xj=function(){return this.h},w.current=function(){var e=this.i.get(this.h);return e&&0<e.g.length&&e.B&&this.g>=e.g.length&&(this.h++,this.g=0,e=this.i.get(this.h)),e&&0<e.g.length?e.g[this.g]:e},w.next=function(){var e=this.i.get(this.h);return this.reverse?e&&0<e.g.length?(this.g--,0>this.g&&(this.h--,this.g=(e=this.i.get(this.h))&&0<e.g.length?e.g.length-1:0)):(this.h--,this.g=0):e&&0<e.g.length?(this.g++,e.B&&this.g==e.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0),e=this.current(),{value:e,done:!e}},w.fh=function(){var e=this.current();if(e.s&&!e.l&&(e=this.i.get(this.h))&&0<e.g.length)for(var t=e.g[this.g];t.l&&!(0>=this.g);)this.g--,t=e.g[this.g]},xe("shaka.media.SegmentIterator",gu),gu.prototype.resetToLastIndependent=gu.prototype.fh,gu.prototype.next=gu.prototype.next,gu.prototype.current=gu.prototype.current,gu.prototype.currentPosition=gu.prototype.xj,gu.prototype.setReverse=gu.prototype.Fd;function Yn(){Vt.call(this,[]),this.h=[]}Xe(Yn,Vt),w=Yn.prototype,w.clone=function(){var e=new Yn;return e.h=this.h.slice(),e.i=this.i,e},w.release=function(){for(var e=b(this.h),t=e.next();!t.done;t=e.next())t.value.release();this.h=[]},w.Kb=function(e){for(var t=b(this.h),n=t.next();!n.done;n=t.next())n.value.Kb(e)},w.find=function(e){for(var t=this.i,n=b(this.h),i=n.next();!i.done;i=n.next()){i=i.value;var a=i.find(e);if(a!=null)return a+t;t+=i.getNumEvicted()+i.getNumReferences()}return null},w.get=function(e){for(var t=this.i,n=b(this.h),i=n.next();!i.done;i=n.next()){i=i.value;var a=i.get(e-t);if(a)return a;a=i.getNumReferences(),t+=i.getNumEvicted()+a}return null},w.offset=function(){},w.hf=function(){},w.eb=function(e){for(var t=b(this.h),n=t.next();!n.done;n=t.next())n.value.eb(e);for(;1<this.h.length&&this.h[0].getNumReferences()==0;)e=this.h.shift(),this.i+=e.getNumEvicted(),e.release()},w.ae=function(){},w.pd=function(){},w.If=function(){},xe("shaka.media.MetaSegmentIndex",Yn),Yn.prototype.updateEvery=Yn.prototype.If,Yn.prototype.fit=Yn.prototype.pd,Yn.prototype.mergeAndEvict=Yn.prototype.ae,Yn.prototype.evict=Yn.prototype.eb,Yn.prototype.merge=Yn.prototype.hf,Yn.prototype.offset=Yn.prototype.offset,Yn.prototype.get=Yn.prototype.get,Yn.prototype.find=Yn.prototype.find,Yn.prototype.forEachTopLevelReference=Yn.prototype.Kb,Yn.prototype.release=Yn.prototype.release;function Kd(e){var t=this;this.g=e,this.j=!1,this.i=this.g.Te(),this.h=new Ke(function(){t.g.wi(.25*t.i)})}Kd.prototype.release=function(){this.set(this.Qc()),this.h&&(this.h.stop(),this.h=null),this.g=null},Kd.prototype.set=function(e){this.i=e,Uf(this)},Kd.prototype.Qc=function(){return this.g.Qc()};function Uf(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{e.g.Te()!=t&&e.g.qh(t);return}catch{}e.h.xa(.25),e.g.Te()!=0&&e.g.qh(0)}function Qd(e){var t=this;this.j=e,this.h=new Ft,this.g=new Set,this.i=new Ke(function(){mv(t,!1)}).Ia(),e.paused||this.i.xa(.25),this.h.o(e,"playing",function(){t.i.Ia().xa(.25)}),this.h.o(e,"pause",function(){t.i.stop()})}Qd.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i.stop();for(var e=b(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g.clear()};function mv(e,t){var n=e.j.currentTime;e=b(e.g);for(var i=e.next();!i.done;i=e.next())i.value.j(n,t)}function Yg(e){Tt.call(this),this.g=new Map,this.h=e}Xe(Yg,Tt),Yg.prototype.release=function(){this.g.clear(),Tt.prototype.release.call(this)};function W1(e,t){var n=e.g.get(t);return n||(n={ge:[],kg:null,contentType:t},e.g.set(t,n)),n}function Xg(e,t,n){var i=W1(e,t.contentType);$1(e,i),e={wd:t,position:n},i=i.ge,t=i.findIndex(function(a){return a.position>=n}),0<=t?i.splice(t,i[t].position==n?1:0,e):i.push(e)}Yg.prototype.j=function(e){for(var t=b(this.g.values()),n=t.next();!n.done;n=t.next()){n=n.value;var i=n.kg;e:{for(var a=n.ge,l=a.length-1;0<=l;l--){var f=a[l];if(f.position<=e){a=f.wd;break e}}a=null}l=a&&!(i===a||i&&a&&i.bandwidth==a.bandwidth&&i.audioSamplingRate==a.audioSamplingRate&&i.codecs==a.codecs&&i.contentType==a.contentType&&i.frameRate==a.frameRate&&i.height==a.height&&i.mimeType==a.mimeType&&i.channelsCount==a.channelsCount&&i.pixelAspectRatio==a.pixelAspectRatio&&i.width==a.width),f=a&&i&&a.label&&i.label&&i.label!==a.label;var d=a&&i&&a.language&&i.language&&i.language!==a.language;i=a&&i&&a.roles&&i.roles&&!rc(i.roles,a.roles),(f||d||i)&&Fg(this,e,a.contentType)&&(n.kg=a,i=new Te("audiotrackchange",new Map([["quality",a],["position",e]])),this.dispatchEvent(i)),l&&Fg(this,e,a.contentType)&&(n.kg=a,JSON.stringify(a),n=new Te("qualitychange",new Map([["quality",a],["position",e]])),this.dispatchEvent(n))}};function Fg(e,t,n){return!!((e=e.h()[n])&&0<e.length&&(n=e[e.length-1].end,t>=e[0].start&&t<n))}function $1(e,t){if((e=e.h()[t.contentType])&&0<e.length){var n=e[0].start,i=e[e.length-1].end,a=t.ge;t.ge=a.filter(function(l,f){return!(l.position<=n&&f+1<a.length&&a[f+1].position<=n||l.position>=i)})}else t.ge=[]}function Zd(e){var t={bandwidth:e.bandwidth||0,audioSamplingRate:null,codecs:e.codecs,contentType:e.type,frameRate:null,height:null,mimeType:e.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:e.roles,language:null};return e.type=="video"&&(t.frameRate=e.frameRate||null,t.height=e.height||null,t.pixelAspectRatio=e.pixelAspectRatio||null,t.width=e.width||null),e.type=="audio"&&(t.audioSamplingRate=e.audioSamplingRate,t.channelsCount=e.channelsCount,t.label=e.label||null,t.language=e.language),t}function Jd(e){Tt.call(this),this.h=new Map,this.i=e,this.g=null}Xe(Jd,Tt),Jd.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),Tt.prototype.release.call(this)};function Kg(e,t){var n=t.schemeIdUri+"_"+t.id+"_"+(t.startTime.toFixed(1)+"_"+t.endTime.toFixed(1));e.h.has(n)||(e.h.set(n,t),t=new Te("regionadd",new Map([["region",t]])),e.dispatchEvent(t),ri(e))}function ri(e){e.g||(e.g=new Ke(function(){for(var t=e.i(),n=b(e.h),i=n.next();!i.done;i=n.next()){var a=b(i.value);i=a.next().value,a=a.next().value,a.endTime<t.start&&(e.h.delete(i),i=new Te("regionremove",new Map([["region",a]])),e.dispatchEvent(i))}!e.h.size&&e.g&&(e.g.stop(),e.g=null)}).xa(2))}function Wd(e,t,n,i){this.m=e,this.i=t,this.l=n,this.h=new Map,this.j=new Map,this.g=null,this.s=i}function yv(e,t){e.l=t,e=b(e.h.values());for(var n=e.next();!n.done;n=e.next())n.value.g=t}function $d(e,t,n){if(n=n===void 0?!1:n,!e.i.segmentIndex||(e.g||(e.g=e.i.segmentIndex.Xb(t,!0,e.s)),!e.g))return Promise.resolve();for(n&&e.g.next(),t=[];e.h.size<e.m&&(n=e.g.next().value,!!n);){var i=!0;n.isPreload()&&n.endByte!=null&&(i=!1),n.yc()==2&&(i=!1),n.Zb(!1)&&(i=!1),i&&n.ia&&t.push(eS(e,n.ia)),i&&!e.h.has(n)&&(i=new fp(e.l),t.push(Cc(i,n,e.i)),e.h.set(n,i))}return cp(e),Promise.all(t)}function eS(e,t){if(!e.i.segmentIndex||t.Zb()||Array.from(e.j.keys()).some(function(a){return _g(a,t)}))return Promise.resolve();var n=new fp(e.l),i=Cc(n,t,e.i);return e.j.set(t,n),i}function tS(e,t){t=b(t.keys());for(var n=t.next();!n.done;n=t.next())(n=n.value)&&xs(e,n)}function Bl(e){tS(e,e.h),tS(e,e.j),e.g=null}Wd.prototype.eb=function(e,t){t=t===void 0?!1:t;for(var n=b(this.h.keys()),i=n.next();!i.done;i=n.next())i=i.value,e>i.endTime&&xs(this,i);t&&cp(this)},Wd.prototype.Fd=function(e){this.s=e,this.g&&this.g.Fd(e)};function cp(e){for(var t=Array.from(e.h.keys()),n=b(e.j.keys()),i=n.next(),a={};!i.done;a={Qg:void 0},i=n.next())a.Qg=i.value,t.some(function(l){return function(f){return _g(f.ia,l.Qg)}}(a))||xs(e,a.Qg)}function wc(e,t){e.m=t;for(var n=Array.from(e.h.keys());n.length>t;){var i=n.pop();i&&xs(e,i)}cp(e)}function Qg(e,t){t&&t!==e.i&&(Bl(e),e.i=t)}function xs(e,t){var n=e.h;t instanceof xa&&(n=e.j),e=n.get(t),n.delete(t),e&&e.abort()}function fp(e){this.g=e,this.ee=this.wh=null}function Cc(e,t,n){var i=new Uint8Array(0);return e.ee=e.g(t,n,function(a){return q(function(l){if(l.g==1)return 0<i.byteLength?i=gn(i,a):i=a,e.wh?O(l,e.wh(i),3):l.A(0);i=new Uint8Array(0),ve(l)})}),e.ee.promise.catch(function(a){return a instanceof G&&a.code==7001?Promise.resolve():Promise.reject(a)})}fp.prototype.abort=function(){this.ee&&this.ee.abort()};function Ka(e){var t=va(e),n=t.split("/")[0];return e=Er(e),{type:n,mimeType:t,codecs:e,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,qe:null,colorGamut:null,frameRate:null}}function Zg(e,t,n){function i(V){U=V.name;var F=V.reader;F.skip(24);var K=F.Da(),ee=F.Da();F.skip(50),x=String(K),T=String(ee),V.reader.Ma()&&mt(V)}function a(V){var F=Ug(V.reader);M=F.channelCount,R=F.sampleRate,l(V.name)}function l(V){switch(V=V.toLowerCase(),V){case"avc1":case"avc3":d.push(V+".42E01E"),m=!0;break;case"hev1":case"hvc1":d.push(V+".1.6.L93.90"),m=!0;break;case"dvh1":case"dvhe":d.push(V+".05.04"),m=!0;break;case"vp09":d.push(V+".00.10.08"),m=!0;break;case"av01":d.push(V+".0.01M.08"),m=!0;break;case"mp4a":f.push("mp4a.40.2"),g=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":f.push(V),g=!0}}var f=[],d=[],g=!1,m=!1,S=null,T=null,x=null,M=null,R=null,L=null,I=null,U;if(new Zt().box("moov",mt).box("trak",mt).box("mdia",mt).W("mdhd",function(V){S=vf(V.reader,V.version).language}).box("minf",mt).box("stbl",mt).W("stsd",Ul).box("mp4a",function(V){var F=Ug(V.reader);M=F.channelCount,R=F.sampleRate,V.reader.Ma()?mt(V):l(V.name)}).box("esds",function(V){V=V.reader;for(var F="mp4a",K,ee;V.Ma();){K=V.ha();for(var Q=V.ha();Q&128;)Q=V.ha();if(K==3)V.Da(),Q=V.ha(),Q&128&&V.Da(),Q&64&&V.skip(V.ha()),Q&32&&V.Da();else if(K==4)ee=V.ha(),V.skip(12);else if(K==5)break}ee&&(F+="."+Vo(ee),K==5&&V.Ma()&&(K=V.ha(),ee=(K&248)>>3,ee===31&&V.Ma()&&(ee=32+((K&7)<<3)+((V.ha()&224)>>5)),F+="."+ee)),f.push(F),g=!0}).box("ac-3",a).box("ec-3",a).box("ac-4",a).box("Opus",a).box("fLaC",a).box("avc1",i).box("avc3",i).box("hev1",i).box("hvc1",i).box("dva1",i).box("dvav",i).box("dvh1",i).box("dvhe",i).box("vp09",i).box("av01",i).box("avcC",function(V){var F=U||"";switch(U){case"dvav":F="avc3";break;case"dva1":F="avc1"}V=V.reader,V.skip(1),V=F+"."+Vo(V.ha())+Vo(V.ha())+Vo(V.ha()),d.push(V),m=!0}).box("hvcC",function(V){var F=U||"";switch(U){case"dvh1":F="hvc1";break;case"dvhe":F="hev1"}var K=V.reader;K.skip(1),V=K.ha();var ee=["","A","B","C"][V>>6],Q=V&31,ne=K.X(),ie=(V&32)>>5?"H":"L";V=[K.ha(),K.ha(),K.ha(),K.ha(),K.ha(),K.ha()],K=K.ha();for(var ue=0,ce=0;32>ce&&(ue|=ne&1,ce!=31);ce++)ue<<=1,ne>>=1;for(F=F+("."+ee+Q)+("."+Vo(ue,!0)),F+="."+ie+K,ee="",Q=V.length;Q--;)((ie=V[Q])||ee)&&(ee="."+ie.toString(16).toUpperCase()+ee);F+=ee,d.push(F),m=!0}).box("dvcC",function(V){var F=U||"";switch(U){case"hvc1":F="dvh1";break;case"hev1":F="dvhe";break;case"avc1":F="dva1";break;case"avc3":F="dvav";break;case"av01":F="dav1"}var K=V.reader;K.skip(2),V=K.ha(),K=K.ha(),d.push(F+"."+Or(V>>1&127)+"."+Or(V<<5&32|K>>3&31)),m=!0}).box("dvvC",function(V){var F=U||"";switch(U){case"hvc1":F="dvh1";break;case"hev1":F="dvhe";break;case"avc1":F="dva1";break;case"avc3":F="dvav";break;case"av01":F="dav1"}var K=V.reader;K.skip(2),V=K.ha(),K=K.ha(),d.push(F+"."+Or(V>>1&127)+"."+Or(V<<5&32|K>>3&31)),m=!0}).W("vpcC",function(V){var F=U||"",K=V.reader;V=K.ha();var ee=K.ha();K=K.ha()>>4&15,d.push(F+"."+Or(V)+"."+Or(ee)+"."+Or(K)),m=!0}).box("av1C",function(V){var F=U||"";switch(U){case"dav1":F="av01"}var K=V.reader;K.skip(1),V=K.ha(),K=K.ha();var ee=V>>>5,Q=(K&64)>>6;d.push(F+"."+ee+"."+Or(V&31)+(K>>>7?"H":"M")+"."+Or(ee===2&&Q?(K&32)>>5?12:10:Q?10:8)+"."+((K&16)>>4)+"."+((K&8)>>3)+((K&4)>>2)+(K&3)+"."+Or(1)+"."+Or(1)+"."+Or(1)+".0"),m=!0}).box("enca",Vh).box("encv",Ta).box("sinf",mt).box("frma",function(V){V=Sf(V.reader).codec,l(V)}).box("colr",function(V){d=d.map(function(ee){if(ee.startsWith("av01.")){var Q=V.reader,ne=Q.Ta(),ie=Q.Tb(4),ue=String.fromCharCode(ie[0]);if(ue+=String.fromCharCode(ie[1]),ue+=String.fromCharCode(ie[2]),ue+=String.fromCharCode(ie[3]),ue==="nclx"){ie=Q.Da(),ue=Q.Da();var ce=Q.Da(),le=Q.ha()>>7,Se=ee.split(".");Se.length==10&&(Se[6]=Or(ie),Se[7]=Or(ue),Se[8]=Or(ce),Se[9]=String(le),ee=Se.join("."))}Q.seek(ne)}return ee});var F=Pd(V.reader),K=F.colorGamut;L=F.qe,I=K}).parse(e||t,!0),!f.length&&!d.length)return null;var N=g&&!m,j=new Map;if(m&&!n){n=new ja("video/mp4"),e&&n.init(e);try{n.i(t);for(var B=b(n.j()),Y=B.next();!Y.done;Y=B.next()){var P=Y.value;j.set(P,P)}}catch{}n.g()}return{type:N?"audio":"video",mimeType:N?"audio/mp4":"video/mp4",codecs:Pm(f.concat(d)).join(", "),language:S,height:T,width:x,channelCount:M,sampleRate:R,closedCaptions:j,qe:L,colorGamut:I,frameRate:null}}function Pm(e){var t=new Set,n=[];e=b(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;var a=jo(i);t.has(a)||(n.push(i),t.add(a))}return t=rg("audio",n),i=rg("video",n),e=rg(lt,n),i=Jg(i),t=t.concat(i).concat(e),n.length&&!t.length?n:t}function Jg(e){if(1>=e.length)return e;var t=e.find(function(n){return n.startsWith("dvav.")||n.startsWith("dva1.")||n.startsWith("dvh1.")||n.startsWith("dvhe.")||n.startsWith("dav1.")||n.startsWith("dvc1.")||n.startsWith("dvi1.")});return t?zi('video/mp4; codecs="'+t+'"')?[t]:e.filter(function(n){return n!=t}):e}function vv(e){var t=null;return new Zt().box("moov",mt).box("trak",mt).box("mdia",mt).box("minf",mt).box("stbl",mt).W("stsd",Ul).box("encv",Ta).box("enca",Vh).box("sinf",mt).box("schi",mt).W("tenc",function(n){n=n.reader,n.ha(),n.ha(),n.ha(),n.ha(),t=nu(n.Tb(16))}).parse(e,!0),t}function Hm(e,t,n){var i,a,l,f,d;return q(function(g){if(g.g==1)return i=t,i.cryptoKey?g.A(2):O(g,i.fetchKey(),3);if(a=i.iv,!a)for(a=at(new ArrayBuffer(16)),l=i.firstMediaSequenceNumber+n,f=a.byteLength-1;0<=f;f--)a[f]=l&255,l>>=8;return t.blockCipherMode=="CBC"?d={name:"AES-CBC",iv:a}:d={name:"AES-CTR",counter:a,length:64},g.return(oe.crypto.subtle.decrypt(d,i.cryptoKey,e))})}function ws(e,t,n,i,a){return e=yi(e,i,a),(t!=0||n!=null)&&(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function Sv(e,t){var n=this;this.g=t,this.j=e,this.h=null,this.L=new Map,this.D=1,this.u=this.l=null,this.P=0,this.i=new Map,this.K=!1,this.R=null,this.C=!1,this.m=new gs(function(){return eh(n)}),this.M=Date.now()/1e3,this.s=new Map,this.N={projection:null,hfov:null},this.U=0,this.S=1/0,this.H=null,this.B=new Ke(function(){if(n.j&&n.g)if(n.j.presentationTimeline.V()){var i=n.j.presentationTimeline.Yb(),a=n.j.presentationTimeline.Eb();1<a-i?Ts(n.g.ka,i,a):Mf(n.g.ka)}else Mf(n.g.ka),n.B&&n.B.stop();else n.B&&n.B.stop()}),this.I=null,this.J=new Ke(function(){var i=n.g.video;!i.ended&&n.I&&(i.currentTime=n.I,n.I=null)})}w=Sv.prototype,w.destroy=function(){return this.m.destroy()};function eh(e){var t,n,i,a,l,f,d;return q(function(g){if(g.g==1){for(e.B&&e.B.stop(),e.B=null,e.J&&e.J.stop(),e.J=null,t=[],n=b(e.i.values()),i=n.next();!i.done;i=n.next())a=i.value,bs(a),t.push(Qa(a)),a.ma&&(Bl(a.ma),a.ma=null);for(l=b(e.s.values()),f=l.next();!f.done;f=l.next())d=f.value,Bl(d);return O(g,Promise.all(t),2)}e.i.clear(),e.s.clear(),e.g=null,e.j=null,e.h=null,e.I=null,ve(g)})}w.configure=function(e){if(this.h=e,this.R=new Lr({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor},!0),e.disableAudioPrefetch){var t=this.i.get("audio");t&&t.ma&&(Bl(t.ma),t.ma=null),t=b(this.s.keys());for(var n=t.next();!n.done;n=t.next())n=n.value,Bl(this.s.get(n)),this.s.delete(n)}for(e.disableTextPrefetch&&(t=this.i.get(lt))&&t.ma&&(Bl(t.ma),t.ma=null),e.disableVideoPrefetch&&(t=this.i.get("video"))&&t.ma&&(Bl(t.ma),t.ma=null),t=b(this.i.keys()),n=t.next();!n.done;n=t.next())n=this.i.get(n.value),n.ma?(wc(n.ma,e.segmentPrefetchLimit),0<e.segmentPrefetchLimit||(Bl(n.ma),n.ma=null)):0<e.segmentPrefetchLimit&&(n.ma=Nf(this,n.stream));e.disableAudioPrefetch||Tv(this)};function Gm(e,t,n){e.j.presentationTimeline.V()||(e.U=t,e.S=n)}w.start=function(e){var t=this;return q(function(n){if(n.g==1)return O(n,nn(t,e||new Map),2);Mt(t.m),t.K=!0,ve(n)})};function Wg(e,t){var n,i,a,l,f,d;q(function(g){switch(g.g){case 1:return n=ui,e.P++,i=e.P,Le(g,2),O(g,vn(e.g.ka,n.Na),4);case 4:Ge(g,3);break;case 2:a=je(g),e.g&&e.g.onError(a);case 3:l=Et(t.mimeType,t.codecs),Gg(e.g.ka,l,e.j.sequenceMode,t.external),f=e.g.ka.ba,(f.isTextVisible()||e.h.alwaysStreamText)&&e.P==i&&(d=Mc(e,t),e.i.set(n.Na,d),lr(e,d,0)),ve(g)}})}function nS(e){var t=e.i.get(lt);t&&(bs(t),Qa(t).catch(function(){}),e.H=e.i.get(lt),e.i.delete(lt)),e.u=null}function Ui(e,t){for(var n=0>e.g.Wa(),i=b(e.i.values()),a=i.next();!a.done;a=i.next())a=a.value,a.ya&&a.ya.Fd(n),a.ma&&a.ma.Fd(n);for(i=b(e.s.values()),a=i.next();!a.done;a=i.next())a.value.Fd(n);(n=e.i.get("video"))&&(i=n.stream)&&(t?(t=i.trickModeVideo)&&!n.Cc&&(Cs(e,t,!1,0,!1),n.Cc=i):(t=n.Cc)&&(n.Cc=null,Cs(e,t,!0,0,!1)))}function dp(e,t,n,i,a,l){n=n===void 0?!1:n,i=i===void 0?0:i,a=a===void 0?!1:a,l=l===void 0?!1:l,e.l=t,e.K&&(t.video&&Cs(e,t.video,n,i,a,l),t.audio&&Cs(e,t.audio,n,i,a,l))}function Vm(e,t){q(function(n){if(n.g==1)return e.H=null,e.u=t,e.K?t.segmentIndex?n.A(2):O(n,t.createSegmentIndex(),2):n.return();Cs(e,t,!0,0,!1),ve(n)})}function cn(e,t){for(var n=b(e.L.entries()),i=n.next();!i.done;i=n.next()){var a=b(i.value);i=a.next().value,a=a.next().value,i.includes(t.type)&&(a(),e.L.delete(i))}}function Cs(e,t,n,i,a,l){var f=e.i.get(t.type);f||t.type!=lt?f&&(f.Cc&&(t.trickModeVideo?(f.Cc=t,t=t.trickModeVideo):f.Cc=null),f.stream!=t||a)&&(e.s.has(t)?f.ma=e.s.get(t):f.ma&&Qg(f.ma,t),t.type==lt&&(a=Et(t.mimeType,t.codecs),Gg(e.g.ka,a,e.j.sequenceMode,t.external)),!e.s.has(f.stream)&&f.stream.closeSegmentIndex&&(f.Za?(a="("+f.type+":"+f.stream.id+")",e.L.has(a)||e.L.set(a,f.stream.closeSegmentIndex)):f.stream.closeSegmentIndex()),a=f.stream.isAudioMuxedInVideo!=t.isAudioMuxedInVideo,f.stream=t,f.ya=null,f.Xf=!!l,t.dependencyStream?f.Od=Mc(e,t.dependencyStream):f.Od=null,a?Rc(e,!0,!1):(n?f.Lc?f.Pf=!0:f.Za?(f.Jc=!0,f.Me=i,f.Pf=!0):(bs(f),xv(e,f,!0,i).catch(function(d){e.g&&e.g.onError(d)})):f.Za||f.zb||lr(e,f,0),kf(e,f).catch(function(d){e.g&&e.g.onError(d)}))):Wg(e,t)}function kf(e,t){var n,i;return q(function(a){if(a.g==1)return t.Gb?(n=t.stream,i=t.Gb,n.segmentIndex?a.A(2):O(a,n.createSegmentIndex(),2)):a.return();if(t.Gb!=i||t.stream!=n)return a.return();var l=e.g.sd(),f=or(e.g.ka,t.type),d=t.stream.segmentIndex.find(t.Ra?t.Ra.endTime:l),g=d==null?null:t.stream.segmentIndex.get(d);d=g&&g.endByte?g.endByte-g.startByte:null,g&&!d&&(d=(g.endTime-g.getStartTime())*(t.stream.bandwidth||0)/8),d?((g=g.ia)&&(d+=(g.endByte?g.endByte-g.startByte:null)||0),g=e.g.getBandwidthEstimate(),l=8*d/g<(f||0)-l-e.h.rebufferingGoal||t.Gb.h.g>d):l=!1,l&&t.Gb.abort(),ve(a)})}w.dd=function(){if(this.g){for(var e=this.g.sd(),t=b(this.i.keys()),n=t.next();!n.done;n=t.next()){var i=n.value;n=this.i.get(i);var a=this.g.ka;if(i==lt?(a=a.h,a=a.g==null||a.h==null?!1:e>=a.g&&e<a.h):(a=Cf(a,i),a=ov(a,e)),!a){if(this.M=0,n.ma&&(n.ma.g=null),n.type==="audio"){a=b(this.s.values());for(var l=a.next();!l.done;l=a.next())l.value.g=null}n.ya=null,(or(this.g.ka,i)!=null||n.Za)&&Ms(this,n),n.Gb&&(n.Gb.abort(),n.Gb=null),i===lt&&(i=this.g.ka,i.P&&i.P.g()),n.dd=!0}}this.h.crossBoundaryStrategy!=="keep"&&jf(this)}};function Ms(e,t){t.Lc||t.Jc||(t.Za?(t.Jc=!0,t.Me=0):Vg(e.g.ka,t.type)==null?t.zb==null&&lr(e,t,0):(bs(t),xv(e,t,!1,0).catch(function(n){e.g&&e.g.onError(n)})))}function nn(e,t){var n,i,a,l,f,d,g,m,S,T;return q(function(x){if(x.g==1){if(n=ui,!e.l)throw new G(2,5,5006);return i=new Map,a=new Set,e.l.audio&&(i.set(n.aa,e.l.audio),a.add(e.l.audio)),e.l.video&&(i.set(n.Ba,e.l.video),a.add(e.l.video)),e.u&&(i.set(n.Na,e.u),a.add(e.u)),l=e.g.ka,O(x,l.init(i,e.j.sequenceMode,e.j.type,e.j.ignoreManifestTimestampsInSegmentsMode),2)}for(Mt(e.m),e.updateDuration(),f=b(i.keys()),d=f.next();!d.done;d=f.next())g=d.value,m=i.get(g),e.i.has(g)||(S=Mc(e,m),t.has(m.id)&&(T=t.get(m.id),yv(T,function(M,R,L){return Pt(M,R,L||null,e.h.retryParameters,e.g.kc)}),S.ma=T),e.i.set(g,S),lr(e,S,0));ve(x)})}function Mc(e,t){var n={stream:t,type:t.type,ya:null,ma:Nf(e,t),Ra:null,Pb:null,df:null,Yc:null,Xc:null,bf:null,cf:null,Cc:null,endOfStream:!1,Za:!1,zb:null,Jc:!1,Me:0,Pf:!1,Lc:!1,dd:!0,Xf:!1,dh:!1,Td:!1,Gb:null,Od:null};return t.dependencyStream&&(n.Od=Mc(e,t.dependencyStream)),n}function Nf(e,t){if(t.type==="video"&&e.h.disableVideoPrefetch||t.type==="audio"&&e.h.disableAudioPrefetch||t.type===lt&&(t.mimeType=="application/cea-608"||t.mimeType=="application/cea-708")||t.type===lt&&e.h.disableTextPrefetch)return null;if(e.s.has(t))return e.s.get(t);var n=e.i.get(t.type);return(n=n&&n.ma)&&t===n.i?n:0<e.h.segmentPrefetchLimit?new Wd(e.h.segmentPrefetchLimit,t,function(i,a,l){return Pt(i,a,l||null,e.h.retryParameters,e.g.kc)},0>e.g.Wa()):null}function Tv(e){for(var t=e.h.segmentPrefetchLimit,n=e.h.prefetchAudioLanguages,i=b(e.j.variants),a=i.next(),l={};!a.done;l={Jb:void 0},a=i.next())if(l.Jb=a.value,l.Jb.audio)if(e.s.has(l.Jb.audio)){if(a=e.s.get(l.Jb.audio),wc(a,t),!(0<t&&n.some(function(d){return function(g){return tc(d.Jb.audio.language,g)}}(l)))){var f=e.i.get(l.Jb.audio.type);a!==(f&&f.ma)&&Bl(a),e.s.delete(l.Jb.audio)}}else 0>=t||!n.some(function(d){return function(g){return tc(d.Jb.audio.language,g)}}(l))||!(a=Nf(e,l.Jb.audio))||(l.Jb.audio.segmentIndex||l.Jb.audio.createSegmentIndex(),e.s.set(l.Jb.audio,a))}w.updateDuration=function(){var e=nm(),t=this.j.presentationTimeline.getDuration();1/0>t?(e&&(this.B&&this.B.stop(),Mf(this.g.ka)),this.g.ka.rb(t)):e?(this.B&&this.B.xa(.5),this.g.ka.rb(1/0)):this.g.ka.rb(Math.pow(2,32))};function qm(e,t){var n,i,a,l,f,d;return q(function(g){switch(g.g){case 1:if(Mt(e.m),t.Za||t.zb==null||t.Lc)return g.return();if(t.zb=null,!t.Jc){g.A(2);break}return O(g,xv(e,t,t.Pf,t.Me),3);case 3:return g.return();case 2:if(cn(e,t),t.stream.segmentIndex){g.A(4);break}return n=t.stream,Le(g,5),O(g,t.stream.createSegmentIndex(),7);case 7:Ge(g,6);break;case 5:return i=je(g),O(g,Pl(e,t,i),8);case 8:return g.return();case 6:if(n!=t.stream)return n.closeSegmentIndex&&n.closeSegmentIndex(),t.Za||t.zb||lr(e,t,0),g.return();case 4:Le(g,9),a=Ko(e,t),a!=null&&(lr(e,t,a),t.Td=!1),Ge(g,10);break;case 9:return l=je(g),O(g,Pl(e,t,l),11);case 11:return g.return();case 10:if(f=Array.from(e.i.values()),!e.K||!f.every(function(m){return m.endOfStream})){g.A(0);break}return O(g,e.g.ka.endOfStream(),13);case 13:Mt(e.m),d=e.g.ka.getDuration(),d!=0&&d<e.j.presentationTimeline.getDuration()&&e.j.presentationTimeline.rb(d),ve(g)}})}function Ko(e,t){if(Qt(t))return hi(e.g.ka,t.stream.originalId||""),null;if(t.type==lt&&xn(e.g.ka),t.stream.isAudioMuxedInVideo)return null;var n=e.h.updateIntervalSeconds/Math.max(1,Math.abs(e.g.Wa()));if(!Gi(e.g.ka)&&t.type!=lt)return n/2;var i=e.g.sd();if(t.type==="audio")for(var a=b(e.s.keys()),l=a.next();!l.done;l=a.next())l=e.s.get(l.value),l.eb(i,!0),$d(l,i);a=t.Ra?t.Ra.endTime:i;var f=fv(e.g.ka,t.type,i),d=Math.max(1,Math.max(e.h.rebufferingGoal,e.h.bufferingGoal)*e.D),g=e.j.presentationTimeline.getDuration()-a;if(l=or(e.g.ka,t.type),1e-6>g&&l)return t.endOfStream=!0,t.type=="video"&&(e=e.i.get(lt))&&Qt(e)&&(e.endOfStream=!0),null;if(t.endOfStream=!1,f>=d)return n/2;if(d=!t.ya,l=bc(e,t,i,l),!l)return n;f=!1,d&&t.Xf&&(f=!0,t.Xf=!1),d=1/0,g=Array.from(e.i.values()),g=b(g);for(var m=g.next();!m.done;m=g.next())m=m.value,Qt(m)||m.ya&&!m.ya.current()||(d=Math.min(d,m.Ra?m.Ra.endTime:i));return a>=d+e.j.presentationTimeline.h?n:(e.h.crossBoundaryStrategy!=="keep"&&Dc(e,t,l)||(t.ma&&t.ya&&!e.s.has(t.stream)&&(t.ma.eb(l.startTime+.001),$d(t.ma,l.startTime).catch(function(){})),hp(e,t,i,l,f).catch(function(){}),t.Od&&_f(e,t.Od,i)),null)}function bc(e,t,n,i){if(t.ya)return(n=t.ya.current())&&t.Ra&&.001>Math.abs(t.Ra.startTime-n.startTime)&&(n=t.ya.next().value),n;if(t.Ra||i)return n=t.Ra?t.Ra.endTime:i,e=0>e.g.Wa(),t.stream.segmentIndex&&(t.ya=t.stream.segmentIndex.Xb(n,!1,e)),t.ya&&t.ya.next().value;i=e.j.sequenceMode?0:e.h.inaccurateManifestTolerance;var a=Math.max(n-i,0);e=0>e.g.Wa();var l=null;return i&&(t.stream.segmentIndex&&(t.ya=t.stream.segmentIndex.Xb(a,!1,e)),l=t.ya&&t.ya.next().value),l||(t.stream.segmentIndex&&(t.ya=t.stream.segmentIndex.Xb(n,!1,e)),l=t.ya&&t.ya.next().value),l}function hp(e,t,n,i,a){var l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y;return q(function(P){switch(P.g){case 1:if(l=ui,f=t.stream,d=t.ya,t.Za=!0,Le(P,2),i.yc()==2)throw new G(1,1,1011);return O(P,Ev(e,t,i,a),4);case 4:return Mt(e.m),e.C?P.return():(g=f.mimeType=="video/mp4"||f.mimeType=="audio/mp4",m=oe.ReadableStream,e.h.lowLatencyMode&&e.j.isLowLatency&&m&&g&&(e.j.type!="HLS"||i.m)?(x=new Uint8Array(0),R=M=!1,I=function(V){var F,K,ee;return q(function(Q){switch(Q.g){case 1:if(M||(R=!0,Mt(e.m),e.C))return Q.return();if(Le(Q,2),x=$g(x,V),F=!1,K=0,new Zt().box("mdat",function(ne){K=ne.size+ne.start,F=!0}).parse(x,!1,!0),!F){Q.A(4);break}return ee=x.subarray(0,K),x=x.subarray(K),O(Q,e0(e,t,n,f,i,ee,!0,a),5);case 5:t.ma&&t.ya&&$d(t.ma,i.startTime,!0);case 4:Ge(Q,0);break;case 2:L=je(Q),ve(Q)}})},O(P,ye(e,t,i,I),9)):(S=ye(e,t,i),O(P,S,7)));case 7:return T=P.h,Mt(e.m),e.C?P.return():(Mt(e.m),t.Jc?(t.Za=!1,lr(e,t,0),P.return()):O(P,e0(e,t,n,f,i,T,!1,a),6));case 9:if(U=P.h,L)throw L;if(R){P.A(10);break}return M=!0,Mt(e.m),e.C?P.return():t.Jc?(t.Za=!1,lr(e,t,0),P.return()):O(P,e0(e,t,n,f,i,U,!1,a),10);case 10:t.ma&&t.ya&&$d(t.ma,i.startTime,!0);case 6:if(Mt(e.m),e.C)return P.return();t.Ra=i,d.next(),t.Za=!1,t.dh=!1,N=e.g.ka.Lb(),j=N[t.type],JSON.stringify(j),t.Jc||(B=null,t.type===l.Ba?B=e.i.get(l.aa):t.type===l.aa&&(B=e.i.get(l.Ba)),B&&B.type==l.aa?e.g.pf(i,t.stream,B.stream.isAudioMuxedInVideo):e.g.pf(i,t.stream,t.stream.codecs.includes(","))),lr(e,t,0),Ge(P,0);break;case 2:if(Y=je(P),Mt(e.m,Y),e.C)return P.return();if(t.Za=!1,Y.code==7001)t.Za=!1,bs(t),lr(e,t,0),P.A(0);else if(t.type==l.Na&&e.h.ignoreTextStreamFailures)e.i.delete(l.Na),P.A(0);else return Y.code==3017?O(P,ho(e,t,Y),0):(t.Td=!0,Y.category==1&&t.ma&&xs(t.ma,i),Y.severity=2,O(P,Pl(e,t,Y),0))}})}function _f(e,t,n){var i,a,l,f,d,g,m,S;q(function(T){switch(T.g){case 1:if(i=t.stream,l=(a=i.segmentIndex.Xb(n))&&a.next().value,!l){T.A(0);break}if(f=l.ia,!f||_g(f,t.Pb)){T.A(3);break}return t.Pb=f,Le(T,4),O(T,ye(e,t,f),6);case 6:d=T.h;var x=e.g.ka;x.L&&lg(x.L,d,0,i),Ge(T,3);break;case 4:throw g=je(T),t.Pb=null,g;case 3:if(t.Ra&&t.Ra==l){T.A(0);break}return t.Ra=l,Le(T,8),O(T,ye(e,t,l),10);case 10:m=T.h,x=e.g.ka,x.L&&lg(x.L,m,0,i),Ge(T,0);break;case 8:throw S=je(T),t.Ra=null,S}})}function $g(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function ho(e,t,n){var i,a,l,f;return q(function(d){if(d.g==1){if(i=Array.from(e.i.values()),i.some(function(g){return g!=t&&g.dh}))return d.A(2);if(a=e.h.maxDisabledTime===0&&n.code==1011?1:e.h.maxDisabledTime,e.g.disableStream(t.stream,a))return d.return();if(e.h.avoidEvictionOnQuotaExceededError)return lr(e,t,4),d.return();if(l=Math.round(100*e.D),20<l)e.D-=.2;else if(4<l)e.D-=.04;else return t.Td=!0,e.C=!0,e.g.onError(n),d.return();return t.dh=!0,f=e.g.sd(),O(d,pp(e,t,f),2)}lr(e,t,4),ve(d)})}function Ev(e,t,n,i){var a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j;return q(function(B){switch(B.g){case 1:if(a=ui,l=t.Ra==null,f=[],d=Math.max(0,Math.max(n.appendWindowStart,e.U)-.1),g=Math.min(n.appendWindowEnd,e.S)+.01,m=n.codecs||t.stream.codecs,S=jo(m),T=va(n.mimeType||t.stream.mimeType),x=n.timestampOffset,x==t.df&&d==t.Yc&&g==t.Xc&&S==t.bf&&T==t.cf){B.A(2);break}if(M=t.bf&&t.cf&&bf(e.g.ka,t.type,T,m),!M){B.A(3);break}if(R=null,t.type===a.Ba?R=e.i.get(a.aa):t.type===a.aa&&(R=e.i.get(a.Ba)),!R){B.A(3);break}return O(B,Qa(R).catch(function(){}),5);case 5:R.Pb=null,R.Yc=null,R.Xc=null,Ms(e,R);case 3:return O(B,Av(e,t,x,d,g,n,S,T),2);case 2:return _g(n.ia,t.Pb)||(t.Pb=n.ia,n.l&&n.ia&&(L=ye(e,t,n.ia),I=function(){var Y,P,V,F,K,ee,Q;return q(function(ne){switch(ne.g){case 1:return Le(ne,2),O(ne,L,4);case 4:return Y=ne.h,Mt(e.m),P=null,V=new Map,F={projection:null,hfov:null},K=new Zt,K.box("moov",mt).box("trak",mt).box("mdia",mt).W("mdhd",function(ie){P=vf(ie.reader,ie.version).timescale}).box("hdlr",function(ie){switch(ie=ie.reader,ie.skip(8),ie.$c()){case"soun":V.set(a.aa,P);break;case"vide":V.set(a.Ba,P)}P=null}).box("minf",mt).box("stbl",mt).W("stsd",Ul).box("encv",Ta).box("avc1",Ta).box("avc3",Ta).box("hev1",Ta).box("hvc1",Ta).box("dvav",Ta).box("dva1",Ta).box("dvh1",Ta).box("dvhe",Ta).box("dvc1",Ta).box("dvi1",Ta).box("vexu",mt).box("proj",mt).W("prji",function(ie){ie=ie.reader.$c(),F.projection=ie}).box("hfov",function(ie){ie=ie.reader.X()/1e3,F.hfov=ie}).parse(Y),t.type===a.Ba&&Rs(e,F),V.has(t.type)?n.ia.timescale=V.get(t.type):P!=null&&(n.ia.timescale=P),ee=t.stream.closedCaptions&&0<t.stream.closedCaptions.size,O(ne,e.g.Oh(t.type,Y),5);case 5:return O(ne,Un(e.g.ka,t.type,Y,null,t.stream,ee,t.dd,i),6);case 6:Ge(ne,0);break;case 2:throw Q=je(ne),t.Pb=null,Q}})},U=n.startTime,l&&(N=or(e.g.ka,t.type),N!=null&&(U=N)),e.g.Qk(U,n.ia),f.push(I()))),j=t.Ra?t.Ra.i:-1,n.i!=j&&f.push(ku(e.g.ka,t.type,n.startTime)),O(B,Promise.all(f),0)}})}function Av(e,t,n,i,a,l,f,d){var g,m,S,T;return q(function(x){if(x.g==1)return g=ui,m=new Map,e.l.audio&&m.set(g.aa,e.l.audio),e.l.video&&m.set(g.Ba,e.l.video),Le(x,2),t.Yc=i,t.Xc=a,f&&(t.bf=f),d&&(t.cf=d),t.df=n,S=e.j.sequenceMode||e.j.type=="HLS",O(x,ei(e.g.ka,t.type,n,i,a,S,l.mimeType||t.stream.mimeType,l.codecs||t.stream.codecs,m),4);if(x.g!=2)return Ge(x,0);throw T=je(x),t.Yc=null,t.Xc=null,t.bf=null,t.cf=null,t.df=null,T})}function e0(e,t,n,i,a,l,f,d){f=f===void 0?!1:f,d=d===void 0?!1:d;var g,m,S,T,x,M;return q(function(R){switch(R.g){case 1:return g=i.closedCaptions&&0<i.closedCaptions.size,e.h.shouldFixTimestampOffset&&(S=i.mimeType=="video/mp4"||i.mimeType=="audio/mp4",T=null,a.ia&&(T=a.ia.timescale),(x=S&&T&&i.type==="video"&&e.j.type=="DASH")&&(m=new Zt),x&&m.box("moof",mt).box("traf",mt).W("tfdt",function(L){var I,U,N,j,B,Y;return q(function(P){return I=Qn(L.reader,L.version),U=I.baseMediaDecodeTime,U?(N=-U/T,j=Number(t.df)||0,j<N?(B=t.Yc,Y=t.Xc,O(P,Av(e,t,N,B,Y,a),0)):P.A(0)):P.return()})}),x&&m.parse(l,!1,f)),O(R,pp(e,t,n),2);case 2:return Mt(e.m),M=t.dd,t.dd=!1,O(R,e.g.Oh(t.type,l),3);case 3:return O(R,Un(e.g.ka,t.type,l,a,i,g,M,d,f),4);case 4:Mt(e.m),ve(R)}})}function pp(e,t,n){var i,a,l,f,d,g,m,S;return q(function(T){if(T.g==1)return i=t.stream.segmentIndex,i instanceof Yn&&i.eb(e.j.presentationTimeline.Fb()),a=Math.max(e.h.bufferBehind*e.D,e.j.presentationTimeline.h),l=Vg(e.g.ka,t.type),l==null?(e.H==t&&(e.H=null),T.return()):(f=n-l,d=e.h.evictionGoal,g=e.j.presentationTimeline.Yb(),m=e.j.presentationTimeline.Eb(),S=f-a,m-g>d&&(S=Math.max(f-a,g-d-l)),S<=d?T.return():O(T,e.g.ka.remove(t.type,l,l+S),2));if(T.g!=4)return Mt(e.m),e.H?O(T,pp(e,e.H,n),4):T.A(0);Mt(e.m),ve(T)})}function Qt(e){return e&&e.type==lt&&(e.stream.mimeType=="application/cea-608"||e.stream.mimeType=="application/cea-708")}function ye(e,t,n,i){var a,l,f,d,g;return q(function(m){switch(m.g){case 1:if(a=n.Zb())return m.return(a);if(l=null,t.ma){var S=t.ma,T=S.h;n instanceof xa&&(T=S.j),T.has(n)?(S=T.get(n),i&&(S.wh=i),l=S.ee):l=null}return l||(l=Pt(n,t.stream,i||null,e.h.retryParameters,e.g.kc)),f=0,t.ya&&(f=t.ya.h),t.Gb=l,O(m,l.promise,2);case 2:if(d=m.h,t.Gb=null,g=d.data,!n.aesKey){m.A(3);break}return O(m,Hm(g,n.aesKey,f),4);case 4:g=m.h;case 3:return m.return(g)}})}function Pt(e,t,n,i,a,l){l=l===void 0?!1:l;var f=e instanceof Ye?e:void 0,d=f?1:0;return e=ws(e.T(),e.startByte,e.endByte,i,n),e.contentType=t.type,a.request(li,e,{type:d,stream:t,segment:f,isPreload:l})}function xv(e,t,n,i){var a,l;return q(function(f){if(f.g==1)return t.Jc=!1,t.Pf=!1,t.Me=0,t.Lc=!0,t.Ra=null,t.ya=null,t.ma&&!e.s.has(t.stream)&&Bl(t.ma),i?(a=e.g.sd(),l=e.g.ka.getDuration(),O(f,e.g.ka.remove(t.type,a+i,l),3)):O(f,vn(e.g.ka,t.type),4);if(f.g!=3)return Mt(e.m),n?O(f,e.g.ka.flush(t.type),3):f.A(3);Mt(e.m),t.Lc=!1,t.endOfStream=!1,t.Za||t.zb||lr(e,t,0),ve(f)})}function lr(e,t,n){var i=t.type;(i!=lt||e.i.has(i))&&(t.zb=new ca(function(){var a;return q(function(l){if(l.g==1)return Le(l,2),O(l,qm(e,t),4);if(l.g!=2)return Ge(l,0);a=je(l),e.g&&e.g.onError(a),ve(l)})}).$(n))}function bs(e){e.zb!=null&&(e.zb.stop(),e.zb=null)}function Qa(e){return q(function(t){return e.Gb?O(t,e.Gb.abort(),0):t.A(0)})}function Pl(e,t,n){var i;return q(function(a){if(a.g==1)return n.code==3024?(t.Za=!1,bs(t),lr(e,t,0),a.return()):O(a,Id(e.R),2);if(Mt(e.m),n.category===1&&n.code!=1003){if(t.Cc)return Ui(e,!1),a.return();i=e.h.maxDisabledTime===0&&n.code==1011?1:e.h.maxDisabledTime,n.handled=e.g.disableStream(t.stream,i),n.handled&&(n.severity=1)}(!n.handled||n.code!=1011)&&e.g.onError(n),n.handled||e.h.failureCallback(n),ve(a)})}function Rc(e,t,n){t=t===void 0?!1:t,n=n===void 0?!0:n;var i,a,l,f,d,g;return q(function(m){if(m.g==1){if(i=Date.now()/1e3,a=e.h.minTimeBetweenRecoveries,!t){if(!e.h.allowMediaSourceRecoveries||i-e.M<a)return m.return(!1);e.M=i}return l=ui,(f=e.i.get(l.aa))&&(f.Pb=null,f.Yc=null,f.Xc=null,n&&Ms(e,f),Qa(f).catch(function(){}),f.ya&&f.ya.fh()),(d=e.i.get(l.Ba))&&(d.Pb=null,d.Yc=null,d.Xc=null,n&&Ms(e,d),Qa(d).catch(function(){}),d.ya&&d.ya.fh()),g=new Map,e.l.audio&&g.set(l.aa,e.l.audio),e.l.video&&g.set(l.Ba,e.l.video),O(m,Nm(e.g.ka,g),2)}return!d||d.Lc||d.Za||d.zb||lr(e,d,0),!f||f.Lc||f.Za||f.zb||lr(e,f,0),m.return(!0)})}function Rs(e,t){if(e.N.projection!=t.projection||e.N.hfov!=t.hfov){if(t.projection!=null||t.hfov!=null){var n=new Map().set("detail",t);n=new Te("spatialvideoinfo",n)}else n=new Te("nospatialvideoinfo");n.cancelable=!0,e.g.onEvent(n),e.N=t}}function jf(e){if(e.h.crossBoundaryStrategy!=="keep"){e.J.stop();var t=e.g.sd(),n=e.i.get("video")||e.i.get("audio");n&&(n=n.Pb)&&n.g!==null&&(t=n.g-t,0>t||1<t||(e.I=n.g+.01,e.J.$(t)))}}function Dc(e,t,n){if(t.type===lt)return!1;var i=t.Pb;if(!i)return!1;n=n.ia;var a=i.g!==n.g;if(e.h.crossBoundaryStrategy==="reset_to_encrypted"&&(i.encrypted||n.encrypted||(a=!1),i.encrypted&&(e.h.crossBoundaryStrategy="keep")),e.h.crossBoundaryStrategy==="RESET_ON_ENCRYPTION_CHANGE"&&i.encrypted==n.encrypted&&(a=!1),a&&t.dd){var l=e.g.video,f=l.paused;Rc(e,!0).then(function(){e.g.onEvent(new Te("boundarycrossed")),f||l.play()})}return a}function th(){}function t0(e,t,n,i,a){var l=a in i,f=l?n.constructor==Object&&Object.keys(i).length==0:n.constructor==Object&&Object.keys(n).length==0,d=l||f,g=!0,m;for(m in t){var S=a+"."+m,T=l?i[a]:n[m];d||m in n?t[m]===void 0?T===void 0||d?delete e[m]:e[m]=pa(T):f?e[m]=t[m]:T.constructor==Object&&t[m]&&t[m].constructor==Object?(e[m]||(e[m]=pa(T)),S=t0(e[m],t[m],T,i,S),g=g&&S):typeof t[m]!=typeof T||t[m]==null||typeof t[m]!="function"&&t[m].constructor!=T.constructor?(xu("Invalid config, wrong type for "+S),g=!1):typeof n[m]=="function"&&n[m].length!=t[m].length?(st("Unexpected number of arguments for "+S),e[m]=t[m]):e[m]=Array.isArray(e[m])?t[m].slice():t[m]:(xu("Invalid config, unrecognized key "+S),g=!1)}return g}function gp(e,t){for(var n={},i=n,a=0,l=0;a=e.indexOf(".",a),!(0>a);)(a==0||e[a-1]!="\\")&&(l=e.substring(l,a).replace(/\\\./g,"."),i[l]={},i=i[l],l=a+1),a+=1;return i[e.substring(l).replace(/\\\./g,".")]=t,n}function mp(e,t){return e&&t}function Qo(e,t){function n(l){for(var f=b(Object.keys(l)),d=f.next();!d.done;d=f.next())if(d=d.value,!(l[d]instanceof HTMLElement))if(a(l[d])&&Object.keys(l[d]).length===0)delete l[d];else{var g=l[d];Array.isArray(g)&&g.length===0||typeof l[d]=="function"?delete l[d]:a(l[d])&&(n(l[d]),Object.keys(l[d]).length===0&&delete l[d])}}function i(l,f){return Object.keys(l).reduce(function(d,g){var m=l[g];return f.hasOwnProperty(g)?m instanceof HTMLElement&&f[g]instanceof HTMLElement?m.isEqualNode(f[g])||(d[g]=m):a(m)&&a(f[g])?(m=i(m,f[g]),(0<Object.keys(m).length||!a(m))&&(d[g]=m)):Array.isArray(m)&&Array.isArray(f[g])?Ih(m,f[g])||(d[g]=m):Number.isNaN(m)&&Number.isNaN(f[g])||m!==f[g]&&(d[g]=m):d[g]=m,d},{})}function a(l){return l&&typeof l=="object"&&!Array.isArray(l)}return e=i(e,t),n(e),e}xe("shaka.util.ConfigUtils",th),th.getDifferenceFromConfigObjects=Qo,th.convertToConfigObject=gp,th.mergeConfigObjects=t0;function Vi(){}function n0(e){return e=ka(e),new un(e).Cb}function Ic(e,t,n){function i(d){br(l).setUint32(f,d.byteLength,!0),f+=4,l.set(at(d),f),f+=d.byteLength}if(!n||!n.byteLength)throw new G(2,6,6015);var a;typeof t=="string"?a=W0(t,!0):a=t,e=ka(e),e=W0(e,!0);var l=new Uint8Array(12+e.byteLength+a.byteLength+n.byteLength),f=0;return i(e),i(a),i(n),l}function zf(e,t,n){return t!=="skd"?e:(t=n.serverCertificate,n=ka(e).split("skd://").pop(),Ic(e,n,t))}function Ym(e,t){e===2&&(e=t.drmInfo)&&bo(e.keySystem)&&(t.headers["Content-Type"]="application/octet-stream")}xe("shaka.drm.FairPlay",Vi),Vi.commonFairPlayResponse=function(e,t){if(e===2&&(e=t.originalRequest.drmInfo)&&bo(e.keySystem)){try{var n=Rn(t.data)}catch{return}if(e=!1,n=n.trim(),n.substr(0,5)==="<ckc>"&&n.substr(-6)==="</ckc>"&&(n=n.slice(5,-6),e=!0),!e)try{var i=JSON.parse(n);i.ckc&&(n=i.ckc,e=!0),i.CkcMessage&&(n=i.CkcMessage,e=!0),i.License&&(n=i.License,e=!0)}catch{}e&&(t.data=Yr(tu(n)))}},Vi.muxFairPlayRequest=function(e,t){Ym(e,t)},Vi.expressplayFairPlayRequest=function(e,t){if(e===2){var n=t.drmInfo;n&&bo(n.keySystem)&&Ym(e,t)}},Vi.conaxFairPlayRequest=function(e,t){Ym(e,t)},Vi.ezdrmFairPlayRequest=function(e,t){Ym(e,t)},Vi.verimatrixFairPlayRequest=function(e,t){e===2&&(e=t.drmInfo)&&bo(e.keySystem)&&(e=at(t.body),e=is(e),t.headers["Content-Type"]="application/x-www-form-urlencoded",t.body=Do("spc="+e))},Vi.muxInitDataTransform=function(e,t,n){return zf(e,t,n)},Vi.expressplayInitDataTransform=function(e,t,n){return zf(e,t,n)},Vi.conaxInitDataTransform=function(e,t,n){if(t!=="skd")return e;t=n.serverCertificate,n=ka(e).split("skd://").pop().split("?").shift(),n=oe.atob(n);var i=new ArrayBuffer(2*n.length);i=zy(i);for(var a=0,l=n.length;a<l;a++)i[a]=n.charCodeAt(a);return Ic(e,i,t)},Vi.ezdrmInitDataTransform=function(e,t,n){return t!=="skd"?e:(t=n.serverCertificate,n=ka(e).split(";").pop(),Ic(e,n,t))},Vi.verimatrixInitDataTransform=function(e,t,n){return zf(e,t,n)},Vi.initDataTransform=Ic,Vi.defaultGetContentId=n0,Vi.isFairPlaySupported=function(){var e;return q(function(t){return t.g==1?(e={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},Le(t,2),O(t,navigator.requestMediaKeySystemAccess("com.apple.fps",[e]),4)):t.g!=2?t.return(!0):(je(t),t.return(!1))})};function nh(){this.g=null}nh.prototype.configure=function(e){this.g=e},nh.prototype.create=function(e){var t;if(this.g.language){var n=hT(e,this.g.language);n.length&&(t=n)}return t||(t=e.filter(function(i){return i.primary}),t=t.length?t:e),e=Hl(t,this.g.role),e.length&&(t=e),this.g.videoLayout&&(e=er(t,this.g.videoLayout),e.length&&(t=e)),this.g.td&&(e=Hu(t,this.g.td),e.length&&(t=e)),this.g.channelCount&&(e=it(t,this.g.channelCount),e.length&&(t=e)),this.g.kd&&(e=Bf(t,this.g.kd),e.length&&(t=e)),this.g.Hd&&(e=ba(t,this.g.Hd),e.length&&(t=e)),e=Za(t,this.g.spatialAudio),e.length&&(t=e),this.g.audioCodec&&(e=Xm(t,this.g.audioCodec),e.length&&(t=e)),new Qh(t[0],t,!(this.g.codecSwitchingStrategy=="smooth"&&eo()))};function hT(e,t){t=Wt(t);var n=og(t,e.map(function(i){return ug(i)}));return n?e.filter(function(i){return n==ug(i)}):[]}function Hl(e,t){return e.filter(function(n){return n.audio?t?n.audio.roles.includes(t):n.audio.roles.length==0:!1})}function Bf(e,t){return e.filter(function(n){return n.audio&&n.audio.label?n.audio.label.toLowerCase()==t.toLowerCase():!1})}function ba(e,t){return e.filter(function(n){return n.video&&n.video.label?n.video.label.toLowerCase()==t.toLowerCase():!1})}function it(e,t){return e.filter(function(n){return!(n.audio&&n.audio.channelsCount&&n.audio.channelsCount>t)}).sort(function(n,i){return n.audio||i.audio?n.audio?i.audio?(i.audio.channelsCount||0)-(n.audio.channelsCount||0):1:-1:0})}function Hu(e,t){if(t=="AUTO"){var n=e.some(function(i){return!!(i.video&&i.video.hdr&&i.video.hdr=="HLG")});t=J0(n)}return e.filter(function(i){return!(i.video&&i.video.hdr&&i.video.hdr!=t)})}function er(e,t){return e.filter(function(n){return!(n.video&&n.video.videoLayout&&n.video.videoLayout!=t)})}function Za(e,t){return e.filter(function(n){return!(n.audio&&n.audio.spatialAudio!=t)})}function Xm(e,t){return e.filter(function(n){return!(n.audio&&n.audio.codecs!=t)})}function Zo(){}function Lc(){var e=1/0;navigator.connection&&navigator.connection.saveData&&(e=360);var t={retryParameters:Va(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(S,T,x){return oe.shakaMediaKeysPolyfill==="apple"&&T=="skd"&&(T=x.serverCertificate,x=n0(S),S=Ic(S,x,T)),S},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:Zu(),minHdcpVersion:"",ignoreDuplicateInitData:!Tn("Tizen 2"),defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"};(Zu()||Fr())&&t.preferredKeySystems.push("com.microsoft.playready"),Tl()&&!Ws()&&(t.keySystemsMapping={"com.microsoft.playready":"com.microsoft.playready.recommendation"});var n="reload",i=!1;!eo()||Sl()||Fr()||vr()||Ju()&&K0()===79||$a()&&!eu()&&!Zc()||Tl()&&Ws()||(n="smooth",i=!0),i={retryParameters:Va(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1,updatePeriod:-1,ignoreDrmInfo:!1,dash:{clockSyncUri:"",disableXlinkProcessing:!0,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"},manifestPreprocessor:Jo,manifestPreprocessorTXml:ih,sequenceMode:!1,multiTypeVariantsAllowed:i,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',liveSegmentsDelay:3,sequenceMode:tg(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:Jo,manifestPreprocessorTXml:ih,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}};var a={retryParameters:Va(),failureCallback:function(S){return mp([S])},rebufferingGoal:0,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapPadding:0,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,safeSeekEndOffset:0,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsForFairPlay:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16e3,preferNativeDash:!1,preferNativeHls:!1,updateIntervalSeconds:1,observeQualityChanges:!1,maxDisabledTime:30,segmentPrefetchLimit:1,prefetchAudioLanguages:[],disableAudioPrefetch:!1,disableTextPrefetch:!1,disableVideoPrefetch:!1,liveSync:{enabled:!1,targetLatency:.5,targetLatencyTolerance:.5,maxPlaybackRate:1.1,minPlaybackRate:.95,panicMode:!1,panicThreshold:60,dynamicTargetLatency:{enabled:!1,stabilityThreshold:60,rebufferIncrement:.5,maxAttempts:10,maxLatency:4,minLatency:1}},allowMediaSourceRecoveries:!0,minTimeBetweenRecoveries:5,vodDynamicPlaybackRate:!1,vodDynamicPlaybackRateLowBufferRate:.95,vodDynamicPlaybackRateBufferRatio:.5,preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:Fr()||vr(),dontChooseCodecs:!1,shouldFixTimestampOffset:Ju()||Sl(),avoidEvictionOnQuotaExceededError:!1,crossBoundaryStrategy:"keep"};(Ju()||Sl()||$a()||ns())&&(a.stallSkip=0),(navigator.userAgent.match(/Edge\//)||Zu())&&(a.gapPadding=.01),Sl()&&(a.gapPadding=2),Wu()&&(a.crossBoundaryStrategy="reset"),da()&&(a.crossBoundaryStrategy="reset_to_encrypted");var l={trackSelectionCallback:function(S){return q(function(T){return T.return(S)})},downloadSizeCallback:function(S){var T;return q(function(x){return x.g==1?navigator.storage&&navigator.storage.estimate?O(x,navigator.storage.estimate(),3):x.return(!0):(T=x.h,x.return(T.usage+S<.95*T.quota))})},progressCallback:function(S,T){return mp([S,T])},usePersistentLicense:!0,numberOfParallelDownloads:5};e={enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:e,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0,minChannelsCount:0,maxChannelsCount:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0,cacheLoadThreshold:20,minTimeToSwitch:ai()?.5:0,preferNetworkInformationBandwidth:!1},n={codecSwitchingStrategy:n,addExtraFeaturesToSourceBuffer:function(S){return mp([S],"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,correctEc3Enca:!1,modifyCueCallback:function(S,T){return mp([S,T])},dispatchAllEmsgBoxes:!1};var f=!1,d=!1,g=!0;Z0()&&(d=f=!0,g=!1);var m={drm:t,manifest:i,streaming:a,mediaSource:n,offline:l,abrFactory:function(){return new dn},adaptationSetCriteriaFactory:function(){return new(Function.prototype.bind.apply(nh,[null].concat(Ue(xt.apply(0,arguments)))))},abr:e,autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferredTextFormats:[],preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0,minChannelsCount:0,maxChannelsCount:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayer:{captionsUpdatePeriod:.25,fontScaleFactor:1},textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[],version:1},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1,poster:!0},ads:{customPlayheadTracker:f,skipPlayDetection:d,supportsMultipleMediaElements:g,disableHLSInterstitial:!1,disableDASHInterstitial:!1,allowPreloadOnDomElements:!0},ignoreHardwareResolution:!1};return l.trackSelectionCallback=function(S){return q(function(T){return T.return(Gl(S,m.preferredAudioLanguage,m.preferredVideoHdrLevel))})},m}function i0(){return{streaming:{inaccurateManifestTolerance:0,segmentPrefetchLimit:2,updateIntervalSeconds:.1,maxDisabledTime:1,retryParameters:{baseDelay:100}},manifest:{dash:{autoCorrectDrift:!1},retryParameters:{baseDelay:100}},drm:{retryParameters:{baseDelay:100}}}}function ki(e,t,n){var i={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:[],audioRobustness:[],sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return t0(e,t,n||Lc(),i,"")}function Gl(e,t,n){var i=n;i=="AUTO"&&(n=e.some(function(d){return!!(d.hdr&&d.hdr=="HLG")}),i=J0(n));var a=e.filter(function(d){return!(d.type!="variant"||d.hdr&&d.hdr!=i)});n=[];var l=og(t,a.map(function(d){return d.language}));l&&(n=a.filter(function(d){return Wt(d.language)==l})),n.length==0&&(n=a.filter(function(d){return d.primary})),n.length==0&&(a.map(function(d){return d.language}),n=a);var f=n.filter(function(d){return d.height&&480>=d.height});for(f.length&&(f.sort(function(d,g){return g.height-d.height}),n=f.filter(function(d){return d.height==f[0].height})),t=[],n.length&&(a=Math.floor(n.length/2),n.sort(function(d,g){return d.bandwidth-g.bandwidth}),t.push(n[a])),e=b(e),n=e.next();!n.done;n=e.next())n=n.value,n.type!=lt&&n.type!="image"||t.push(n);return t}function Jo(e){return mp([e],e)}function ih(e){return mp([e],e)}xe("shaka.util.PlayerConfiguration",Zo),Zo.mergeConfigObjects=ki,Zo.createDefaultForLL=i0,Zo.createDefault=Lc;function Pf(){this.g=null,this.h=[]}function $r(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration),e=b(e.h);for(var i=e.next();!i.done;i=e.next())i=i.value,n+=i.state==t?i.duration:0;return n}function Gu(e){function t(l){return{timestamp:l.timestamp,state:l.state,duration:l.duration}}for(var n=[],i=b(e.h),a=i.next();!a.done;a=i.next())n.push(t(a.value));return e.g&&n.push(t(e.g)),n}function Hf(){this.i=this.h=null,this.g=[]}function r0(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function a0(){this.Kc=this.pi=this.u=this.B=this.K=this.C=this.s=this.j=this.J=this.D=this.i=this.R=this.S=this.M=this.N=this.P=this.l=this.m=NaN,this.L=0,this.H=this.I=NaN,this.g=new Pf,this.h=new Hf}function ea(e,t,n,i){Tt.call(this),this.P=e,this.Y=t,this.Ka=i.networkingEngine,this.C=n,this.s=null,this.Ha=0,this.Xa=i.md,this.H=i.Jk,this.Ya=i.Kk,this.g=i.config,this.l=this.I=this.h=null,this.ua=!1,this.J=i.Vk,this.za=!1,this.i=null,this.oa=!1,this.j=this.D=null,this.ba=!1,this.N=new Map,this.Fa=!1,this.La=i.Uk,this.Z=new a0,this.qa=new Bt,this.m=new Bt,this.R=null,this.u=!1,this.ea=i.qj,this.U=this.L=null,this.Sa=i.pj,this.S=!1,this.M=[],this.K=[],this.B=!0}Xe(ea,Tt);function Ds(e,t,n){(e=t?e.K:e.M)?e.push(n):n()}function yp(e){if(e.K)for(var t=b(e.K),n=t.next();!n.done;n=t.next())n=n.value,n();e.K=null}function wv(e,t){if(e.R=t,e.S=!0,e.M){t=b(e.M);for(var n=t.next();!n.done;n=t.next())n=n.value,n()}e.M=null}w=ea.prototype,w.getStartTime=function(){return this.C},w.rd=function(){return this.P},w.Hg=function(){return this.h};function Wo(e){return e.ba=!0,e.j}function rh(e){return e.za=!0,e.J}w.getStats=function(){return this.Z};function iS(e){return e.oa=!0,e.i}w.bk=function(){return this.L?Il(this.L):null},w.$j=function(){return this.U?ds(this.U):null};function Fm(e){return e.Fa=!0,e.N}w.start=function(){var e=this;(function(){var t;return q(function(n){switch(n.g){case 1:return O(n,Promise.resolve(),2);case 2:return Le(n,3),O(n,Gf(e),5);case 5:if(Is(e),oe.shakaMediaKeysPolyfill==="webkit"){n.A(6);break}return O(n,Km(e),7);case 7:Is(e);case 6:return O(n,Cv(e),8);case 8:if(Is(e),!e.ea||!e.i){n.A(9);break}return O(n,tv(e.i),10);case 10:Is(e);case 9:e.m.resolve(),Ge(n,0);break;case 3:t=je(n),t instanceof G&&(t.code==7001||t.code==7003)||e.m.reject(t),ve(n)}})})()},w.dispatchEvent=function(e){return this.R?this.R.dispatchEvent(e):Tt.prototype.dispatchEvent.call(this,e)},w.onError=function(e){e.severity===2&&(this.m.reject(e),this.destroy());var t=new Map().set("detail",e);t=new Te("error",t),this.dispatchEvent(t),t.defaultPrevented&&(e.handled=!0)};function Is(e){if(e.u)throw new G(2,7,7003)}function vp(e,t){e.dispatchEvent(new Te("onstatechange",new Map().set("state",t)))}function Gf(e){var t,n,i,a,l,f,d,g,m;return q(function(S){switch(S.g){case 1:if(vp(e,"manifest-parser"),e.l||(e.I=_l(e.P,e.Y),e.l=e.I(),e.l.configure(e.g.manifest,function(){return e.B})),t=Date.now()/1e3,vp(e,"manifest"),e.h){S.A(2);break}return O(S,e.l.start(e.P,e.Ya),3);case 3:if(e.h=S.h,e.h.variants.length!=1){S.A(2);break}for(n=[],i=e.h.variants[0],a=b([i.video,i.audio]),l=a.next();!l.done;l=a.next())(f=l.value)&&!f.segmentIndex&&n.push(f.createSegmentIndex());if(!(0<n.length)){S.A(2);break}return O(S,Promise.all(n),2);case 2:return e.qa.resolve(),d=new Te("manifestparsed",void 0),O(S,Promise.resolve(),7);case 7:if(e.dispatchEvent(d),e.h.variants.length==0)throw new G(2,4,4036);Mv(e.h),g=Date.now()/1e3,m=g-t,e.Z.J=m,ve(S)}})}function Km(e,t){var n,i,a,l,f,d;return q(function(g){switch(g.g){case 1:if(!e.h||e.i)return g.return();if(vp(e,"drm-engine"),e.Ha=Date.now()/1e3,e.i=e.Xa(),e.H.h=e.i,e.i.configure(e.g.drm,function(){return e.B}),n=Ea(e.H,e.h),!n){g.A(2);break}return i=new Te("trackschanged",void 0),O(g,Promise.resolve(),3);case 3:Is(e),e.dispatchEvent(i);case 2:return a=Ph(e.h.variants),l=!0,e.h&&e.h.presentationTimeline&&e.h.type!="HLS"&&(l=e.h.presentationTimeline.V()),O(g,kl(e.i,a,e.h.offlineSessionIds,l),4);case 4:if(Is(e),!t){g.A(5);break}return O(g,e.i.Wb(t),6);case 6:Is(e);case 5:return O(g,mf(e.H,e.h),7);case 7:if(f=g.h,!f){g.A(0);break}return d=new Te("trackschanged",void 0),O(g,Promise.resolve(),9);case 9:e.dispatchEvent(d),ve(g)}})}w.configure=function(e,t){e=gp(e,t),ki(this.g,e)},w.getConfiguration=function(){return pa(this.g)};function Cv(e){var t,n,i,a,l,f,d;return q(function(g){return e.s||(e.s=e.g.adaptationSetCriteriaFactory(),e.s.configure({language:e.g.preferredAudioLanguage,role:e.g.preferredVariantRole,channelCount:e.g.preferredAudioChannelCount,td:e.g.preferredVideoHdrLevel,spatialAudio:e.g.preferSpatialAudio,videoLayout:e.g.preferredVideoLayout,kd:e.g.preferredAudioLabel,Hd:e.g.preferredVideoLabel,codecSwitchingStrategy:e.g.mediaSource.codecSwitchingStrategy,audioCodec:""})),e.Sa&&(t=e.g.abrFactory,e.D=t,e.j=t(),e.j.configure(e.g.abr)),!e.ea||(n=e.h.presentationTimeline.V(),i=Ph(e.h.variants),a=e.s.create(i),e.j.configure(e.g.abr),e.j.setVariants(Array.from(a.values())),l=e.j.chooseVariant(),!l)?g.A(0):(f=[],e.L=l,l.video&&f.push(Qm(e,l.video,n)),l.audio&&f.push(Qm(e,l.audio,n)),(d=su(e.h.textStreams,e.g.preferredTextLanguage,e.g.preferredTextRole,e.g.preferForcedSubs)[0]||null)&&Ll(l.audio,d,e.g)&&(f.push(Qm(e,d,n)),e.U=d),O(g,Promise.all(f),0))})}function Qm(e,t,n){var i,a,l,f,d;return q(function(g){return g.g==1?(i=e.g.streaming.segmentPrefetchLimit||2,a=new Wd(i,t,function(m,S,T){return Pt(m,S,T||null,e.g.streaming.retryParameters,e.Ka,e.B)},!1),e.N.set(t.id,a),t.segmentIndex?g.A(2):O(g,t.createSegmentIndex(),2)):(l=e.C||0,f=t.segmentIndex.Xb(l),d=null,f&&(d=f.current(),d||(d=f.next().value)),d||(d=Pu(t.segmentIndex)),d?n?d.ia?O(g,eS(a,d.ia),0):g.A(0):O(g,$d(a,d.startTime),0):g.A(0))})}w.Gl=function(){return this.m},w.destroy=function(){var e=this,t,n,i;return q(function(a){switch(a.g){case 1:if(e.u=!0,!e.l||e.ua){a.A(2);break}return O(a,e.l.stop(),2);case 2:if(!e.j||e.ba){a.A(4);break}return O(a,e.j.stop(),4);case 4:if(e.J&&!e.za&&e.J.release(),!e.i||e.oa){a.A(6);break}return O(a,e.i.destroy(),6);case 6:if(0<e.N.size&&!e.Fa)for(t=b(e.N.values()),n=t.next();!n.done;n=t.next())i=n.value,Bl(i);ve(a)}})};function Mv(e){function t(n){return n.video&&n.audio||n.video&&n.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))}xe("shaka.media.PreloadManager",ea),ea.prototype.destroy=ea.prototype.destroy,ea.prototype.waitForFinish=ea.prototype.Gl,ea.prototype.getPrefetchedTextTrack=ea.prototype.$j,ea.prototype.getPrefetchedVariantTrack=ea.prototype.bk;function $o(e,t){Tt.call(this);var n=this;this.i=e,this.l=t,this.g=new Map,this.m=[{jd:null,hd:Vf,Tc:function(i,a){return Ls(n,"enter",i,a)}},{jd:Sp,hd:Vf,Tc:function(i,a){return Ls(n,"enter",i,a)}},{jd:Oc,hd:Vf,Tc:function(i,a){return Ls(n,"enter",i,a)}},{jd:Vf,hd:Sp,Tc:function(i,a){return Ls(n,"exit",i,a)}},{jd:Vf,hd:Oc,Tc:function(i,a){return Ls(n,"exit",i,a)}},{jd:Sp,hd:Oc,Tc:function(i,a){a?Ls(n,"skip",i,a):(Ls(n,"enter",i,a),Ls(n,"exit",i,a))}},{jd:Oc,hd:Sp,Tc:function(i,a){return Ls(n,"skip",i,a)}}],this.h=new Ft,this.h.o(this.i,"regionremove",function(i){n.g.delete(i.region)})}Xe($o,Tt),$o.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,Tt.prototype.release.call(this)},$o.prototype.j=function(e,t){if(!this.l||e!=0){this.l=!1;for(var n=b(this.i.h.values()),i=n.next();!i.done;i=n.next()){i=i.value;var a=this.g.get(i),l=e<i.startTime?Sp:e>i.endTime?Oc:Vf;this.g.set(i,l);for(var f=b(this.m),d=f.next();!d.done;d=f.next())d=d.value,d.jd==a&&d.hd==l&&d.Tc(i,t)}}};function Ls(e,t,n,i){t=new Te(t,new Map([["region",n],["seeking",i]])),e.dispatchEvent(t)}var Sp=1,Vf=2,Oc=3;function el(e,t,n){var i,a,l,f,d,g,m;return q(function(S){switch(S.g){case 1:var T=new un(e).qb.split("/").pop().split(".");return i=T.length==1?"":T.pop().toLowerCase(),(a=u0.get(i))?S.return(a):(l=0,f=yi([e],n),Le(S,2),f.method="HEAD",O(S,t.request(l,f).promise,4));case 4:d=S.h,a=d.headers["content-type"],Ge(S,3);break;case 2:if(g=je(S),!g||g.code!=1002&&g.code!=1001){S.A(3);break}return f.method="GET",O(S,t.request(l,f).promise,6);case 6:m=S.h,a=m.headers["content-type"];case 3:return S.return(a?a.toLowerCase().split(";").shift():"")}})}var u0=new Map().set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv","text/x-subviewer").set("srt","text/srt").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml").set("lrc","application/x-subtitle-lrc").set("ssa","text/x-ssa").set("ass","text/x-ssa").set("jpeg","image/jpeg").set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif").set("html","text/html").set("htm","text/html");function Vu(e,t){if(e.lineBreak)return`
29
- `;if(e.nestedCues.length)return e.nestedCues.map(function(f){return Vu(f,e)}).join("");if(!e.payload)return e.payload;var n=[],i=e.fontWeight>=oi,a=e.fontStyle==ro,l=e.textDecoration.includes(bu);return i&&n.push(["b"]),a&&n.push(["i"]),l&&n.push(["u"]),a=e.color,a==""&&t&&(a=t.color),i="",(a=mu(a))&&(i+="."+a),a=e.backgroundColor,a==""&&t&&(a=t.backgroundColor),(t=mu(a))&&(i+=".bg_"+t),i&&n.push(["c",i]),n.reduceRight(function(f,d){var g=b(d);return d=g.next().value,g=g.next().value,"<"+d+(g===void 0?"":g)+">"+f+"</"+d+">"},e.payload)}function mu(e){e=e.toLowerCase();var t=e.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);switch(t?e="#"+(parseInt(t[1],10)|256).toString(16).slice(1)+(parseInt(t[2],10)|256).toString(16).slice(1)+(parseInt(t[3],10)|256).toString(16).slice(1):e.startsWith("#")&&7<e.length&&(e=e.slice(0,7)),e){case"white":case"#fff":case"#ffffff":return"white";case"lime":case"#0f0":case"#00ff00":return"lime";case"cyan":case"#0ff":case"#00ffff":return"cyan";case"red":case"#f00":case"#ff0000":return"red";case"yellow":case"#ff0":case"#ffff00":return"yellow";case"magenta":case"#f0f":case"#ff00ff":return"magenta";case"blue":case"#00f":case"#0000ff":return"blue";case"black":case"#000":case"#000000":return"black"}return null}function bv(e,t){var n=[];e=b(Zm(e));for(var i=e.next();!i.done;i=e.next())if(i=i.value,i.isContainer)n.push.apply(n,Ue(bv(i.nestedCues,i)));else{var a=i.clone();a.nestedCues=[],a.payload=Vu(i,t),n.push(a)}return n}function Zm(e){var t=[];e=b(e);for(var n=e.next(),i={};!n.done;i={hg:void 0},n=e.next())i.hg=n.value,t.some(function(a){return function(l){return Ga(a.hg,l)}}(i))||t.push(i.hg);return t}function Rv(e){function t(i){for(var a=5381,l=i.length;l;)a=33*a^i.charCodeAt(--l);return(a>>>0).toString()}if(e.startTime>=e.endTime)return null;var n=new VTTCue(e.startTime,e.endTime,e.payload);n.id=t(e.startTime.toString())+t(e.endTime.toString())+t(e.payload),n.lineAlign=e.lineAlign,n.positionAlign=e.positionAlign,e.size&&(n.size=e.size);try{n.align=e.textAlign}catch{}return e.textAlign=="center"&&n.align!="center"&&(n.align="middle"),e.writingMode=="vertical-lr"?n.vertical="lr":e.writingMode=="vertical-rl"&&(n.vertical="rl"),e.lineInterpretation==1&&(n.snapToLines=!1),e.line!=null&&(n.line=e.line),e.position!=null&&(n.position=e.position),n}function sr(e,t){for(this.h=e,this.i=t,this.g=null,e=b(Array.from(this.h.textTracks)),t=e.next();!t.done;t=e.next())t=t.value,t.kind!=="metadata"&&t.kind!=="chapters"&&(t.mode="disabled",t.label==this.i&&(this.g=t));this.g&&(this.g.mode="hidden")}w=sr.prototype,w.configure=function(){},w.remove=function(e,t){return this.g?(o0(this.g,function(n){return n.startTime<t&&n.endTime>e}),!0):!1},w.append=function(e){if(this.g){var t=bv(e),n=[];e=this.g.cues?Array.from(this.g.cues):[],t=b(t);for(var i=t.next(),a={};!i.done;a={ud:void 0},i=t.next())a.ud=i.value,!e.some(function(l){return function(f){return f.startTime==l.ud.startTime&&f.endTime==l.ud.endTime&&f.text==l.ud.payload}}(a))&&a.ud.payload&&(i=Rv(a.ud))&&n.push(i);for(e=n.slice().sort(function(l,f){return l.startTime!=f.startTime?l.startTime-f.startTime:l.endTime!=f.endTime?l.endTime-f.startTime:"line"in VTTCue.prototype?n.indexOf(f)-n.indexOf(l):n.indexOf(l)-n.indexOf(f)}),e=b(e),t=e.next();!t.done;t=e.next())this.g.addCue(t.value)}},w.destroy=function(){return this.g&&(o0(this.g,function(){return!0}),this.g.mode="disabled"),this.g=this.h=null,Promise.resolve()},w.isTextVisible=function(){return this.g?this.g.mode=="showing":!1},w.setTextVisibility=function(e){e&&!this.g&&Jm(this),this.g&&(this.g.mode=e?"showing":"hidden")},w.setTextLanguage=function(){},w.enableTextDisplayer=function(){Jm(this)};function Jm(e){e.h&&!e.g&&(e.g=e.h.addTextTrack("subtitles",e.i),e.g.mode="hidden")}function o0(e,t){var n=e.mode;e.mode=n=="showing"?"showing":"hidden";for(var i=b(Array.from(e.cues)),a=i.next();!a.done;a=i.next())(a=a.value)&&t(a)&&e.removeCue(a);e.mode=n}xe("shaka.text.SimpleTextDisplayer",sr),sr.prototype.enableTextDisplayer=sr.prototype.enableTextDisplayer,sr.prototype.setTextLanguage=sr.prototype.setTextLanguage,sr.prototype.setTextVisibility=sr.prototype.setTextVisibility,sr.prototype.isTextVisible=sr.prototype.isTextVisible,sr.prototype.destroy=sr.prototype.destroy,sr.prototype.append=sr.prototype.append,sr.prototype.remove=sr.prototype.remove,sr.prototype.configure=sr.prototype.configure;function cr(){}w=cr.prototype,w.configure=function(){},w.remove=function(){},w.append=function(){},w.destroy=function(){},w.isTextVisible=function(){return!1},w.setTextVisibility=function(){},w.setTextLanguage=function(){},w.enableTextDisplayer=function(){},xe("shaka.text.StubTextDisplayer",cr),cr.prototype.enableTextDisplayer=cr.prototype.enableTextDisplayer,cr.prototype.setTextLanguage=cr.prototype.setTextLanguage,cr.prototype.setTextVisibility=cr.prototype.setTextVisibility,cr.prototype.isTextVisible=cr.prototype.isTextVisible,cr.prototype.destroy=cr.prototype.destroy,cr.prototype.append=cr.prototype.append,cr.prototype.remove=cr.prototype.remove,cr.prototype.configure=cr.prototype.configure;function qi(e,t){var n=this;document.fullscreenEnabled||st("Using UITextDisplayer in a browser without Fullscreen API support causes subtitles to not be rendered in fullscreen"),this.B=!1,this.h=[],this.j=e,this.D=t,this.u=this.m=null,this.g=Ne("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.D.appendChild(this.g),this.s=new Ke(function(){n.j.paused||Vl(n)}),Tp(this),this.l=new Map,this.i=new Ft,this.i.o(document,"fullscreenchange",function(){Vl(n,!0)}),this.i.o(this.j,"seeking",function(){Vl(n,!0)}),this.i.o(this.j,"ratechange",function(){Tp(n)}),this.i.o(this.j,"resize",function(){var i=n.j,a=i.videoWidth;i=i.videoHeight,a&&i?n.m=a/i:n.m=null}),this.C=null,"ResizeObserver"in oe&&(this.C=new ResizeObserver(function(){Vl(n,!0)}),this.C.observe(this.g)),this.H=new Map}w=qi.prototype,w.configure=function(e){this.u=e,Tp(this),Vl(this,!0)},w.append=function(e){var t=[].concat(Ue(this.h));e=b(Zm(e));for(var n=e.next(),i={};!n.done;i={ig:void 0},n=e.next())i.ig=n.value,t.some(function(a){return function(l){return Ga(l,a.ig)}}(i))||this.h.push(i.ig);this.h.length&&Tp(this),Vl(this)},w.destroy=function(){return this.g&&(this.D.removeChild(this.g),this.g=null,this.B=!1,this.h=[],this.s&&(this.s.stop(),this.s=null),this.l.clear(),this.i&&(this.i.release(),this.i=null),this.C&&(this.C.disconnect(),this.C=null)),Promise.resolve()},w.remove=function(e,t){if(!this.g)return!1;var n=this.h.length;return this.h=this.h.filter(function(i){return i.startTime<e||i.endTime>=t}),Vl(this,n>this.h.length),this.h.length||Tp(this),!0},w.isTextVisible=function(){return this.B},w.setTextVisibility=function(e){this.B=e,Vl(this,!0)},w.setTextLanguage=function(e){e&&e!="und"?this.g.setAttribute("lang",e):this.g.setAttribute("lang","")},w.enableTextDisplayer=function(){};function Tp(e){e.s&&(e.h.length?e.s.xa((e.u?e.u.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(e.j.playbackRate))):e.s.stop())}function rS(e,t){for(;t!=null;){if(t==e.g)return!0;t=t.parentElement}return!1}function Wm(e,t,n,i,a){var l=!1,f=[],d=[];t=b(t);for(var g=t.next();!g.done;g=t.next()){g=g.value,a.push(g);var m=e.l.get(g),S=g.startTime<=i&&g.endTime>i,T=m?m.ij:null;m&&(f.push(m.jg),m.cd&&f.push(m.cd),S||(l=!0,e.l.delete(g),m=null)),S&&(d.push(g),m?rS(e,T)||(l=!0):($m(e,g,a),m=e.l.get(g),T=m.ij,l=!0)),0<g.nestedCues.length&&T&&Wm(e,g.nestedCues,T,i,a),a.pop()}if(l){for(i=b(f),a=i.next();!a.done;a=i.next())a=a.value,a.parentElement&&a.parentElement.removeChild(a);for(d.sort(function(x,M){return x.startTime!=M.startTime?x.startTime-M.startTime:x.endTime-M.endTime}),d=b(d),i=d.next();!i.done;i=d.next())i=e.l.get(i.value),i.cd?(i.cd.contains(n)&&i.cd.removeChild(n),n.appendChild(i.cd),i.cd.appendChild(i.jg)):n.appendChild(i.jg)}}function Vl(e,t){if(e.g){var n=e.j.currentTime;if(!e.B||t!==void 0&&t){t=b(e.H.values());for(var i=t.next();!i.done;i=t.next())Zr(i.value);Zr(e.g),e.l.clear(),e.H.clear()}e.B&&Wm(e,e.h,e.g,n,[])}}function $m(e,t,n){var i=1<n.length,a=i?"span":"div";t.lineBreak&&(a="br"),t.rubyTag&&(a=t.rubyTag),i=!i&&0<t.nestedCues.length;var l=Ne(a);if(a!="br"&&Iv(e,l,t,n,i),n=null,t.region&&t.region.id){var f=t.region,d=e.m===4/3?2.5:1.9;if(n=f.id+"_"+f.width+"x"+f.height+(f.heightUnits==Zi?"%":"px")+"-"+f.viewportAnchorX+"x"+f.viewportAnchorY+(f.viewportAnchorUnits==Zi?"%":"px"),e.H.has(n))n=e.H.get(n);else{a=Ne("span");var g=f.heightUnits==Zi?"%":"px",m=f.widthUnits==Zi?"%":"px",S=f.viewportAnchorUnits==Zi?"%":"px";a.id="shaka-text-region---"+n,a.classList.add("shaka-text-region"),a.style.position="absolute";var T=f.height,x=f.width;f.heightUnits===2&&(T=5.33*f.height,g="%"),f.widthUnits===2&&(x=f.width*d,m="%"),a.style.height=T+g,a.style.width=x+m,f.viewportAnchorUnits===2?(d=f.viewportAnchorY/75*100,g=f.viewportAnchorX/(e.m===4/3?160:210)*100,d-=f.regionAnchorY*T/100,g-=f.regionAnchorX*x/100,a.style.top=d+"%",a.style.left=g+"%"):(a.style.top=f.viewportAnchorY-f.regionAnchorY*T/100+S,a.style.left=f.viewportAnchorX-f.regionAnchorX*x/100+S),f.heightUnits!==0&&f.widthUnits!==0&&f.viewportAnchorUnits!==0&&(f=Math.max(0,Math.min(100-(parseInt(a.style.width.slice(0,-1),10)||0),parseInt(a.style.left.slice(0,-1),10)||0)),a.style.top=Math.max(0,Math.min(100-(parseInt(a.style.height.slice(0,-1),10)||0),parseInt(a.style.top.slice(0,-1),10)||0))+"%",a.style.left=f+"%"),a.style.display="flex",a.style.flexDirection="column",a.style.alignItems="center",a.style.justifyContent=t.displayAlign=="before"?"flex-start":t.displayAlign=="center"?"center":"flex-end",e.H.set(n,a),n=a}}a=l,i&&(a=Ne("span"),a.classList.add("shaka-text-wrapper"),a.style.backgroundColor=t.backgroundColor,a.style.lineHeight="normal",l.appendChild(a)),e.l.set(t,{jg:l,ij:a,cd:n})}function Dv(e){var t=e.direction,n=e.positionAlign;return e=e.textAlign,n!==sc?n:e==="left"||e==="start"&&t===Uh||e==="end"&&t==="rtl"?"line-left":e==="right"||e==="start"&&t==="rtl"||e==="end"&&t===Uh?"line-right":"center"}function Iv(e,t,n,i,a){var l=t.style,f=n.nestedCues.length==0,d=1<i.length;l.whiteSpace="pre-wrap";var g=n.payload.replace(/\s+$/g,function(S){return" ".repeat(S.length)});if(l.webkitTextStrokeColor=n.textStrokeColor,l.webkitTextStrokeWidth=n.textStrokeWidth,l.color=n.color,l.direction=n.direction,l.opacity=n.opacity,l.paddingLeft=qf(n.linePadding,n,e.D),l.paddingRight=qf(n.linePadding,n,e.D),l.textCombineUpright=n.textCombineUpright,l.textShadow=n.textShadow,n.backgroundImage)l.backgroundImage="url('"+n.backgroundImage+"')",l.backgroundRepeat="no-repeat",l.backgroundSize="contain",l.backgroundPosition="center",n.backgroundColor&&(l.backgroundColor=n.backgroundColor),l.width="100%",l.height="100%";else{if(n.nestedCues.length)var m=t;else m=Ne("span"),t.appendChild(m);n.border&&(m.style.border=n.border),a||((t=Os(i,function(S){return S.backgroundColor}))?m.style.backgroundColor=t:g&&(m.style.backgroundColor="rgba(0, 0, 0, 0.8)")),g&&(m.textContent=g)}d&&!i[i.length-1].isContainer?l.display="inline":(l.display="flex",l.flexDirection="column",l.alignItems="center",n.textAlign=="left"||n.textAlign=="start"?(l.width="100%",l.alignItems="start"):(n.textAlign=="right"||n.textAlign=="end")&&(l.width="100%",l.alignItems="end"),l.justifyContent=n.displayAlign=="before"?"flex-start":n.displayAlign=="center"?"center":"flex-end"),f||(l.margin="0"),l.fontFamily=n.fontFamily,l.fontWeight=n.fontWeight.toString(),l.fontStyle=n.fontStyle,l.letterSpacing=n.letterSpacing,l.fontSize=qf(n.fontSize,n,e.D,e.u?e.u.fontScaleFactor:1),i=n.line,i!=null&&(f=n.lineInterpretation,f==fc&&(f=1,d=16,e.m&&1>e.m&&(d=32),i=0>i?100+i/d*100:i/d*100),f==1&&(l.position="absolute",n.writingMode==Tr?(l.width="100%",n.lineAlign==ma?l.top=i+"%":n.lineAlign=="end"&&(l.bottom=100-i+"%")):n.writingMode=="vertical-lr"?(l.height="100%",n.lineAlign==ma?l.left=i+"%":n.lineAlign=="end"&&(l.right=100-i+"%")):(l.height="100%",n.lineAlign==ma?l.right=i+"%":n.lineAlign=="end"&&(l.left=100-i+"%")))),l.lineHeight=n.lineHeight,e=Dv(n),e=="line-left"?(l.cssFloat="left",n.position!==null&&(l.position="absolute",n.writingMode==Tr?(l.left=n.position+"%",l.width="auto"):l.top=n.position+"%")):e=="line-right"?(l.cssFloat="right",n.position!==null&&(l.position="absolute",n.writingMode==Tr?(l.right=100-n.position+"%",l.width="auto"):l.bottom=n.position+"%")):n.position!==null&&n.position!=50&&(l.position="absolute",n.writingMode==Tr?(l.left=n.position+"%",l.width="auto"):l.top=n.position+"%"),l.textAlign=n.textAlign,l.textDecoration=n.textDecoration.join(" "),l.writingMode=n.writingMode,"writingMode"in document.documentElement.style&&l.writingMode==n.writingMode||(l.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==Tr?l.width=n.size+"%":l.height=n.size+"%")}function qf(e,t,n,i){i=i===void 0?1:i;var a=(a=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(a[1]),unit:a[2]}:null;if(!a)return e;switch(e=a.unit,i*=a.value,e){case"%":return i/100*n.clientHeight/t.cellResolution.rows+"px";case"c":return n.clientHeight*i/t.cellResolution.rows+"px";default:return i+e}}function Os(e,t){for(var n=e.length-1;0<=n;n--){var i=t(e[n]);if(i||i===0)return i}return null}xe("shaka.text.UITextDisplayer",qi),qi.prototype.enableTextDisplayer=qi.prototype.enableTextDisplayer,qi.prototype.setTextLanguage=qi.prototype.setTextLanguage,qi.prototype.setTextVisibility=qi.prototype.setTextVisibility,qi.prototype.isTextVisible=qi.prototype.isTextVisible,qi.prototype.remove=qi.prototype.remove,qi.prototype.destroy=qi.prototype.destroy,qi.prototype.append=qi.prototype.append,qi.prototype.configure=qi.prototype.configure;function Uc(e,t){function n(l){for(var f=l,d=b(t),g=d.next();!g.done;g=d.next())g=g.value,g.end&&g.start<l&&(f+=g.end-g.start);return l=Math.floor(f/3600),d=Math.floor(f/60%60),g=Math.floor(f%60),f=Math.floor(1e3*f%1e3),(10>l?"0":"")+l+":"+(10>d?"0":"")+d+":"+(10>g?"0":"")+g+"."+(100>f?10>f?"00":"0":"")+f}var i=bv(e);e=`WEBVTT
30
-
31
- `,i=b(i);for(var a=i.next();!a.done;a=i.next())a=a.value,e+=n(a.startTime)+" --> "+n(a.endTime)+function(l){var f=[];switch(l.textAlign){case"left":f.push("align:left");break;case"right":f.push("align:right");break;case Dr:f.push("align:middle");break;case"start":f.push("align:start");break;case"end":f.push("align:end")}switch(l.writingMode){case"vertical-lr":f.push("vertical:lr");break;case"vertical-rl":f.push("vertical:rl")}return f.length?" "+f.join(" "):""}(a)+`
32
- `,e+=a.payload+`
33
-
34
- `;return e}xe("shaka.text.WebVttGenerator",function(){});function ql(e,t){this.h=e,this.g=t,this.i=void 0,this.u=!1,this.H=!0,this.l=this.C=!1,this.s=this.m=void 0,this.B=0,this.I=!1,this.D=new Ft,this.j=null}ql.prototype.setMediaElement=function(e){this.j=e,ah(this)},ql.prototype.configure=function(e){this.g=e};function l0(e){e.u=!1,e.H=!0,e.C=!1,e.l=!1,e.m=0,e.s=0,e.B=0,e.I=!1,e.j=null,e.D.$a()}function s0(e,t){e.l=t,e.l?e.i==y?e.i=A:e.i==C&&(e.i=_):e.i==A?e.i=y:e.i==_&&(e.i=C)}function Yf(e,t){if(e.g&&e.g.enabled&&e.g.version==h&&e.j&&e.j.autoplay){var n=e.j.play();n&&n.then(function(){e.B=t}).catch(function(){e.B=0})}}function aS(e,t,n){try{if(!e.g.enabled)return t;var i=kc(e);e:{switch(n.toLowerCase()){case"audio/mp4":case"audio/webm":case"audio/ogg":case"audio/mpeg":case"audio/aac":case"audio/flac":case"audio/wav":var a=lh;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":a=ta;break e;case"application/x-mpegurl":case"application/vnd.apple.mpegurl":case"application/dash+xml":case"video/vnd.mpeg.dash.mpd":case"application/vnd.ms-sstr+xml":a=ty;break e}a=void 0}i.ot=a,i.su=!0;var l=Us(i);return tl(t,l)}catch(f){return xo("CMCD_SRC_ERROR","Could not generate src CMCD data.",f),t}}function ah(e){e.D.wa(e.j,"play",function(){e.m||(e.m=Date.now())}),e.D.wa(e.j,"playing",function(){e.s||(e.s=Date.now())})}function kc(e){return e.g.sessionId||(e.g.sessionId=oe.crypto.randomUUID()),{v:e.g.version,sf:e.i,sid:e.g.sessionId,cid:e.g.contentId,mtp:e.h.getBandwidthEstimate()/1e3}}function uh(e,t,n){n=n===void 0?{}:n;var i=i===void 0?e.g.useHeaders:i;if(e.g.enabled){Object.assign(n,kc(e)),n.pr=e.h.Wa();var a=n.ot===Ep||n.ot===ta;if(e.C&&a&&(n.bs=!0,n.su=!0,e.C=!1),n.su==null&&(n.su=e.H),n.v===h&&(e.h.V()&&(n.ltc=e.h.Se()),a=!e.I&&e.s&&e.m?e.s-(e.B||e.m):void 0,a!=null&&(n.msd=a,e.I=!0)),e=Lv(e,n),i)i=Ov(e),Object.keys(i).length&&Object.assign(t.headers,i);else{var l=Us(e);l&&(t.uris=t.uris.map(function(f){return tl(f,l)}))}}}function Lv(e,t){var n=e.g.includeKeys;return n.length?Object.keys(t).reduce(function(i,a){return n.includes(a)&&(i[a]=t[a]),i},{}):t}function c0(e){if(e.type===0)return d0;if(e=e.stream){var t=e.type;if(t=="video")return e.codecs&&e.codecs.includes(",")?ta:Ep;if(t=="audio")return lh;if(t=="text")return e.mimeType==="application/mp4"?c:o}}function f0(e,t){if(t=e.h.Lb()[t],!t.length)return NaN;var n=e.h.getCurrentTime();return(e=t.find(function(i){return i.start<=n&&i.end>=n}))?1e3*(e.end-n):NaN}function oh(e,t){if(t=e.h.Lb()[t],!t.length)return 0;var n=e.h.getCurrentTime();return(e=t.find(function(i){return i.start<=n&&i.end>=n}))?1e3*(e.end-n):0}function ey(e,t){var n=e.h.Mb();if(!n.length)return NaN;e=n[0],n=b(n);for(var i=n.next();!i.done;i=n.next())i=i.value,i.type==="variant"&&i.bandwidth>e.bandwidth&&(e=i);switch(t){case Ep:return e.videoBandwidth||NaN;case lh:return e.audioBandwidth||NaN;default:return e.bandwidth}}function Us(e){function t(T){return 100*n(T/100)}function n(T){return Math.round(T)}function i(T){return!Number.isNaN(T)&&T!=null&&T!==""&&T!==!1}var a=[],l={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(T){return encodeURIComponent(T)},rtp:t,tb:n},f=Object.keys(e||{}).sort();f=b(f);for(var d=f.next();!d.done;d=f.next()){d=d.value;var g=e[d];if(i(g)&&(d!=="v"||g!==1)&&(d!="pr"||g!==1)){var m=l[d];m&&(g=m(g)),m=typeof g;var S=void 0;S=m==="string"&&d!=="ot"&&d!=="sf"&&d!=="st"?d+"="+JSON.stringify(g):m==="boolean"?d:m==="symbol"?d+"="+g.description:d+"="+g,a.push(S)}}return a.join(",")}function Ov(e){var t=Object.keys(e),n={},i=["Object","Request","Session","Status"],a=[{},{},{},{}],l={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,ltc:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3};t=b(t);for(var f=t.next();!f.done;f=t.next())f=f.value,a[l[f]!=null?l[f]:1][f]=e[f];for(e=0;e<a.length;e++)(l=Us(a[e]))&&(n["CMCD-"+i[e]]=l);return n}function tl(e,t){return!t||e.includes("offline:")?e:(e=new un(e),e.g.set("CMCD",t),e.toString())}var ty="m",lh="a",Ep="v",ta="av",d0="i",o="c",c="tt",h=2,y="d",A="ld",C="h",_="lh";xe("shaka.util.CmcdManager.StreamingFormat",{DASH:y,cm:A,HLS:C,dm:_,rm:"s",OTHER:"o"});function z(e){this.h=e,this.g=null}w=z.prototype,w.configure=function(e){this.h=e},w.ci=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(be)?1e3*this.g.get(be):null},w.bi=function(){return this.h.enabled&&this.g&&this.g.has(de)?1e3*this.g.get(de):null},w.dk=function(){return this.h.enabled&&this.g&&this.g.has(Ie)?this.g.get(Ie):null},w.ek=function(){return this.h.enabled&&this.g&&this.g.has(pe)?this.g.get(pe):null},w.getBandwidthEstimate=function(e){var t=this.bi();if(!t)return e;var n=this.h.estimatedThroughputWeightRatio;return 0<n&&1>=n?e*(1-n)+t*n:e};function Z(e){return e?e.toLowerCase()==="false"?!1:/^[-0-9]/.test(e)?parseInt(e,10):e.replace(/["]+/g,""):!0}xe("shaka.util.CmsdManager",z),z.prototype.getBandwidthEstimate=z.prototype.getBandwidthEstimate,z.prototype.getRoundTripTime=z.prototype.ek,z.prototype.getResponseDelay=z.prototype.dk,z.prototype.getEstimatedThroughput=z.prototype.bi,z.prototype.getMaxBitrate=z.prototype.ci;var de="etp",be="mb",Ie="rd",pe="rtt";function me(){this.g=null,this.h=[]}function bt(e,t){return q(function(n){if(n.g==1)return e.g?O(n,new Promise(function(i){return e.h.push(i)}),2):n.A(2);e.g=t,ve(n)})}me.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function te(e,t,n){t=t===void 0?null:t,Tt.call(this);var i=this;this.m=Ra,this.h=null,this.we=t,this.ua=!1,this.Be=new Ft,this.oe=new Ft,this.l=new Ft,this.Ya=new Ft,this.jc=new Ft,this.I=this.K=this.D=this.H=null,this.De=0,this.ba=new me,this.Y=this.Ob=this.S=this.i=this.fc=this.J=this.j=this.ie=this.P=this.Ih=this.oa=this.M=this.La=this.Fa=this.je=this.N=this.za=this.L=this.Sa=null,this.Z=!1,this.Ka=this.s=null,this.ve=1e9,this.Ae=[],this.ue=[],this.Tf=-1,this.g=fr(this),this.Uf=i0(),this.R=null,this.Fe=-1,this.Xa=null,this.qa={width:1/0,height:1/0},this.Qf=new Zh(this.g,this.qa,null),this.ye=[],this.B=null,this.U=this.g.adaptationSetCriteriaFactory(),this.U.configure({language:this.g.preferredAudioLanguage,role:this.g.preferredVariantRole,channelCount:this.g.preferredAudioChannelCount,td:this.g.preferredVideoHdrLevel,spatialAudio:this.g.preferSpatialAudio,videoLayout:this.g.preferredVideoLayout,kd:this.g.preferredAudioLabel,Hd:this.g.preferredVideoLabel,codecSwitchingStrategy:this.g.mediaSource.codecSwitchingStrategy,audioCodec:""}),this.lc=this.g.preferredTextLanguage,this.se=this.g.preferredTextRole,this.re=this.g.preferForcedSubs,this.pe=[],n&&n(this),this.M=t4(this),this.oa=new z(this.g.cmsd),this.H=FE(this),this.H.oh(this.g.streaming.forceHTTP),this.H.ph(this.g.streaming.forceHTTPS),this.H.s=this.g.streaming.minBytesForProgressEvents,this.nc=this.ea=this.C=null,this.Wf=!1,this.Vf=new Ke(function(){return q(function(a){if(a.g==1)return i.ea?O(a,i.Wb(i.nc,!0),3):a.A(0);if(a.g!=4)return O(a,i.load(i.ea),4);i.Wf?i.nc.pause():i.nc.play(),i.ea=null,i.Wf=!1,ve(a)})}),ch&&(this.C=ch(),this.C.configure(this.g.ads),this.jc.o(this.C,"ad-content-pause-requested",function(a){var l;return q(function(f){if(f.g==1)return i.Vf.stop(),i.ea?f.A(0):(i.nc=i.h,i.Wf=i.isEnded(),l=a.saveLivePosition||!1,O(f,i.Xh(!0,l),3));i.ea=f.h,ve(f)})}),this.jc.o(this.C,"ad-content-resume-requested",function(a){if(a=a.offset||0,i.ea){var l=i.ea;l.C&&a&&(l.C+=a)}i.Vf.$(.1)}),this.jc.o(this.C,"ad-content-attach-requested",function(){return q(function(a){return i.h||!i.nc?a.A(0):O(a,i.Wb(i.nc,!0),0)})})),this.Be.o(oe,"online",function(){sh(i),i.gh()}),this.xe=new Ke(function(){for(var a=Date.now()/1e3,l=!1,f=!0,d=b(i.i.variants),g=d.next();!g.done;g=d.next())g=g.value,0<g.disabledUntilTime&&g.disabledUntilTime<=a&&(g.disabledUntilTime=0,l=!0),0<g.disabledUntilTime&&(f=!1);f&&i.xe.stop(),l&&p0(i,!1,void 0,!1,!1)}),this.Ha=null,e&&(Gt("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Wb(e,!0)),this.u=null}Xe(te,Tt);function Ln(e){e.P!=null&&(iu(e.P),e.P.release(),e.P=null)}function se(e,t,n){n||t.lcevc.enabled?(Ln(e),e.P==null&&(e.P=new ef(e.h,e.Ih,t.lcevc,n),e.K&&(e.K.L=e.P))):Ln(e)}function J(e,t){return new Te(e,t)}w=te.prototype,w.destroy=function(){var e=this,t;return q(function(n){switch(n.g){case 1:return e.m==Si?n.return():(Ln(e),t=e.detach(),e.m=Si,O(n,t,2));case 2:return O(n,e.mg(),3);case 3:if(e.Be&&(e.Be.release(),e.Be=null),e.oe&&(e.oe.release(),e.oe=null),e.l&&(e.l.release(),e.l=null),e.Ya&&(e.Ya.release(),e.Ya=null),e.jc&&(e.jc.release(),e.jc=null),e.Ka=null,e.g=null,e.B=null,e.we=null,e.M=null,e.oa=null,!e.H){n.A(4);break}return O(n,e.H.destroy(),5);case 5:e.H=null;case 4:e.s&&(e.s.release(),e.s=null),Tt.prototype.release.call(e),ve(n)}})};function fe(e,t){CT.set(e,t)}function De(){return oe.Promise||st("A Promise implementation or polyfill is required"),oe.Promise&&oe.Uint8Array&&Array.prototype.forEach&&!Tn("Trident/")?fa()?!0:xh("application/x-mpegurl"):!1}function ut(e,t){e.dispatchEvent(J("onstatechange",new Map().set("state",t)))}w.Wb=function(e,t){t=t===void 0?!0:t;var n=this,i,a,l;return q(function(f){switch(f.g){case 1:if(n.m==Si)throw new G(2,7,7e3);if(i=n.h&&n.h==e,!n.h||n.h==e){f.A(2);break}return O(f,n.detach(),2);case 2:return O(f,ln(n,"attach"),4);case 4:if(f.h)return f.return();if(Le(f,5,6),i||(ut(n,"attach"),a=function(){var d=Kf(n,!1);d&&yu(n,d)},n.oe.o(e,"error",a),n.h=e,n.M&&n.M.setMediaElement(e)),!t||!fa()||n.K){f.A(6);break}return O(f,gT(n),6);case 6:re(f),n.ba.release(),Re(f,0);break;case 5:return l=je(f),O(f,n.detach(),10);case 10:throw l}})},w.Kh=function(e){this.Ih=e},w.detach=function(e){e=e===void 0?!1:e;var t=this;return q(function(n){if(n.g==1){if(t.m==Si)throw new G(2,7,7e3);return O(n,t.rc(!1,e),2)}if(n.g!=3)return O(n,ln(t,"detach"),3);if(n.h)return n.return();try{t.h&&(t.oe.$a(),t.h=null),ut(t,"detach"),t.C&&!e&&t.C.release()}finally{t.ba.release()}ve(n)})};function ln(e,t){var n;return q(function(i){return i.g==1?(n=++e.De,O(i,bt(e.ba,t),2)):n!=e.De?(e.ba.release(),i.return(!0)):i.return(!1)})}w.rc=function(e,t){e=e===void 0?!0:e,t=t===void 0?!1:t;var n=this,i,a,l,f,d,g,m,S,T,x;return q(function(M){switch(M.g){case 1:return n.m!=Si&&(n.m=Ra),O(M,ln(n,"unload"),2);case 2:return M.h?M.return():(_n(M,3),n.Z=!1,ut(n,"unload"),Ln(n),i=n.pe.map(function(R){return R()}),n.pe=[],O(M,Promise.all(i),5));case 5:if(n.dispatchEvent(J("unloading")),n.je&&(n.je.release(),n.je=null),n.Fa&&(n.Fa.release(),n.Fa=null),n.La&&(n.La.release(),n.La=null),n.h&&(n.l.$a(),n.Ya.$a()),n.xe.stop(),n.Sa&&(n.Sa.release(),n.Sa=null),n.za&&(n.za.stop(),n.za=null),!n.J){M.A(6);break}return O(M,n.J.stop(),7);case 7:n.J=null,n.fc=null;case 6:if(!n.s){M.A(8);break}return O(M,n.s.stop(),8);case 8:if(!n.j){M.A(10);break}return O(M,n.j.destroy(),11);case 11:n.j=null;case 10:if(n.L&&(n.L.release(),n.L=null),n.I&&(n.I.release(),n.I=null),oe.shakaMediaKeysPolyfill!=="webkit"||!n.D){M.A(12);break}return O(M,n.D.destroy(),13);case 13:n.D=null;case 12:if(!n.K){M.A(14);break}return O(M,n.K.destroy(),15);case 15:n.K=null;case 14:if(n.C&&!t&&n.C.onAssetUnload(),n.ea&&!t&&(n.ea.destroy(),n.ea=null),t||n.Vf.stop(),n.M&&l0(n.M),n.oa&&(n.oa.g=null),!n.u){M.A(16);break}return O(M,n.u.destroy(),17);case 17:n.u=null;case 16:if(n.h&&(Zr(n.h),n.h.src&&(n.h.removeAttribute("src"),n.h.load())),!n.D){M.A(18);break}return O(M,n.D.destroy(),19);case 19:n.D=null;case 18:if(n.Ha&&n.S!=n.Ha.rd()&&(n.Ha.u||n.Ha.destroy(),n.Ha=null),n.S=null,n.Ob=null,n.N=null,n.i){for(a=b(n.i.variants),l=a.next();!l.done;l=a.next())for(f=l.value,d=b([f.audio,f.video]),g=d.next();!g.done;g=d.next())(m=g.value)&&m.segmentIndex&&m.segmentIndex.release();for(S=b(n.i.textStreams),T=S.next();!T.done;T=S.next())x=T.value,x.segmentIndex&&x.segmentIndex.release()}n.g&&n.g.streaming.clearDecodingCache&&(hs.clear(),ts.clear()),n.i=null,n.B=new a0,n.Ce=null,n.Xa=null,n.R=null,n.Fe=-1,n.Ae=[],n.ue=[],n.Tf=-1,n.H&&n.H.Sh(),uy(n);case 3:re(M),n.ba.release(),Re(M,4);break;case 4:if(e&&fa()&&!n.K&&n.h)return O(M,gT(n),0);M.A(0)}})},w.Fl=function(e){this.Y=e},w.load=function(e,t,n){t=t===void 0?null:t;var i=this,a,l,f,d,g,m,S,T,x,M,R,L,I,U;return q(function(N){switch(N.g){case 1:if(i.m==Si)throw new G(2,7,7e3);if(a=null,l="",e instanceof ea){if(e.u)throw new G(2,7,7006);a=e,l=a.rd()||""}else l=e||"";return O(N,bt(i.ba,"load"),2);case 2:if(i.ba.release(),!i.h)throw new G(2,7,7002);if(!i.S){N.A(3);break}return i.S=l,O(N,i.rc(!1),3);case 3:if(f=++i.De,d=function(){return q(function(j){if(j.g==1)return i.De==f?j.A(0):a?O(j,a.destroy(),3):j.A(3);throw new G(2,7,7e3)})},g=function(j,B){return q(function(Y){switch(Y.g){case 1:return _n(Y,2),O(Y,bt(i.ba,B),4);case 4:return O(Y,d(),5);case 5:return O(Y,j(),6);case 6:return O(Y,d(),7);case 7:a&&i.g&&(a.g=i.g);case 2:re(Y),i.ba.release(),Re(Y,0)}})},Le(N,5,6),t==null&&a&&(t=a.getStartTime()),i.Y=t,i.Z=!1,i.dispatchEvent(J("loading")),a){n=a.Y,N.A(8);break}if(n){N.A(8);break}return O(N,g(function(){return q(function(j){if(j.g==1)return O(j,Nc(i,l),2);n=j.h,ve(j)})},"guessMimeType_"),8);case 8:if(m=!!a,a){wv(a,i),i.B=a.getStats(),N.A(11);break}return O(N,_r(i,l,t,n,!0),12);case 12:(a=N.h)?(a.B=!1,wv(a,i),i.B=a.getStats(),a.start(),a.m.catch(function(){})):i.B=new a0;case 11:return S=!a,T=Date.now()/1e3,i.B=a?a.getStats():new a0,i.S=l,i.Ob=n||null,uy(i),x=function(){var j=i.Lb(),B={start:0,end:0};if(j.total.length){B.start=1/0,j=b(j.total);for(var Y=j.next();!Y.done;Y=j.next())Y=Y.value,Y.start<B.start&&(B.start=Y.start),Y.end>B.end&&(B.end=Y.end)}return B},i.Fa=new Jd(x),S?O(N,g(function(){return q(function(j){return O(j,XA(i,n),0)})},"initializeSrcEqualsDrmInner_"),23):(i.La=new Jd(x),O(N,g(function(){return q(function(j){if(j.g==1)return O(j,Promise.race([a.qa,a.m]),2);i.fc=a.I;var B=a;B.ua=!0,i.J=B.l,i.i=a.Hg(),ve(j)})},"waitForFinish"),15));case 15:if(i.K){N.A(16);break}return O(N,g(function(){return q(function(j){return O(j,gT(i),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return i.i&&i.i.textStreams.length&&(i.u.enableTextDisplayer?i.u.enableTextDisplayer():Gt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),O(N,g(function(){return q(function(j){return O(j,a.m,0)})},"waitForFinish"),18);case 18:if(i.g=a.getConfiguration(),i.Qf=a.H,i.J&&i.J.setMediaElement&&i.h&&i.J.setMediaElement(i.h),i.je=rh(a),i.ie=a.La,(M=a.s)&&(i.U=M),m&&i.h&&i.h.nodeName==="AUDIO"&&(Ct(i),i.configure("manifest.disableVideo",!0)),a.i){N.A(19);break}return O(N,g(function(){return q(function(j){return O(j,Km(a,i.h),0)})},"drmEngine_.init"),19);case 19:return i.D=iS(a),O(N,g(function(){return q(function(j){return O(j,i.D.Wb(i.h),0)})},"drmEngine_.attach"),21);case 21:return!(R=a.D)||i.Ka&&i.Ka==R||(i.s=Wo(a),i.Ka=a.D,typeof i.s.setMediaElement!="function"&&(Gt("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),i.s.setMediaElement=function(){}),typeof i.s.setCmsdManager!="function"&&(Gt("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),i.s.setCmsdManager=function(){}),typeof i.s.trySuggestStreams!="function"&&(Gt("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),i.s.trySuggestStreams=function(){})),L=Fm(a),I=a.L,O(N,g(function(){return q(function(j){return O(j,qE(i,T,I,L),0)})},"loadInner_"),22);case 22:yp(a),i.Ob&&ai()&&of(i.Ob)&&Ca(i.K,i.S,i.Ob),N.A(14);break;case 23:return O(N,g(function(){return q(function(j){return O(j,FA(i,T,n),0)})},"srcEqualsInner_"),14);case 14:i.dispatchEvent(J("loaded"));case 6:if(re(N),!a){N.A(25);break}return O(N,a.destroy(),25);case 25:i.Ha=null,Re(N,0);break;case 5:if(U=je(N),!U||U.code==7e3){N.A(27);break}return O(N,i.rc(!1),27);case 27:throw U}})};function Ct(e){for(var t=b(e.i.variants),n=t.next();!n.done;n=t.next())n=n.value,n.video&&(n.video.closeSegmentIndex(),n.video=null),n.bandwidth=n.audio&&n.audio.bandwidth?n.audio.bandwidth:0;e.i.variants=e.i.variants.filter(function(i){return i.audio})}w.Bl=function(e,t){e=e===void 0?!0:e,t=t===void 0?!1:t;var n=this,i;return q(function(a){return a.g==1?O(a,zt(n),2):a.g!=3?(i=a.h,O(a,n.rc(e,t),3)):a.return(i)})},w.Xh=function(e,t){e=e===void 0?!1:e,t=t===void 0?!1:t;var n=this,i;return q(function(a){return a.g==1?O(a,zt(n,t),2):a.g!=3?(i=a.h,O(a,n.detach(e),3)):a.return(i)})};function zt(e,t){t=t===void 0?!1:t;var n,i;return q(function(a){if(a.g==1)return n=null,e.i&&e.J&&e.fc&&e.S?(i=e.h.currentTime,e.V()&&!t&&(i=null),O(a,On(e,e.S,i,e.Ob,!0,!1,!1),3)):a.A(2);if(a.g!=2){n=a.h,e.ye.push(n),e.J&&e.J.setMediaElement&&e.J.setMediaElement(null);var l=n,f=e.J,d=e.fc;l.h=e.i,l.l=f,l.I=d,l=n,f=e.Ka,l.j=e.s,l.D=f,n.s=e.U,n.start(),e.i=null,e.J=null,e.fc=null,e.s=null,e.Ka=null}return a.return(n)})}w.preload=function(e,t,n){t=t===void 0?null:t;var i=this,a;return q(function(l){return l.g==1?O(l,_r(i,e,t,n),2):((a=l.h)?a.start():yu(i,new G(2,7,7005)),l.return(a))})},w.mg=function(){var e=this,t,n,i,a;return q(function(l){for(t=[],n=b(e.ye),i=n.next();!i.done;i=n.next())a=i.value,a.u||t.push(a.destroy());return e.ye=[],O(l,Promise.all(t),0)})};function _r(e,t,n,i,a){a=a===void 0?!1:a;var l,f,d;return q(function(g){return g.g==1?i?g.A(2):O(g,Nc(e,t),3):(g.g!=2&&(i=g.h),pT(e,i)?g.return(null):(l=!1,f=!0,a&&(e.s&&e.Ka==e.g.abrFactory&&(f=!1),e.h&&e.h.nodeName==="AUDIO"&&(l=!0)),d=On(e,t,n,i||null,!a,l,f),d=a?d.then(function(m){return m.B=!1,m}):d.then(function(m){return e.ye.push(m),m}),g.return(d)))})}function On(e,t,n,i,a,l,f){a=a===void 0?!0:a,l=l===void 0?!1:l,f=f===void 0?!0:f;var d,g,m,S,T,x,M,R,L,I,U,N,j,B;return q(function(Y){return Y.g==1?(d=null,g=pa(e.g),l&&(g.manifest.disableVideo=!0),m=function(){return d.S&&d.u?null:d},S=function(){return m()?m().getConfiguration():e.g},e.qa.width!=1/0||e.qa.height!=1/0||e.g.ignoreHardwareResolution?Y.A(2):O(Y,Jc(),3)):(Y.g!=2&&(T=Y.h,e.qa.width=T.width,e.qa.height=T.height),x=new Zh(g,e.qa,null),M={networkingEngine:e.H,filter:function(P){var V,F;return q(function(K){if(K.g==1)return O(K,mf(x,P),2);if(K.g!=4)return V=K.h,V?(F=J("trackschanged"),O(K,Promise.resolve(),4)):K.A(0);d.dispatchEvent(F),ve(K)})},makeTextStreamsForClosedCaptions:function(P){return n4(e,P)},onTimelineRegionAdded:function(P){Kg(d.J,P)},onEvent:function(P){return d.dispatchEvent(P)},onError:function(P){return d.onError(P)},isLowLatencyMode:function(){return S().streaming.lowLatencyMode},updateDuration:function(){e.j&&d.S&&e.j.updateDuration()},newDrmInfo:function(P){var V=d.i,F=V?V.h:null;F&&V.B&&du(x,F.keySystem,P)},onManifestUpdated:function(){var P=new Map().set("isLive",e.V());d.dispatchEvent(J("manifestupdated",P)),Ds(d,!1,function(){e.C&&e.C.onManifestUpdated(e.V())})},getBandwidthEstimate:function(){return e.s.getBandwidthEstimate()},onMetadata:function(P,V,F,K){var ee=P;P=="com.apple.hls.interstitial"&&(ee="com.apple.quicktime.HLS",P={startTime:V,endTime:F,values:K},e.C)&&e.C.onHLSInterstitialMetadata(e,e.h,P),K=b(K),P=K.next();for(var Q={};!P.done;Q={ah:void 0},P=K.next())Q.ah=P.value,Q.ah.name!="ID"&&Ds(d,!1,function(ne){return function(){mT(e,V,F,ee,ne.ah)}}(Q))},disableStream:function(P){return e.disableStream(P,e.g.streaming.maxDisabledTime)},addFont:function(P,V){return e.addFont(P,V)}},R=new Jd(function(){return e.Aa()}),R.addEventListener("regionadd",function(P){var V=P.region;Ff(e,"timelineregionadded",V,d),Ds(d,!1,function(){e.C&&(e.C.onDashTimedMetadata(V),e.C.onDASHInterstitialMetadata(e,e.h,V))})}),L=null,g.streaming.observeQualityChanges&&(L=new Yg(function(){return e.Lb()}),L.addEventListener("qualitychange",function(P){sS(e,P.quality,P.position)}),L.addEventListener("audiotrackchange",function(P){sS(e,P.quality,P.position,!0)})),I=!0,U={kc:e.H,onError:function(P){return d.onError(P)},nf:function(P){Ds(d,!0,function(){if(e.D)e:{var V=P,F=J("keystatuschanged");e.dispatchEvent(F);var K=Object.keys(V);K.length==1&&K[0]==""&&(K=["00"],V={"00":V[""]}),F=K.length==1&&K[0]=="00";var ee=!1;if(K.length){K=e.keySystem();for(var Q=ms(e.g.drm.clearKeys),ne=b(e.i.variants),ie=ne.next();!ie.done;ie=ne.next()){ie=ie.value;var ue=[];ie.audio&&ue.push(ie.audio),ie.video&&ue.push(ie.video),ue=b(ue);for(var ce=ue.next();!ce.done;ce=ue.next()){var le=ce.value;if(ce=ie.allowedByKeySystem,le.keyIds.size)if(le.drmInfos.length&&!Q.size){le=b(le.drmInfos);for(var Se=le.next();!Se.done;Se=le.next())if(Se=Se.value,Se.keyIds.size&&Se.keySystem==K){ie.allowedByKeySystem=!0,Se=b(Se.keyIds);for(var ke=Se.next();!ke.done;ke=Se.next())ke=ke.value,((ke=V[F?"00":ke])||e.D.H)&&(ie.allowedByKeySystem=ie.allowedByKeySystem&&!!ke&&!Go.includes(ke))}}else for(ie.allowedByKeySystem=!0,le=b(le.keyIds),Se=le.next();!Se.done;Se=le.next())Se=Se.value,((Se=V[F?"00":Se])||e.D.H)&&(ie.allowedByKeySystem=ie.allowedByKeySystem&&!!Se&&!Go.includes(Se));ce!=ie.allowedByKeySystem&&(ee=!0)}}}if(ee&&(qu(e),!xp(e)))break e;(V=e.j.l)&&!V.allowedByKeySystem&&p0(e)}})},onExpirationUpdated:function(P,V){var F=J("expirationupdated");d.dispatchEvent(F),(F=d.l)&&F.onExpirationUpdated&&F.onExpirationUpdated(P,V)},onEvent:function(P){d.dispatchEvent(P),P.type=="drmsessionupdate"&&I&&(I=!1,P=Date.now()/1e3-d.Ha,(e.B||d.getStats()).j=P,e.P&&iu(e.P))}},N=FE(e,m),Eg(e.H,N),j=function(){return e.md(U)},B={config:g,Kk:M,Vk:R,Uk:L,md:j,Jk:x,networkingEngine:N,qj:a,pj:f},d=new ea(t,i,n,B),Y.return(d))})}function Nc(e,t){var n,i;return q(function(a){return a.g==1?(n=e.g.manifest.retryParameters,O(a,el(t,e.H,n),2)):(i=a.h,i=="application/x-mpegurl"&&ai()&&(i="application/vnd.apple.mpegurl"),a.return(i))})}function pT(e,t){if(!fa())return!0;if(t){if((e.h||eg()).canPlayType(t)=="")return!1;if(!fa()||!hu.has(t))return!0;if(of(t))return ai()&&(e.g.drm.servers["com.apple.fps"]||e.g.drm.servers["com.apple.fps.1_0"])?e.g.streaming.useNativeHlsForFairPlay:e.g.streaming.preferNativeHls;if(t==="application/dash+xml"||t==="video/vnd.mpeg.dash.mpd")return e.g.streaming.preferNativeDash}return!1}function GE(e){var t=e.g.textDisplayFactory;t!==e.Ce&&(e.u=t(),e.u.configure?e.u.configure(e.g.textDisplayer):Gt("Text displayer w/ configure",'Text displayer should have a "configure" method!'),e.Ce=t,e.u.setTextVisibility(e.ua))}function gT(e){var t,n,i;return q(function(a){if(a.g==1)return ut(e,"media-source"),e.h.removeAttribute("src"),Zr(e.h),GE(e),t=e4(e.h,e.u,{Qj:function(){return e.keySystem()},onMetadata:function(l,f,d){l=b(l);for(var g=l.next();!g.done;g=l.next())if(g=g.value,g.data&&typeof g.cueTime=="number"&&g.frames){var m=g.cueTime+f,S=d;S&&m>S&&(S=m);for(var T=b(g.frames),x=T.next();!x.done;x=T.next())mT(e,m,S,"org.id3",x.value);e.C&&e.C.onHlsTimedMetadata(g,m)}},Pk:function(l){e.La&&Kg(e.La,{schemeIdUri:l.schemeIdUri,startTime:l.startTime,endTime:l.endTime,id:String(l.id),emsg:l})},onEvent:function(l){return e.dispatchEvent(l)},Rk:function(){e.J&&e.J.update&&e.J.update()}},e.P),t.configure(e.g.mediaSource),n=e.g.manifest,i=n.segmentRelativeVttTiming,t.Oa=i,O(a,t.K,2);e.K=t,ve(a)})}function VE(e,t,n){function i(){return kv(e)}e.l.o(t,"playing",i),e.l.o(t,"pause",i),e.l.o(t,"ended",i),e.l.o(t,"ratechange",function(){var a=e.h.playbackRate;a!=0&&(e.L&&(e.L.set(a),e.m==ci&&e.s.playbackRateChanged(a),oy(e,a)),a=J("ratechange"),e.dispatchEvent(a))}),t.remote&&(e.l.o(t.remote,"connect",function(){return qu(e)}),e.l.o(t.remote,"connecting",function(){return qu(e)}),e.l.o(t.remote,"disconnect",function(){return q(function(a){if(a.g==1)return e.j&&t.remote.state=="disconnected"?O(a,Rc(e.j),2):a.A(2);qu(e),ve(a)})})),t.audioTracks&&(e.l.o(t.audioTracks,"addtrack",function(){return qu(e)}),e.l.o(t.audioTracks,"removetrack",function(){return qu(e)}),e.l.o(t.audioTracks,"change",function(){return qu(e)})),t.textTracks&&(e.l.o(t.textTracks,"addtrack",function(a){if(a.track)switch(a=a.track,a.kind){case"metadata":ZA(e,a);break;case"chapters":XE(e,a);break;default:qu(e)}}),e.l.o(t.textTracks,"removetrack",function(){return qu(e)}),e.l.o(t.textTracks,"change",function(){return qu(e)}),e.g.streaming.crossBoundaryStrategy!=="keep"&&(e.l.o(t,"waiting",function(){e.j&&jf(e.j)}),e.l.o(t,"timeupdate",function(){e.j&&jf(e.j)}))),t.preload!="none"&&e.l.wa(t,"loadedmetadata",function(){e.B.D=Date.now()/1e3-n})}function qE(e,t,n,i){var a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne,ie;return q(function(ue){switch(ue.g){case 1:for(ut(e,"load"),a=e.h,e.L=new Kd({Te:function(){return a.playbackRate},Qc:function(){return a.defaultPlaybackRate},qh:function(ce){a.playbackRate=ce},wi:function(ce){a.currentTime+=ce}}),VE(e,a,t),l=!1,f=b(e.i.variants),d=f.next();!d.done;d=f.next())g=d.value,(m=g.video&&g.video.dependencyStream)&&(l=qy(m));se(e,e.g,l),e.lc=e.g.preferredTextLanguage,e.se=e.g.preferredTextRole,e.re=e.g.preferForcedSubs,nl(e.i.presentationTimeline,e.g.playRangeStart,e.g.playRangeEnd),e.s.init(function(ce,le,Se){e.i&&e.j&&ce!=e.j.l&&sy(e,ce,!0,le===void 0?!1:le,Se===void 0?0:Se)}),e.s.setMediaElement(a),e.s.setCmsdManager(e.oa),e.j=ZE(e),e.j.configure(e.g.streaming),e.m=ci,e.dispatchEvent(J("streaming")),S=n;case 2:for((x=e.j.l)||S||(S=xp(e)?e.s.chooseVariant():null),M=[],T=x||S,R=b([T.video,T.audio]),L=R.next();!L.done;L=R.next())(I=L.value)&&!I.segmentIndex&&(M.push(I.createSegmentIndex()),I.dependencyStream&&M.push(I.dependencyStream.createSegmentIndex()));if(!(0<M.length)){ue.A(4);break}return O(ue,Promise.all(M),4);case 4:if(!T||T.disabledUntilTime!=0){ue.A(2);break}if(e.J&&e.J.onInitialVariantChosen&&e.J.onInitialVariantChosen(T),e.i.isLowLatency&&(e.g.streaming.lowLatencyMode?e.configure(e.Uf):st("Low-latency live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.")),e.M&&(s0(e.M,e.i.isLowLatency&&e.g.streaming.lowLatencyMode),Yf(e.M,1e3*t)),nl(e.i.presentationTimeline,e.g.playRangeStart,e.g.playRangeEnd),Gm(e.j,e.g.playRangeStart,e.g.playRangeEnd),U=function(ce){e.I=JA(e,ce),e.Sa=WA(e,ce),KE(e,a,!1)},e.g.streaming.startAtSegmentBoundary||(N=e.Y,N==null&&e.i.startTime&&(N=e.i.startTime),U(N)),x){ue.A(7);break}if(!e.g.streaming.startAtSegmentBoundary){ue.A(8);break}return j=e.i.presentationTimeline,B=e.Y||e.h.currentTime,e.Y==null&&e.i.startTime&&(B=e.i.startTime),Y=j.Yb(),P=j.Eb(),B<Y?B=Y:B>P&&(B=P),O(ue,ay(S,B),9);case 9:V=ue.h,U(V);case 8:sy(e,S,!0,!1,0);case 7:return e.I.ready(),F=e.ec().find(function(ce){return ce.active}),F||((K=su(e.i.textStreams,e.lc,e.se,e.re)[0]||null)&&r0(e.B.h,K,!0),S&&(K?(Ll(S.audio,K,e.g)&&(e.ua=!0),e.ua&&e.u.setTextVisibility(!0)):(e.ua=!1,e.u.setTextVisibility(!1)),oS(e)),K&&(e.g.streaming.alwaysStreamText||e.Wc())&&(Vm(e.j,K),g0(e))),O(ue,e.j.start(i),10);case 10:e.g.abr.enabled&&(e.s.enable(),lS(e)),qu(e),xp(e),e.i.variants.some(function(ce){return ce.primary}),((ee=e.V())&&(e.g.streaming.liveSync&&e.g.streaming.liveSync.enabled||e.i.serviceDescription||e.g.streaming.liveSync.panicMode)||e.g.streaming.vodDynamicPlaybackRate)&&(Q=function(){return h0(e)},e.l.o(a,"timeupdate",Q)),ee||(ne=function(){return ly(e)},e.l.o(a,"timeupdate",ne),ly(e),e.i.nextUrl&&(0<e.g.streaming.preloadNextUrlWindow&&(ie=function(){var ce;return q(function(le){if(le.g==1)return ce=e.Aa().end-e.h.currentTime,isNaN(ce)||!(ce<=e.g.streaming.preloadNextUrlWindow)?le.A(0):(e.l.Ea(a,"timeupdate",ie),O(le,e.preload(e.i.nextUrl),4));e.Ha=le.h,ve(le)})},e.l.o(a,"timeupdate",ie)),e.l.o(a,"ended",function(){e.load(e.Ha||e.i.nextUrl)}))),e.C&&e.C.onManifestUpdated(ee),e.Z=!0,ve(ue)}})}function XA(e,t){var n,i,a,l,f;return q(function(d){return d.g==1?(n=ui,i=Date.now()/1e3,a=!0,e.D=e.md({kc:e.H,onError:function(g){yu(e,g)},nf:function(){},onExpirationUpdated:function(){var g=J("expirationupdated");e.dispatchEvent(g)},onEvent:function(g){e.dispatchEvent(g),g.type=="drmsessionupdate"&&a&&(a=!1,e.B.j=Date.now()/1e3-i)}}),e.D.configure(e.g.drm),l={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},f={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:t?va(t):"",codecs:t?Er(t):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:n.Ba,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null},f.fullMimeTypes.add(Et(f.mimeType,f.codecs)),t.startsWith("audio/")?(f.type=n.aa,l.audio=f):l.video=f,e.D.Z=!0,O(d,kl(e.D,[l],[]),2)):O(d,e.D.Wb(e.h),0)})}function FA(e,t,n){var i,a,l,f,d,g,m,S,T,x,M,R;return q(function(L){switch(L.g){case 1:if(ut(e,"src-equals"),i=e.h,e.I=new zl(i),a=!1,e.pe.push(function(){a=!0}),e.Y!=null&&e.I.Sf(e.Y),e.Sa=$A(e,e.Y||0),e.L=new Kd({Te:function(){return i.playbackRate},Qc:function(){return i.defaultPlaybackRate},qh:function(I){i.playbackRate=I},wi:function(I){i.currentTime+=I}}),KE(e,i,!0),i.textTracks&&(GE(e),l=function(){var I=iy(e).find(function(U){return U.mode!=="disabled"});I&&(I.mode="showing"),(I=ST(e))&&(I.mode="hidden")},f=function(){var I=iy(e).find(function(N){return N.mode!=="disabled"});I&&(I.mode="hidden"),I=ST(e);var U=e.u.isTextVisible();I&&U&&(I.mode="showing")},e.l.o(i,"enterpictureinpicture",function(){return l()}),e.l.o(i,"leavepictureinpicture",function(){return f()}),i.remote?(e.l.o(i.remote,"connect",function(){return f()}),e.l.o(i.remote,"connecting",function(){return f()}),e.l.o(i.remote,"disconnect",function(){return f()})):"webkitCurrentPlaybackTargetIsWireless"in i&&e.l.o(i,"webkitcurrentplaybacktargetiswirelesschanged",function(){return f()}),d=i,d.webkitSupportsFullscreen&&e.l.o(d,"webkitpresentationmodechanged",function(){d.webkitPresentationMode!="inline"?l():f()})),VE(e,i,t),g=aS(e.M,e.S,n),!g.includes("#t=")&&(0<e.g.playRangeStart||isFinite(e.g.playRangeEnd))&&(g+="#t=",0<e.g.playRangeStart&&(g+=e.g.playRangeStart),isFinite(e.g.playRangeEnd)&&(g+=","+e.g.playRangeEnd)),!e.K){L.A(2);break}return O(L,e.K.destroy(),3);case 3:e.K=null;case 2:return Zr(i),i.src=g,(Sl()||Ju())&&i.load(),i.preload!="none"&&!i.autoplay&&of(n)&&ai()&&i.load(),e.m=vu,e.dispatchEvent(J("streaming")),m=new Bt,Nr(i,HTMLMediaElement.HAVE_METADATA,e.l,function(){e.I.ready(),m.resolve()}),S=function(){return new Promise(function(I){var U=new Ke(I);e.l.o(i.textTracks,"change",function(){return U.$(.5)}),U.$(.5)})},Nr(i,HTMLMediaElement.HAVE_CURRENT_DATA,e.l,function(){var I,U,N,j,B;return q(function(Y){if(Y.g==1)return O(Y,S(),2);if(a)return Y.return();for(KA(e),I=iy(e),I.some(function(P){return P.mode==="showing"})&&(e.ua=!0,e.u.setTextVisibility(!0)),I.length&&(e.u.enableTextDisplayer?e.u.enableTextDisplayer():Gt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),U=!1,N=b(I),j=N.next();!j.done;j=N.next())B=j.value,B.mode!=="disabled"&&(U?(B.mode="disabled",st("Found more than one enabled text track, disabling it",B)):(vT(e,B),U=!0));QA(e),ve(Y)})}),i.error?m.reject(Kf(e)):i.preload=="none"&&(st('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),m.resolve()),e.l.wa(i,"error",function(){m.reject(Kf(e))}),O(L,sf(e.g.streaming.loadTimeout,m),4);case 4:((T=e.V())&&(e.g.streaming.liveSync&&e.g.streaming.liveSync.enabled||e.g.streaming.liveSync.panicMode)||e.g.streaming.vodDynamicPlaybackRate)&&(x=function(){return h0(e)},e.l.o(i,"timeupdate",x)),T||(M=function(){return ly(e)},e.l.o(i,"timeupdate",M),ly(e)),e.C&&(e.C.onManifestUpdated(T),T&&(R=e.Aa().end,e.l.o(i,"progress",function(){var I=e.Aa().end;R!=I&&(e.C.onManifestUpdated(e.V()),R=I)}))),e.Z=!0,ve(L)}})}function KA(e){var t=e.g.preferredAudioLanguage;t!=""&&e.Ji(t,e.g.preferredVariantRole)}function QA(e){var t=e.g.preferredTextLanguage;t!=""&&e.jh(t,e.g.preferredTextRole,e.g.preferForcedSubs)}function ZA(e,t){if(t.kind=="metadata"){t.mode="hidden",e.l.o(t,"cuechange",function(){if(t.activeCues)for(var i=b(t.activeCues),a=i.next();!a.done;a=i.next())a=a.value,mT(e,a.startTime,a.endTime,a.type,a.value),e.C&&e.C.onCueMetadataChange(a.value);if(t.cues){i=[],a=b(t.cues);for(var l=a.next(),f={};!l.done;f={tc:void 0},l=a.next())f.tc=l.value,f.tc.type=="com.apple.quicktime.HLS"&&f.tc.startTime!=null&&(l=i.find(function(d){return function(g){return g.startTime==d.tc.startTime&&g.endTime==d.tc.endTime}}(f)),l||(l={startTime:f.tc.startTime,endTime:f.tc.endTime,values:[]},i.push(l)),l.values.push(f.tc.value));for(i=b(i),a=i.next();!a.done;a=i.next())a=a.value,a.values.some(function(d){return d.key=="X-ASSET-URI"||d.key=="X-ASSET-LIST"})&&e.C&&(a.values.push({key:"CUE",description:"",data:a.startTime!=0||e.V()?"ONCE":"ONCE,PRE",mimeType:null,pictureType:null}),e.C.onHLSInterstitialMetadata(e,e.h,a))}});var n=new Ke(function(){var i=ry(e);i=b(i);for(var a=i.next();!a.done;a=i.next())a.value.mode="hidden"}).Ia().$(.5);e.pe.push(function(){n.stop()})}}function YE(e,t){t=new Map().set("startTime",t.startTime).set("endTime",t.endTime).set("metadataType",t.schemeIdUri).set("payload",t.payload),e.dispatchEvent(J("metadata",t))}function mT(e,t,n,i,a){e.Fa&&(t={schemeIdUri:i,startTime:t,endTime:n||1/0,id:"",payload:a},t.id=JSON.stringify(t),Kg(e.Fa,t))}function XE(e,t){if(t&&t.kind=="chapters"){t.mode="hidden";var n=new Ke(function(){t.mode="hidden"}).Ia().$(.5);e.pe.push(function(){n.stop()})}}w.Zk=function(){for(var e=this.ba;e.g;)e.release()},w.md=function(e){return new Fh(e)};function FE(e,t){function n(a){t()?t().dispatchEvent(a):e.dispatchEvent(a)}function i(a){t()?Ds(t(),!0,a):a()}return t||(t=function(){return null}),new yn(function(a,l,f,d){var g=t()?t().j:e.s;g&&g.segmentDownloaded(a,l,f,d)},function(a,l,f){l=new Map().set("headers",a).set("request",l).set("requestType",f),n(J("downloadheadersreceived",l)),i(function(){if(e.oa){var d=e.oa;if(d.h.enabled){var g=a["cmsd-static"];if(g)try{var m=new Map,S=g.split(",");for(g=0;g<S.length;g++){var T=S[g].split("=");m.set(T[0],Z(T[1]))}}catch{}if(m=a["cmsd-dynamic"]){try{var x=new Map,M=m.split(";");for(m=1;m<M.length;m++){var R=M[m].split("=");x.set(R[0],Z(R[1]))}var L=x}catch{L=null}L&&(d.g=L)}}}})},function(a,l){a=new Map().set("request",a).set("response",l),n(J("downloadcompleted",a))},function(a,l,f,d){a=new Map().set("request",a).set("error",l).set("httpResponseCode",f).set("aborted",d),n(J("downloadfailed",a))},function(a,l,f){i(function(){var d=e.M,g=f;if(g=g===void 0?{}:g,d.g.enabled)if(l.method==="HEAD")uh(d,l);else switch(a){case 0:try{if(d.g.enabled){if(g.type){e:{switch(g.type){case 4:var m=d.l?A:y;break e;case 3:case 2:m=d.l?_:C;break e;case 5:m="s";break e}m=void 0}d.i=m}uh(d,l,{ot:ty,su:!d.u})}}catch(ue){xo("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",ue)}break;case li:try{if(d.g.enabled){var S=g.segment;m=0,S&&(m=S.endTime-S.startTime);var T={d:1e3*m,st:d.h.V()?"l":"v"};T.ot=c0(g);var x=T.ot===Ep||T.ot===lh||T.ot===ta||T.ot===c,M=g.stream;if(M){var R=d.h.Wa();if(x&&(T.bl=f0(d,M.type),T.ot!==c)){var L=oh(d,M.type);T.dl=R?L/Math.abs(R):L}if(M.bandwidth&&(T.br=M.bandwidth/1e3),M.segmentIndex&&S){var I=M.segmentIndex.Xb(S.endTime,!0,0>R);if(I){var U=I.next().value;if(U&&U!=S){if(!rc(S.T(),U.T())){var N=U.T()[0],j=l.uris[0],B=new URL(N),Y=new URL(j);if(B.origin!==Y.origin)var P=N;else{for(var V=B.pathname.split("/").slice(1),F=Y.pathname.split("/").slice(1,-1);V[0]===F[0];)V.shift(),F.shift();for(;F.length;)F.shift(),V.unshift("..");P=V.join("/")}T.nor=P}if((U.startByte||U.endByte)&&(S.startByte!=U.startByte||S.endByte!=U.endByte)){var K=U.startByte+"-";U.endByte&&(K+=U.endByte),T.nrr=K}}}var ee=d.h.Wa()||1,Q=oh(d,M.type)||500,ne=M.bandwidth,ie=ne?ne*(S.endTime-S.startTime)/1e3/(Q/ee/1e3)*d.g.rtpSafetyFactor:NaN;isNaN(ie)||(T.rtp=ie)}}x&&T.ot!==c&&(T.tb=ey(d,T.ot)/1e3),uh(d,l,T)}}catch(ue){xo("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",ue)}break;case 2:case 5:case 6:uh(d,l,{ot:"k"});break;case 4:uh(d,l,{ot:"o"})}})},function(a,l,f,d){(a=t()?t().l:e.J)&&a.banLocation&&a.banLocation(d)},function(a,l){if(l.data){l=l.data.byteLength;var f=t()?t().getStats():e.B;f&&(f.Kc=isNaN(f.Kc)?l:f.Kc+l,a===0&&(f.pi=l))}})}function JA(e,t){return new Bm(e.h,e.i,e.g.streaming,t,function(){e.Sa&&mv(e.Sa,!0),e.j&&e.j.dd(),e.N&&Xf(e)},function(n){return e.dispatchEvent(n)})}function WA(e,t){var n=e.V()||0<t;t=new $o(e.je,n),t.addEventListener("enter",function(l){Ff(e,"timelineregionenter",l.region)}),t.addEventListener("exit",function(l){Ff(e,"timelineregionexit",l.region)}),t.addEventListener("skip",function(l){var f=l.region;l.seeking||(Ff(e,"timelineregionenter",f),Ff(e,"timelineregionexit",f))});var i=new $o(e.Fa,n);i.addEventListener("enter",function(l){YE(e,l.region)}),n=new $o(e.La,n),n.addEventListener("enter",function(l){l=new Map().set("detail",l.region.emsg),e.dispatchEvent(J("emsg",l))});var a=new Qd(e.h);return a.g.add(t),a.g.add(i),a.g.add(n),e.ie&&a.g.add(e.ie),a}function $A(e,t){t=new $o(e.Fa,0<t),t.addEventListener("enter",function(i){YE(e,i.region)});var n=new Qd(e.h);return n.g.add(t),n}function KE(e,t,n){e.N=new vc,e.N.g=Ho,QE(e),uy(e),e.za=new Ke(function(){Xf(e)}),e.g.streaming.rebufferingGoal&&e.za.xa(.25),e.l.o(t,"waiting",function(){return Xf(e)}),e.l.o(t,"canplaythrough",function(){return Xf(e)}),e.l.o(t,"playing",function(){return Xf(e)}),e.l.o(t,"seeked",function(){return Xf(e)}),n&&(e.l.o(t,"stalled",function(){return Xf(e)}),e.l.o(t,"progress",function(){return Xf(e)}),e.l.o(t,"timeupdate",function(){return Xf(e)}))}function QE(e){var t=e.g.streaming.rebufferingGoal;e.N.i.set(vs,Math.min(.5,t/2)).set(Ho,t)}function Xf(e){switch(e.m){case vu:if(e.isEnded())var t=!0;else{var n=jg(e.h.buffered);t=n!=null&&n>=e.h.duration-1}break;case ci:e:if(e.isEnded()||Ac(e.K))t=!0;else{if(e.i.presentationTimeline.V()){n=e.i.presentationTimeline.wc();var i=jg(e.h.buffered);if(i!=null&&i>=n){t=!0;break e}}t=!1}break;default:t=!1}i=Lm(e.h.buffered,e.h.currentTime),n=e.N;var a=t,l=n.i.get(n.g);t=n.g,i=a||i>=l&&0<i?vs:Ho,n.g=i,(t=t!=i)&&i===vs&&(n.h=Date.now()),t&&uy(e)}function e4(e,t,n,i){return new fo(e,t,n,i)}function t4(e){return new ql({getBandwidthEstimate:function(){return e.s?e.s.getBandwidthEstimate():NaN},Lb:function(){return e.Lb()},getCurrentTime:function(){return e.h?e.h.currentTime:0},Wa:function(){return e.Wa()},Db:function(){return e.Db()},Mb:function(){return e.Mb()},V:function(){return e.V()},Se:function(){return e.Se()}},e.g.cmcd)}function ZE(e){return new Sv(e.i,{sd:function(){return e.I?e.I.Ee():0},getBandwidthEstimate:function(){return e.s.getBandwidthEstimate()},Wa:function(){return e.Wa()},video:e.h,ka:e.K,kc:e.H,onError:function(t){return yu(e,t)},onEvent:function(t){return e.dispatchEvent(t)},pf:function(t,n,i){var a=t.startTime;if(t=t.endTime,n=n.type,n!=lt){if(e.I){e.I.zi();var l=Vg(e.K,n);!e.V()&&e.h.paused&&!e.h.seeking&&l!=null&&0<l&&e.I.Ee()<l&&e.I.Sf(l)}Xf(e)}i=new Map().set("start",a).set("end",t).set("contentType",n).set("isMuxed",i),e.dispatchEvent(J("segmentappended",i))},Qk:function(t,n){(n=n.wd)&&e.ie&&Xg(e.ie,n,t)},Oh:function(t,n){var i=e.D;if(i.g.parseInbandPsshEnabled&&!i.H&&["audio","video"].includes(t)){t=new Xh(at(n)),n=0;for(var a=b(t.data),l=a.next();!l.done;l=a.next())n+=l.value.length;if(n==0)i=Promise.resolve();else{for(n=new Uint8Array(n),a=0,t=b(t.data),l=t.next();!l.done;l=t.next())l=l.value,n.set(l,a),a+=l.length;Vn(i,"cenc",n),i=i.m}}else i=Promise.resolve();return i},disableStream:function(t,n){return e.disableStream(t,n)}})}w.configure=function(e,t){if(arguments.length==2&&typeof e=="string"&&(e=gp(e,t)),e.streaming&&"forceTransmuxTS"in e.streaming&&(Gt("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),e.mediaSource.mediaSource=e.streaming.forceTransmuxTS,delete e.streaming.forceTransmuxTS),e.streaming&&"forceTransmux"in e.streaming&&(Gt("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),e.mediaSource.mediaSource=e.streaming.forceTransmux,delete e.streaming.forceTransmux),e.streaming&&"useNativeHlsOnSafari"in e.streaming&&(Gt("streaming.useNativeHlsOnSafari configuration","Please Use streaming.useNativeHlsForFairPlay or streaming.preferNativeHls instead."),e.streaming.preferNativeHls=e.streaming.useNativeHlsOnSafari&&ai(),delete e.streaming.useNativeHlsOnSafari),e.streaming&&typeof e.streaming.liveSync=="boolean"){Gt("streaming.liveSync","Please Use streaming.liveSync.enabled instead.");var n=e.streaming.liveSync;e.streaming.liveSync={},e.streaming.liveSync.enabled=n}if(e.streaming&&!(e.streaming.liveSync&&"targetLatency"in e.streaming.liveSync)&&("liveSyncMinLatency"in e.streaming||"liveSyncMaxLatency"in e.streaming)){n=e.streaming.liveSyncMinLatency||0;var i=Math.abs((e.streaming.liveSyncMaxLatency||1)-n)/2;e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatency=n+i,e.streaming.liveSync.targetLatencyTolerance=i}if(e.streaming&&"liveSyncMaxLatency"in e.streaming&&(Gt("streaming.liveSyncMaxLatency","Please Use streaming.liveSync.targetLatency and streaming.liveSync.targetLatencyTolerance instead. Or, set the values in your DASH manifest"),delete e.streaming.liveSyncMaxLatency),e.streaming&&"liveSyncMinLatency"in e.streaming&&(Gt("streaming.liveSyncMinLatency","Please Use streaming.liveSync.targetLatency and streaming.liveSync.targetLatencyTolerance instead. Or, set the values in your DASH manifest"),delete e.streaming.liveSyncMinLatency),e.streaming&&"liveSyncTargetLatency"in e.streaming&&(Gt("streaming.liveSyncTargetLatency","Please Use streaming.liveSync.targetLatency instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatency=e.streaming.liveSyncTargetLatency,delete e.streaming.liveSyncTargetLatency),e.streaming&&"liveSyncTargetLatencyTolerance"in e.streaming&&(Gt("streaming.liveSyncTargetLatencyTolerance","Please Use streaming.liveSync.targetLatencyTolerance instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatencyTolerance=e.streaming.liveSyncTargetLatencyTolerance,delete e.streaming.liveSyncTargetLatencyTolerance),e.streaming&&"liveSyncPlaybackRate"in e.streaming&&(Gt("streaming.liveSyncPlaybackRate","Please Use streaming.liveSync.maxPlaybackRate instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.maxPlaybackRate=e.streaming.liveSyncPlaybackRate,delete e.streaming.liveSyncPlaybackRate),e.streaming&&"liveSyncMinPlaybackRate"in e.streaming&&(Gt("streaming.liveSyncMinPlaybackRate","Please Use streaming.liveSync.minPlaybackRate instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.minPlaybackRate=e.streaming.liveSyncMinPlaybackRate,delete e.streaming.liveSyncMinPlaybackRate),e.streaming&&"liveSyncPanicMode"in e.streaming&&(Gt("streaming.liveSyncPanicMode","Please Use streaming.liveSync.panicMode instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.panicMode=e.streaming.liveSyncPanicMode,delete e.streaming.liveSyncPanicMode),e.streaming&&"liveSyncPanicThreshold"in e.streaming&&(Gt("streaming.liveSyncPanicThreshold","Please Use streaming.liveSync.panicThreshold instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.panicThreshold=e.streaming.liveSyncPanicThreshold,delete e.streaming.liveSyncPanicThreshold),e.mediaSource&&"sourceBufferExtraFeatures"in e.mediaSource){Gt("mediaSource.sourceBufferExtraFeatures configuration","Please Use mediaSource.addExtraFeaturesToSourceBuffer() instead.");var a=e.mediaSource.sourceBufferExtraFeatures;e.mediaSource.addExtraFeaturesToSourceBuffer=function(){return a},delete e.mediaSource.sourceBufferExtraFeatures}if(e.manifest&&e.manifest.hls&&"useSafariBehaviorForLive"in e.manifest.hls&&(Gt("manifest.hls.useSafariBehaviorForLive configuration","Please Use liveSync config to keep on live Edge instead."),delete e.manifest.hls.useSafariBehaviorForLive),e.streaming&&"parsePrftBox"in e.streaming&&(Gt("streaming.parsePrftBox configuration","Now fired without needing a configuration."),delete e.streaming.parsePrftBox),e.manifest&&e.manifest.dash&&"enableAudioGroups"in e.manifest.dash&&(Gt("manifest.dash.enableAudioGroups configuration","It is now enabled by default and cannot be disabled."),delete e.manifest.dash.enableAudioGroups),e.streaming&&"dispatchAllEmsgBoxes"in e.streaming&&(Gt("streaming.dispatchAllEmsgBoxes configuration","Please Use mediaSource.dispatchAllEmsgBoxes instead."),e.mediaSource.dispatchAllEmsgBoxes=e.streaming.dispatchAllEmsgBoxes,delete e.streaming.dispatchAllEmsgBoxes),e.streaming&&"autoLowLatencyMode"in e.streaming&&(Gt("streaming.autoLowLatencyMode configuration","Please Use streaming.lowLatencyMode instead."),e.streaming.lowLatencyMode=e.streaming.autoLowLatencyMode,delete e.streaming.autoLowLatencyMode),e.manifest&&e.manifest.dash&&"ignoreSupplementalCodecs"in e.manifest.dash&&(Gt("manifest.dash.ignoreSupplementalCodecs configuration","Please Use manifest.ignoreSupplementalCodecs instead."),e.manifest.ignoreSupplementalCodecs=e.manifest.dash.ignoreSupplementalCodecs,delete e.manifest.dash.ignoreSupplementalCodecs),e.manifest&&e.manifest.hls&&"ignoreSupplementalCodecs"in e.manifest.hls&&(Gt("manifest.hls.ignoreSupplementalCodecs configuration","Please Use manifest.ignoreSupplementalCodecs instead."),e.manifest.ignoreSupplementalCodecs=e.manifest.hls.ignoreSupplementalCodecs,delete e.manifest.hls.ignoreSupplementalCodecs),e.manifest&&e.manifest.dash&&"updatePeriod"in e.manifest.dash&&(Gt("manifest.dash.updatePeriod configuration","Please Use manifest.updatePeriod instead."),e.manifest.updatePeriod=e.manifest.dash.updatePeriod,delete e.manifest.dash.updatePeriod),e.manifest&&e.manifest.hls&&"updatePeriod"in e.manifest.hls&&(Gt("manifest.hls.updatePeriod configuration","Please Use manifest.updatePeriod instead."),e.manifest.updatePeriod=e.manifest.hls.updatePeriod,delete e.manifest.hls.updatePeriod),e.manifest&&e.manifest.dash&&"ignoreDrmInfo"in e.manifest.dash&&(Gt("manifest.dash.ignoreDrmInfo configuration","Please Use manifest.ignoreDrmInfo instead."),e.manifest.ignoreDrmInfo=e.manifest.dash.ignoreDrmInfo,delete e.manifest.dash.ignoreDrmInfo),e.drm&&e.drm.advanced){n=!1;for(var l in e.drm.advanced){var f=e.drm.advanced[l];i=f.videoRobustness,f=f.audioRobustness,"videoRobustness"in e.drm.advanced[l]&&!Array.isArray(e.drm.advanced[l].videoRobustness)&&(e.drm.advanced[l].videoRobustness=[i],n=!0),"audioRobustness"in e.drm.advanced[l]&&!Array.isArray(e.drm.advanced[l].audioRobustness)&&(e.drm.advanced[l].audioRobustness=[f],n=!0)}n&&Gt("AdvancedDrmConfiguration's videoRobustness and audioRobustness","These properties are no longer strings but array of strings, please update your usage of these properties.")}return e.streaming&&"crossBoundaryStrategy"in e.streaming&&e.streaming.crossBoundaryStrategy!="keep"&&(e.streaming.inaccurateManifestTolerance=0),l=ki(this.g,e,fr(this)),uS(this),l},w.wj=function(e){this.Uf=e};function uS(e){if(e.Qf=new Zh(e.g,e.qa,e.D),e.J){var t=pa(e.g.manifest);e.h&&e.h.nodeName==="AUDIO"&&(t.disableVideo=!0),e.J.configure(t)}if(e.D&&e.D.configure(e.g.drm),e.j){e.j.configure(e.g.streaming);try{e.m!=Si&&Em(e.Qf,e.i)&&qu(e)}catch(a){yu(e,a)}e.s&&xp(e),t=e.j.l,!t||t.allowedByApplication&&t.allowedByKeySystem||p0(e)}if(e.H&&(e.H.oh(e.g.streaming.forceHTTP),e.H.ph(e.g.streaming.forceHTTPS),e.H.s=e.g.streaming.minBytesForProgressEvents),e.K&&(e.K.configure(e.g.mediaSource),e.K.Oa=e.g.manifest.segmentRelativeVttTiming),e.u)if(t=e.g.textDisplayFactory,e.Ce!=t){var n=e.u;if(e.u=t(),e.u.configure?e.u.configure(e.g.textDisplayer):Gt("Text displayer w/ configure",'Text displayer should have a "configure" method!'),e.u.setTextLanguage||Gt("Text displayer w/ setTextLanguage",'Text displayer should have a "setTextLanguage" method!'),e.u.setTextVisibility(n.isTextVisible()),n.destroy(),e.K){n=e.K;var i=e.u;n.ba=i,n.h&&(n.h.j=i)}e.Ce=t,e.j&&(t=e.j,(n=t.i.get(lt))&&Cs(t,n.stream,!0,0,!0))}else e.u.configure&&e.u.configure(e.g.textDisplayer);e.s&&(e.s.configure(e.g.abr),e.g.abr.enabled?e.s.enable():e.s.disable(),lS(e)),e.N&&QE(e),e.za&&(e.g.streaming.rebufferingGoal?e.za.xa(.25):e.za.stop()),e.i&&nl(e.i.presentationTimeline,e.g.playRangeStart,e.g.playRangeEnd),e.C&&e.C.configure(e.g.ads),e.M&&e.M.configure(e.g.cmcd),e.oa&&e.oa.configure(e.g.cmsd)}w.getConfiguration=function(){var e=fr(this);return ki(e,this.g,fr(this)),e},w.Hj=function(){return this.Uf},w.di=function(){var e=fr(this);return ki(e,this.g,fr(this)),Qo(this.g,fr(this))},w.ai=function(){if(this.h){var e=this.h.buffered.length;e=e?this.h.buffered.end(e-1):0;var t=this.getConfiguration().streaming.bufferingGoal;if(t=Math.min(this.h.currentTime+t,this.Aa().end),e>=t)return 1;if(!(e<=this.h.currentTime)&&e<t)return(e-this.h.currentTime)/(t-this.h.currentTime)}return 0},w.fl=function(){for(var e in this.g)delete this.g[e];ki(this.g,fr(this),fr(this)),uS(this)},w.Rj=function(){return this.m},w.Ig=function(){return this.i?this.i.type:null},w.Yj=function(){return this.h},w.Db=function(){return this.H},w.rd=function(){return this.S},w.Qe=function(){return this.C?this.C:null},w.V=function(){return this.i&&!this.fb()?this.i.presentationTimeline.V():this.h&&this.h.src?this.h.duration==1/0:!1},w.Vc=function(){return this.i?this.i.presentationTimeline.Vc():!1},w.Uc=function(){if(this.i&&!this.fb()){var e=this.i.variants;return e.length?!e[0].video:!1}return this.h&&this.h.src?this.h.videoTracks?this.h.videoTracks.length==0:this.h.videoHeight==0:!1},w.Aa=function(){if(this.i&&!this.fb()){if(!this.Z&&this.i.type=="HLS")return{start:0,end:0};var e=this.i.presentationTimeline;return{start:e.Yb(),end:e.Eb()}}if(this.h&&this.h.src&&(e=this.h.seekable)&&e.length){var t=this.g?this.g.playRangeStart:0;t=Math.max(e.start(0),t);var n=this.g?this.g.playRangeEnd:1/0;return e=Math.min(e.end(e.length-1),n),{start:t,end:e}}return{start:0,end:0}},w.tk=function(){this.V()&&(this.h.currentTime=this.Aa().end)},w.zk=function(){return this.Z},w.keySystem=function(){var e=this.drmInfo();return e?e.keySystem:""},w.drmInfo=function(){return this.D?this.D.h:null},w.Qd=function(){return this.D?this.D.Qd():1/0},w.Dg=function(){return this.D?this.D.Dg():[]},w.Re=function(){return this.D?this.D.Re():{}},w.Ye=function(){return this.N?this.N.g==Ho:!!this.S},w.Wa=function(){return this.h?this.L?this.L.i:1:0},w.Ic=function(e,t){t=t===void 0?!0:t,e==0?st("A trick play rate of 0 is unsupported!"):(this.L.set(e),this.m==ci&&(this.s.playbackRateChanged(e),Ui(this.j,t&&1<Math.abs(e))),oy(this,e))},w.ld=function(){var e=this.L.Qc();this.m==vu&&this.L.set(e),this.m==ci&&(this.L.set(e),this.s.playbackRateChanged(e),Ui(this.j,!1)),this.Ya.$a()},w.Mb=function(){if(this.i&&!this.fb()){for(var e=this.j?this.j.l:null,t=[],n=0,i=b(this.i.variants),a=i.next();!a.done;a=i.next())if(a=a.value,bd(a)){var l=Il(a);l.active=a==e,l.active||n==1||e==null||a.video!=e.video||a.audio!=e.audio||(l.active=!0),l.active&&n++,t.push(l)}return t}return this.h&&this.h.audioTracks?Array.from(this.h.audioTracks).map(function(f){return mg(f)}):[]},w.ec=function(){if(this.i&&!this.fb()){for(var e=this.j?this.j.u:null,t=[],n=b(this.i.textStreams),i=n.next();!i.done;i=n.next()){i=i.value;var a=ds(i);a.active=i==e,t.push(a)}return t}return this.h&&this.h.src&&this.h.textTracks?iy(this).map(function(l){var f=ff(l);return f.active=l.mode!="disabled",f.type="text",f.originalTextId=l.id,l.kind=="captions"&&(f.mimeType="unknown"),l.kind=="subtitles"&&(f.mimeType="text/vtt"),l.kind&&(f.roles=[l.kind]),l.kind=="forced"&&(f.forced=!0),f}):[]},w.Gg=function(){var e=this.Ae;return this.i&&(e=this.i.imageStreams),e.map(function(t){return Bh(t)})},w.zj=function(e){var t=this,n,i;return q(function(a){return a.g==1?O(a,JE(t,e),2):(n=a.h,n?(i=[],n.segmentIndex.Kb(function(l){var f=ny(l.tilesLayout||n.tilesLayout);if(f)for(var d=f.rows*f.Mc,g=l.j-l.startTime,m=0;m<d;m++){var S=yT(l,n,l.startTime+g*m/d,f);i.push(S)}}),n.closeSegmentIndex&&n.closeSegmentIndex(),a.return(i)):a.return(null))})};function ny(e){return e&&(e=/(\d+)x(\d+)/.exec(e))?{Mc:parseInt(e[1],10),rows:parseInt(e[2],10)}:null}w.gi=function(e,t){var n=this,i,a,l,f;return q(function(d){return d.g==1?O(d,JE(n,e),2):(i=d.h,!i||(a=i.segmentIndex.find(t),a==null)?d.return(null):(l=i.segmentIndex.get(a),(f=ny(l.tilesLayout||i.tilesLayout))?d.return(yT(l,i,t,f)):d.return(null)))})};function JE(e,t){var n,i;return q(function(a){return a.g==1?e.m!=ci&&e.m!=vu||(n=e.Ae,e.i&&(n=e.i.imageStreams),i=n[0],!i)?a.return(null):(t!=null&&(i=n.find(function(l){return l.id==t})),i?i.segmentIndex?a.A(2):O(a,i.createSegmentIndex(),2):a.return(null)):a.return(i)})}function yT(e,t,n,i){var a=t.width||0,l=t.height||0,f=a/i.Mc,d=l/i.rows,g=i.Mc*i.rows,m=e.j-e.startTime;m=e.C||m/g;var S=e.startTime,T=0,x=0;return 1<g&&(x=Math.floor((n-e.startTime)/m),S=e.startTime+x*m,T=x%i.Mc*f,x=Math.floor(x/i.Mc)*d),i=!1,(n=e.thumbnailSprite)&&(i=!0,d=n.height,T=n.positionX,x=n.positionY,f=n.width),{segment:e,imageHeight:l,imageWidth:a,height:d,positionX:T,positionY:x,startTime:S,duration:m,uris:e.T(),startByte:e.xc(),endByte:e.uc(),width:f,sprite:i,mimeType:e.mimeType||t.mimeType,codecs:e.codecs||t.codecs}}w.kh=function(e){function t(){var i=n.i.textStreams.find(function(a){return a.id==e.id});i&&i!=n.j.u&&(r0(n.B.h,i,!1),Vm(n.j,i),Nv(n),g0(n),n.lc=i.language)}var n=this;this.i&&this.I&&(t(),!this.fb())||function(){if(n.h&&n.h.textTracks){var i=iy(n),a=i.find(function(l){return l.mode!=="disabled"});(i=i.find(function(l){return Md(l)===e.id}))&&(a!==i&&(a&&(a.mode="disabled",n.l.Ea(a,"cuechange"),n.u.remove(0,1/0)),i&&vT(n,i)),Nv(n),g0(n))}}()};function vT(e,t){e.l.o(t,"cuechange",function(){e.u.remove(0,Math.max(0,e.h.currentTime-e.g.streaming.bufferBehind));var n={periodStart:0,segmentStart:0,segmentEnd:e.h.duration,vttOffset:0},i=[],a=Array.from(t.activeCues||[]);a=b(a);for(var l=a.next();!l.done;l=a.next()){if(l=l.value,l.endTime===1/0||l.endTime<l.startTime)l=null;else{var f=new Kt(l.startTime,l.endTime,l.text);f.line=typeof l.line=="number"?l.line:null,l.lineAlign&&(f.lineAlign=l.lineAlign),f.lineInterpretation=l.snapToLines?fc:1,f.position=typeof l.position=="number"?l.position:null,l.positionAlign&&(f.positionAlign=l.positionAlign),f.size=l.size,f.textAlign=l.align,l.vertical==="lr"?f.writingMode="vertical-lr":l.vertical==="rl"&&(f.writingMode="vertical-rl"),l.region&&(f.region.id=l.region.id,f.region.height=l.region.lines,f.region.heightUnits=2,f.region.regionAnchorX=l.region.regionAnchorX,f.region.regionAnchorY=l.region.regionAnchorY,f.region.scroll=l.region.scroll,f.region.viewportAnchorX=l.region.viewportAnchorX,f.region.viewportAnchorY=l.region.viewportAnchorY,f.region.viewportAnchorUnits=Zi,f.region.width=l.region.width,f.region.widthUnits=Zi),ga(f),l=f}l&&((f=e.g.mediaSource.modifyCueCallback)&&f(l,null,n),i.push(l))}e.u.append(i)}),t.mode=document.pictureInPictureElement?"showing":"hidden"}w.ke=function(e,t,n){function i(){var l=a.i.variants.find(function(d){return d.id==e.id});if(l&&bd(l)){var f=a.j.l;a.g.abr.enabled&&(f.video!=l.video||f.audio&&l.audio&&f.audio.language==l.audio.language&&f.audio.channelsCount==l.audio.channelsCount&&f.audio.label==l.audio.label)&&st("Changing tracks while abr manager is enabled will likely result in the selected track being overridden. Consider disabling abr before calling selectVariantTrack()."),a.fb()?sy(a,l,!1,!1,0):sy(a,l,!1,t||!1,n||0),a.U.configure({language:l.language,role:l.audio&&l.audio.roles&&l.audio.roles[0]||"",channelCount:l.audio&&l.audio.channelsCount?l.audio.channelsCount:0,td:l.video&&l.video.hdr?l.video.hdr:"",spatialAudio:l.audio&&l.audio.spatialAudio?l.audio.spatialAudio:!1,videoLayout:l.video&&l.video.videoLayout?l.video.videoLayout:"",kd:l.audio&&l.audio.label?l.audio.label:"",Hd:"",codecSwitchingStrategy:a.g.mediaSource.codecSwitchingStrategy,audioCodec:l.audio&&l.audio.codecs?l.audio.codecs:""}),xp(a)}}var a=this;t=t===void 0?!1:t,n=n===void 0?0:n,!(this.i&&this.I&&(i(),!this.fb()))&&function(){if(a.h&&a.h.audioTracks){var l=Array.from(a.h.audioTracks);l=b(l);for(var f=l.next();!f.done;f=l.next())if(f=f.value,Md(f)==e.id){AT(a,f);break}}}()},w.Ki=function(e,t){t=t===void 0?0:t;var n=this.Mb();if(n.length){var i=n.find(function(a){return a.active});i&&(n=n.find(function(a){return a.videoId===i.videoId&&a.language==e.language&&a.label==e.label&&a.audioMimeType==e.mimeType&&a.audioCodec==e.codecs&&a.primary==e.primary&&rc(a.audioRoles,e.roles)&&a.accessibilityPurpose==e.accessibilityPurpose&&a.channelsCount==e.channelsCount&&a.audioSamplingRate==e.audioSamplingRate&&a.spatialAudio==e.spatialAudio}))&&!n.active&&this.ke(n,!0,t)}},w.getAudioTracks=function(){var e=this.Mb();if(!e.length)return[];var t=e.find(function(l){return l.active});if(!t)return[];var n=e;if(this.m==ci&&(n=e.filter(function(l){return l.originalVideoId===t.originalVideoId&&l.audioCodec})),!n.length)return[];e=new Map,n=b(n);for(var i=n.next();!i.done;i=n.next()){i=i.value;var a=i.originalAudioId;a||i.audioId==null||(a=String(i.audioId)),a&&e.set(a,{active:i.active,language:i.language,label:i.label,mimeType:i.audioMimeType,codecs:i.audioCodec,primary:i.primary,roles:i.audioRoles||[],accessibilityPurpose:i.accessibilityPurpose,channelsCount:i.channelsCount,audioSamplingRate:i.audioSamplingRate,spatialAudio:i.spatialAudio,originalLanguage:i.originalLanguage})}return Array.from(e.values())},w.Bj=function(){return e2(this.Mb())},w.hk=function(){return e2(this.ec())},w.Aj=function(){return Array.from(bi(this.Mb()))},w.gk=function(){return Array.from(bi(this.ec()))},w.Ji=function(e,t,n,i,a,l,f){function d(){function m(R,L){return R.video||L.video?R.video&&L.video?Math.abs((R.video.height||0)-(L.video.height||0))+Math.abs((R.video.width||0)-(L.video.width||0)):1/0:0}g.U=g.g.adaptationSetCriteriaFactory(),g.U.configure({language:e,role:t||"",channelCount:n||0,td:"",spatialAudio:l||!1,videoLayout:"",kd:f||"",Hd:"",codecSwitchingStrategy:g.g.mediaSource.codecSwitchingStrategy,audioCodec:a||""});var S=g.j.l,T=g.U.create(g.i.variants),x=null;T=b(T.values());for(var M=T.next();!M.done;M=T.next())M=M.value,bd(M)&&(!x||m(x,S)>m(M,S))&&(x=M);x!=S&&(x?(S=Il(x),g.ke(S,!0,i||0)):p0(g))}var g=this;n=n===void 0?0:n,i=i===void 0?0:i,a=a===void 0?"":a,l=l===void 0?!1:l,f=f===void 0?"":f,!(this.i&&this.I&&(d(),!this.fb()))&&function(){if(g.h&&g.h.audioTracks){var m=su(g.Mb(),e,t||"",!1)[0];m&&g.ke(m)}}()},w.jh=function(e,t,n){function i(){a.lc=e,a.se=t||"",a.re=n||!1;var l=su(a.i.textStreams,a.lc,a.se,a.re)[0]||null;l&&l!=a.j.u&&(r0(a.B.h,l,!1),a.g.streaming.alwaysStreamText||a.Wc())&&(Vm(a.j,l),Nv(a),g0(a))}var a=this;n=n===void 0?!1:n,!(this.i&&this.I&&(i(),!this.fb()))&&function(){var l=su(a.ec(),e,t||"",n||!1)[0];l&&a.kh(l)}()},w.ol=function(e,t,n){function i(){for(var l=null,f=b(a.i.variants),d=f.next();!d.done;d=f.next())if(d=d.value,d.audio.label==e){l=d;break}l!=null&&(a.U=a.g.adaptationSetCriteriaFactory(),a.U.configure({language:l.language,role:"",channelCount:0,td:"",spatialAudio:!1,videoLayout:"",Hd:"",kd:e,codecSwitchingStrategy:a.g.mediaSource.codecSwitchingStrategy,audioCodec:""}),p0(a,t,n))}var a=this;t=t===void 0?!0:t,n=n===void 0?0:n,!(this.i&&this.I&&(i(),!this.fb()))&&function(){if(a.h&&a.h.audioTracks){var l=Array.from(a.h.audioTracks),f=null;l=b(l);for(var d=l.next();!d.done;d=l.next())d=d.value,d.label==e&&(f=d);f&&AT(a,f)}}()},w.Wc=function(){var e=this.ua;return this.u?this.u.isTextVisible():e},w.Ej=function(){return this.ue.map(function(e){return ds(e)})},w.Eg=function(e){if(!this.ue.length)return[];var t=Wt(e);if(e=this.ue.filter(function(l){return Wt(l.language)==t}),!e.length)return[];var n=[],i=new Set;e=b(e);for(var a=e.next();!a.done;a=e.next())a=a.value,a.segmentIndex&&a.segmentIndex.Kb(function(l){var f=l.T()[0],d=l.startTime+"-"+l.endTime+"-"+f;l={id:d,title:f,startTime:l.startTime,endTime:l.endTime},i.has(d)||(n.push(l),i.add(d))});return n};function iy(e){return Array.from(e.h.textTracks).filter(function(t){return t.kind!="metadata"&&t.kind!="chapters"&&t.label!="Shaka Player TextTrack"})}function ST(e){return Array.from(e.h.textTracks).find(function(t){return t.label=="Shaka Player TextTrack"})}function ry(e){return Array.from(e.h.textTracks).filter(function(t){return t.kind=="metadata"})}w.Cf=function(e){e=!!e,this.ua!=e&&(this.ua=e,this.m==ci?(this.u.setTextVisibility(e),this.g.streaming.alwaysStreamText||(e?this.j.u||(e=su(this.i.textStreams,this.lc,this.se,this.re),0<e.length&&(Vm(this.j,e[0]),Nv(this),g0(this))):nS(this.j))):this.h&&this.h.src&&this.h.textTracks&&this.u.setTextVisibility(e),oS(this))},w.Zj=function(){if(this.I)var e=this.I.Ee();else{if(this.Y==null)return new Date;e=this.Y}if(this.i&&!this.fb()){var t=this.i.presentationTimeline;return new Date(1e3*((t.m||t.i)+e))}return this.h&&this.h.getStartDate?(t=this.h.getStartDate(),isNaN(t.getTime())?null:new Date(t.getTime()+1e3*e)):null},w.ei=function(){if(this.i&&!this.fb()){var e=this.i.presentationTimeline;return new Date(1e3*(e.m||e.i))}return this.h&&this.h.getStartDate?(e=this.h.getStartDate(),isNaN(e.getTime())?null:e):null},w.Ue=function(){return this.V()&&this.i?this.i.presentationTimeline.Ue():null},w.Lb=function(){if(this.m==ci)return this.K.Lb();var e={total:[],audio:[],video:[],text:[]};return this.m==vu&&(e.total=Ya(this.h.buffered)),e},w.Se=function(){if(!this.h||!this.h.currentTime)return null;var e=this.ei().getTime()+1e3*this.h.currentTime;return Math.floor(Date.now()-e)},w.getStats=function(){if(this.m!=ci&&this.m!=vu)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,manifestSizeBytes:NaN,bytesDownloaded:NaN,nonFatalErrorCount:NaN,manifestPeriodCount:NaN,manifestGapCount:NaN,switchHistory:[],stateHistory:[]};kv(this);var e=this.h,t=e.currentTime/e.duration;if(!isNaN(t)&&!this.V()){var n=this.B;t=Math.round(100*t),n.i=isNaN(n.i)?t:Math.max(n.i,t)}if(this.I&&(this.B.R=this.I.Gh(),this.B.S=this.I.Hh()),e.getVideoPlaybackQuality){n=e.getVideoPlaybackQuality(),t=this.B;var i=Number(n.totalVideoFrames);t.P=Number(n.droppedVideoFrames),t.N=i,this.B.M=Number(n.corruptedVideoFrames)}if(this.D?(n=this.D,n=n.J?n.J:NaN):n=NaN,this.B.s=n,this.m==ci){if(n=this.j.l,t=this.j.u,n){i=this.L?this.L.i:1;var a=i*n.bandwidth;t&&t.bandwidth&&(a+=i*t.bandwidth),this.B.B=a}n&&n.video&&(t=this.B,i=n.video.height||NaN,t.m=n.video.width||NaN,t.l=i),this.V()&&(n=this.Se()||0,this.B.C=n/1e3),this.i&&(this.B.I=this.i.periodCount,this.B.H=this.i.gapCount,this.i.presentationTimeline&&(this.B.K=this.i.presentationTimeline.h)),n=this.s.getBandwidthEstimate(),this.B.u=n}this.m==vu&&(n=this.B,n.Kc=isNaN(n.Kc)?NaN:n.Kc+NaN,n=this.B,t=e.videoHeight||NaN,n.m=e.videoWidth||NaN,n.l=t);var l=this.B;e=l.m,n=l.l,t=l.B,i=l.N,a=l.P;var f=l.M,d=l.S,g=l.R,m=l.u,S=l.i,T=l.D,x=l.J,M=l.j,R=$r(l.g,"playing"),L=$r(l.g,"paused"),I=$r(l.g,"buffering"),U=l.s,N=l.C,j=l.K,B=l.pi,Y=l.Kc,P=l.L,V=l.I,F=l.H,K=Gu(l.g),ee=[];l=b(l.h.g);for(var Q=l.next();!Q.done;Q=l.next())Q=Q.value,ee.push({timestamp:Q.timestamp,id:Q.id,type:Q.type,fromAdaptation:Q.fromAdaptation,bandwidth:Q.bandwidth});return{width:e,height:n,streamBandwidth:t,decodedFrames:i,droppedFrames:a,corruptedFrames:f,stallsDetected:d,gapsJumped:g,estimatedBandwidth:m,completionPercent:S,loadLatency:T,manifestTimeSeconds:x,drmTimeSeconds:M,playTime:R,pauseTime:L,bufferingTime:I,licenseTime:U,liveLatency:N,maxSegmentDuration:j,manifestSizeBytes:B,bytesDownloaded:Y,nonFatalErrorCount:P,manifestPeriodCount:V,manifestGapCount:F,stateHistory:K,switchHistory:ee}},w.mj=function(e,t,n,i,a,l,f){f=f===void 0?!1:f;var d=this,g,m,S,T,x,M,R,L,I,U,N,j,B;return q(function(Y){switch(Y.g){case 1:if(d.m!=ci&&d.m!=vu)throw new G(1,7,7004);if(n!="subtitles"&&n!="captions"&&st("Using a kind value different of `subtitles` or `captions` can cause unwanted issues."),i){Y.A(2);break}return O(Y,TT(d,e),3);case 3:i=Y.h;case 2:if(g=[],d.C&&(g=d.C.getCuePoints()),d.m!=vu){Y.A(4);break}return f&&(n="forced"),O(Y,Uv(d,e,t,n,i,l||"",g),5);case 5:if(m=Wt(t),S=d.ec(),T=S.find(function(P){return Wt(P.language)==m&&P.label==(l||"")&&P.kind==n}))return qu(d),Y.return(T);throw new G(1,2,2012);case 4:if(x=ui,M=d.Aa(),R=M.end-M.start,d.i&&(R=d.i.presentationTimeline.getDuration()),R==1/0)throw new G(1,4,4033);if(!g.length){Y.A(6);break}return O(Y,Ap(d,e,d.H,d.g.streaming.retryParameters),7);case 7:L=Y.h,I=ET(d,L,i,g),U=new Blob([I],{type:"text/vtt"}),e=Ur(U),i="text/vtt";case 6:if(N={id:d.ve++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:sp(0,R,[e]),mimeType:i||"",codecs:a||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,originalLanguage:t,label:l||null,type:x.Na,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!!f,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Et(i||"",a||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null},j=Et(N.mimeType,N.codecs),B=lu(j),!B)throw new G(2,2,2014,i);return d.i.textStreams.push(N),qu(d),Y.return(ds(N))}})},w.nj=function(e,t){var n=this,i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B;return q(function(Y){switch(Y.g){case 1:if(n.m!=ci&&n.m!=vu)throw new G(1,7,7004);if(t){Y.A(2);break}return O(Y,TT(n,e),3);case 3:t=Y.h;case 2:if(t!="text/vtt")throw new G(1,2,2017,e);if(i=ui,a=n.Aa(),l=a.end-a.start,n.i&&(l=n.i.presentationTimeline.getDuration()),l==1/0)throw new G(1,4,4045);return O(Y,Ap(n,e,n.H,n.g.streaming.retryParameters),4);case 4:if(f=Y.h,d=uo(t),!d)throw new G(2,2,2014,t);for(g=d(),m={periodStart:0,segmentStart:0,segmentEnd:l,vttOffset:0},S=at(f),T=g.parseMedia(S,m,e,[]),x=[],M=b(T),R=M.next(),L={};!R.done;L={Nf:void 0,nd:void 0},R=M.next())L.nd=R.value,L.Nf=null,I=function(P){return function(){return P.Nf==null&&(P.Nf=wi([e],[P.nd.payload])),P.Nf||[]}}(L),U=new Ye(L.nd.startTime,L.nd.endTime,I,0,null,null,0,0,1/0),L.nd.payload.includes("#xywh")&&(N=L.nd.payload.split("#xywh=")[1].split(","),N.length===4&&U.Ef({height:parseInt(N[3],10),positionX:parseInt(N[0],10),positionY:parseInt(N[1],10),width:parseInt(N[2],10)})),x.push(U);if(j=t,!x.length){Y.A(5);break}return O(Y,el(x[0].T()[0],n.H,n.g.manifest.retryParameters),6);case 6:j=Y.h;case 5:return B={id:n.ve++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vt(x),mimeType:j||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:i.Rf,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Et(j||"","")]),isAudioMuxedInVideo:!1,baseOriginalId:null},n.m==vu?n.Ae.push(B):n.i.imageStreams.push(B),qu(n),Y.return(Bh(B))}})},w.lj=function(e,t,n){var i=this,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N;return q(function(j){switch(j.g){case 1:if(i.m!=ci&&i.m!=vu)throw new G(1,7,7004);if(n){j.A(2);break}return O(j,TT(i,e),3);case 3:n=j.h;case 2:if(a=ui,l=i.Aa(),f=l.end-l.start,i.i&&(f=i.i.presentationTimeline.getDuration()),f==1/0)throw new G(1,4,4054);return O(j,Ap(i,e,i.H,i.g.streaming.retryParameters),4);case 4:if(d=j.h,g=uo(n),!g)throw new G(2,2,2014,n);for(m=g(),S={periodStart:0,segmentStart:0,segmentEnd:f,vttOffset:0},T=at(d),x=m.parseMedia(T,S,e,[]),M=[],R=b(x),L=R.next(),I={};!L.done;I={Ne:void 0},L=R.next())I.Ne=L.value,U=new Ye(I.Ne.startTime,I.Ne.endTime,function(B){return function(){return[B.Ne.payload]}}(I),0,null,null,0,0,1/0),M.push(U);return N={id:i.ve++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vt(M),mimeType:"text/plain",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:t,originalLanguage:t,label:null,type:a.Na,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Et("text/plain","")]),isAudioMuxedInVideo:!1,baseOriginalId:null},i.ue.push(N),qu(i),j.return(ds(N))}})};function TT(e,t){var n;return q(function(i){switch(i.g){case 1:return Le(i,2),O(i,el(t,e.H,e.g.streaming.retryParameters),4);case 4:n=i.h,Ge(i,3);break;case 2:je(i);case 3:if(n)return i.return(n);throw new G(1,2,2011,t)}})}function Uv(e,t,n,i,a,l,f){var d,g,m,S;return q(function(T){if(T.g==1)return a!="text/vtt"||f.length?O(T,Ap(e,t,e.H,e.g.streaming.retryParameters),3):T.A(2);T.g!=2&&(d=T.h,g=ET(e,d,a,f),m=new Blob([g],{type:"text/vtt"}),t=Ur(m),a="text/vtt"),S=document.createElement("track");var x=e.M,M=t;try{if(x.g.enabled){var R=kc(x);R.ot=o,R.su=!0;var L=Us(R),I=tl(M,L)}else I=M}catch(U){xo("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",U),I=M}return S.src=I,S.label=l,S.kind=i,S.srclang=n,e.h.getAttribute("crossorigin")||e.h.setAttribute("crossorigin","anonymous"),e.h.appendChild(S),T.return(S)})}function Ap(e,t,n,i){var a,l,f;return q(function(d){if(d.g==1){a=li,l=yi([t],i),l.method="GET";var g=e.M;try{g.g.enabled&&uh(g,l,{ot:o,su:!0})}catch(m){xo("CMCD_TEXT_ERROR","Could not generate text CMCD data.",m)}return O(d,n.request(a,l).promise,2)}return f=d.h,d.return(f.data)})}function ET(e,t,n,i){var a=uo(n);if(a)return n=a(),e={periodStart:0,segmentStart:0,segmentEnd:e.h.duration,vttOffset:0},t=at(t),t=n.parseMedia(t,e,null,[]),Uc(t,i);throw new G(2,2,2014,n)}w.xl=function(e,t){this.qa.width=e,this.qa.height=t},w.gh=function(e){if(this.m==ci){var t=this.j;if(e=e===void 0?.1:e,t.m.g)t=!1;else if(t.C)t=!1;else{for(var n=b(t.i.values()),i=n.next();!i.done;i=n.next())i=i.value,!i.Td||i.Za||i.zb||(i.Td=!1,lr(t,i,e));t=!0}}else t=!1;return t},w.Hg=function(){return st("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for."),this.i},w.Vj=function(){return this.fc},w.Nj=function(){var e={video:null,audio:null,text:null};if(this.m!=ci)return e;var t=this.j.l,n=this.h.currentTime;t=b([t.video,t.audio,this.j.u]);for(var i=t.next();!i.done;i=t.next())if((i=i.value)&&i.segmentIndex){var a=i.segmentIndex.find(n);a=i.segmentIndex.get(a),a={codecs:a.codecs||i.codecs,mimeType:a.mimeType||i.mimeType,bandwidth:a.bandwidth||i.bandwidth},i.type=="video"?(a.width=i.width,a.height=i.height,e.video=a):i.type=="audio"?e.audio=a:i.type==lt&&(e.text=a)}return e};function fr(e){var t=Lc();return t.streaming.failureCallback=function(n){if(e.V()){var i=null;n.code==1001||n.code==1002?(i=1,e.g.streaming.lowLatencyMode&&(i=.1)):n.code==1003&&(i=.1),i!=null&&(n.severity=1,e.gh(i))}},t.textDisplayFactory=function(){return!e.we||ai()&&!document.fullscreenEnabled?"addTextTrack"in e.h?new sr(e.h,"Shaka Player TextTrack"):new cr:new qi(e.h,e.we)},t}w.sh=function(e){this.we=e};function n4(e,t){for(var n=new Set,i=b(t.textStreams),a=i.next();!a.done;a=i.next())a=a.value,a.mimeType!="application/cea-608"&&a.mimeType!="application/cea-708"||n.add(a.originalId);for(i=b(t.variants),a=i.next();!a.done;a=i.next())if((a=a.value.video)&&a.closedCaptions){for(var l=b(a.closedCaptions.keys()),f=l.next();!f.done;f=l.next())if(f=f.value,!n.has(f)){var d=f.startsWith("CC")?"application/cea-608":"application/cea-708",g=new Yn,m=a.closedCaptions.get(f);d={id:e.ve++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:g,mimeType:d,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:m,originalLanguage:m,label:null,type:lt,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:a.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set([Et(d,"")]),isAudioMuxedInVideo:!1,baseOriginalId:null},t.textStreams.push(d),n.add(f)}}}function ay(e,t){var n,i,a,l,f;return q(function(d){return d.g==1?(n=e.audio,i=e.video,a=function(g,m){var S,T,x;return q(function(M){return M.g==1?g?g.segmentIndex?M.A(2):O(M,g.createSegmentIndex(),2):M.return(null):(T=(S=g.segmentIndex.Xb(m))?S.next().value:null,T?(x=T.startTime,M.return(x)):M.return(null))})},O(d,a(n,t),2)):d.g!=3?(l=d.h,O(d,a(i,t),3)):(f=d.h,f!=null&&l!=null?d.return(Math.max(f,l)):f!=null?d.return(f):l!=null?d.return(l):d.return(t))})}function uy(e){var t=e.Ye();if(e.B&&e.N&&e.I){if(e.g.streaming.rebufferingGoal==0){var n=e.L;n.j=!1,Uf(n)}else n=e.L,n.j=t,Uf(n);if(e.M&&(n=e.M,t||n.u||(n.u=!0),n.u&&t&&(n.C=!0),n.H=t),kv(e),n=e.g.streaming.liveSync.dynamicTargetLatency.maxAttempts,e.g.streaming.liveSync.dynamicTargetLatency.enabled&&t&&e.Fe<n){n=e.g.streaming.liveSync.dynamicTargetLatency.maxLatency;var i=e.g.streaming.liveSync.targetLatencyTolerance,a=e.g.streaming.liveSync.dynamicTargetLatency.rebufferIncrement;e.R&&(e.R=Math.min(e.R+ ++e.Fe*a,n-i))}}t=new Map().set("buffering",t),e.dispatchEvent(J("buffering",t))}function oy(e,t){e.Ya.$a(),e.Ya.o(e.h,"timeupdate",function(){var n=e.h.currentTime,i=e.Aa(),a=e.V()?e.g.streaming.safeSeekOffset:0;0<t?Math.floor(n)>=Math.floor(i.end)&&e.ld():Math.floor(n)<=Math.floor(i.start+a)&&e.ld()})}function kv(e){if(e.B&&e.N){var t=e.B.g,n="playing";e.N.g==Ho?n="buffering":e.isEnded()?n="ended":e.h.paused&&(n="paused");var i=n;if(t.g==null)t.g={timestamp:Date.now()/1e3,state:i,duration:0},t=!0;else{var a=Date.now()/1e3;t.g.duration=a-t.g.timestamp,t.g.state==i?t=!1:(t.h.push(t.g),t.g={timestamp:a,state:i,duration:0},t=!0)}t&&(n=new Map().set("newstate",n),e.dispatchEvent(J("statechanged",n)))}}function h0(e){var t=e.h.playbackRate,n=e.V();if(e.g.streaming.vodDynamicPlaybackRate&&!n){var i=e.g.streaming.vodDynamicPlaybackRateLowBufferRate,a=e.ai();a<=e.g.streaming.vodDynamicPlaybackRateBufferRatio?t!=i&&e.Ic(i,!1):a==1&&t!==e.L.Qc()&&e.ld()}if(n&&(n=e.Aa(),Number.isFinite(n.end)&&!(e.h.currentTime<n.start||e.h.paused))){i=e.g.streaming.liveSync.targetLatencyTolerance,a=e.g.streaming.liveSync.dynamicTargetLatency.enabled;var l=e.g.streaming.liveSync.dynamicTargetLatency.stabilityThreshold;if(e.g.streaming.liveSync&&e.g.streaming.liveSync.enabled)var f=e.g.streaming.liveSync.targetLatency,d=f+i,g=Math.max(0,f-i),m=e.g.streaming.liveSync.maxPlaybackRate,S=e.g.streaming.liveSync.minPlaybackRate;else e.i&&e.i.serviceDescription&&(f=e.i.serviceDescription.targetLatency,e.i.serviceDescription.targetLatency!=null?d=e.i.serviceDescription.targetLatency+i:e.i.serviceDescription.maxLatency!=null&&(d=e.i.serviceDescription.maxLatency),e.i.serviceDescription.targetLatency!=null?g=Math.max(0,e.i.serviceDescription.targetLatency-i):e.i.serviceDescription.minLatency!=null&&(g=e.i.serviceDescription.minLatency),m=e.i.serviceDescription.maxPlaybackRate||e.g.streaming.liveSync.maxPlaybackRate,S=e.i.serviceDescription.minPlaybackRate||e.g.streaming.liveSync.minPlaybackRate);e.R||typeof f!="number"||(e.R=f);var T=e.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;a&&e.Xa&&e.R!==null&&typeof f=="number"&&e.Fe<T&&Date.now()-e.Xa>1e3*l&&(l=e.g.streaming.liveSync.dynamicTargetLatency.minLatency,e.R=Math.max(e.R-(f-l)/2,l+i),e.Xa=Date.now()),a&&e.R!==null&&(d=e.R+i,g=e.R-i),f=n.end-e.h.currentTime,i=0,e.m==vu&&(a=e.h.buffered,0<a.length&&(i=a.end(a.length-1),i=Math.max(m,i-n.end))),n=e.g.streaming.liveSync.panicMode,a=1e3*e.g.streaming.liveSync.panicThreshold,l=Date.now()-e.N.h,n&&!S&&(S=e.g.streaming.liveSync.minPlaybackRate),n&&S&&l<=a?t!=S&&e.Ic(S,!1):d!=null&&m&&f-i>d?(t!=m&&e.Ic(m,!1),e.Xa=null):g!=null&&S&&f-i<g?(t!=S&&e.Ic(S,!1),e.Xa=null):t!==e.L.Qc()&&(e.ld(),e.Xa=Date.now())}}function ly(e){if(e.h){var t=function(a,l){var f=f===void 0?Number.EPSILON:f;if(a===l)f=!0;else{var d=Math.abs(a-l);f=d<=f?!0:f!==Number.EPSILON?Math.abs(d-f)<=Number.EPSILON:!1}return(f||l>a)&&e.Tf<a?(e.Tf=a,!0):!1},n=e.Aa();if(n=n.end-n.start,n=0<n?e.h.currentTime/n:0,!isNaN(n)){if(n*=100,t(0,n))var i=J("started");else t(25,n)?i=J("firstquartile"):t(50,n)?i=J("midpoint"):t(75,n)?i=J("thirdquartile"):(t(100,n)&&(i=J("complete")),e.g&&e.g.playRangeEnd!=1/0&&e.isEnded()&&e.h.pause());i&&e.dispatchEvent(i)}}}function xp(e){try{yf(e.Qf,e.i)}catch(n){return yu(e,n),!1}var t=Ph(e.i.variants);return t=e.U.create(t),e.s.setVariants(Array.from(t.values())),!0}function p0(e,t,n,i,a){t=t===void 0?!0:t,n=n===void 0?0:n,i=i===void 0?!1:i,a=a===void 0?!0:a;var l;(l=xp(e)?e.s.chooseVariant():null)&&sy(e,l,a,t,n,i)}function sy(e,t,n,i,a,l){l=l===void 0?!1:l;var f=e.j.l;if(t==f)i&&dp(e.j,t,i,a,!0);else{var d=e.B.h;if(d.h!=t&&(d.h=t,d.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth})),dp(e.j,t,i,a,l,n),i=null,f&&(i=Il(f)),f=Il(t),f.active=!0,e.P&&(a=e.P,t=t.video)){switch(t.dependencyStream&&(t=t.dependencyStream),l=0,d=-1,t.mimeType){case"video/webm":l=1;break;case"video/mp4":l=2}switch(e.Ig()){case"DASH":d=1;break;case"HLS":d=0}a.g&&(a.g.setLevelSwitching(t.id,!0),a.g.setContainerFormat(l),a.j||a.g.setStreamingFormat(d))}n?(n=new Map().set("oldTrack",i).set("newTrack",f),n=J("adaptation",n),ks(e,n)):WE(e,i,f),$E(e,i,f)}}function AT(e,t){var n=Array.from(e.h.audioTracks).find(function(i){return i.enabled});t.enabled=!0,n&&(t.id!==n.id&&(n.enabled=!1),n=mg(n),t=mg(t),WE(e,n,t),$E(e,n,t))}function qu(e){var t=J("trackschanged");ks(e,t),xT(e)}function WE(e,t,n){t=new Map().set("oldTrack",t).set("newTrack",n),t=J("variantchanged",t),ks(e,t)}function $E(e,t,n){var i=!1;t&&t.audioId==n.audioId&&t.audioGroupId==n.audioGroupId||(i=!0),i&&xT(e)}function xT(e){var t=J("audiotrackschanged");ks(e,t)}function Nv(e){var t=J("textchanged");ks(e,t)}function oS(e){var t=J("texttrackvisibility");ks(e,t)}function lS(e){e.g.abr.enabled||sh(e);var t=new Map().set("newStatus",e.g.abr.enabled);ks(e,J("abrstatuschanged",t))}function g0(e){var t=e.ec().find(function(n){return n.active});t&&e.u&&e.u.setTextLanguage&&e.u.setTextLanguage(t.language)}function sh(e,t){if(t=t===void 0?!0:t,e.m==ci){e.xe.stop();for(var n=b(e.i.variants),i=n.next();!i.done;i=n.next())i.value.disabledUntilTime=0;t&&xp(e)}}w.disableStream=function(e,t){if(!this.g.abr.enabled||this.m===Si||!navigator.onLine||t==0||!this.i)return!1;if(this.i.variants.some(function(d){var g=d[e.type];return g&&g.id!==e.id&&!d.disabledUntilTime?e.type=="audio"?e.language===g.language:!0:!1})){for(var n=!1,i=!1,a=b(this.i.variants),l=a.next();!l.done;l=a.next()){l=l.value;var f=l[e.type];f&&(f.id===e.id?(l.disabledUntilTime=Date.now()/1e3+t,n=!0):f.trickModeVideo&&f.trickModeVideo.id==e.id&&(i=!0))}return!n&&i?!1:(this.xe.xa(1),t=this.Lb().video.reduce(function(d,g){return d+g.end-g.start},0),p0(this,!1,t,!0,!1),!0)}return!1};function yu(e,t){var n,i,a,l;return q(function(f){switch(f.g){case 1:if(e.m==Si)return f.return();if(t.severity===1&&e.B.L++,n=!0,!(e.Z&&e.i&&e.j)||t.code!=3016&&t.code!=3014&&t.code!=3015&&t.code!=3018){f.A(2);break}return ai()&&t.code==3016?f.return():(Le(f,3),O(f,Rc(e.j),5));case 5:i=f.h,n=!i,i&&(a=J("mediasourcerecovered"),e.dispatchEvent(a)),Ge(f,2);break;case 3:je(f),n=!0;case 2:if(!n)return f.return();t.severity===2&&sh(e,!1),l=J("error",new Map().set("detail",t)),e.dispatchEvent(l),l.defaultPrevented&&(t.handled=!0),ve(f)}})}w.addFont=function(e,t){return lv(e,t)};function Ff(e,t,n,i){i=i===void 0?e:i,e=new Map().set("detail",{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,timescale:n.timescale,eventElement:n.eventElement,eventNode:n.eventNode}),i.dispatchEvent(J(t,e))}function sS(e,t,n,i){i=i===void 0?!1:i,t=new Map().set("mediaQuality",{bandwidth:t.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate,height:t.height,mimeType:t.mimeType,channelsCount:t.channelsCount,pixelAspectRatio:t.pixelAspectRatio,width:t.width,label:t.label,roles:t.roles,language:t.language}).set("position",n),e.dispatchEvent(J(i?"audiotrackchanged":"mediaqualitychanged",t))}function Kf(e,t){if(t=t===void 0?!0:t,!e.h.error)return t?new G(2,3,3016):null;var n=e.h.error.code;return!t&&n==1?null:((t=e.h.error.msExtendedCode)&&(0>t&&(t+=Math.pow(2,32)),t=t.toString(16)),new G(2,3,3016,n,t,e.h.error.message))}function nl(e,t,n){0<t&&(e.V()||e.Ti(t)),t=e.getDuration(),n<t&&(e.V()||e.rb(n))}function ks(e,t){q(function(n){if(n.g==1)return O(n,Promise.resolve(),2);e.m!=Si&&e.dispatchEvent(t),ve(n)})}function bi(e){var t=new Set;e=b(e);for(var n=e.next();!n.done;n=e.next())n=n.value,n.language?t.add(Wt(n.language)):t.add("und");return t}function e2(e){var t=new Map,n=new Map;e=b(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;var a="und",l=[];i.language&&(a=Wt(i.language)),i.type=="variant"?l=i.audioRoles:l=i.roles,l&&l.length||(l=[""]),t.has(a)||t.set(a,new Set),l=b(l);for(var f=l.next();!f.done;f=l.next())f=f.value,t.get(a).add(f),i.label&&(n.has(a)||n.set(a,new Map),n.get(a).set(f,i.label))}var d=[];return t.forEach(function(g,m){g=b(g);for(var S=g.next();!S.done;S=g.next()){S=S.value;var T=null;n.has(m)&&n.get(m).has(S)&&(T=n.get(m).get(S)),d.push({language:m,role:S,label:T})}}),d}w.fb=function(){return this.h&&this.h.remote?this.h.remote.state!="disconnected":!1},w.isEnded=function(){return!this.h||this.h.ended?!0:this.Z&&!this.V()&&this.h.currentTime>=this.Aa().end},xe("shaka.Player",te),te.prototype.isEnded=te.prototype.isEnded,te.prototype.isRemotePlayback=te.prototype.fb,te.prototype.addFont=te.prototype.addFont,te.prototype.setVideoContainer=te.prototype.sh,te.prototype.getFetchedPlaybackInfo=te.prototype.Nj,te.prototype.getManifestParserFactory=te.prototype.Vj,te.prototype.getManifest=te.prototype.Hg,te.prototype.retryStreaming=te.prototype.gh,te.prototype.setMaxHardwareResolution=te.prototype.xl,te.prototype.addChaptersTrack=te.prototype.lj,te.prototype.addThumbnailsTrack=te.prototype.nj,te.prototype.addTextTrackAsync=te.prototype.mj,te.prototype.getStats=te.prototype.getStats,te.prototype.getBufferedInfo=te.prototype.Lb,te.prototype.getSegmentAvailabilityDuration=te.prototype.Ue,te.prototype.getPresentationStartTimeAsDate=te.prototype.ei,te.prototype.getPlayheadTimeAsDate=te.prototype.Zj,te.prototype.setTextTrackVisibility=te.prototype.Cf,te.prototype.getChapters=te.prototype.Eg,te.prototype.getChaptersTracks=te.prototype.Ej,te.prototype.isTextTrackVisible=te.prototype.Wc,te.prototype.selectVariantsByLabel=te.prototype.ol,te.prototype.selectTextLanguage=te.prototype.jh,te.prototype.selectAudioLanguage=te.prototype.Ji,te.prototype.getTextLanguages=te.prototype.gk,te.prototype.getAudioLanguages=te.prototype.Aj,te.prototype.getTextLanguagesAndRoles=te.prototype.hk,te.prototype.getAudioLanguagesAndRoles=te.prototype.Bj,te.prototype.getAudioTracks=te.prototype.getAudioTracks,te.prototype.selectAudioTrack=te.prototype.Ki,te.prototype.selectVariantTrack=te.prototype.ke,te.prototype.selectTextTrack=te.prototype.kh,te.prototype.getThumbnails=te.prototype.gi,te.prototype.getAllThumbnails=te.prototype.zj,te.prototype.getImageTracks=te.prototype.Gg,te.prototype.getTextTracks=te.prototype.ec,te.prototype.getVariantTracks=te.prototype.Mb,te.prototype.cancelTrickPlay=te.prototype.ld,te.prototype.trickPlay=te.prototype.Ic,te.prototype.getPlaybackRate=te.prototype.Wa,te.prototype.isBuffering=te.prototype.Ye,te.prototype.getKeyStatuses=te.prototype.Re,te.prototype.getActiveSessionsMetadata=te.prototype.Dg,te.prototype.getExpiration=te.prototype.Qd,te.prototype.drmInfo=te.prototype.drmInfo,te.prototype.keySystem=te.prototype.keySystem,te.prototype.isFullyLoaded=te.prototype.zk,te.prototype.goToLive=te.prototype.tk,te.prototype.seekRange=te.prototype.Aa,te.prototype.isAudioOnly=te.prototype.Uc,te.prototype.isInProgress=te.prototype.Vc,te.prototype.isLive=te.prototype.V,te.prototype.getAdManager=te.prototype.Qe,te.prototype.getAssetUri=te.prototype.rd,te.prototype.getNetworkingEngine=te.prototype.Db,te.prototype.getMediaElement=te.prototype.Yj,te.prototype.getManifestType=te.prototype.Ig,te.prototype.getLoadMode=te.prototype.Rj,te.prototype.resetConfiguration=te.prototype.fl,te.prototype.getBufferFullness=te.prototype.ai,te.prototype.getNonDefaultConfiguration=te.prototype.di,te.prototype.getConfigurationForLowLatency=te.prototype.Hj,te.prototype.getConfiguration=te.prototype.getConfiguration,te.prototype.configurationForLowLatency=te.prototype.wj,te.prototype.configure=te.prototype.configure,te.prototype.releaseAllMutexes=te.prototype.Zk,te.prototype.destroyAllPreloads=te.prototype.mg,te.prototype.preload=te.prototype.preload,te.prototype.detachAndSavePreload=te.prototype.Xh,te.prototype.unloadAndSavePreload=te.prototype.Bl,te.prototype.load=te.prototype.load,te.prototype.updateStartTime=te.prototype.Fl,te.prototype.unload=te.prototype.rc,te.prototype.detach=te.prototype.detach,te.prototype.attachCanvas=te.prototype.Kh,te.prototype.attach=te.prototype.Wb,te.probeSupport=function(e){e=e===void 0?!0:e;var t,n,i,a,l,f;return q(function(d){switch(d.g){case 1:if(t={},!e){d.A(2);break}return O(d,dT(),3);case 3:t=d.h;case 2:return n=Sc(),i=Ec(),O(d,Jc(),4);case 4:return a=d.h,l={manifest:n,media:i,drm:t,hardwareResolution:a},f=CT,f.forEach(function(g,m){l[m]=g()}),d.return(l)}})},te.isBrowserSupported=De,te.setAdManagerFactory=function(e){ch=e},te.registerSupportPlugin=fe,te.prototype.destroy=te.prototype.destroy;var Si=0,Ra=1,ci=2,vu=3;te.LoadMode={DESTROYED:Si,NOT_LOADED:Ra,MEDIA_SOURCE:ci,SRC_EQUALS:vu},te.version="v4.14.12";var wT=["4","14"];bh=new function(e){this.g=e,this.i=Cl,this.h=$u}(new wl(Number(wT[0]),Number(wT[1])));var CT=new Map,ch=null;function m0(){this.g=[],this.i=this.m=this.l=this.j=this.h=0}function cS(e){return e.g.length?e.g.reduce(function(t,n){return t+n},0)/e.g.length:0}function ot(e,t,n){var i=this;this.g=e,this.h=t,this.m=n,this.i=!1,this.j=this.h.getVolume(),this.l=new Ft,this.l.o(this.h,google.ima.AdEvent.Type.PAUSED,function(){i.i=!0}),this.l.o(this.h,google.ima.AdEvent.Type.RESUMED,function(){i.i=!1})}w=ot.prototype,w.needsSkipUI=function(){return!1},w.isClientRendering=function(){return!0},w.hasCustomClick=function(){return!0},w.isUsingAnotherMediaElement=function(){return!0},w.getDuration=function(){return this.g.getDuration()},w.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()},w.getRemainingTime=function(){return this.h.getRemainingTime()},w.isPaused=function(){return this.i},w.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()},w.getTimeUntilSkippable=function(){var e=this.g.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},w.canSkipNow=function(){return this.h.getAdSkippableState()},w.skip=function(){return this.h.skip()},w.pause=function(){return this.h.pause()},w.play=function(){return this.h.resume()},w.getVolume=function(){return this.h.getVolume()},w.setVolume=function(e){return this.m.volume=e,this.h.setVolume(e)},w.isMuted=function(){return this.h.getVolume()==0},w.isLinear=function(){return this.g.isLinear()},w.resize=function(e,t){this.h.resize(e,t)},w.setMuted=function(e){(this.m.muted=e)?(this.j=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.j)},w.getSequenceLength=function(){var e=this.g.getAdPodInfo();return e==null?1:e.getTotalAds()},w.getPositionInSequence=function(){var e=this.g.getAdPodInfo();return e==null?1:e.getAdPosition()},w.getTitle=function(){return this.g.getTitle()},w.getDescription=function(){return this.g.getDescription()},w.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()},w.getVastMediaHeight=function(){return this.g.getVastMediaHeight()},w.getVastMediaWidth=function(){return this.g.getVastMediaWidth()},w.getAdId=function(){return this.g.getAdId()},w.getCreativeAdId=function(){return this.g.getCreativeAdId()},w.getAdvertiserName=function(){return this.g.getAdvertiserName()},w.getMediaUrl=function(){return this.g.getMediaUrl()},w.getTimeOffset=function(){var e=this.g.getAdPodInfo();return e==null?0:e.getTimeOffset()},w.getPodIndex=function(){var e=this.g.getAdPodInfo();return e==null?0:e.getPodIndex()},w.release=function(){this.h=this.g=null},xe("shaka.ads.ClientSideAd",ot),ot.prototype.release=ot.prototype.release,ot.prototype.getPodIndex=ot.prototype.getPodIndex,ot.prototype.getTimeOffset=ot.prototype.getTimeOffset,ot.prototype.getMediaUrl=ot.prototype.getMediaUrl,ot.prototype.getAdvertiserName=ot.prototype.getAdvertiserName,ot.prototype.getCreativeAdId=ot.prototype.getCreativeAdId,ot.prototype.getAdId=ot.prototype.getAdId,ot.prototype.getVastMediaWidth=ot.prototype.getVastMediaWidth,ot.prototype.getVastMediaHeight=ot.prototype.getVastMediaHeight,ot.prototype.getVastMediaBitrate=ot.prototype.getVastMediaBitrate,ot.prototype.getDescription=ot.prototype.getDescription,ot.prototype.getTitle=ot.prototype.getTitle,ot.prototype.getPositionInSequence=ot.prototype.getPositionInSequence,ot.prototype.getSequenceLength=ot.prototype.getSequenceLength,ot.prototype.setMuted=ot.prototype.setMuted,ot.prototype.resize=ot.prototype.resize,ot.prototype.isLinear=ot.prototype.isLinear,ot.prototype.isMuted=ot.prototype.isMuted,ot.prototype.setVolume=ot.prototype.setVolume,ot.prototype.getVolume=ot.prototype.getVolume,ot.prototype.play=ot.prototype.play,ot.prototype.pause=ot.prototype.pause,ot.prototype.skip=ot.prototype.skip,ot.prototype.canSkipNow=ot.prototype.canSkipNow,ot.prototype.getTimeUntilSkippable=ot.prototype.getTimeUntilSkippable,ot.prototype.isSkippable=ot.prototype.isSkippable,ot.prototype.isPaused=ot.prototype.isPaused,ot.prototype.getRemainingTime=ot.prototype.getRemainingTime,ot.prototype.getMinSuggestedDuration=ot.prototype.getMinSuggestedDuration,ot.prototype.getDuration=ot.prototype.getDuration,ot.prototype.isUsingAnotherMediaElement=ot.prototype.isUsingAnotherMediaElement,ot.prototype.hasCustomClick=ot.prototype.hasCustomClick,ot.prototype.isClientRendering=ot.prototype.isClientRendering,ot.prototype.needsSkipUI=ot.prototype.needsSkipUI;function $t(){}function Yl(e,t){var n=[];e=b(wt(e,"Ad"));for(var i=e.next();!i.done;i=e.next())if((i=Wn(i.value,"InLine"))&&(i=Wn(i,"Creatives"))){i=b(wt(i,"Creative"));for(var a=i.next();!a.done;a=i.next()){a=a.value;var l=Wn(a,"Linear");if(l&&y0(n,t,l),a=Wn(a,"NonLinearAds")){a=wt(a,"NonLinear"),a=b(a);for(var f=a.next();!f.done;f=a.next())e:{l=n;var d=t,g=f.value,m=Wn(g,"StaticResource");if(m)f=m.attributes.creativeType;else{if(m=Wn(g,"HTMLResource"),!m)break e;f="text/html"}if(m=ar(m)){f==="text/html"&&(m="data:text/html;charset=UTF-8,"+encodeURIComponent(m));var S=ct(g,"width",Ci)||ct(g,"expandedWidth",Ci),T=ct(g,"height",Ci)||ct(g,"expandedHeight",Ci);if(S||T){var x=null;(g=g.attributes.minSuggestedDuration)&&(x=nf(g)),g=0,d!=null&&(g=d),l.push({id:null,groupId:null,startTime:g,endTime:null,uri:m,mimeType:f,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:x,once:!0,pre:d==null,post:d==1/0,timelineRange:!1,loop:!1,overlay:{viewport:{x:0,y:0},topLeft:{x:0,y:0},size:{x:S||0,y:T||0}},displayOnBackground:!1,currentVideo:null,background:null})}}}}}}return n}function y0(e,t,n){var i=0;t!=null&&(i=t);var a=null;if(n.attributes.skipoffset&&(a=nf(n.attributes.skipoffset),isNaN(a)&&(a=null)),n=Wn(n,"MediaFiles")){var l=wt(n,"MediaFile");for(n=l,l=l.filter(function(d){return d.attributes.delivery=="streaming"}),l.length&&(n=l),n=n.sort(function(d,g){return(parseInt(g.attributes.height,10)||0)-(parseInt(d.attributes.height,10)||0)}),n=b(n),l=n.next();!l.done;l=n.next())if(l=l.value,!l.attributes.apiFramework){var f=ar(l);if(f){e.push({id:null,groupId:null,startTime:i,endTime:null,uri:f,mimeType:l.attributes.type||null,isSkippable:a!=null,skipOffset:a,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:t==null,post:t==1/0,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});break}}}}xe("shaka.ads.Utils",$t),$t.ADS_LOADED="ads-loaded",$t.AD_STARTED="ad-started",$t.AD_FIRST_QUARTILE="ad-first-quartile",$t.AD_MIDPOINT="ad-midpoint",$t.AD_THIRD_QUARTILE="ad-third-quartile",$t.AD_COMPLETE="ad-complete",$t.AD_STOPPED="ad-stopped",$t.AD_SKIPPED="ad-skipped",$t.AD_VOLUME_CHANGED="ad-volume-changed",$t.AD_MUTED="ad-muted",$t.AD_PAUSED="ad-paused",$t.AD_RESUMED="ad-resumed",$t.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",$t.CUEPOINTS_CHANGED="ad-cue-points-changed",$t.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",$t.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",$t.AD_CLICKED="ad-clicked",$t.AD_PROGRESS="ad-progress",$t.AD_BUFFERING="ad-buffering",$t.AD_IMPRESSION="ad-impression",$t.AD_DURATION_CHANGED="ad-duration-changed",$t.AD_CLOSED="ad-closed",$t.AD_LOADED="ad-loaded",$t.ALL_ADS_COMPLETED="all-ads-completed",$t.AD_LINEAR_CHANGED="ad-linear-changed",$t.AD_METADATA="ad-metadata",$t.AD_RECOVERABLE_ERROR="ad-recoverable-error",$t.AD_ERROR="ad-error",$t.AD_BREAK_READY="ad-break-ready",$t.AD_INTERACTION="ad-interaction",$t.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested",$t.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested",$t.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function Ns(e,t,n,i,a){var l=this;this.u=e,this.i=t,this.H=!1,this.B=this.s=null,this.I=NaN,this.l=a,this.j=null,this.h=new Ft,google.ima.settings.setLocale(n),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0),this.D=new google.ima.AdDisplayContainer(this.u,this.i),this.D.initialize(),this.m=new google.ima.AdsLoader(this.D),this.m.getSettings().setPlayerType("shaka-player"),this.m.getSettings().setPlayerVersion("v4.14.12"),this.g=null,this.C=i||new google.ima.AdsRenderingSettings,this.h.o(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){po(l,f)}),this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(f){Qf(l,f)}),this.h.o(this.i,"ended",function(){l.m.contentComplete()}),this.h.wa(this.i,"play",function(){l.H=!0})}Ns.prototype.configure=function(e){this.s=e},Ns.prototype.stop=function(){this.g&&this.g.stop(),this.u&&Zr(this.u)},Ns.prototype.release=function(){this.stop(),this.B&&this.B.disconnect(),this.h&&this.h.release(),this.g&&this.g.destroy(),this.m.destroy(),this.D.destroy()};function Qf(e,t){t.getError(),t=new Map().set("originalEvent",t),e.l(new Te("ad-error",t)),_s(e,null),e.l(new Te("ad-cue-points-changed",new Map().set("cuepoints",[])))}function po(e,t){if(e.l(new Te("ads-loaded",new Map().set("loadTime",Date.now()/1e3-e.I))),e.s.customPlayheadTracker){var n={currentTime:e.i.currentTime};e.g=t.getAdsManager(n,e.C),e.i.muted?e.g.setVolume(0):e.g.setVolume(e.i.volume),e.h.o(e.i,"timeupdate",function(){e.i.duration&&(n.currentTime=e.i.currentTime)}),e.h.o(e.i,"volumechange",function(){e.j&&(e.j.setVolume(e.i.volume),e.i.muted&&e.j.setMuted(!0))})}else e.g=t.getAdsManager(e.i,e.C);e.l(new Te("ima-ad-manager-loaded",new Map().set("imaAdManager",e.g)));var i=e.g.getCuePoints();if(i.length){t=[],i=b(i);for(var a=i.next();!a.done;a=i.next())t.push({start:a.value,end:null});e.l(new Te("ad-cue-points-changed",new Map().set("cuepoints",t)))}wr(e);try{e.g.init(e.i.offsetWidth,e.i.offsetHeight),e.h.o(e.i,"loadeddata",function(){e.g.resize(e.i.offsetWidth,e.i.offsetHeight)}),"ResizeObserver"in oe?(e.B=new ResizeObserver(function(){e.g.resize(e.i.offsetWidth,e.i.offsetHeight)}),e.B.observe(e.i)):e.h.o(document,"fullscreenchange",function(){e.g.resize(e.i.offsetWidth,e.i.offsetHeight)}),e.H||e.s.skipPlayDetection?e.g.start():e.h.wa(e.i,"play",function(){e.H=!0,e.g.start()})}catch{_s(e,null)}}function wr(e){function t(n,i){n=new Map().set("originalEvent",n),e.l(new Te(i,n))}e.h.o(e.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(n){Qf(e,n)}),e.h.o(e.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(n){Pn(e,n)}),e.h.o(e.g,google.ima.AdEvent.Type.STARTED,function(n){Pn(e,n)}),e.h.o(e.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(n){t(n,"ad-first-quartile")}),e.h.o(e.g,google.ima.AdEvent.Type.MIDPOINT,function(n){t(n,"ad-midpoint")}),e.h.o(e.g,google.ima.AdEvent.Type.THIRD_QUARTILE,function(n){t(n,"ad-third-quartile")}),e.h.o(e.g,google.ima.AdEvent.Type.COMPLETE,function(n){t(n,"ad-complete")}),e.h.o(e.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(n){_s(e,n)}),e.h.o(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(n){_s(e,n)}),e.h.o(e.g,google.ima.AdEvent.Type.SKIPPED,function(n){t(n,"ad-skipped")}),e.h.o(e.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(n){t(n,"ad-volume-changed")}),e.h.o(e.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(n){t(n,"ad-muted")}),e.h.o(e.g,google.ima.AdEvent.Type.PAUSED,function(n){e.j&&(e.j.i=!0,t(n,"ad-paused"))}),e.h.o(e.g,google.ima.AdEvent.Type.RESUMED,function(n){e.j&&(e.j.i=!1,t(n,"ad-resumed"))}),e.h.o(e.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(n){e.j&&t(n,"ad-skip-state-changed")}),e.h.o(e.g,google.ima.AdEvent.Type.CLICK,function(n){t(n,"ad-clicked")}),e.h.o(e.g,google.ima.AdEvent.Type.AD_PROGRESS,function(n){t(n,"ad-progress")}),e.h.o(e.g,google.ima.AdEvent.Type.AD_BUFFERING,function(n){t(n,"ad-buffering")}),e.h.o(e.g,google.ima.AdEvent.Type.IMPRESSION,function(n){t(n,"ad-impression")}),e.h.o(e.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(n){t(n,"ad-duration-changed")}),e.h.o(e.g,google.ima.AdEvent.Type.USER_CLOSE,function(n){t(n,"ad-closed")}),e.h.o(e.g,google.ima.AdEvent.Type.LOADED,function(n){t(n,"ad-loaded")}),e.h.o(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(n){t(n,"all-ads-completed")}),e.h.o(e.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(n){t(n,"ad-linear-changed")}),e.h.o(e.g,google.ima.AdEvent.Type.AD_METADATA,function(n){t(n,"ad-metadata")}),e.h.o(e.g,google.ima.AdEvent.Type.LOG,function(n){t(n,"ad-recoverable-error")}),e.h.o(e.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(n){t(n,"ad-break-ready")}),e.h.o(e.g,google.ima.AdEvent.Type.INTERACTION,function(n){t(n,"ad-interaction")})}function Pn(e,t){var n=t.getAd();n?(e.j=new ot(n,e.g,e.i),t.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||e.s.supportsMultipleMediaElements||e.l(new Te("ad-content-pause-requested")),t=new Map().set("ad",e.j).set("sdkAdObject",n).set("originalEvent",t),e.l(new Te("ad-started",t)),e.j.isLinear()&&(e.u.setAttribute("ad-active","true"),e.s.customPlayheadTracker||e.i.pause(),e.i.muted?(t=e.j,t.j=e.i.volume,t.h.setVolume(0)):e.j.setVolume(e.i.volume))):st("The IMA SDK fired a "+t.type+" event with no associated ad. Unable to play ad!")}function _s(e,t){t&&t.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&!e.s.supportsMultipleMediaElements&&e.l(new Te("ad-content-resume-requested")),e.l(new Te("ad-stopped",new Map().set("originalEvent",t))),e.j&&e.j.isLinear()&&(e.u.removeAttribute("ad-active"),e.s.customPlayheadTracker||e.i.ended||e.i.play())}function Fe(e,t,n,i,a,l){this.g=e,this.i=t,this.j=(this.h=t.isSkippable)?t.skipOffset||0:t.skipOffset,this.l=t.skipFor,this.B=n,this.s=i,this.m=a,this.u=l,this.C=t.overlay}w=Fe.prototype,w.needsSkipUI=function(){return!0},w.isClientRendering=function(){return!0},w.hasCustomClick=function(){return!1},w.isUsingAnotherMediaElement=function(){return this.u},w.getDuration=function(){var e=this.g.duration;return isNaN(e)?-1:e},w.getMinSuggestedDuration=function(){return this.getDuration()},w.getRemainingTime=function(){var e=this.g.duration;return isNaN(e)?-1:e-this.g.currentTime},w.isPaused=function(){return this.g.paused},w.isSkippable=function(){return this.h&&this.l!=null?this.getDuration()-this.getRemainingTime()<this.j+this.l:this.h},w.getTimeUntilSkippable=function(){if(this.isSkippable()){var e=this.getRemainingTime()+this.j-this.getDuration();return Math.max(e,0)}return Math.max(this.getRemainingTime(),0)},w.canSkipNow=function(){return this.h&&this.getTimeUntilSkippable()==0},w.skip=function(){this.canSkipNow()&&this.B()},w.pause=function(){return this.g.pause()},w.play=function(){return this.g.play()},w.getVolume=function(){return this.g.volume},w.setVolume=function(e){this.g.volume=e},w.isMuted=function(){return this.g.muted},w.isLinear=function(){return this.C==null},w.resize=function(){},w.setMuted=function(e){this.g.muted=e},w.getSequenceLength=function(){return this.s},w.getPositionInSequence=function(){return this.m},w.getTitle=function(){return""},w.getDescription=function(){return""},w.getVastMediaBitrate=function(){return 0},w.getVastMediaHeight=function(){return 0},w.getVastMediaWidth=function(){return 0},w.getAdId=function(){return this.i.id||""},w.getCreativeAdId=function(){return""},w.getAdvertiserName=function(){return""},w.getMediaUrl=function(){return this.i.uri},w.getTimeOffset=function(){return 0},w.getPodIndex=function(){return 0},w.release=function(){this.g=null},xe("shaka.ads.InterstitialAd",Fe),Fe.prototype.release=Fe.prototype.release,Fe.prototype.getPodIndex=Fe.prototype.getPodIndex,Fe.prototype.getTimeOffset=Fe.prototype.getTimeOffset,Fe.prototype.getMediaUrl=Fe.prototype.getMediaUrl,Fe.prototype.getAdvertiserName=Fe.prototype.getAdvertiserName,Fe.prototype.getCreativeAdId=Fe.prototype.getCreativeAdId,Fe.prototype.getAdId=Fe.prototype.getAdId,Fe.prototype.getVastMediaWidth=Fe.prototype.getVastMediaWidth,Fe.prototype.getVastMediaHeight=Fe.prototype.getVastMediaHeight,Fe.prototype.getVastMediaBitrate=Fe.prototype.getVastMediaBitrate,Fe.prototype.getDescription=Fe.prototype.getDescription,Fe.prototype.getTitle=Fe.prototype.getTitle,Fe.prototype.getPositionInSequence=Fe.prototype.getPositionInSequence,Fe.prototype.getSequenceLength=Fe.prototype.getSequenceLength,Fe.prototype.setMuted=Fe.prototype.setMuted,Fe.prototype.resize=Fe.prototype.resize,Fe.prototype.isLinear=Fe.prototype.isLinear,Fe.prototype.isMuted=Fe.prototype.isMuted,Fe.prototype.setVolume=Fe.prototype.setVolume,Fe.prototype.getVolume=Fe.prototype.getVolume,Fe.prototype.play=Fe.prototype.play,Fe.prototype.pause=Fe.prototype.pause,Fe.prototype.skip=Fe.prototype.skip,Fe.prototype.canSkipNow=Fe.prototype.canSkipNow,Fe.prototype.getTimeUntilSkippable=Fe.prototype.getTimeUntilSkippable,Fe.prototype.isSkippable=Fe.prototype.isSkippable,Fe.prototype.isPaused=Fe.prototype.isPaused,Fe.prototype.getRemainingTime=Fe.prototype.getRemainingTime,Fe.prototype.getMinSuggestedDuration=Fe.prototype.getMinSuggestedDuration,Fe.prototype.getDuration=Fe.prototype.getDuration,Fe.prototype.isUsingAnotherMediaElement=Fe.prototype.isUsingAnotherMediaElement,Fe.prototype.hasCustomClick=Fe.prototype.hasCustomClick,Fe.prototype.isClientRendering=Fe.prototype.isClientRendering,Fe.prototype.needsSkipUI=Fe.prototype.needsSkipUI;function nt(e,t,n){this.g=e,this.j=t,this.h=n,this.i=e.overlay==null}w=nt.prototype,w.needsSkipUI=function(){return!0},w.isClientRendering=function(){return!0},w.hasCustomClick=function(){return!1},w.isUsingAnotherMediaElement=function(){return!1},w.getDuration=function(){return-1},w.getMinSuggestedDuration=function(){return this.getDuration()},w.getRemainingTime=function(){return-1},w.isPaused=function(){return!1},w.isSkippable=function(){return!1},w.getTimeUntilSkippable=function(){return 0},w.canSkipNow=function(){return!1},w.skip=function(){},w.pause=function(){},w.play=function(){},w.getVolume=function(){return 1},w.setVolume=function(){},w.isMuted=function(){return!1},w.isLinear=function(){return this.i},w.resize=function(){},w.setMuted=function(){},w.getSequenceLength=function(){return this.j},w.getPositionInSequence=function(){return this.h},w.getTitle=function(){return""},w.getDescription=function(){return""},w.getVastMediaBitrate=function(){return 0},w.getVastMediaHeight=function(){return 0},w.getVastMediaWidth=function(){return 0},w.getAdId=function(){return this.g.id||""},w.getCreativeAdId=function(){return""},w.getAdvertiserName=function(){return""},w.getMediaUrl=function(){return this.g.uri},w.getTimeOffset=function(){return 0},w.getPodIndex=function(){return 0},w.release=function(){},xe("shaka.ads.InterstitialStaticAd",nt),nt.prototype.release=nt.prototype.release,nt.prototype.getPodIndex=nt.prototype.getPodIndex,nt.prototype.getTimeOffset=nt.prototype.getTimeOffset,nt.prototype.getMediaUrl=nt.prototype.getMediaUrl,nt.prototype.getAdvertiserName=nt.prototype.getAdvertiserName,nt.prototype.getCreativeAdId=nt.prototype.getCreativeAdId,nt.prototype.getAdId=nt.prototype.getAdId,nt.prototype.getVastMediaWidth=nt.prototype.getVastMediaWidth,nt.prototype.getVastMediaHeight=nt.prototype.getVastMediaHeight,nt.prototype.getVastMediaBitrate=nt.prototype.getVastMediaBitrate,nt.prototype.getDescription=nt.prototype.getDescription,nt.prototype.getTitle=nt.prototype.getTitle,nt.prototype.getPositionInSequence=nt.prototype.getPositionInSequence,nt.prototype.getSequenceLength=nt.prototype.getSequenceLength,nt.prototype.setMuted=nt.prototype.setMuted,nt.prototype.resize=nt.prototype.resize,nt.prototype.isLinear=nt.prototype.isLinear,nt.prototype.isMuted=nt.prototype.isMuted,nt.prototype.setVolume=nt.prototype.setVolume,nt.prototype.getVolume=nt.prototype.getVolume,nt.prototype.play=nt.prototype.play,nt.prototype.pause=nt.prototype.pause,nt.prototype.skip=nt.prototype.skip,nt.prototype.canSkipNow=nt.prototype.canSkipNow,nt.prototype.getTimeUntilSkippable=nt.prototype.getTimeUntilSkippable,nt.prototype.isSkippable=nt.prototype.isSkippable,nt.prototype.isPaused=nt.prototype.isPaused,nt.prototype.getRemainingTime=nt.prototype.getRemainingTime,nt.prototype.getMinSuggestedDuration=nt.prototype.getMinSuggestedDuration,nt.prototype.getDuration=nt.prototype.getDuration,nt.prototype.isUsingAnotherMediaElement=nt.prototype.isUsingAnotherMediaElement,nt.prototype.hasCustomClick=nt.prototype.hasCustomClick,nt.prototype.isClientRendering=nt.prototype.isClientRendering,nt.prototype.needsSkipUI=nt.prototype.needsSkipUI;function _c(e,t,n,i){var a=this;this.S=null,this.B=e,this.J=t,this.g=n,this.H=null,this.C=!0,this.h=this.g,this.i=i,this.U=new Set,this.I=new Set,this.D=new Map,this.M=new Map,this.j=new te,jr(this),this.K=new Ft,this.l=new Ft,this.L=!1,this.ba=this.m=this.u=this.s=null,this.ea=!1,this.P=-1,this.Z=function(){if(!a.L&&a.s&&!a.J.fb()){a.s=a.g.currentTime,a.u&&!a.u.pre&&!a.u.post&&a.s<a.u.startTime&&(a.u=null);var l=S0(a);l&&_v(a,l,1,1,Date.now())}},this.Y=function(){if(!(a.L||a.s||a.J.fb())){a.s=a.g.currentTime;var l=S0(a,!0);l&&_v(a,l,1,1,Date.now())}},this.R=new Ke(this.Z),this.N=new Ke(function(){var l,f,d,g,m,S,T,x,M,R,L;return q(function(I){switch(I.g){case 1:if(!a.I.size||a.s==null){I.A(0);break}if(l=a.J.m,l==Si||l==Ra)return I.return();f=!1,d=Array.from(a.I),g=a.J.Aa(),m=b(d),S=m.next();case 3:if(S.done){I.A(5);break}if(T=S.value,T==a.u){I.A(4);break}if(x=T.endTime||T.startTime,!(1<=g.start-x)){M=T.startTime-a.s,0<M&&10>=M&&(!a.D.has(T)&&DT(T)&&a.D.set(T,a.j.preload(T.uri,null,T.mimeType||void 0)),jv(a,T)),I.A(4);break}if(!a.D.has(T)){I.A(7);break}return O(I,a.D.get(T),8);case 8:(R=I.h)&&R.destroy(),a.D.delete(T);case 7:go(a,T),L=JSON.stringify(T),a.U.has(L)&&a.U.delete(L),a.I.delete(T),fS(a),T.overlay||(f=!0);case 4:S=m.next(),I.A(3);break;case 5:f&&hS(a),ve(I)}})})}w=_c.prototype,w.configure=function(e){this.S=e,bT(this)};function MT(e){if(!e.ea&&e.I.size){if(e.K.o(e.g,"playing",e.Y),e.K.o(e.g,"timeupdate",e.Y),e.K.o(e.g,"ended",e.Z),"requestVideoFrameCallback"in e.g&&!Z0()){var t=e.g,n=function(){e.P!=-1&&(e.Z(),e.P!=-1&&(e.P=t.requestVideoFrameCallback(n)))};e.P=t.requestVideoFrameCallback(n)}else e.R.xa(.025);e.N&&e.N.xa(1),e.ea=!0}}function fS(e){e.ea&&!e.I.size&&(e.K.Ea(e.g,"playing",e.Y),e.K.Ea(e.g,"timeupdate",e.Y),e.K.Ea(e.g,"ended",e.Z),e.P!=-1&&(e.g.cancelVideoFrameCallback(e.P),e.P=-1),e.R&&e.R.stop(),e.N&&e.N.stop(),e.ea=!1)}function bT(e){if(e.B&&e.S&&!e.L){var t=e.S.supportsMultipleMediaElements,n=e.g;n.webkitSupportsFullscreen&&n.webkitDisplayingFullscreen&&(t=!1),e.C==t&&(e.C=!t,e.C?(e.h=e.g,e.H&&(e.H.parentElement&&e.B.removeChild(e.H),e.H=null)):(e.H||(t=document.createElement(e.g.tagName),t.autoplay=!0,t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.display="none",t.setAttribute("playsinline",""),e.H=t),e.h=e.H))}}w.stop=function(){if(this.l&&this.l.$a(),this.U.clear(),this.I.clear(),this.j.mg(),this.D.size){var e=Array.from(this.D.values());e=b(e);for(var t=e.next();!t.done;t=e.next())(t=t.value)&&t.then(function(n){n&&n.destroy()})}if(this.D.clear(),this.M.size)for(e=Array.from(this.M.keys()),e=b(e),t=e.next();!t.done;t=e.next())go(this,t.value);this.M.clear(),this.j.detach(),this.L=!1,this.u=this.s=null,this.C=!0,this.h=this.g,this.H=null,RT(this),fS(this),this.B&&Zr(this.B),this.m&&(this.m.stop(),this.m=null)},w.release=function(){this.stop(),this.K&&this.K.release(),this.l&&this.l.release(),this.R&&(this.R.stop(),this.R=null),this.N&&(this.N.stop(),this.N=null),this.j.destroy()},w.vc=function(){return this.j};function t2(e,t){var n;q(function(i){if(i.g==1)return jr(e),O(i,r4(e,t),2);n=i.h,n.length?v0(e,n):st("Unsupported HLS interstitial",t),ve(i)})}function i4(e,t){var n=Wn(t.eventNode,"OverlayEvent"),i=n.attributes.uri,a=n.attributes.mimeType,l=n.attributes.loop=="true",f=ct(n,"z",Ci);if(i&&f!=0){var d={viewport:{x:1920,y:1080},topLeft:{x:0,y:0},size:{x:1920,y:1080}},g=Wn(n,"Viewport"),m=Wn(n,"TopLeft"),S=Wn(n,"Size");if(g&&m&&S){if(d=ct(g,"x",Ci),d==null||(g=ct(g,"y",Ci),g==null))return;var T=ct(m,"x",Ci);if(T==null||(m=ct(m,"y",Ci),m==null))return;var x=ct(S,"x",Ci);if(x==null||(S=ct(S,"y",Ci),S==null))return;d={viewport:{x:d,y:g},topLeft:{x:T,y:m},size:{x,y:S}}}S=Wn(n,"SqueezeCurrent"),n=null,S&&(S=ct(S,"percentage",ou))&&(n={viewport:{x:1920,y:1080},topLeft:{x:0,y:0},size:{x:1920*S,y:1080*S}}),v0(e,[{id:t.id,groupId:null,startTime:t.startTime,endTime:t.endTime,uri:i,mimeType:a,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:null,playoutLimit:null,once:!1,pre:!1,post:!1,timelineRange:!0,loop:l,overlay:d,displayOnBackground:f==-1,currentVideo:n,background:null}])}}w.addAdUrlInterstitial=function(e){var t=this,n,i,a,l,f,d,g,m,S;return q(function(T){switch(T.g){case 1:return n={type:12},O(T,wp(t,e,n),2);case 2:if(i=T.h,a=Ed(i,"VAST,vmap:VMAP"),!a)throw new G(2,10,10007);if(l=[],a.tagName=="VAST"){l=Yl(a,t.s),T.A(3);break}if(a.tagName!="vmap:VMAP"){T.A(3);break}for(var x=[],M=b(wt(a,"vmap:AdBreak")),R=M.next();!R.done;R=M.next()){var L=R.value,I=L.attributes.timeOffset;I&&(R=null,I=="start"?R=0:I=="end"?R=1/0:R=nf(I),(L=Wn(L,"vmap:AdSource"))&&(L=Wn(L,"vmap:AdTagURI"))&&(L=Gn(L))&&x.push({time:R,uri:L}))}f=b(x),d=f.next();case 5:if(d.done){T.A(3);break}return g=d.value,O(T,wp(t,g.uri,n),8);case 8:if(m=T.h,S=Ed(m,"VAST"),!S)throw new G(2,10,10007);l.push.apply(l,Ue(Yl(S,g.time))),d=f.next(),T.A(5);break;case 3:v0(t,l),ve(T)}})};function v0(e,t){var n,i,a,l,f,d,g,m;q(function(S){switch(S.g){case 1:n=!1,i=b(t),a=i.next();case 2:if(a.done){S.A(4);break}if(l=a.value,!l.uri){st("Missing URL in interstitial",l),S.A(3);break}if(l.mimeType){S.A(5);break}return Le(S,6),f=e.j.Db(),O(S,el(l.uri,f,e.J.getConfiguration().streaming.retryParameters),8);case 8:l.mimeType=S.h,Ge(S,5);break;case 6:je(S);case 5:if(d=l.id||JSON.stringify(l),e.U.has(d)){S.A(3);break}l.loop&&!l.overlay&&st("Loop is only supported in overlay interstitials",l),l.overlay||(n=!0),e.U.add(d),e.I.add(l),g=!1,l.pre&&e.s==null?g=!0:l.startTime!=0||l.canJump?e.s!=null&&(m=l.startTime-e.s,0<m&&10>=m&&(g=!0)):g=!0,g&&(!e.D.has(l)&&DT(l)&&e.D.set(l,e.j.preload(l.uri,null,l.mimeType||void 0)),jv(e,l));case 3:a=i.next(),S.A(2);break;case 4:n&&hS(e),MT(e),ve(S)}})}function S0(e,t,n){t=t===void 0?!1:t,n=n===void 0?null:n;var i=0,a=null;if(e.I.size&&e.s!=null){var l=e.g.ended,f=Array.from(e.I).sort(function(S,T){return T.startTime-S.startTime}),d=f;for(d=t?f.filter(function(S){return S.pre}):l?f.filter(function(S){return S.post}):f.filter(function(S){return!S.pre&&!S.post}),f=b(d),d=f.next();!d.done;d=f.next()){d=d.value;var g=!1;if(t)g=d.pre;else if(l)g=d.post;else if(!d.pre&&!d.post){var m=e.s-Math.round(1e3*d.startTime)/1e3;0<m&&(1>=m||!d.canJump)&&(g=!(n==null&&e.u&&!e.u.pre&&!e.u.post&&e.u.startTime>=d.startTime))}g&&(!e.u||d.startTime>=e.u.startTime)&&(i==(n||0)?a=d:a&&!d.canJump&&.001<Math.round(1e3*d.startTime)/1e3-Math.round(1e3*a.startTime)/1e3&&(a=d,i=0),i++)}}return a}function _v(e,t,n,i,a,l){l=l===void 0?0:l,e.u=t,bT(e),!e.h.parentElement&&e.B&&e.B.appendChild(e.h),i==1&&n==1&&(n=Array.from(e.I).filter(function(f){return t.pre?f.pre==t.pre:t.post?f.post==t.post:.001>Math.abs(f.startTime-t.startTime)}).length),t.once&&(l++,e.I.delete(t),fS(e),t.overlay||hS(e)),t.mimeType&&(t.mimeType.startsWith("image/")||t.mimeType==="text/html")?t.overlay?dS(e,t,n,i,l):st("Unsupported interstitial",t):e.C&&t.overlay?st("Unsupported interstitial",t):cy(e,t,n,i,a,l)}function dS(e,t,n,i,a){function l(){e.m&&(e.m.stop(),e.m=null),e.B.removeChild(g),RT(e,t),e.i(new Te("ad-stopped"));var x=S0(e,t.pre,i-a);x?(e.l.$a(),_v(e,x,n,++i,Date.now(),a)):e.L=!1}var f=t.overlay,d=t.mimeType=="text/html"?"iframe":"img",g=document.createElement(d);g.style.objectFit="contain",g.style.position="absolute",g.style.border="none",T0(e,t),e.i(new Te("ad-started",new Map().set("ad",new nt(t,n,i)))),d=="iframe"?g.src=t.uri:(g.src=t.uri,g.onerror=function(x){e.i(new Te("ad-error",new Map().set("originalEvent",x))),l()});var m=f.viewport,S=f.topLeft;f=f.size,m.x==0&&m.y==0?(g.width=t.overlay.size.x,g.height=t.overlay.size.y,g.style.bottom="10%",g.style.left="0",g.style.right="0",g.style.width="100%",t.overlay.size.y||d!="iframe"||(g.style.height="auto")):(g.style.height=f.y/m.y*100+"%",g.style.left=S.x/m.x*100+"%",g.style.top=S.y/m.y*100+"%",g.style.width=f.x/m.x*100+"%"),e.B.appendChild(g);var T=Date.now();e.m&&e.m.stop(),e.m=new Ke(function(){t.playoutLimit&&(Date.now()-T)/1e3>t.playoutLimit?(e.i(new Te("ad-complete")),l()):t.endTime&&e.g.currentTime>t.endTime?(e.i(new Te("ad-complete")),l()):e.g.currentTime<t.startTime&&(e.i(new Te("ad-skipped")),l())}),t.playoutLimit&&!t.endTime?e.m.$(t.playoutLimit):t.endTime&&e.m.xa(.025),e.l.o(e.g,"seeked",function(){var x=e.g.currentTime;(x<t.startTime||t.endTime&&x>t.endTime)&&(e.m&&e.m.stop(),e.i(new Te("ad-skipped")),l())})}function cy(e,t,n,i,a,l){var f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P;q(function(V){switch(V.g){case 1:if(f=Date.now(),e.L=!0,!e.C||i!=1){V.A(2);break}return e.i(new Te("ad-content-pause-requested",new Map().set("saveLivePosition",!0))),d=new Bt,g=function(F){return q(function(K){if(K.g==1)return F.state!="detach"?K.A(0):Z0()?O(K,new Promise(function(ee){return new Ke(ee).$(.1)}),3):K.A(3);d.resolve(),e.l.Ea(e.J,"onstatechange",g),ve(K)})},e.l.o(e.J,"onstatechange",g),O(V,d,2);case 2:return T0(e,t),e.C||(e.h.style.display="",t.overlay?(e.h.loop=t.loop,m=t.overlay.viewport,S=t.overlay.topLeft,T=t.overlay.size,e.h.style.height=T.y/m.y*100+"%",e.h.style.left=S.x/m.x*100+"%",e.h.style.top=S.y/m.y*100+"%",e.h.style.width=T.x/m.x*100+"%"):(e.g.pause(),t.resumeOffset!=null&&t.resumeOffset!=0&&(e.g.currentTime+=t.resumeOffset),e.h.loop=!1,e.h.style.height="100%",e.h.style.left="0",e.h.style.top="0",e.h.style.width="100%")),x=!1,M=function(){if(!e.C&&!t.overlay&&t.resumeOffset==null)if(t.timelineRange&&t.endTime&&t.endTime!=1/0)e.g.currentTime!=t.endTime&&(e.g.currentTime=t.endTime);else{var F=Date.now();e.g.currentTime+=(F-a)/1e3,a=F}},R=function(F){var K,ee;return q(function(Q){if(Q.g==1){if(M(),K=S0(e,t.pre,i-l),F&&t.groupId)for(;K&&K.groupId==t.groupId;)i++,K=S0(e,t.pre,i-l);return e.m&&(!t.groupId||K&&K.groupId!=t.groupId)&&(e.m.stop(),e.m=null),RT(e,t),K&&!K.overlay?Q.A(2):(t.post&&(e.s=null,e.u=null),e.C?O(Q,e.j.detach(),4):O(Q,e.j.rc(),4))}Q.g!=2&&(e.C&&(ee=t.resumeOffset,ee==null&&(ee=t.timelineRange&&t.endTime&&t.endTime!=1/0?t.endTime-(e.s||0):(Date.now()-a)/1e3),e.i(new Te("ad-content-resume-requested",new Map().set("offset",ee)))),e.i(new Te("ad-stopped")),e.l.$a(),e.L=!1,e.C?hS(e):(e.h.style.display="none",M(),e.g.ended||e.g.play())),bT(e),K&&(e.i(new Te("ad-stopped")),e.l.$a(),_v(e,K,n,++i,a,l)),ve(Q)})},L=function(F){return q(function(K){return x?K.return():(x=!0,e.i(new Te("ad-error",new Map().set("originalEvent",F))),O(K,R(!1),0))})},I=function(){return q(function(F){if(F.g==1)return x?F.return():(x=!0,O(F,R(!1),2));e.i(new Te("ad-complete")),ve(F)})},e.ba=function(){return q(function(F){return x?F.return():(x=!0,e.i(new Te("ad-skipped")),O(F,R(!0),0))})},U=new Fe(e.h,t,e.ba,n,i,!e.C),e.C||(U.setMuted(e.g.muted),U.setVolume(e.g.volume)),e.i(new Te("ad-started",new Map().set("ad",U))),(N=U.canSkipNow())&&e.i(new Te("ad-skip-state-changed")),e.l.wa(e.j,"error",L),e.l.o(e.h,"timeupdate",function(){if(e.h.duration){var F=U.canSkipNow();N!=F&&0<U.getRemainingTime()&&0<U.getDuration()&&e.i(new Te("ad-skip-state-changed")),N=F}}),e.l.wa(e.j,"firstquartile",function(){M(),e.i(new Te("ad-first-quartile"))}),e.l.wa(e.j,"midpoint",function(){M(),e.i(new Te("ad-midpoint"))}),e.l.wa(e.j,"thirdquartile",function(){M(),e.i(new Te("ad-third-quartile"))}),e.l.wa(e.j,"complete",I),e.l.o(e.h,"play",function(){e.i(new Te("ad-resumed"))}),e.l.o(e.h,"pause",function(){var F=e.j.getConfiguration();e.h.currentTime>=F.playRangeEnd?I():e.i(new Te("ad-paused"))}),e.l.o(e.h,"volumechange",function(){e.h.muted?e.i(new Te("ad-muted")):e.i(new Te("ad-volume-changed"))}),Le(V,4),jr(e),t.startTime&&t.endTime&&t.endTime!=1/0&&t.startTime!=t.endTime&&(j=t.endTime-t.startTime,0<j&&e.j.configure("playRangeEnd",j)),t.playoutLimit&&!e.m&&(e.m=new Ke(function(){e.ba()}).$(t.playoutLimit),e.j.configure("playRangeEnd",t.playoutLimit)),O(V,e.j.Wb(e.h),6);case 6:return e.D.has(t)?O(V,e.D.get(t),10):O(V,e.j.load(t.uri,null,t.mimeType||void 0),8);case 10:return B=V.h,e.D.delete(t),B?O(V,e.j.load(B),8):O(V,e.j.load(t.uri,null,t.mimeType||void 0),8);case 8:e.h.play(),Y=(Date.now()-f)/1e3,e.i(new Te("ads-loaded",new Map().set("loadTime",Y))),e.C&&e.g.play(),t.overlay&&(e.l.o(e.g,"seeking",function(){var F=e.g.currentTime-t.startTime;.1<Math.abs(F-e.h.currentTime)&&(e.h.currentTime=F)}),e.l.o(e.g,"seeked",function(){var F=e.g.currentTime;(F<t.startTime||t.endTime&&F>t.endTime)&&e.ba()})),Ge(V,0);break;case 4:if(P=je(V),!e.L)return V.return();L(P),ve(V)}})}function T0(e,t){if(t.displayOnBackground&&(e.g.style.zIndex="1"),t.currentVideo!=null){var n=t.currentVideo;e.g.style.transformOrigin="top left";var i=!0,a=[],l=n.topLeft.x/n.viewport.x*100;0<l&&100>=l&&(a.push("translateX("+l+"%)"),i=!1),l=n.topLeft.y/n.viewport.y*100,0<l&&100>=l&&(a.push("translateY("+l+"%)"),i=!1),l=n.size.x/n.viewport.x,1>l&&a.push("scaleX("+l+")"),n=n.size.y/n.viewport.y,1>l&&a.push("scaleY("+n+")"),a.length&&(e.g.style.transform=a.join(" ")),i&&(e.g.style.transition="transform 250ms")}e.B&&(e.B.style.pointerEvents="none",t.background&&(e.B.style.background=t.background)),e.H&&(e.H.style.background=t.overlay?"":"rgb(0, 0, 0)")}function RT(e,t){(!t||t.displayOnBackground)&&(e.g.style.zIndex=""),t&&t.currentVideo==null||(e.g.style.transformOrigin="",e.g.style.transition="",e.g.style.transform=""),e.B&&(e.B.style.pointerEvents="",!t||t.background)&&(e.B.style.background=""),e.H&&(e.H.style.background="")}function r4(e,t){var n,i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne,ie,ue,ce,le,Se,ke,pt,$e,fn,Ht,Lt,_t,an,Rt,Yt;return q(function(vt){switch(vt.g){case 1:if(n=[],!t||(i=t.values.find(function(Dt){return Dt.key=="X-ASSET-URI"}),a=t.values.find(function(Dt){return Dt.key=="X-ASSET-LIST"}),!i&&!a))return vt.return(n);if(l=null,(f=t.values.find(function(Dt){return Dt.key=="ID"}))&&(l=f.data),d=l==null?Math.floor(10*t.startTime)/10:t.startTime,(g=t.endTime)&&t.endTime!=1/0&&typeof t.endTime=="number"&&(g=l==null?Math.floor(10*t.endTime)/10:t.endTime),m=t.values.find(function(Dt){return Dt.key=="X-RESTRICT"}),T=S=!0,m&&m.data&&(x=m.data,S=!x.includes("SKIP"),T=!x.includes("JUMP")),M=S?0:null,(R=t.values.find(function(Dt){return Dt.key=="X-ENABLE-SKIP-AFTER"}))&&(L=R.data,M=parseFloat(L),isNaN(M)&&(M=S?0:null)),I=null,(U=t.values.find(function(Dt){return Dt.key=="X-ENABLE-SKIP-FOR"}))&&(N=U.data,I=parseFloat(N),isNaN(M)&&(I=null)),j=null,(B=t.values.find(function(Dt){return Dt.key=="X-RESUME-OFFSET"}))&&(Y=B.data,j=parseFloat(Y),isNaN(j)&&(j=null)),P=null,(V=t.values.find(function(Dt){return Dt.key=="X-PLAYOUT-LIMIT"}))&&(F=V.data,P=parseFloat(F),isNaN(P)&&(P=null)),Q=ee=K=!1,(ne=t.values.find(function(Dt){return Dt.key=="CUE"}))&&(ie=ne.data,K=ie.includes("ONCE"),ee=ie.includes("PRE"),Q=ie.includes("POST")),ue=!1,(ce=t.values.find(function(Dt){return Dt.key=="X-TIMELINE-OCCUPIES"}))?(le=ce.data,ue=le.includes("RANGE")):!B&&e.J.V()&&(ue=!ee&&!Q),i){if(Se=i.data,!Se)return vt.return(n);n.push({id:l,groupId:null,startTime:d,endTime:g,uri:Se,mimeType:null,isSkippable:S,skipOffset:M,skipFor:I,canJump:T,resumeOffset:j,playoutLimit:P,once:K,pre:ee,post:Q,timelineRange:ue,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null}),vt.A(2);break}if(!a){vt.A(2);break}return ke=a.data,ke?(Le(vt,4),pt={type:11},O(vt,wp(e,ke,pt),6)):vt.return(n);case 6:for($e=vt.h,fn=Rn($e),Ht=JSON.parse(fn),(Lt=Ht["SKIP-CONTROL"])&&(_t=Lt["ENABLE-SKIP-AFTER"],typeof _t=="number"&&(M=parseFloat(_t),isNaN(_t)&&(M=S?0:null)),an=Lt["ENABLE-SKIP-FOR"],typeof an=="number"&&(I=parseFloat(an),isNaN(an)&&(I=null))),Rt=0;Rt<Ht.ASSETS.length;Rt++)Yt=Ht.ASSETS[Rt],Yt.URI&&n.push({id:l+"_shaka_asset_"+Rt,groupId:l,startTime:d,endTime:g,uri:Yt.URI,mimeType:null,isSkippable:S,skipOffset:M,skipFor:I,canJump:T,resumeOffset:j,playoutLimit:P,once:K,pre:ee,post:Q,timelineRange:ue,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});Ge(vt,2);break;case 4:je(vt);case 2:return vt.return(n)}})}function hS(e){for(var t=[],n=b(e.I),i=n.next(),a={};!i.done;a={qc:void 0},i=n.next())i=i.value,i.overlay||(a.qc={start:i.startTime,end:null},i.pre?(a.qc.start=0,a.qc.end=null):i.post?(a.qc.start=-1,a.qc.end=null):i.timelineRange&&(a.qc.end=i.endTime),t.find(function(l){return function(f){return l.qc.start==f.start&&l.qc.end==f.end}}(a))||t.push(a.qc));e.i(new Te("ad-cue-points-changed",new Map().set("cuepoints",t)))}function jr(e){e.j.configure(e.J.di()),e.j.configure("ads.disableHLSInterstitial",!0),e.j.configure("ads.disableDASHInterstitial",!0),e.j.configure("playRangeEnd",1/0),Eg(e.J.Db(),e.j.Db())}function wp(e,t,n){var i,a,l;return q(function(f){return f.g==1?(i=yi([t],Va()),a=e.J.Db().request(7,i,n),O(f,a.promise,2)):(l=f.h,f.return(l.data))})}function DT(e){return(e=e.mimeType)?!e.startsWith("image/")&&e!=="text/html":!0}function jv(e,t){if(!(e.M.has(t)||e.S&&!e.S.allowPreloadOnDomElements)){var n=function(l){var f=document.createElement("link");return f.rel="preload",f.href=l,f.as="image",document.head.appendChild(f),f},i=[];if(t.background){var a=t.background.match(/url\(('|")?([^'"()]+)('|")\)?/);a&&i.push(n(a[2]))}t.mimeType.startsWith("image/")&&i.push(n(t.uri)),e.M.set(t,i)}}function go(e,t){if(e.M.has(t)){var n=e.M.get(t);n=b(n);for(var i=n.next();!i.done;i=n.next())i=i.value,i.parentNode.removeChild(i);e.M.delete(t)}}function tt(e,t,n,i,a){this.h=e,this.j=nf(this.h.skipOffset),this.g=a,this.i=t,this.l=n,this.s=i,this.m=!1}w=tt.prototype,w.needsSkipUI=function(){return!0},w.isClientRendering=function(){return!1},w.hasCustomClick=function(){return!1},w.isUsingAnotherMediaElement=function(){return!1},w.getDuration=function(){return this.h.durationInSeconds},w.getMinSuggestedDuration=function(){return this.getDuration()},w.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.g.currentTime},w.isPaused=function(){return this.g.paused},w.isSkippable=function(){return typeof this.j=="number"},w.getTimeUntilSkippable=function(){if(typeof this.j!="number")return this.getRemainingTime();var e=this.getRemainingTime()+this.j-this.getDuration();return Math.max(e,0)},w.canSkipNow=function(){return this.getTimeUntilSkippable()==0},w.skip=function(){this.m=!0,this.g.currentTime+=this.getRemainingTime()},w.pause=function(){return this.g.pause()},w.play=function(){return this.g.play()},w.getVolume=function(){return this.g.volume},w.setVolume=function(e){this.g.volume=e},w.isMuted=function(){return this.g.muted},w.isLinear=function(){return this.s},w.resize=function(){},w.setMuted=function(e){this.g.muted=e},w.getSequenceLength=function(){return this.l?this.l:1},w.getPositionInSequence=function(){return this.i?this.i:1},w.getTitle=function(){return this.h.adTitle},w.getDescription=function(){return""},w.getVastMediaBitrate=function(){return 0},w.getVastMediaHeight=function(){return 0},w.getVastMediaWidth=function(){return 0},w.getAdId=function(){return this.h.adId},w.getCreativeAdId=function(){return this.h.creativeId},w.getAdvertiserName=function(){return""},w.getMediaUrl=function(){return null},w.getTimeOffset=function(){return 0},w.getPodIndex=function(){return 0},w.release=function(){this.l=this.i=this.g=this.h=null},xe("shaka.ads.MediaTailorAd",tt),tt.prototype.release=tt.prototype.release,tt.prototype.getPodIndex=tt.prototype.getPodIndex,tt.prototype.getTimeOffset=tt.prototype.getTimeOffset,tt.prototype.getMediaUrl=tt.prototype.getMediaUrl,tt.prototype.getAdvertiserName=tt.prototype.getAdvertiserName,tt.prototype.getCreativeAdId=tt.prototype.getCreativeAdId,tt.prototype.getAdId=tt.prototype.getAdId,tt.prototype.getVastMediaWidth=tt.prototype.getVastMediaWidth,tt.prototype.getVastMediaHeight=tt.prototype.getVastMediaHeight,tt.prototype.getVastMediaBitrate=tt.prototype.getVastMediaBitrate,tt.prototype.getDescription=tt.prototype.getDescription,tt.prototype.getTitle=tt.prototype.getTitle,tt.prototype.getPositionInSequence=tt.prototype.getPositionInSequence,tt.prototype.getSequenceLength=tt.prototype.getSequenceLength,tt.prototype.setMuted=tt.prototype.setMuted,tt.prototype.resize=tt.prototype.resize,tt.prototype.isLinear=tt.prototype.isLinear,tt.prototype.isMuted=tt.prototype.isMuted,tt.prototype.setVolume=tt.prototype.setVolume,tt.prototype.getVolume=tt.prototype.getVolume,tt.prototype.play=tt.prototype.play,tt.prototype.pause=tt.prototype.pause,tt.prototype.skip=tt.prototype.skip,tt.prototype.canSkipNow=tt.prototype.canSkipNow,tt.prototype.getTimeUntilSkippable=tt.prototype.getTimeUntilSkippable,tt.prototype.isSkippable=tt.prototype.isSkippable,tt.prototype.isPaused=tt.prototype.isPaused,tt.prototype.getRemainingTime=tt.prototype.getRemainingTime,tt.prototype.getMinSuggestedDuration=tt.prototype.getMinSuggestedDuration,tt.prototype.getDuration=tt.prototype.getDuration,tt.prototype.isUsingAnotherMediaElement=tt.prototype.isUsingAnotherMediaElement,tt.prototype.hasCustomClick=tt.prototype.hasCustomClick,tt.prototype.isClientRendering=tt.prototype.isClientRendering,tt.prototype.needsSkipUI=tt.prototype.needsSkipUI;function Cp(e,t,n,i){this.C=e,this.L=t,this.h=n,this.l=null,this.R=NaN,this.i=i,this.K=!1,this.B=null,this.j=[],this.N=[],this.M=this.D=this.g=null,this.H=new Map,this.m=[],this.u=[],this.I="",this.P=!0,this.J="",this.s=new Ft}Cp.prototype.stop=function(){for(var e=b(this.m),t=e.next();!t.done;t=e.next())t=t.value,this.s.Ea(t.target,t.type,t.listener);Yu(this),this.m=[],this.u=[],this.I="",this.P=!0,this.J="",this.B=null,this.j=[],this.N=[],this.H.clear()},Cp.prototype.release=function(){this.stop(),this.s&&this.s.release()},Cp.prototype.onManifestUpdated=function(e){this.K=e,this.I!=""&&(zv(this,this.I,this.P),this.P=!1)},Cp.prototype.getCuePoints=function(){for(var e=[],t=b(this.j),n=t.next();!n.done;n=t.next()){n=b(n.value.ads);for(var i=n.next();!i.done;i=n.next())i=i.value,e.push({start:i.startTimeInSeconds,end:i.startTimeInSeconds+i.durationInSeconds})}return e};function pS(e,t,n){var i,a,l,f,d,g,m,S,T,x,M,R;q(function(L){if(L.g==1)return i={type:7},a=yi([t],Va()),a.method="POST",n&&(l=JSON.stringify(n),a.body=Do(l)),f=e.L.request(7,a,i),Le(L,2),O(L,f.promise,4);if(L.g!=2){if(d=L.h,g=Rn(d.data),m=JSON.parse(g),m.manifestUrl&&m.trackingUrl)S=new un(t),T=new un(m.trackingUrl),e.I=S.resolve(T).toString(),x=Date.now()/1e3,M=x-e.R,e.i(new Te("ads-loaded",new Map().set("loadTime",M))),R=new un(m.manifestUrl),e.l.resolve(S.resolve(R).toString()),e.l=null;else throw Error("Insufficient data from MediaTailor.");return Ge(L,0)}if(je(L),!e.J.length)return e.l.reject("MediaTailor request returned an error and there was no backup asset uri provided."),e.l=null,L.return();e.l.resolve(e.J),e.l=null,ve(L)})}function zv(e,t,n){var i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N;q(function(j){if(j.g==1)return i={type:8},a=yi([t],Va()),l=e.L.request(7,a,i),Le(j,2),O(j,l.promise,4);if(j.g!=2){if(f=j.h,d=[],g=Rn(f.data),m=JSON.parse(g),0<m.avails.length){if(JSON.stringify(e.j)!=JSON.stringify(m.avails)){for(e.j=m.avails,S=b(e.j),T=S.next();!T.done;T=S.next())for(x=T.value,M=b(x.nonLinearAdsList),R=M.next();!R.done;R=M.next())for(L=R.value,I=b(L.nonLinearAdList),U=I.next();!U.done;U=I.next())N=U.value,IT(e,N);d=e.getCuePoints(),e.i(new Te("ad-cue-points-changed",new Map().set("cuepoints",d)))}}else e.j.length&&e.i(new Te("ad-cue-points-changed",new Map().set("cuepoints",d))),Yu(e),e.j=[];return n&&(e.K||0<d.length)&&fy(e),Ge(j,0)}je(j),ve(j)})}function IT(e,t){var n,i,a,l,f,d,g,m;q(function(S){if(S.g==1)return!t.staticResource||(n=Mp(t),e.H.get(n))?S.return():(i={type:9},a=yi([t.staticResource],Va()),l=e.L.request(7,a,i),Le(S,2),e.H.set(n,[]),O(S,l.promise,4));if(S.g!=2)return f=S.h,d=Rn(f.data),g=JSON.parse(d),m=g.apps,e.H.set(n,m),Ge(S,0);je(S),e.H.delete(n),ve(S)})}function Mp(e){return[e.adId,e.adParameters,e.adSystem,e.adTitle,e.creativeAdId,e.creativeId,e.creativeSequence,e.height,e.width,e.staticResource].join("")}function fy(e){bp(e),e.K||(LT(e),e.s.o(e.h,"seeked",function(){LT(e)}),e.s.o(e.h,"ended",function(){Yu(e)})),e.s.o(e.h,"timeupdate",function(){bp(e)})}function LT(e){var t=e.h.currentTime;if(t!=0&&e.B==null){for(var n,i,a=b(e.j),l=a.next();!l.done;l=a.next()){l=l.value;for(var f=b(l.ads),d=f.next();!d.done;d=f.next())if(d=d.value,!i)d.startTimeInSeconds<t&&(i=d,n=l);else if(d.startTimeInSeconds<t&&d.startTimeInSeconds>i.startTimeInSeconds+i.durationInSeconds){i=d,n=l;break}}n&&i&&!e.N.includes(i.adId)&&(e.B=t,e.h.currentTime=n.startTimeInSeconds)}}function bp(e){if(e.h.duration&&(e.g||e.j.length)){var t=e.h.currentTime,n=!1;if(e.g){n=!0;var i=e.D,a=i.startTimeInSeconds+.5*i.durationInSeconds,l=i.startTimeInSeconds+.75*i.durationInSeconds;t>=i.startTimeInSeconds+.25*i.durationInSeconds&&!e.u.includes("firstQuartile")?(e.u.push("firstQuartile"),zr(e,"firstQuartile")):t>=a&&!e.u.includes("midpoint")?(e.u.push("midpoint"),zr(e,"midpoint")):t>=l&&!e.u.includes("thirdQuartile")&&(e.u.push("thirdQuartile"),zr(e,"thirdQuartile")),i=e.g.getRemainingTime(),a=e.g.getDuration(),e.g.canSkipNow()&&0<i&&0<a&&zr(e,"skipStateChanged"),0<a&&(0>=i||i>a)&&Yu(e)}if(!e.g||!e.g.isLinear()){e:for(i=b(e.j),a=i.next();!a.done&&(a=a.value,!(e.g&&e.g.isLinear()));a=i.next())for(l=0;l<a.ads.length;l++){var f=a.ads[l],d=f.startTimeInSeconds+f.durationInSeconds;if(f.startTimeInSeconds<=t&&d>t){if(e.N.includes(f.adId)){if(e.h.ended)continue;e.h.currentTime=d;break e}Yu(e),e.M=a,e.g=new tt(f,l+1,a.ads.length,!0,e.h),e.D=f,l===0&&zr(e,"breakStart"),dy(e);break}}if(!e.g){for(i=b(e.j),a=i.next();!a.done&&(a=a.value,!e.g);a=i.next())for(l=0;l<a.nonLinearAdsList.length;l++)if(f=a.nonLinearAdsList[l],f.nonLinearAdList.length){d=a.startTimeInSeconds;var g=e.H.get(Mp(f.nonLinearAdList[0]));if(d<=t&&g&&g.length){Yu(e),d=e,g=b(g);for(var m=g.next();!m.done;m=g.next())if(m=m.value,m.data.source.length){var S=document.createElement("img");S.src=m.data.source[0].url,S.style.top=(m.placeholder.top||0)+"%",S.style.height=100-(m.placeholder.top||0)+"%",S.style.left=(m.placeholder.left||0)+"%",S.style.maxWidth=100-(m.placeholder.left||0)+"%",S.style.objectFit="contain",S.style.position="absolute",d.C.appendChild(S)}e.M=a,e.g=new tt(f,l+1,a.ads.length,!1,e.h),e.D=f,l===0&&zr(e,"breakStart"),dy(e);break}}}n&&!e.g&&(t=e.h.currentTime,e.B&&e.B>t&&(e.h.currentTime=e.B),e.B=null)}}}function Yu(e){if(e.g){for(;e.C.lastChild;)e.C.removeChild(e.C.firstChild);e.K||e.N.push(e.D.adId);var t=e.g.m;t!==void 0&&t?zr(e,"skip"):zr(e,"complete"),t=b(e.m);for(var n=t.next();!n.done;n=t.next())n=n.value,e.s.Ea(n.target,n.type,n.listener);e.m=[],e.u=[],t=e.g.getPositionInSequence(),n=e.g.getSequenceLength(),t===n&&zr(e,"breakEnd"),e.g=null,e.D=null,e.M=null}}function dy(e){var t=!1;e.h.paused?t=!0:(zr(e,"impression"),zr(e,"start")),e.m.push({target:e.h,type:"volumechange",listener:function(){e.h.muted&&zr(e,"mute")}}),e.m.push({target:e.h,type:"volumechange",listener:function(){e.h.muted||zr(e,"unmute")}}),e.m.push({target:e.h,type:"play",listener:function(){t?(zr(e,"impression"),zr(e,"start"),t=!1):zr(e,"resume")}}),e.m.push({target:e.h,type:"pause",listener:function(){zr(e,"pause")}});for(var n=b(e.m),i=n.next();!i.done;i=n.next())i=i.value,e.s.o(i.target,i.type,i.listener)}function zr(e,t){var n=e.D.trackingEvents.find(function(l){return l.eventType==t});if(n||(n=e.M.adBreakTrackingEvents.find(function(l){return l.eventType==t})),n){var i={type:10};n=b(n.beaconUrls);for(var a=n.next();!a.done;a=n.next())(a=a.value)&&a!=""&&(a=yi([a],Va()),a.method="POST",e.L.request(7,a,i))}switch(t){case"impression":e.i(new Te("ad-impression"));break;case"start":e.i(new Te("ad-started",new Map().set("ad",e.g)));break;case"mute":e.i(new Te("ad-muted"));break;case"unmute":e.i(new Te("ad-volume-changed"));break;case"resume":e.i(new Te("ad-resumed"));break;case"pause":e.i(new Te("ad-paused"));break;case"firstQuartile":e.i(new Te("ad-first-quartile"));break;case"midpoint":e.i(new Te("ad-midpoint"));break;case"thirdQuartile":e.i(new Te("ad-third-quartile"));break;case"complete":e.i(new Te("ad-complete")),e.i(new Te("ad-stopped"));break;case"skip":e.i(new Te("ad-skipped")),e.i(new Te("ad-stopped"));break;case"breakStart":e.C.setAttribute("ad-active","true");break;case"breakEnd":e.C.removeAttribute("ad-active");break;case"skipStateChanged":e.i(new Te("ad-skip-state-changed"))}}function rt(e,t){this.g=e,this.i=null,this.h=t}w=rt.prototype,w.needsSkipUI=function(){return!0},w.isClientRendering=function(){return!1},w.hasCustomClick=function(){return!0},w.isUsingAnotherMediaElement=function(){return!1},w.getDuration=function(){return this.i?this.i.duration:-1},w.getMinSuggestedDuration=function(){return this.getDuration()},w.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1},w.isPaused=function(){return this.h.paused},w.isSkippable=function(){return this.g.isSkippable()},w.getTimeUntilSkippable=function(){var e=this.g.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},w.canSkipNow=function(){return this.getTimeUntilSkippable()==0},w.skip=function(){this.h.currentTime+=this.getRemainingTime()},w.pause=function(){return this.h.pause()},w.play=function(){return this.h.play()},w.getVolume=function(){return this.h.volume},w.setVolume=function(e){this.h.volume=e},w.isMuted=function(){return this.h.muted},w.isLinear=function(){return!0},w.resize=function(){},w.setMuted=function(e){this.h.muted=e},w.getSequenceLength=function(){var e=this.g.getAdPodInfo();return e==null?1:e.getTotalAds()},w.getPositionInSequence=function(){var e=this.g.getAdPodInfo();return e==null?1:e.getAdPosition()},w.getTitle=function(){return this.g.getTitle()},w.getDescription=function(){return this.g.getDescription()},w.getVastMediaBitrate=function(){return 0},w.getVastMediaHeight=function(){return this.g.getVastMediaHeight()},w.getVastMediaWidth=function(){return this.g.getVastMediaWidth()},w.getAdId=function(){return this.g.getAdId()},w.getCreativeAdId=function(){return this.g.getCreativeAdId()},w.getAdvertiserName=function(){return this.g.getAdvertiserName()},w.getMediaUrl=function(){return null},w.getTimeOffset=function(){var e=this.g.getAdPodInfo();return e==null?0:e.getTimeOffset()},w.getPodIndex=function(){var e=this.g.getAdPodInfo();return e==null?0:e.getPodIndex()},w.release=function(){this.h=this.i=this.g=null},xe("shaka.ads.ServerSideAd",rt),rt.prototype.release=rt.prototype.release,rt.prototype.getPodIndex=rt.prototype.getPodIndex,rt.prototype.getTimeOffset=rt.prototype.getTimeOffset,rt.prototype.getMediaUrl=rt.prototype.getMediaUrl,rt.prototype.getAdvertiserName=rt.prototype.getAdvertiserName,rt.prototype.getCreativeAdId=rt.prototype.getCreativeAdId,rt.prototype.getAdId=rt.prototype.getAdId,rt.prototype.getVastMediaWidth=rt.prototype.getVastMediaWidth,rt.prototype.getVastMediaHeight=rt.prototype.getVastMediaHeight,rt.prototype.getVastMediaBitrate=rt.prototype.getVastMediaBitrate,rt.prototype.getDescription=rt.prototype.getDescription,rt.prototype.getTitle=rt.prototype.getTitle,rt.prototype.getPositionInSequence=rt.prototype.getPositionInSequence,rt.prototype.getSequenceLength=rt.prototype.getSequenceLength,rt.prototype.setMuted=rt.prototype.setMuted,rt.prototype.resize=rt.prototype.resize,rt.prototype.isLinear=rt.prototype.isLinear,rt.prototype.isMuted=rt.prototype.isMuted,rt.prototype.setVolume=rt.prototype.setVolume,rt.prototype.getVolume=rt.prototype.getVolume,rt.prototype.play=rt.prototype.play,rt.prototype.pause=rt.prototype.pause,rt.prototype.skip=rt.prototype.skip,rt.prototype.canSkipNow=rt.prototype.canSkipNow,rt.prototype.getTimeUntilSkippable=rt.prototype.getTimeUntilSkippable,rt.prototype.isSkippable=rt.prototype.isSkippable,rt.prototype.isPaused=rt.prototype.isPaused,rt.prototype.getRemainingTime=rt.prototype.getRemainingTime,rt.prototype.getMinSuggestedDuration=rt.prototype.getMinSuggestedDuration,rt.prototype.getDuration=rt.prototype.getDuration,rt.prototype.isUsingAnotherMediaElement=rt.prototype.isUsingAnotherMediaElement,rt.prototype.hasCustomClick=rt.prototype.hasCustomClick,rt.prototype.isClientRendering=rt.prototype.isClientRendering,rt.prototype.needsSkipUI=rt.prototype.needsSkipUI;function hy(e,t,n,i){var a=this;this.u=e,this.l=t,this.j=null,this.H=NaN,this.i=i,this.I=!1,this.B=this.m=this.s=null,this.C="",this.D=[],this.h=new Ft,e=new google.ima.dai.api.UiSettings,e.setLocale(n),this.g=new google.ima.dai.api.StreamManager(this.l,this.u,e),this.i(new Te("ima-stream-manager-loaded",new Map().set("imaStreamManager",this.g))),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(l){Bv(a,l)}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){a.C.length?a.j.resolve(a.C):a.j.reject("IMA Stream request returned an error and there was no backup asset uri provided."),a.j=null}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(l){l=l.getAd(),a.m=new rt(l,a.l),a.B&&(a.m.i=a.B),a.i(new Te("ad-started",new Map().set("ad",a.m))),a.u.setAttribute("ad-active","true")}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){a.u.removeAttribute("ad-active");var l=a.l.currentTime;a.s&&a.s>l&&(a.l.currentTime=a.s,a.s=null)}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(l){a.B=l.getStreamData().adProgressData,a.m&&(a.m.i=a.B)}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){a.i(new Te("ad-first-quartile"))}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){a.i(new Te("ad-midpoint"))}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){a.i(new Te("ad-third-quartile"))}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){a.i(new Te("ad-complete")),a.i(new Te("ad-stopped")),a.u.removeAttribute("ad-active"),a.m=null}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){a.i(new Te("ad-skipped")),a.i(new Te("ad-stopped"))}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(l){var f=l.getStreamData();l=[],f=b(f.cuepoints);for(var d=f.next();!d.done;d=f.next())d=d.value,l.push({start:d.start,end:d.end});a.D=l,a.i(new Te("ad-cue-points-changed",new Map().set("cuepoints",l)))})}w=hy.prototype,w.configure=function(){},w.stop=function(){this.C="",this.s=null,this.D=[]},w.release=function(){this.stop(),this.h&&this.h.release()},w.onCueMetadataChange=function(e){if(e.key&&e.data){var t={};t[e.key]=e.data,this.g.onTimedMetadata(t)}},w.getCuePoints=function(){return this.D};function Bv(e,t){e.i(new Te("ads-loaded",new Map().set("loadTime",Date.now()/1e3-e.H))),t=t.getStreamData().url,e.j.resolve(t),e.j=null,e.I||e.h.o(e.l,"seeked",function(){var n=e.l.currentTime;if(n!=0){e.g.streamTimeForContentTime(n);var i=e.g.previousCuePointForStreamTime(n);i&&!i.played&&(e.s=n,e.l.currentTime=i.start)}})}function Pe(){Tt.call(this),this.h=this.i=this.j=this.g=null,this.m=new m0,this.s=navigator.language,this.l=null}Xe(Pe,Tt),w=Pe.prototype,w.setLocale=function(e){this.s=e},w.configure=function(e){this.l=e,this.g&&this.g.configure(this.l),this.j&&this.j.configure(this.l),this.h&&this.h.configure(this.l)},w.initInterstitial=function(e,t,n){var i=this;this.g&&this.g.release(),this.g=new _c(e,t,n,function(a){return Zf(i,a)}),this.g.configure(this.l)},w.initClientSide=function(e,t,n){var i=this;if(!oe.google||!google.ima||!google.ima.AdsLoader)throw new G(2,10,1e4);this.j&&this.j.release(),this.j=new Ns(e,t,this.s,n,function(a){return Zf(i,a)}),this.j.configure(this.l)},w.release=function(){this.g&&(this.g.release(),this.g=null),this.j&&(this.j.release(),this.j=null),this.i&&(this.i.release(),this.i=null),this.h&&(this.h.release(),this.h=null),Tt.prototype.release.call(this)},w.onAssetUnload=function(){this.g&&this.g.stop(),this.j&&this.j.stop(),this.i&&this.i.stop(),this.h&&this.h.stop(),this.dispatchEvent(new Te("ad-stopped")),this.dispatchEvent(new Te("ad-content-attach-requested")),this.m=new m0},w.requestClientSideAds=function(e){if(!this.j)throw new G(1,10,10001);var t=this.j;t.g&&t.g.destroy(),t.m&&t.m.contentComplete(),t.I=Date.now()/1e3,t.m.requestAds(e)},w.updateClientSideAdsRenderingSettings=function(e){if(!this.j)throw new G(1,10,10001);var t=this.j;t.C=e,t.g&&t.g.updateAdsRenderingSettings(t.C)},w.initMediaTailor=function(e,t,n){var i=this;this.i&&this.i.release(),this.i=new Cp(e,t,n,function(a){return Zf(i,a)})},w.requestMediaTailorStream=function(e,t,n){if(!this.i)throw new G(1,10,10005);var i=this.i;return n=n===void 0?"":n,i.l?e=Promise.reject(new G(1,10,10004)):(i.l=new Bt,pS(i,e,t),i.J=n||"",i.R=Date.now()/1e3,e=i.l),e},w.addMediaTailorTrackingUrl=function(e){if(!this.i)throw new G(1,10,10005);var t=this.i;t.I=e,t.i(new Te("ads-loaded",new Map().set("loadTime",0)))},w.initServerSide=function(e,t){var n=this;if(!oe.google||!google.ima||!google.ima.dai)throw new G(2,10,10002);this.h&&this.h.release(),this.h=new hy(e,t,this.s,function(i){return Zf(n,i)}),this.h.configure(this.l)},w.requestServerSideStream=function(e,t){if(t=t===void 0?"":t,!this.h)throw new G(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;return(n.mpt||n.mpv)&&st('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.'),e.adTagParameters.mpt="shaka-player",e.adTagParameters.mpv="v4.14.12",n=this.h,n.j?e=Promise.reject(new G(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.I=!0),n.j=new Bt,n.g.requestStream(e),n.C=t||"",n.H=Date.now()/1e3,e=n.j),e},w.replaceServerSideAdTagParameters=function(e){if(!this.h)throw new G(1,10,10003);(e.mpt||e.mpv)&&st('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.'),e.mpt="Shaka Player",e.mpv="v4.14.12",this.h.g.replaceAdTagParameters(e)},w.getServerSideCuePoints=function(){return Gt("AdManager.getServerSideCuePoints","Please use getCuePoints function."),this.getCuePoints()},w.getCuePoints=function(){var e=[];return this.h&&(e=e.concat(this.h.getCuePoints())),this.i&&(e=e.concat(this.i.getCuePoints())),e},w.getStats=function(){var e=this.m;return{loadTimes:e.g,averageLoadTime:cS(e),started:e.h,overlayAds:e.j,playedCompletely:e.l,skipped:e.m,errors:e.i}},w.onManifestUpdated=function(e){this.i&&this.i.onManifestUpdated(e)},w.onDashTimedMetadata=function(e){this.h&&e.schemeIdUri=="urn:google:dai:2018"&&this.h.g.processMetadata(e.schemeIdUri,e.eventNode?e.eventNode.attributes.messageData:null,e.startTime)},w.onHlsTimedMetadata=function(e,t){this.h&&this.h.g.processMetadata("ID3",e.data,t)},w.onCueMetadataChange=function(e){this.h&&this.h.onCueMetadataChange(e)},w.onHLSInterstitialMetadata=function(e,t,n){this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,e,t),this.g&&t2(this.g,n))},w.onDASHInterstitialMetadata=function(e,t,n){if(!this.l||!this.l.disableDASHInterstitial){var i=n.schemeIdUri;if(i=="urn:mpeg:dash:event:alternativeMPD:insert:2025"||i=="urn:mpeg:dash:event:alternativeMPD:replace:2025"){if(this.g||this.initInterstitial(null,e,t),this.g&&(e=this.g,t=n.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:replace:2025",i=n.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:insert:2025",t||i)){for(var a=n.startTime,l=n.endTime,f=null,d=0,g,m=b(n.eventNode.children),S=m.next();!S.done;S=m.next())if(S=S.value,S.tagName=="AlternativeMPD"){if(S=S.attributes.uri){g=S;break}}else if(S.tagName=="InsertPresentation"||S.tagName=="ReplacePresentation"){var T=S.attributes.url;if(T){g=T,(m=ct(S,"maxDuration",Ci))&&(f=m/n.timescale),(m=ct(S,"returnOffset",Ci))&&(d=m/n.timescale),t&&d&&(l=a+d);break}}g&&v0(e,[{id:n.id,groupId:null,startTime:a,endTime:l,uri:g,mimeType:null,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:i?d:null,playoutLimit:f,once:!1,pre:!1,post:!1,timelineRange:t&&!i,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null}])}}else(i=="urn:mpeg:dash:event:2012"||i=="urn:scte:dash:scte214-events")&&n.eventNode&&Wn(n.eventNode,"OverlayEvent")&&(this.g||this.initInterstitial(null,e,t),this.g&&i4(this.g,n))}},w.addCustomInterstitial=function(e){if(!this.g)throw new G(1,10,10006);v0(this.g,[e])},w.addAdUrlInterstitial=function(e){if(!this.g)throw new G(1,10,10006);return this.g.addAdUrlInterstitial(e)},w.getInterstitialPlayer=function(){if(!this.g)throw new G(1,10,10006);return this.g.vc()};function Zf(e,t){if(t&&t.type)switch(t.type){case"ads-loaded":e.m.g.push(t.loadTime);break;case"ad-started":e.m.h++;var n=t.ad;n&&!n.isLinear()&&e.m.j++;break;case"ad-complete":e.m.l++;break;case"ad-skipped":e.m.m++;break;case"ad-error":e.m.i++}e.dispatchEvent(t)}xe("shaka.ads.AdManager",Pe),Pe.prototype.getInterstitialPlayer=Pe.prototype.getInterstitialPlayer,Pe.prototype.addAdUrlInterstitial=Pe.prototype.addAdUrlInterstitial,Pe.prototype.addCustomInterstitial=Pe.prototype.addCustomInterstitial,Pe.prototype.onDASHInterstitialMetadata=Pe.prototype.onDASHInterstitialMetadata,Pe.prototype.onHLSInterstitialMetadata=Pe.prototype.onHLSInterstitialMetadata,Pe.prototype.onCueMetadataChange=Pe.prototype.onCueMetadataChange,Pe.prototype.onHlsTimedMetadata=Pe.prototype.onHlsTimedMetadata,Pe.prototype.onDashTimedMetadata=Pe.prototype.onDashTimedMetadata,Pe.prototype.onManifestUpdated=Pe.prototype.onManifestUpdated,Pe.prototype.getStats=Pe.prototype.getStats,Pe.prototype.getCuePoints=Pe.prototype.getCuePoints,Pe.prototype.getServerSideCuePoints=Pe.prototype.getServerSideCuePoints,Pe.prototype.replaceServerSideAdTagParameters=Pe.prototype.replaceServerSideAdTagParameters,Pe.prototype.requestServerSideStream=Pe.prototype.requestServerSideStream,Pe.prototype.initServerSide=Pe.prototype.initServerSide,Pe.prototype.addMediaTailorTrackingUrl=Pe.prototype.addMediaTailorTrackingUrl,Pe.prototype.requestMediaTailorStream=Pe.prototype.requestMediaTailorStream,Pe.prototype.initMediaTailor=Pe.prototype.initMediaTailor,Pe.prototype.updateClientSideAdsRenderingSettings=Pe.prototype.updateClientSideAdsRenderingSettings,Pe.prototype.requestClientSideAds=Pe.prototype.requestClientSideAds,Pe.prototype.onAssetUnload=Pe.prototype.onAssetUnload,Pe.prototype.release=Pe.prototype.release,Pe.prototype.initClientSide=Pe.prototype.initClientSide,Pe.prototype.initInterstitial=Pe.prototype.initInterstitial,Pe.prototype.configure=Pe.prototype.configure,Pe.prototype.setLocale=Pe.prototype.setLocale,Pe.ADS_LOADED="ads-loaded",Pe.AD_STARTED="ad-started",Pe.AD_FIRST_QUARTILE="ad-first-quartile",Pe.AD_MIDPOINT="ad-midpoint",Pe.AD_THIRD_QUARTILE="ad-third-quartile",Pe.AD_COMPLETE="ad-complete",Pe.AD_STOPPED="ad-stopped",Pe.AD_SKIPPED="ad-skipped",Pe.AD_VOLUME_CHANGED="ad-volume-changed",Pe.AD_MUTED="ad-muted",Pe.AD_PAUSED="ad-paused",Pe.AD_RESUMED="ad-resumed",Pe.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",Pe.CUEPOINTS_CHANGED="ad-cue-points-changed",Pe.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",Pe.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",Pe.AD_CLICKED="ad-clicked",Pe.AD_PROGRESS="ad-progress",Pe.AD_BUFFERING="ad-buffering",Pe.AD_IMPRESSION="ad-impression",Pe.AD_DURATION_CHANGED="ad-duration-changed",Pe.AD_CLOSED="ad-closed",Pe.AD_LOADED="ad-loaded",Pe.ALL_ADS_COMPLETED="all-ads-completed",Pe.AD_LINEAR_CHANGED="ad-linear-changed",Pe.AD_METADATA="ad-metadata",Pe.AD_RECOVERABLE_ERROR="ad-recoverable-error",Pe.AD_ERROR="ad-error",Pe.AD_BREAK_READY="ad-break-ready",Pe.AD_INTERACTION="ad-interaction",Pe.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested",Pe.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested",Pe.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested",ch=function(){return new Pe};function Pv(e){return JSON.stringify(e,function(t,n){if(typeof n!="function"){if(n instanceof Event||n instanceof Te){var i={};for(a in n)(t=n[a])&&typeof t=="object"?a=="detail"&&(i[a]=t):a in Event||(i[a]=t);return i}if(n instanceof Error){var a=new Set(["name","message","stack"]);for(i in n)a.add(i);for(i=b(Object.getOwnPropertyNames(n)),t=i.next();!t.done;t=i.next())a.add(t.value);for(i={},a=b(a),t=a.next();!t.done;t=a.next())t=t.value,i[t]=n[t];n={__type__:"Error",contents:i}}else if(n instanceof TimeRanges){for(a={__type__:"TimeRanges",length:n.length,start:[],end:[]},n=b(Ya(n)),i=n.next();!i.done;i=n.next())i=i.value,t=i.end,a.start.push(i.start),a.end.push(t);n=a}else n=ArrayBuffer.isView(n)&&n.BYTES_PER_ELEMENT===1?{__type__:"Uint8Array",entries:Array.from(n)}:typeof n=="number"?isNaN(n)?"NaN":isFinite(n)?n:0>n?"-Infinity":"Infinity":n;return n}})}function gS(e){return JSON.parse(e,function(t,n){if(n=="NaN")var i=NaN;else if(n=="-Infinity")i=-1/0;else if(n=="Infinity")i=1/0;else if(n&&typeof n=="object"&&n.__type__=="TimeRanges")i=Hv(n);else if(n&&typeof n=="object"&&n.__type__=="Uint8Array")i=new Uint8Array(n.entries);else if(n&&typeof n=="object"&&n.__type__=="Error"){t=n.contents,n=Error(t.message);for(i in t)n[i]=t[i];i=n}else i=n;return i})}function Hv(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}var OT="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),mS="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Gv=["loop","playbackRate"],Vv=["pause","play"],py=new Map().set("getAssetUri",2).set("getAudioLanguages",4).set("getAudioLanguagesAndRoles",4).set("getBufferFullness",1).set("getBufferedInfo",2).set("getExpiration",2).set("getKeyStatuses",2).set("getPlaybackRate",2).set("getTextLanguages",4).set("getTextLanguagesAndRoles",4).set("getImageTracks",2).set("getThumbnails",2).set("isAudioOnly",10).set("isBuffering",1).set("isInProgress",1).set("isLive",10).set("isTextTrackVisible",1).set("keySystem",10).set("seekRange",1).set("getLoadMode",10).set("getManifestType",10).set("isFullyLoaded",1).set("isEnded",1),il=new Map().set("getConfiguration",4).set("getConfigurationForLowLatency",4).set("getStats",5).set("getAudioTracks",2).set("getTextTracks",2).set("getVariantTracks",2),Xl=new Map().set("getPlayheadTimeAsDate",1).set("getPresentationStartTimeAsDate",20).set("getSegmentAvailabilityDuration",20),Xu=[["getConfiguration","configure","getConfigurationForLowLatency","configurationForLowLatency"]],Ja=[["isTextTrackVisible","setTextTrackVisibility"]],Da="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure configurationForLowLatency getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectAudioTrack selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),n2=["attach","attachCanvas","detach","load","unload"];function yS(e,t,n,i,a,l,f){var d=this;this.I=e,this.L=f,this.l=new Ke(t),this.M=n,this.u=!1,this.B=i,this.H=a,this.N=l,this.i=this.m=!1,this.K="",this.s=null,this.C=function(){return qv(d)},this.D=function(g,m){switch(g=gS(m),g.type){case"event":var S=g.targetName,T=Ah(g.event);d.B(S,T);break;case"update":S=g.update;for(T in S){g=d.g[T]||{};for(var x in S[T])g[x]=S[T][x]}d.u&&(d.M(),d.u=!1);break;case"asyncComplete":if(x=g.id,T=g.error,m=g.res,g=d.h.get(x),d.h.delete(x),g)if(T){x=new G(T.severity,T.category,T.code);for(S in T)x[S]=T[S];g.reject(x)}else g.resolve(m)}},this.g={video:{},player:{}},this.J=0,this.h=new Map,this.j=null,E0.add(this)}w=yS.prototype,w.destroy=function(){return E0.delete(this),Yv(this),Fl&&UT(this),this.l&&(this.l.stop(),this.l=null),this.H=this.B=null,this.i=this.m=!1,this.D=this.C=this.j=this.h=this.g=this.s=null,Promise.resolve()},w.Qa=function(){return this.i},w.uf=function(){return this.K},w.init=function(){if(this.I.length)if(oe.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0,this.l.Ia();var e=new chrome.cast.SessionRequest(this.I,[],null,this.L,null);e=new chrome.cast.ApiConfig(e,function(t){for(var n=b(E0),i=n.next();!i.done;i=n.next()){i=i.value;var a=t;i.j=new Bt,i.u=!0,gy(i,a)}},function(t){for(var n=b(E0),i=n.next();!i.done;i=n.next())i=i.value,dh=t=="available",i.l.Ia()},"origin_scoped"),chrome.cast.initialize(e,function(){},function(){}),dh&&this.l.$(vS),(e=Fl)&&e.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new Bt,this.u=!0,gy(this,e)):Fl=null}else oe.__onGCastApiAvailable!==kT&&(Xv=oe.__onGCastApiAvailable||null,oe.__onGCastApiAvailable=kT)},w.lh=function(e){this.s=e,this.i&&Jf(this,{type:"appData",appData:this.s})},w.cast=function(){var e=this;return q(function(t){if(!e.m)throw new G(1,8,8e3);if(!dh)throw new G(1,8,8001);if(e.i)throw new G(1,8,8002);return e.j=new Bt,chrome.cast.requestSession(function(n){return gy(e,n)},function(n){return fh(e,n)}),O(t,e.j,0)})};function i2(e){e.i&&chrome.cast.requestSession(function(t){return gy(e,t)},function(t){return fh(e,t)})}w.qd=function(){if(this.i){if(Yv(this),Fl){UT(this);try{Fl.stop(function(){},function(){})}catch{}Fl=null}qv(this)}},w.get=function(e,t){var n=this;if(e=="video"){if(Vv.includes(t))return function(){return n.Fi.apply(n,[e,t].concat(Ue(xt.apply(0,arguments))))}}else if(e=="player"){if(Xl.has(t)&&!this.get("player","isLive")())return function(){};if(Da.includes(t))return function(){return n.Fi.apply(n,[e,t].concat(Ue(xt.apply(0,arguments))))};if(n2.includes(t))return function(){return n.$k.apply(n,[e,t].concat(Ue(xt.apply(0,arguments))))};if(py.has(t)||il.has(t))return function(){return n.g[e][t]}}return this.g[e][t]},w.set=function(e,t,n){this.g[e][t]=n,Jf(this,{type:"set",targetName:e,property:t,value:n})};function gy(e,t){var n=e.N();Fl=t,t.addUpdateListener(e.C),t.addMessageListener("urn:x-cast:com.google.shaka.v2",e.D),qv(e),Jf(e,{type:"init",initState:n,appData:e.s}),e.j.resolve()}function fh(e,t){var n=8003;switch(t.code){case"cancel":n=8004;break;case"timeout":n=8005;break;case"receiver_unavailable":n=8006}e.j.reject(new G(2,8,n,t))}w.Fi=function(e,t){Jf(this,{type:"call",targetName:e,methodName:t,args:xt.apply(2,arguments)})},w.$k=function(e,t){var n=xt.apply(2,arguments),i=new Bt,a=this.J.toString();this.J++,this.h.set(a,i);try{Jf(this,{type:"asyncCall",targetName:e,methodName:t,args:n,id:a})}catch(l){i.reject(l)}return i};function UT(e){var t=Fl;t.removeUpdateListener(e.C),t.removeMessageListener("urn:x-cast:com.google.shaka.v2",e.D)}function qv(e){var t=Fl?Fl.status=="connected":!1;if(e.i&&!t){e.H();for(var n in e.g)e.g[n]={};Yv(e)}e.i=t,e.K=t?Fl.receiver.friendlyName:"",e.l.Ia()}function Yv(e){if(e.h)for(var t=b(e.h.keys()),n=t.next();!n.done;n=t.next()){n=n.value;var i=e.h.get(n);e.h.delete(n),i.reject(new G(1,7,7e3))}}function Jf(e,t){t=Pv(t);var n=Fl;try{n.sendMessage("urn:x-cast:com.google.shaka.v2",t,function(){},sT)}catch(i){throw t=new G(2,8,8005,i),n=new Te("error",new Map().set("detail",t)),e.B("player",n),e.qd(),t}}var vS=.02,dh=!1,Fl=null,Xv=null,E0=new Set;function kT(e){if(Xv?oe.__onGCastApiAvailable=Xv:delete oe.__onGCastApiAvailable,Xv=null,e)for(var t=b(E0),n=t.next();!n.done;n=t.next())n.value.init();typeof oe.__onGCastApiAvailable=="function"&&oe.__onGCastApiAvailable(e)}function Zn(e,t,n,i){i=i===void 0?!1:i,Tt.call(this);var a=this;this.i=e,this.h=t,this.m=this.s=this.l=this.u=this.j=null,this.D=n,this.C=i,this.B=new Map,this.g=null,oe.chrome?(this.g=new yS(n,function(){return A0(a)},function(){return Rp(a)},function(l,f){return r2(a,l,f)},function(){return Kv(a)},function(){return Fv(a)},i),Jt(this)):(this.j=this.i,this.u=this.h)}Xe(Zn,Tt),w=Zn.prototype,w.destroy=function(e){return this.g&&e&&this.g.qd(),this.m&&(this.m.release(),this.m=null),e=[],this.h&&(e.push(this.h.destroy()),this.h=null),this.g&&(e.push(this.g.destroy()),this.g=null),this.u=this.j=this.i=null,Tt.prototype.release.call(this),Promise.all(e)},w.zc=function(){return this.j},w.vc=function(){return this.u},w.ag=function(){return this.g?this.g.m&&dh:!1},w.Qa=function(){return this.g?this.g.Qa():!1},w.uf=function(){return this.g?this.g.uf():""},w.cast=function(){var e=this;return q(function(t){return t.g==1?e.g?O(t,e.g.cast(),2):t.return():e.h?O(t,e.h.rc(),0):t.return()})},w.lh=function(e){this.g&&this.g.lh(e)},w.Yi=function(){this.g&&i2(this.g)},w.qd=function(){this.g&&this.g.qd()},w.Rh=function(e,t){t=t===void 0?!1:t;var n=this;return q(function(i){if(i.g==1)return e==n.D&&t==n.C||(n.D=e,n.C=t,!n.g)?i.return():(n.g.qd(),O(i,n.g.destroy(),2));n.g=null,n.g=new yS(e,function(){return A0(n)},function(){return Rp(n)},function(a,l){return r2(n,a,l)},function(){return Kv(n)},function(){return Fv(n)},t),n.g.init(),ve(i)})};function Jt(e){e.g.init(),e.m=new Ft;for(var t=b(OT),n=t.next();!n.done;n=t.next())e.m.o(e.i,n.value,function(l){e.g.Qa()||(l=Ah(l),e.l.dispatchEvent(l))});for(var i in Kp)e.m.o(e.h,Kp[i],function(l){e.g.Qa()||e.s.dispatchEvent(l)});e.j={},t={};for(var a in e.i)t={Zd:t.Zd},t.Zd=a,Object.defineProperty(e.j,t.Zd,{configurable:!1,enumerable:!0,get:function(l){return function(){return Qv(e,l.Zd)}}(t),set:function(l){return function(f){var d=l.Zd;e.g.Qa()?e.g.set("video",d,f):e.i[d]=f}}(t)});e.u={},Br(e,function(l){Object.defineProperty(e.u,l,{configurable:!1,enumerable:!0,get:function(){return hh(e,l)}})}),Ti(e),e.l=new Tt,e.l.ze=e.j,e.s=new Tt,e.s.ze=e.u}function Ti(e){var t=new Map;Br(e,function(n,i){t.has(i)?(i=t.get(i),n.length<i.length?e.B.set(n,i):e.B.set(i,n)):t.set(i,n)})}function Br(e,t){function n(g){return g=="constructor"||typeof i[g]!="function"?!1:!a.has(g)}var i=e.h,a=new Set,l;for(l in i)n(l)&&(a.add(l),t(l,i[l]));for(e=Object.getPrototypeOf(i),l=Object.getPrototypeOf({});e&&e!=l;){for(var f=b(Object.getOwnPropertyNames(e)),d=f.next();!d.done;d=f.next())d=d.value,n(d)&&(a.add(d),t(d,i[d]));e=Object.getPrototypeOf(e)}}function Fv(e){var t={video:{},player:{},playerAfterLoad:{},manifest:e.h.rd(),startTime:null};e.i.pause();for(var n=b(Gv),i=n.next();!i.done;i=n.next())i=i.value,t.video[i]=e.i[i];for(e.i.ended||(t.startTime=e.i.currentTime),n=b(Xu),i=n.next();!i.done;i=n.next()){var a=i.value;i=a[1],a=e.h[a[0]](),t.player[i]=a}for(n=b(Ja),i=n.next();!i.done;i=n.next())a=i.value,i=a[1],a=e.h[a[0]](),t.playerAfterLoad[i]=a;return t}function A0(e){var t=new Te("caststatuschanged");e.dispatchEvent(t)}function Rp(e){var t=new Te(e.j.paused?"pause":"play");e.l.dispatchEvent(t)}function Kv(e){for(var t=b(Xu),n=t.next();!n.done;n=t.next()){var i=n.value;n=i[1],i=e.g.get("player",i[0])(),e.h[n](i)}var a=e.g.get("player","getAssetUri")();i=e.g.get("video","ended"),t=Promise.resolve();var l=e.i.autoplay;n=null,i||(n=e.g.get("video","currentTime"));var f;(i=e.g.get("player","getTextTracks")())&&i.length&&(f=i.find(function(m){return m.active}));var d=e.g.get("player","isTextTrackVisible")();a&&(e.i.autoplay=!1,t=e.h.load(a,n));var g={};for(n=b(Gv),i=n.next();!i.done;i=n.next())i=i.value,g[i]=e.g.get("video",i);t.then(function(){if(e.i){for(var m=b(Gv),S=m.next();!S.done;S=m.next())S=S.value,e.i[S]=g[S];for(m=b(Ja),S=m.next();!S.done;S=m.next()){var T=S.value;S=T[1],T=e.g.get("player",T[0])(),e.h[S](T)}e.h.Cf(d),f&&e.h.jh(f.language,f.roles,f.forced),e.i.autoplay=l,a&&e.i.play()}},function(m){m=new Map().set("detail",m),m=new Te("error",m),e.h.dispatchEvent(m)})}function Qv(e,t){if(t=="addEventListener")return function(i,a,l){return e.l.addEventListener(i,a,l)};if(t=="removeEventListener")return function(i,a,l){return e.l.removeEventListener(i,a,l)};if(e.g.Qa()&&Object.keys(e.g.g.video).length==0){var n=e.i[t];if(typeof n!="function")return n}return e.g.Qa()?e.g.get("video",t):(t=e.i[t],typeof t=="function"&&(t=t.bind(e.i)),t)}function hh(e,t){if(e.B.has(t)&&(t=e.B.get(t)),t=="addEventListener")return function(n,i,a){return e.s.addEventListener(n,i,a)};if(t=="removeEventListener")return function(n,i,a){return e.s.removeEventListener(n,i,a)};if(t=="getMediaElement")return function(){return e.j};if(t=="getSharedConfiguration")return e.g.get("player","getConfiguration");if(t=="getNetworkingEngine")return function(){return e.h.Db()};if(t=="getDrmEngine")return function(){return e.h.D};if(t=="getAdManager")return function(){return e.h.Qe()};if(t=="setVideoContainer")return function(n){return e.h.sh(n)};if(e.g.Qa()){if(t=="getManifest"||t=="drmInfo")return function(){return st(t+"() does not work while casting!"),null};if(t=="attach"||t=="detach")return function(){return st(t+"() does not work while casting!"),Promise.resolve()};if(t=="getChapters")return function(){return st(t+"() does not work while casting!"),[]}}return e.g.Qa()&&Object.keys(e.g.g.video).length==0&&(py.has(t)||il.has(t))||!e.g.Qa()?e.h[t].bind(e.h):e.g.get("player",t)}function r2(e,t,n){e.g.Qa()&&(t=="video"?e.l.dispatchEvent(n):t=="player"&&e.s.dispatchEvent(n))}xe("shaka.cast.CastProxy",Zn),Zn.prototype.changeReceiverId=Zn.prototype.Rh,Zn.prototype.forceDisconnect=Zn.prototype.qd,Zn.prototype.suggestDisconnect=Zn.prototype.Yi,Zn.prototype.setAppData=Zn.prototype.lh,Zn.prototype.cast=Zn.prototype.cast,Zn.prototype.receiverName=Zn.prototype.uf,Zn.prototype.isCasting=Zn.prototype.Qa,Zn.prototype.canCast=Zn.prototype.ag,Zn.prototype.getPlayer=Zn.prototype.vc,Zn.prototype.getVideo=Zn.prototype.zc,Zn.prototype.destroy=Zn.prototype.destroy;function Ia(e,t,n,i){Tt.call(this);var a=this;this.g=e,this.h=t,this.j=new Ft,this.J={video:e,player:t},this.H=n||function(){},this.K=i||function(l){return l},this.i=null,this.I=!1,this.s=!0,this.m=0,this.C=!1,this.B=!0,this.u=this.l=null,this.D=new Ke(function(){Wv(a)}),Ee(this)}Xe(Ia,Tt),w=Ia.prototype,w.isConnected=function(){return this.I},w.Ak=function(){return this.s},w.ul=function(e){this.i=e},w.vj=function(){this.i=null},w.vl=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.title=e},w.rl=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.images=[{url:e}]},w.ql=function(e){this.i||(this.i={}),this.i.artist=e,this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK},w.destroy=function(){var e=this,t,n;return q(function(i){if(i.g==1)return e.j&&(e.j.release(),e.j=null),t=[],e.h&&(t.push(e.h.destroy()),e.h=null),e.D&&(e.D.stop(),e.D=null),e.g=null,e.J=null,e.H=null,e.I=!1,e.s=!0,e.l=null,e.u=null,Tt.prototype.release.call(e),O(i,Promise.all(t),2);n=cast.receiver.CastReceiverManager.getInstance(),n.stop(),ve(i)})};function Ee(e){var t=cast.receiver.CastReceiverManager.getInstance();t.onSenderConnected=function(){return Kl(e)},t.onSenderDisconnected=function(){return Kl(e)},t.onSystemVolumeChanged=function(){var a=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();a&&zs(e,{type:"update",update:{video:{volume:a.level,muted:a.muted}}},e.l),zs(e,{type:"event",targetName:"video",event:{type:"volumechange"}},e.l)},e.u=t.getCastMessageBus("urn:x-cast:com.google.cast.media"),e.u.onMessage=function(a){return Wf(e,a)},e.l=t.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),e.l.onMessage=function(a){return a2(e,a)},t.start(),t=b(OT);for(var n=t.next();!n.done;n=t.next())e.j.o(e.g,n.value,function(a){return Jv(e,"video",a)});for(var i in Kp)e.j.o(e.h,Kp[i],function(a){return Jv(e,"player",a)});e.j.o(e.g,"loadeddata",function(){e.C=!0}),e.j.o(e.h,"loading",function(){e.s=!1,rl(e)}),e.j.o(e.g,"playing",function(){e.s=!1,rl(e)}),e.j.o(e.g,"pause",function(){rl(e)}),e.j.o(e.h,"unloading",function(){e.s=!0,rl(e)}),e.j.o(e.g,"ended",function(){new Ke(function(){e.g&&e.g.ended&&(e.s=!0,rl(e))}).$(u2)})}function Kl(e){e.m=0,e.B=!0,e.I=cast.receiver.CastReceiverManager.getInstance().getSenders().length!=0,rl(e)}function rl(e){var t;q(function(n){if(n.g==1)return O(n,Promise.resolve(),2);if(!e.h)return n.return();t=new Te("caststatuschanged"),e.dispatchEvent(t),NT(e)||$f(e),ve(n)})}function Zv(e,t,n){var i,a,l,f,d,g,m,S,T,x;q(function(M){switch(M.g){case 1:for(i in t.player)a=t.player[i],e.h[i](a);return e.H(n),l=e.g.autoplay,t.manifest?(e.g.autoplay=!1,Le(M,5),O(M,e.h.load(t.manifest,t.startTime),7)):O(M,Promise.resolve(),3);case 7:Ge(M,3);break;case 5:return f=je(M),d=new Map().set("detail",f),g=new Te("error",d),e.h&&e.h.dispatchEvent(g),M.return();case 3:if(!e.h)return M.return();for(m in t.video)S=t.video[m],e.g[m]=S;for(T in t.playerAfterLoad)x=t.playerAfterLoad[T],e.h[T](x);e.g.autoplay=l,t.manifest&&(e.g.play(),$f(e)),ve(M)}})}function Jv(e,t,n){e.h&&(Wv(e),zs(e,{type:"event",targetName:t,event:n},e.l))}function Wv(e){e.D.$(_T);for(var t={video:{},player:{}},n=b(mS),i=n.next();!i.done;i=n.next())i=i.value,t.video[i]=e.g[i];e.h.V()&&Xl.forEach(function(a,l){e.m%a==0&&(t.player[l]=e.h[l]())}),py.forEach(function(a,l){e.m%a==0&&(t.player[l]=e.h[l]())}),(n=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())&&(t.video.volume=n.level,t.video.muted=n.muted),zs(e,{type:"update",update:t},e.l),il.forEach(function(a,l){e.m%a==0&&(a={player:{}},a.player[l]=e.h[l](),zs(e,{type:"update",update:a},e.l))}),e.C&&(e.m+=1),NT(e)}function NT(e){return e.B&&(e.g.duration||e.h.V())?($v(e),e.B=!1,!0):!1}function $v(e,t){var n={contentId:e.h.rd(),streamType:e.h.V()?"LIVE":"BUFFERED",contentType:""};e.h.V()||(n.duration=e.g.duration),e.i&&(n.metadata=e.i),$f(e,t===void 0?0:t,n)}function a2(e,t){var n=gS(t.data);switch(n.type){case"init":e.m=0,e.C=!1,e.B=!0,Zv(e,n.initState,n.appData),Wv(e);break;case"appData":e.H(n.appData);break;case"set":var i=n.targetName,a=n.property;if(n=n.value,i=="video"){if(t=cast.receiver.CastReceiverManager.getInstance(),a=="volume"){t.setSystemVolumeLevel(n);break}else if(a=="muted"){t.setSystemVolumeMuted(n);break}}e.J[i][a]=n;break;case"call":i=e.J[n.targetName],i[n.methodName].apply(i,n.args);break;case"asyncCall":i=n.targetName,a=n.methodName,i=="player"&&a=="load"&&(e.m=0,e.C=!1);var l=n.id,f=t.senderId;t=e.J[i],n=t[a].apply(t,n.args),i=="player"&&a=="load"&&(n=n.then(function(){e.B=!0})),n.then(function(d){return js(e,f,l,null,d)},function(d){return js(e,f,l,d,null)})}}function Wf(e,t){var n=gS(t.data);switch(n.type){case"PLAY":e.g.play(),$f(e);break;case"PAUSE":e.g.pause(),$f(e);break;case"SEEK":t=n.currentTime;var i=n.resumeState;t!=null&&(e.g.currentTime=Number(t)),i&&i=="PLAYBACK_START"?(e.g.play(),$f(e)):i&&i=="PLAYBACK_PAUSE"&&(e.g.pause(),$f(e));break;case"STOP":e.h.rc().then(function(){e.h&&$f(e)});break;case"GET_STATUS":$v(e,Number(n.requestId));break;case"VOLUME":i=n.volume,t=i.level,i=i.muted;var a=e.g.volume,l=e.g.muted;t!=null&&(e.g.volume=Number(t)),i!=null&&(e.g.muted=i),a==e.g.volume&&l==e.g.muted||$f(e);break;case"LOAD":e.m=0,e.C=!1,e.B=!1,t=n.media,i=n.currentTime,a=e.K(t.contentId),l=n.autoplay||!0,e.H(t.customData),l&&(e.g.autoplay=!0),e.h.load(a,i).then(function(){e.h&&$v(e)}).catch(function(f){var d="LOAD_FAILED";f.category==7&&f.code==7e3&&(d="LOAD_CANCELLED"),zs(e,{requestId:Number(n.requestId),type:d},e.u)});break;default:zs(e,{requestId:Number(n.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},e.u)}}function js(e,t,n,i,a){e.h&&zs(e,{type:"asyncComplete",id:n,error:i,res:a},e.l,t)}function zs(e,t,n,i){e.I&&(e=Pv(t),i?n.getCastChannel(i).send(e):n.broadcast(e))}function $f(e,t,n){n=n===void 0?null:n;var i={mediaSessionId:0,playbackRate:e.g.playbackRate,playerState:e.s?o2:e.h.Ye()?jT:e.g.paused?s2:l2,currentTime:e.g.currentTime,supportedMediaCommands:63,volume:{level:e.g.volume,muted:e.g.muted}};n&&(i.media=n),zs(e,{requestId:t===void 0?0:t,type:"MEDIA_STATUS",status:[i]},e.u)}xe("shaka.cast.CastReceiver",Ia),Ia.prototype.destroy=Ia.prototype.destroy,Ia.prototype.setContentArtist=Ia.prototype.ql,Ia.prototype.setContentImage=Ia.prototype.rl,Ia.prototype.setContentTitle=Ia.prototype.vl,Ia.prototype.clearContentMetadata=Ia.prototype.vj,Ia.prototype.setContentMetadata=Ia.prototype.ul,Ia.prototype.isIdle=Ia.prototype.Ak,Ia.prototype.isConnected=Ia.prototype.isConnected;var _T=.5,u2=5,o2="IDLE",l2="PLAYING",jT="BUFFERING",s2="PAUSED";function zT(e,t,n,i,a){if(i>=a)return null;for(var l=-1,f=-1,d=0;d<n.length;d++)if(n[d].some(function(B){return B!=null&&B.g.trim()!=""})){l=d;break}for(d=n.length-1;0<=d;d--)if(n[d].some(function(B){return B!=null&&B.g.trim()!=""})){f=d;break}if(l===-1||f===-1)return null;for(var g=d=!1,m="white",S="black",T=SS(i,a,d,g,m,S);l<=f;l++){for(var x=n[l],M=-1,R=-1,L=0;L<x.length;L++)if(x[L]!=null&&x[L].g.trim()!==""){M=L;break}for(L=x.length-1;0<=L;L--)if(x[L]!=null&&x[L].g.trim()!==""){R=L;break}if(M===-1||R===-1)x=c2(i,a),e.nestedCues.push(x);else{for(;M<=R;M++)if(L=x[M]){var I=L.l,U=L.i,N=L.j,j=L.h;(I!=d||U!=g||N!=m||j!=S)&&(T.payload&&e.nestedCues.push(T),T=SS(i,a,I,U,N,j),d=I,g=U,m=N,S=j),T.payload+=L.g}else T.payload+=" ";T.payload&&e.nestedCues.push(T),l!==f&&(T=c2(i,a),e.nestedCues.push(T)),T=SS(i,a,d,g,m,S)}}return e.nestedCues.length?{cue:e,stream:t}:null}function SS(e,t,n,i,a,l){return e=new Kt(e,t,""),n&&e.textDecoration.push(bu),i&&(e.fontStyle=ro),e.color=a,e.backgroundColor=l,e}function c2(e,t){return e=new Kt(e,t,""),e.lineBreak=!0,e}function BT(e,t,n,i,a){this.g=e,this.l=t,this.i=n,this.h=i,this.j=a}function TS(e,t){this.i=[],this.g=1,this.h=0,this.D=e,this.C=t,this.j=this.m=!1,this.l="white",this.s="black",this.u=this.B=null,t1(this)}function e1(e,t,n){var i="CC"+((e.D<<1|e.C)+1),a=new Kt(t,n,"");a.lineInterpretation=1;var l=ES.get(e.g);return l&&(a.line=l),e.u!=null&&e.B!=null&&(a.position=10+Math.min(70,10*e.u)+2.5*e.B),(t=zT(a,i,e.i,t,n))&&15<e.g+t.cue.nestedCues.length-3&&(l=ES.get(e.g+3-t.cue.nestedCues.length))&&(a.line=l),t}function t1(e){ed(e,0,15),e.g=1}function x0(e,t,n){if(!(32>n||127<n)){var i="";switch(t){case 0:i=ph.has(n)?ph.get(n):String.fromCharCode(n);break;case 1:i=my.get(n);break;case 2:e.i[e.g].pop(),i=n1.get(n);break;case 3:e.i[e.g].pop(),i=pn.get(n)}i&&e.i[e.g].push(new BT(i,e.m,e.j,e.s,e.l))}}function f2(e,t,n,i){if(!(0>n||0>t))if(t>=n)for(--i;0<=i;i--)e.i[t+i]=e.i[n+i].map(function(l){return l});else for(var a=0;a<i;a++)e.i[t+a]=e.i[n+a].map(function(l){return l})}function ed(e,t,n){for(var i=0;i<=n;i++)e.i[t+i]=[]}var ph=new Map([[39,"’"],[42,"á"],[92,"é"],[92,"é"],[94,"í"],[95,"ó"],[96,"ú"],[123,"ç"],[124,"÷"],[125,"Ñ"],[126,"ñ"],[127,"█"]]),my=new Map([[48,"®"],[49,"°"],[50,"½"],[51,"¿"],[52,"™"],[53,"¢"],[54,"£"],[55,"♪"],[56,"à"],[57," "],[58,"è"],[59,"â"],[60,"ê"],[61,"î"],[62,"ô"],[63,"û"]]),n1=new Map([[32,"Á"],[33,"É"],[34,"Ó"],[35,"Ú"],[36,"Ü"],[37,"ü"],[38,"‘"],[39,"¡"],[40,"*"],[41,"'"],[42,"─"],[43,"©"],[44,"℠"],[45,"·"],[46,"“"],[47,"”"],[48,"À"],[49,"Â"],[50,"Ç"],[51,"È"],[52,"Ê"],[53,"Ë"],[54,"ë"],[55,"Î"],[56,"Ï"],[57,"ï"],[58,"Ô"],[59,"Ù"],[60,"ù"],[61,"Û"],[62,"«"],[63,"»"]]),pn=new Map([[32,"Ã"],[33,"ã"],[34,"Í"],[35,"Ì"],[36,"ì"],[37,"Ò"],[38,"ò"],[39,"Õ"],[40,"õ"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"Ä"],[49,"ä"],[50,"Ö"],[51,"ö"],[52,"ß"],[53,"¥"],[54,"¤"],[55,"│"],[56,"Å"],[57,"å"],[58,"Ø"],[59,"ø"],[60,"┌"],[61,"┐"],[62,"└"],[63,"┘"]]),ES=new Map([[1,10],[2,15.33],[3,20.66],[4,26],[5,31.33],[6,36.66],[7,42],[8,47.33],[9,52.66],[10,58],[11,63.33],[12,68.66],[13,74],[14,79.33],[15,84.66]]);function i1(e,t){this.h=0,this.s=new TS(e,t),this.i=new TS(e,t),this.g=this.j=new TS(e,t),this.l=0,this.m=null}function AS(e,t,n){e.g=e.i;var i=e.g,a=null;return e.h!==3&&e.h!==4&&(a=e1(i,e.l,n),n=e.i,n.g=0<n.h?n.h:0,ed(n,0,15),n=e.j,n.g=0<n.h?n.h:0,ed(n,0,15),i.g=15),e.h=3,i.h=t,a}function PT(e){e.h=1,e.g=e.j,e.g.h=0}function HT(e){xo("Cea608DataChannel","CEA-608 text mode entered, but is unsupported"),e.g=e.s,e.h=4}var yy="black green blue cyan red yellow magenta black".split(" "),GT="white green blue cyan red yellow magenta white_italics".split(" ");function al(e,t){this.K=t,this.N=e,this.L=this.l=!1,this.m=this.s=this.I=this.M=this.J=0,this.H=2,this.i=[],this.g=this.h=this.j=0,this.D=this.B=!1,this.C="white",this.u="black",Bs(this)}function Bs(e){e.i=[];for(var t=0;16>t;t++)e.i.push(Dp())}function Dp(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function Ps(e,t){na(e)&&(e.i[e.h][e.g]=new BT(t,e.D,e.B,e.u,e.C),e.g++)}function na(e){var t=e.g<e.m&&0<=e.g;return e.h<e.s&&0<=e.h&&t}al.prototype.isVisible=function(){return this.l};function d2(e){for(var t=0,n=1;16>n;n++,t++)e.i[t]=e.i[n];for(n=0;1>n;n++,t++)e.i[t]=Dp()}function Ip(e,t,n){var i=new Kt(e.j,t,"");i.textAlign=e.H===0?"left":e.H===1?"right":Dr;var a=i.region;switch(e.K&&(a.id+="svc"+e.K),a.id+="win"+e.N,a.height=e.s,a.width=e.m,a.heightUnits=2,a.widthUnits=2,a.viewportAnchorX=e.J,a.viewportAnchorY=e.M,a.viewportAnchorUnits=e.L?Zi:2,e.I){case 0:a.regionAnchorX=0,a.regionAnchorY=0;break;case 1:a.regionAnchorX=50,a.regionAnchorY=0;break;case 2:a.regionAnchorX=100,a.regionAnchorY=0;break;case 3:a.regionAnchorX=0,a.regionAnchorY=50;break;case 4:a.regionAnchorX=50,a.regionAnchorY=50;break;case 5:a.regionAnchorX=100,a.regionAnchorY=50;break;case 6:a.regionAnchorX=0,a.regionAnchorY=100;break;case 7:a.regionAnchorX=50,a.regionAnchorY=100;break;case 8:a.regionAnchorX=100,a.regionAnchorY=100}return(n=zT(i,"svc"+n,e.i,e.j,t))&&(e.j=t),n}al.prototype.display=function(){this.l=!0};function h2(){this.i=[],this.h=null,this.g=0}function p2(e,t){t.type===3?(e.g=2*(t.value&63)-1,e.h=[]):e.h&&(0<e.g&&(e.h.push(t),e.g--),e.g===0&&(e.i.push(new vy(e.h)),e.h=null,e.g=0))}function vy(e){this.g=0,this.h=e}vy.prototype.Ma=function(){return this.g<this.h.length},vy.prototype.Ta=function(){return this.g};function tr(e){if(!e.Ma())throw new G(2,2,3e3);return e.h[e.g++]}vy.prototype.skip=function(e){if(this.g+e>this.h.length)throw new G(2,2,3e3);this.g+=e},vy.prototype.Hi=function(e){if(0>this.g-e)throw new G(2,2,3e3);this.g-=e};function g2(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function m2(e,t,n,i){if(!e.g)return[];if(n==24)return n=tr(t).value,i=tr(t).value,n=function(l){return l.map(function(f){return("0"+(f&255).toString(16)).slice(-2)}).join("")}([n,i]),Ps(e.g,String.fromCharCode(parseInt(n,16))),[];t=e.g;var a=null;switch(n){case 8:!na(t)||0>=t.g&&0>=t.h||(0>=t.g?(t.g=t.m-1,t.h--):t.g--,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(a=Ip(t,i,e.i)),t.h+1>=t.s?d2(t):t.h++,t.g=0;break;case 14:t.isVisible()&&(a=Ip(t,i,e.i)),t.i[t.h]=Dp(),t.g=0;break;case 12:t.isVisible()&&(a=Ip(t,i,e.i)),Bs(t),t.h=0,t.g=0}return a?[a]:[]}function y2(e,t,n,i){if(128<=n&&135>=n)i=n&7,e.h[i]&&(e.g=e.h[i]);else{if(n===136){n=tr(t).value,t=[],n=b(Sy(e,n));for(var a=n.next();!a.done;a=n.next()){if(a=e.h[a.value],a.isVisible()){var l=Ip(a,i,e.i);l&&t.push(l)}Bs(a)}return t}if(n===137)for(t=tr(t).value,t=b(Sy(e,t)),n=t.next();!n.done;n=t.next())n=e.h[n.value],n.isVisible()||(n.j=i),n.display();else{if(n===138){for(n=tr(t).value,t=null,n=b(Sy(e,n)),a=n.next();!a.done;a=n.next())a=e.h[a.value],a.isVisible()&&(t=Ip(a,i,e.i)),a.l=!1;return t?[t]:[]}if(n===139){for(n=tr(t).value,t=null,n=b(Sy(e,n)),a=n.next();!a.done;a=n.next())a=e.h[a.value],a.isVisible()?t=Ip(a,i,e.i):a.j=i,a.l=!a.l;return t?[t]:[]}if(n===140)return t=tr(t).value,VT(e,t,i);if(n===143)return i=VT(e,255,i),xS(e),i;if(n===144)t.skip(1),i=tr(t).value,e.g&&(e.g.B=0<(i&128),e.g.D=0<(i&64));else if(n===145)i=tr(t).value,n=tr(t).value,t.skip(1),e.g&&(t=wS((n&48)>>4,(n&12)>>2,n&3),e.g.C=wS((i&48)>>4,(i&12)>>2,i&3),e.g.u=t);else if(n===146)i=tr(t).value,t=tr(t).value,e.g&&(e=e.g,e.h=i&15,e.g=t&63);else if(n===151)t.skip(1),t.skip(1),i=tr(t).value,t.skip(1),e.g&&(e.g.H=i&3);else if(152<=n&&159>=n){n=(n&15)-8,a=e.h[n]!==null,a||(l=new al(n,e.i),l.j=i,e.h[n]=l),i=tr(t).value,l=tr(t).value;var f=tr(t).value,d=tr(t).value,g=tr(t).value;t=tr(t).value,a&&(t&7)===0||(t=e.h[n],t.h=0,t.g=0,t.D=!1,t.B=!1,t.C="white",t.u="black"),t=e.h[n],t.l=0<(i&32),t.M=l&127,t.J=f,t.I=(d&240)>>4,t.L=0<(l&128),t.s=(d&15)+1,t.m=(g&63)+1,e.g=e.h[n]}}}return[]}function Sy(e,t){for(var n=[],i=0;8>i;i++)(t&1)===1&&e.h[i]&&n.push(i),t>>=1;return n}function VT(e,t,n){var i=[];t=b(Sy(e,t));for(var a=t.next();!a.done;a=t.next()){a=a.value;var l=e.h[a];l.isVisible()&&(l=Ip(l,n,e.i))&&i.push(l),e.h[a]=null}return i}function xS(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function wS(e,t,n){var i={0:0,1:0,2:1,3:1};return e=i[e],t=i[t],n=i[n],qT[e<<2|t<<1|n]}var w0=new Map([[32," "],[33," "],[37,"…"],[42,"Š"],[44,"Œ"],[48,"█"],[49,"‘"],[50,"’"],[51,"“"],[52,"”"],[53,"•"],[57,"™"],[58,"š"],[60,"œ"],[61,"℠"],[63,"Ÿ"],[118,"⅛"],[119,"⅜"],[120,"⅝"],[121,"⅞"],[122,"│"],[123,"┐"],[124,"└"],[125,"─"],[126,"┘"],[127,"┌"]]),qT="black blue green cyan red magenta yellow white".split(" ");function C0(){this.h=[],this.g=[],this.i=new h2,this.l=0,this.m=new Map([["CC1",new i1(0,0)],["CC2",new i1(0,1)],["CC3",new i1(1,0)],["CC4",new i1(1,1)]]),this.u=this.s=0,this.j=new Map,this.C=!0,this.B=new Set,ia(this)}C0.prototype.clear=function(){this.l=0,this.h=[],this.g=[];var e=this.i;e.i=[],e.h=[],e.g=0,ia(this),e=b(this.j.values());for(var t=e.next();!t.done;t=e.next())xS(t.value)};function ia(e){e.s=0,e.u=0;for(var t=b(e.m.values()),n=t.next();!n.done;n=t.next())n=n.value,n.h=0,n.g=n.j,n.m=null,t1(n.i),t1(n.j),t1(n.s);e.C=!0}C0.prototype.extract=function(e,t){if(this.C){for(var n=b(this.m.values()),i=n.next();!i.done;i=n.next())i.value.l=t;this.C=!1}if(e=new hn(e,0),!(8>e.getLength())&&e.ha()===181&&e.Da()===49&&e.X()===1195456820&&e.ha()===3&&(n=e.ha(),(n&64)!==0))for(n&=31,e.skip(1),i=0;i<n;i++){var a=e.ha(),l=(a&4)>>2,f=e.ha(),d=e.ha();l&&(a&=3,a===0||a===1?this.h.push({pts:t,type:a,Bb:f,bc:d,order:this.h.length}):(this.g.push({pts:t,type:a,value:f,order:this.g.length}),this.g.push({pts:t,type:2,value:d,order:this.g.length})))}},C0.prototype.decode=function(){function e(a,l){return a.pts-l.pts||a.order-l.order}var t=[];this.h.sort(e),this.g.sort(e);for(var n=b(this.h),i=n.next();!i.done;i=n.next())(i=v2(this,i.value))&&t.push(i);for(n=b(this.g),i=n.next();!i.done;i=n.next())p2(this.i,i.value);for(n=b(this.i.i),i=n.next();!i.done;i=n.next())i=S2(this,i.value),t.push.apply(t,Ue(i));return this.i.i=[],this.h=[],this.g=[],t};function v2(e,t){var n=t.type;if((t.Bb&112)===16){var i=t.Bb>>3&1;n===0?e.s=i:e.u=i}if(i="CC"+((n<<1|(n?e.u:e.s))+1),n=e.m.get(i),t.Bb===255&&t.bc===255||!t.Bb&&!t.bc||!YT(t.Bb)||!YT(t.bc))return 45<=++e.l&&ia(e),null;e.l=0,t.Bb&=127,t.bc&=127;var a=t.Bb;if(1<=a&&15>=a||!t.Bb&&!t.bc)return null;if(a=null,(t.Bb&112)===16)e:{if(e.B.add(i),i=t.Bb,e=t.bc,n.m===(i<<8|e))n.m=null;else if(n.m=i<<8|e,(i&240)===16&&(e&192)===64){t=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(i&7)<<1|e>>5&1],i="white",a=!1;var l=null,f=95<e?e-96:e-64;13>=f?i=GT[Math.floor(f/2)]:15>=f?a=!0:l=Math.floor((f-16)/2),e=(e&1)===1,n.h!==4&&(f=n.g,n.h===3&&t!==f.g&&(n=1+t-f.h,f2(f,n,1+f.g-f.h,f.h),ed(f,0,n-1),ed(f,t+1,15-t)),f.g=t,f.m=e,f.j=a,f.l=i,f.u=l,f.s="black")}else if((i&247)===17&&(e&240)===32)n.g.m=!1,n.g.j=!1,n.g.l="white",x0(n.g,0,32),i=!1,t=GT[(e&14)>>1],t==="white_italics"&&(t="white",i=!0),n.g.m=(e&1)===1,n.g.j=i,n.g.l=t;else if((i&247)===16&&(e&240)===32||(i&247)===23&&(e&255)===45)t="black",(i&7)===0&&(t=yy[(e&14)>>1]),n.g.s=t;else if((i&247)===17&&(e&240)===48)x0(n.g,1,e);else if((i&246)===18&&(e&224)===32)x0(n.g,i&1?3:2,e);else{if((i&246)===20&&(e&240)===32){switch(e=t.pts,i=null,t.bc){case 32:PT(n);break;case 33:n=n.g,n.i[n.g].pop();break;case 37:i=AS(n,2,e);break;case 38:i=AS(n,3,e);break;case 39:i=AS(n,4,e);break;case 40:x0(n.g,0,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.l=e;break;case 42:t1(n.s),HT(n);break;case 43:HT(n);break;case 44:t=n.i,i=null,n.h!==4&&(i=e1(t,n.l,e)),ed(t,0,15);break;case 45:t=n.g,n.h!==3?i=null:(i=e1(t,n.l,e),a=t.g-t.h+1,f2(t,a-1,a,t.h),ed(t,0,a-1),ed(t,t.g,15-t.g),n.l=e);break;case 46:ed(n.j,0,15);break;case 47:t=null,n.h!==4&&(t=e1(n.i,n.l,e)),i=n.j,n.j=n.i,n.i=i,PT(n),n.l=e,i=t}a=i;break e}(i==23||i==31)&&33<=e&&35>=e&&(n.g.B=e-32)}a=null}else e=t.bc,x0(n.g,0,t.Bb),x0(n.g,0,e);return a}function S2(e,t){var n=[];try{for(;t.Ma();){var i=tr(t).value,a=(i&224)>>5,l=i&31;if(a===7&&l!=0&&(a=tr(t).value&63),a!=0){e.B.add("svc"+a),e.j.has(a)||e.j.set(a,new g2(a));for(var f=e.j.get(a),d=t.Ta();t.Ta()-d<l;){a=f;var g=t,m=tr(g),S=m.value,T=m.pts;if(S===16){var x=tr(g);S=S<<16|x.value}if(0<=S&&31>=S)var M=m2(a,g,S,T);else if(128<=S&&159>=S)M=y2(a,g,S,T);else{if(4096<=S&&4127>=S)a=g,g=S&255,8<=g&&15>=g?a.skip(1):16<=g&&23>=g?a.skip(2):24<=g&&31>=g&&a.skip(3);else if(4224<=S&&4255>=S)a=g,g=S&255,128<=g&&135>=g?a.skip(4):136<=g&&143>=g&&a.skip(5);else if(32<=S&&127>=S)g=S,a.g&&(g===127?Ps(a.g,"♪"):Ps(a.g,String.fromCharCode(g)));else if(160<=S&&255>=S)a.g&&Ps(a.g,String.fromCharCode(S));else if(4128<=S&&4223>=S){if(g=S&255,a.g)if(w0.has(g)){var R=w0.get(g);Ps(a.g,R)}else Ps(a.g,"_")}else 4256<=S&&4351>=S&&a.g&&((S&255)!=160?Ps(a.g,"_"):Ps(a.g,"[CC]"));M=[]}n.push.apply(n,Ue(M))}}}}catch(L){if(L instanceof G&&L.code===3e3)xo("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw L}return n}function YT(e){for(var t=0;e;)t^=e&1,e>>=1;return t===1}C0.prototype.getStreams=function(){return Array.from(this.B)},xe("shaka.cea.CeaDecoder",C0),as=function(){return new C0};function XT(e){for(var t=[],n=e,i=e=0;i<n.length;)e==2&&n[i]==3?(e=0,n=[].concat(Ue(n)),n.splice(i,1),n=new Uint8Array(n)):n[i]==0?e++:e=0,i++;for(e=n,i=0;i<e.length;){for(n=0;e[i]==255;)n+=255,i++;n+=e[i++];for(var a=0;e[i]==255;)a+=255,i++;a+=e[i++],n==4&&t.push(e.subarray(i,i+a)),i+=a}return t}function gh(){this.j=new Map,this.i=this.h=0,this.g=r1}gh.prototype.init=function(e){function t(l){l=l.name,Hs.has(l)&&(n.g=Hs.get(l))}var n=this,i=[],a=[];if(new Zt().box("moov",mt).box("mvex",mt).W("trex",function(l){var f=l.reader;f.skip(4),f.skip(4),l=f.X(),f=f.X(),n.h=l,n.i=f}).box("trak",mt).W("tkhd",function(l){var f=l.reader;l=l.version,l==1?(f.skip(8),f.skip(8)):(f.skip(4),f.skip(4));var d=f.X();l==1?f.skip(8):f.skip(4),f.skip(4),f.skip(8),f.skip(2),f.skip(2),f.skip(2),f.skip(2),f.skip(36),f.Da(),f.Da(),f.Da(),f.Da(),i.push(d)}).box("mdia",mt).W("mdhd",function(l){l=vf(l.reader,l.version),a.push(l.timescale)}).box("minf",mt).box("stbl",mt).W("stsd",Ul).box("avc1",t).box("avc3",t).box("dvav",t).box("dva1",t).box("hev1",t).box("hvc1",t).box("dvh1",t).box("dvhe",t).box("vvc1",t).box("vvi1",t).box("dvc1",t).box("dvi1",t).box("encv",Ta).box("sinf",mt).box("frma",function(l){l=Sf(l.reader).codec,Hs.has(l)&&(n.g=Hs.get(l))}).parse(e,!0),!i.length||!a.length||i.length!=a.length)throw new G(2,2,2010);this.g==r1&&st("Unable to determine bitstream format for CEA parsing!"),i.forEach(function(l,f){n.j.set(l,a[f])})},gh.prototype.parse=function(e){var t=this;if(this.g==r1)return[];var n=[],i=0,a=[];return new Zt().box("moof",function(l){i=l.start,a=[],mt(l)}).box("traf",function(l){a.push({baseMediaDecodeTime:null,Md:t.h,Nd:t.i,Ci:[],timescale:9e4}),mt(l)}).W("trun",function(l){var f=a[a.length-1];l=jl(l.reader,l.version,l.flags),f.Ci.push(l)}).W("tfhd",function(l){var f=a[a.length-1];l=Ou(l.reader,l.flags),f.Md=l.Md||t.h,f.Nd=l.Nd||t.i,l=l.trackId,t.j.has(l)&&(f.timescale=t.j.get(l))}).W("tfdt",function(l){var f=a[a.length-1];l=Qn(l.reader,l.version),f.baseMediaDecodeTime=l.baseMediaDecodeTime}).box("mdat",function(l){for(var f=i-l.start-8,d=l.reader.Ta(),g=b(a),m=g.next();!m.done;m=g.next()){if(m=m.value,m.baseMediaDecodeTime===null)throw st("Unable to find base media decode time for CEA captions!"),new G(2,2,2010);l.reader.seek(d),T2(t,l.reader,m.baseMediaDecodeTime,m.timescale,m.Md,m.Nd,f,m.Ci,n)}}).parse(e,!1),n};function T2(e,t,n,i,a,l,f,d,g){var m=0,S=l,T=d.map(function(R){return R.hh});for(T=[].concat.apply([],Ue(T)),T.length&&(S=T[0].sampleSize||l),t.skip(f+d[0].lg);t.Ma();){f=t.X();var x=t.ha(),M=null;switch(M=!1,d=1,e.g){case M0:M=x&31,M=M==6;break;case Ty:d=2,t.skip(1),M=x>>1&63,M=M==39||M==40;break;case Ey:d=2,t.skip(1),M=x>>1&63,M=M==23||M==24;break;default:return}if(M)for(x=0,m<T.length&&(x=T[m].yf||0),x=(n+x)/i,d=b(XT(t.Tb(f-d))),M=d.next();!M.done;M=d.next())g.push({packet:M.value,pts:x});else try{t.skip(f-d)}catch{break}S-=f+4,S==0&&(n=m<T.length?n+(T[m].ih||a):n+a,m++,m<T.length?S=T[m].sampleSize||l:S=l)}}xe("shaka.cea.Mp4CeaParser",gh);var r1=0,M0=1,Ty=2,Ey=3,Hs=new Map().set("avc1",M0).set("avc3",M0).set("dvav",M0).set("dva1",M0).set("hev1",Ty).set("hvc1",Ty).set("dvh1",Ty).set("dvhe",Ty).set("vvc1",Ey).set("vvi1",Ey).set("dvc1",Ey).set("dvi1",Ey);Oo("video/mp4",function(){return new gh});function nr(){this.g=null}nr.prototype.init=function(){},nr.prototype.parse=function(e){this.g?this.g.clearData():this.g=new An;var t=[];if(e=at(e),!pu(e))return t;e=this.g.parse(e);var n=e.Pd(),i=e.Ve();switch(e=[],n.video){case"avc":e.push(6);break;case"hvc":e.push(39),e.push(40)}if(!e.length)return t;for(n=b(i),i=n.next();!i.done;i=n.next())if(i=i.value,e.includes(i.type)&&i.time!=null)for(var a=b(XT(i.data)),l=a.next();!l.done;l=a.next())t.push({packet:l.value,pts:i.time});return t},xe("shaka.cea.TsCeaParser",nr),Oo("video/mp2t",function(){return new nr});function FT(e){var t=0,n=br(e),i=n.getUint32(t,!0);if(i!=e.byteLength)return[];e:{for(e=t+6,t=[];e<n.byteLength-1;){i=n.getUint16(e,!0),e+=2;var a=n.getUint16(e,!0);if(e+=2,(a&1)!=0||a+e>n.byteLength){n=[];break e}var l=at(n,e,a);t.push({type:i,value:l}),e+=a}n=t}return n}function KT(e){return e=tu(Gn(e)),e=FT(e).filter(function(t){return t.type===Ay})[0],e?(e=Ro(e.value,!0),(e=us(e,"WRMHEADER"))?e:null):null}function Pr(e){try{var t=KT(e);if(t)e:{for(var n=b(Dn(t,"DATA")),i=n.next();!i.done;i=n.next()){var a=i.value;if(a.children)for(var l=b(a.children),f=l.next();!f.done;f=l.next()){var d=f.value;if(d.tagName=="LA_URL"){var g=Gn(d);break e}}}g=""}else g="";return g}catch{return""}}var Ay=1;function b0(e,t,n){var i=a1(e),a=null;e=[];var l=[],f=null,d=new Set(i.map(function(m){return m.keyId}));d.delete(null);var g="cenc";if(1<d.size)throw new G(2,4,4010);if(!t){if(l=i.filter(function(m){return m.Dd=="urn:mpeg:dash:sea:2012"}),1<l.length)throw new G(2,4,4050);l.length&&(f=u1(l[0])),(l=i.find(function(m){return m.Dd=="urn:mpeg:dash:mp4protection:2011"}))&&l.encryptionScheme&&(g=l.encryptionScheme),l=i.filter(function(m){return m.Dd=="urn:mpeg:dash:mp4protection:2011"?(a=m.init||a,!1):m.Dd!="urn:mpeg:dash:sea:2012"}),l.length&&(e=jc(a,g,l,n,d),e.length==0&&(e=[Na("",g,a)]))}if(i.length&&!f&&(t||!l.length))for(e=[],t=b(Object.values(n)),n=t.next();!n.done;n=t.next())n=n.value,n!="org.w3.clearkey"&&e.push(Na(n,g,a));if(d=Array.from(d)[0]||null)for(g=b(e),t=g.next();!t.done;t=g.next())for(t=b(t.value.initData),n=t.next();!n.done;n=t.next())n.value.keyId=d;return{Vh:d,Km:a,drmInfos:e,Yf:f,$h:!0}}function ra(e,t,n,i){var a=b0(e,n,i);if(t.$h)e=t.drmInfos.length==1&&!t.drmInfos[0].keySystem,n=a.drmInfos.length==0,(t.drmInfos.length==0||e&&!n)&&(t.drmInfos=a.drmInfos),t.$h=!1;else if(0<a.drmInfos.length&&(t.drmInfos=t.drmInfos.filter(function(l){return a.drmInfos.some(function(f){return f.keySystem==l.keySystem})}),t.drmInfos.length==0))throw new G(2,4,4008);return a.Vh||t.Vh}function Su(e){var t=Mu(e.node,"https://dashif.org/CPS","Laurl");if(t&&(t=Gn(t)))return t;if((t=Mu(e.node,"urn:microsoft:playready","pro"))&&Gn(t))return Pr(t);if((e=Mu(e.node,"urn:mpeg:cenc:2013","pssh"))&&(e=Gn(e))){t=tu(e),e=8,t=br(t);var n=t.getUint8(e);return e+=20,0<n&&(e+=4+16*t.getUint32(e)),e=at(t,e+4),e=ec(e),e=us("<pro>"+e+"</pro>"),Pr(e)}return""}function jc(e,t,n,i,a){var l=[];n=b(n);for(var f=n.next();!f.done;f=n.next()){f=f.value;var d=i[f.Dd];if(d){var g;if((g=Mu(f.node,"urn:microsoft:playready","pro"))&&Gn(g)){g=Gn(g),g=tu(g);var m=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);g=[{initData:kd(g,m,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else g=null;if(m=null,f.Dd==="urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"){m=f;var S=a;if(S.size==0)m=null;else{var T=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75]),x=new Uint8Array([]);m=[{initData:kd(x,T,S,1),initDataType:"cenc",keyId:m.keyId}]}}g=Na(d,t,f.init||e||g||m),(d=u4.get(d))&&(g.licenseServerUri=d(f)),l.push(g)}}return l}function a1(e){var t=[];e=b(e);for(var n=e.next();!n.done;n=e.next())(n=a4(n.value))&&t.push(n);return t}function a4(e){var t=e.attributes.schemeIdUri,n=ru(e,"urn:mpeg:cenc:2013","default_KID"),i=Ml(e,"urn:mpeg:cenc:2013","pssh").map(ar),a=e.attributes.value;if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase(),n.includes(" ")))throw new G(2,4,4009);var l=[];try{l=i.map(function(f){return{initDataType:"cenc",initData:tu(f),keyId:null}})}catch{throw new G(2,4,4007)}return{node:e,Dd:t,keyId:n,init:0<l.length?l:null,encryptionScheme:a}}function u1(e){if(!oe.crypto||!oe.crypto.subtle)throw st("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new G(2,4,4042);var t=Mu(e.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!t)throw new G(2,4,4051);if(t.attributes.schemeIdUri!="urn:mpeg:dash:sea:aes128-cbc:2013")throw new G(2,4,4051);if(t=Mu(e.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod"),!t)throw new G(2,4,4051);if(e=t.attributes.IV,t=Fi(t.attributes.keyUriTemplate),!e||!t)throw new G(2,4,4051);if(e=Io(e.substr(2)),e.byteLength!=16)throw new G(2,4,4048);return{Gk:t,iv:e}}var u4=new Map().set("com.apple.fps",function(e){if(oe.shakaMediaKeysPolyfill==="apple")throw new G(2,4,4054);return(e=Mu(e.node,"https://dashif.org/CPS","Laurl"))&&(e=Gn(e))?e:""}).set("com.widevine.alpha",function(e){var t=Mu(e.node,"https://dashif.org/CPS","Laurl");return t&&(t=Gn(t))?t:(e=Mu(e.node,"urn:microsoft","laurl"))&&Fi(e.attributes.licenseUrl)||""}).set("com.microsoft.playready",Su).set("com.microsoft.playready.recommendation",Su).set("com.microsoft.playready.software",Su).set("com.microsoft.playready.hardware",Su).set("org.w3.clearkey",function(e){var t=Mu(e.node,"https://dashif.org/CPS","Laurl");return t&&(t=Gn(t))?t:(e=Mu(e.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&e.attributes.Lic_type==="EME-1.0"&&e&&(e=Gn(e))?e:""});function o1(e,t,n,i,a,l){var f=new Map().set("RepresentationID",t).set("Number",n).set("SubNumber",i).set("Bandwidth",a).set("Time",l);return e.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(d,g,m,S){if(d=="$$")return"$";var T=f.get(g);if(T==null)return d;switch(g=="RepresentationID"&&m&&(m=void 0),g=="Time"&&typeof T!="bigint"&&(.2<=Math.abs(T-Math.round(T))&&st("Calculated $Time$ values must be close to integers"),T=Math.round(T)),S){case void 0:case"d":case"i":case"u":d=T.toString();break;case"o":d=T.toString(8);break;case"x":d=T.toString(16);break;case"X":d=T.toString(16).toUpperCase();break;default:d=T.toString()}return m=oe.parseInt(m,10)||1,Array(Math.max(0,m-d.length)+1).join("0")+d})}function ul(e,t){var n=Cr(e,t,"timescale"),i=1;n&&(i=uu(n)||1),n=Cr(e,t,"duration");var a=(n=uu(n||""))?n/i:null,l=Cr(e,t,"startNumber"),f=Number(Cr(e,t,"presentationTimeOffset"))||0,d=ii(l||"");if((l==null||d==null)&&(d=1),l=null,t=ol(e,t,"SegmentTimeline")){t=wt(t,"S"),l=i,e=e.sa.duration||1/0;for(var g=d,m=[],S=-f,T=0;T<t.length;++T){var x=t[T],M=t[T+1],R=ct(x,"t",ii),L=ct(x,"d",ii),I=ct(x,"r",Ci);if(x=ct(x,"k",Ci)||0,R!=null&&(R-=f),L){if(R=R??S,I=I||0,0>I)if(M){if(M=ct(M,"t",ii),M==null)break;if(R>=M)break;I=Math.ceil((M-R)/L)-1}else{if(e==1/0)break;if(R/l>=e)break;I=Math.ceil((e*l-R)/L)-1}for(0<m.length&&R!=S&&(m[m.length-1].end=R/l),M=0;M<=I;++M)S=R+L,m.push({start:R/l,end:S/l,Fh:R,$b:x,ll:m.length+g}),R=S}}l=m}return{timescale:i,Hf:n,jb:a,me:d,Dc:f/i||0,Eh:f,timeline:l}}function Fu(e,t){return[t(e.O),t(e.ra),t(e.Ga)].filter(Du)}function Cr(e,t,n){t=Fu(e,t),e=null,t=b(t);for(var i=t.next();!i.done&&!(e=i.value.attributes[n]);i=t.next());return e}function ol(e,t,n){t=Fu(e,t),e=null,t=b(t);for(var i=t.next();!i.done&&!(e=Wn(i.value,n));i=t.next());return e}function l1(e,t,n,i,a,l){for(var f=ru(e,"http://www.w3.org/1999/xlink","href"),d=ru(e,"http://www.w3.org/1999/xlink","actuate")||"onRequest",g=b(Object.keys(e.attributes)),m=g.next();!m.done;m=g.next()){m=m.value;var S=m.split(":"),T=os("http://www.w3.org/1999/xlink");S[0]==T&&delete e.attributes[m]}if(5<=l)return En(new G(2,4,4028));if(d!="onLoad")return En(new G(2,4,4027));var x=wi([i],[f]);return a.request(0,yi(x,t)).ab(function(M){if(M=Ed(M.data,e.tagName),!M)return En(new G(2,4,4001,f));for(e.children=[];M.children.length;){var R=M.children.shift();e.children.push(R)}R=b(Object.keys(M.attributes));for(var L=R.next();!L.done;L=R.next())L=L.value,e.attributes[L]=M.attributes[L];return mh(e,t,n,x[0],a,l+1)})}function mh(e,t,n,i,a,l){if(l=l===void 0?0:l,ru(e,"http://www.w3.org/1999/xlink","href")){var f=l1(e,t,n,i,a,l);return n&&(f=f.ab(void 0,function(){return mh(e,t,n,i,a,l)})),f}f=[];for(var d=b(um(e)),g=d.next(),m={};!g.done;m={Jd:void 0},g=d.next())m.Jd=g.value,ru(m.Jd,"http://www.w3.org/1999/xlink","href")=="urn:mpeg:dash:resolve-to-zero:2013"?e.children=e.children.filter(function(S){return function(T){return T!==S.Jd}}(m)):m.Jd.tagName!="SegmentTimeline"&&f.push(mh(m.Jd,t,n,i,a,l));return gc(f).ab(function(){return e})}function QT(e,t,n,i,a,l,f){var d,g=new Zt().W("sidx",function(m){d=R0(t,i,a,l,f,n,m)});if(e&&g.parse(e),d)return d;throw new G(2,3,3004)}function R0(e,t,n,i,a,l,f){var d=[];f.reader.skip(4);var g=f.reader.X();if(g==0)throw new G(2,3,3005);if(f.version==0)var m=f.reader.X(),S=f.reader.X();else m=f.reader.Cd(),S=f.reader.Cd();f.reader.skip(2);var T=f.reader.Da();for(e=e+f.size+S,S=0;S<T;S++){var x=f.reader.X(),M=(x&2147483648)>>>31;x&=2147483647;var R=f.reader.X();if(f.reader.skip(4),M==1)throw new G(2,3,3006);d.push(new Ye(m/g+n,(m+R)/g+n,function(){return l},e,e+x-1,t,n,i,a)),m+=R,e+=x}return f.parser.stop(),d}function zc(e){this.h=br(e),this.g=new hn(this.h,0)}zc.prototype.Ma=function(){return this.g.Ma()};function td(e){var t=ti(e);if(7<t.length)throw new G(2,3,3002);var n=0;t=b(t);for(var i=t.next();!i.done;i=t.next())n=256*n+i.value;t=ti(e);e:{i=b(Ri);for(var a=i.next();!a.done;a=i.next())if(ji(t,new Uint8Array(a.value))){i=!0;break e}i=!1}if(i)t=e.h.byteLength-e.g.Ta();else{if(t.length==8&&t[1]&224)throw new G(2,3,3001);for(a=i=0;a<t.length;a++){var l=t[a];i=a==0?l&(1<<8-t.length)-1:256*i+l}t=i}return t=e.g.Ta()+t<=e.h.byteLength?t:e.h.byteLength-e.g.Ta(),i=br(e.h,e.g.Ta(),t),e.g.skip(t),new wn(n,i)}function ti(e){var t=e.g.Ta(),n=e.g.ha();if(n==0)throw new G(2,3,3002);return n=8-Math.floor(Math.log2(n)),e.g.skip(n-1),at(e.h,t,n)}var Ri=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function wn(e,t){this.id=e,this.g=t}function Sn(e){if(8<e.g.byteLength)throw new G(2,3,3002);if(e.g.byteLength==8&&e.g.getUint8(0)&224)throw new G(2,3,3001);for(var t=0,n=0;n<e.g.byteLength;n++){var i=e.g.getUint8(n);t=256*t+i}return t}function ll(e,t,n,i,a,l,f,d,g){function m(){return a}var S=[];e=new zc(e.g);for(var T=null,x=null;e.Ma();){var M=td(e);if(M.id==187){var R=s1(M);R&&(M=n*R.El,R=t+R.Yk,T!=null&&S.push(new Ye(T+f,M+f,m,x,R-1,l,f,d,g)),T=M,x=R)}}return T!=null&&S.push(new Ye(T+f,i+f,m,x,null,l,f,d,g)),S}function s1(e){var t=new zc(e.g);if(e=td(t),e.id!=179)throw new G(2,3,3013);if(e=Sn(e),t=td(t),t.id!=183)throw new G(2,3,3012);t=new zc(t.g);for(var n=0;t.Ma();){var i=td(t);if(i.id==241){n=Sn(i);break}}return{El:e,Yk:n}}function Lp(e,t,n){if(t=ol(e,t,"Initialization"),!t)return null;var i=e.O.hb(),a=t.attributes.sourceURL;a&&(i=wi(i,[Fi(a)],e.Ib())),a=0;var l=null;return(t=ct(t,"range",Ad))&&(a=t.start,l=t.end),n=new xa(function(){return i},a,l,Up(e),null,null,n,e.ra.encrypted),n.codecs=e.O.codecs,n.mimeType=e.O.mimeType,e.sa&&(n.g=e.sa.start+e.sa.duration),n}function c1(e,t,n){var i=Number(Cr(e,Op,"presentationTimeOffset"))||0,a=Cr(e,Op,"timescale"),l=1;a&&(l=uu(a)||1);var f=i/l||0,d=Lp(e,Op,n);f1(e,d);var g=uc(e);return{Pc:function(){var m=ol(g,Op,"RepresentationIndex"),S=g.O.hb();return m&&(m=Fi(m.attributes.sourceURL))&&(S=wi(S,[m],g.Ib())),m=D0(g),ZT(g,t,d,S,m.start,m.end,f)}}}function ZT(e,t,n,i,a,l,f){var d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F;return q(function(K){if(K.g==1)return d=e.presentationTimeline,g=!e.dc||!e.sa.mi,m=e.sa.start,S=e.sa.duration,T=e.O.mimeType.split("/")[1],x=t,M=null,R=[x(i,a,l,!1),T=="webm"?x(n.T(),n.startByte,n.endByte,!0):null],x=null,O(K,Promise.all(R),2);if(L=K.h,I=L[0],U=L[1]||null,N=null,j=m-f,B=m,Y=S?m+S:1/0,T=="mp4")var ee=QT(I,a,i,n,j,B,Y);else{ee=I;var Q=new zc(U);if(td(Q).id!=440786851)throw new G(2,3,3008);var ne=td(Q);if(ne.id!=408125543)throw new G(2,3,3009);Q=ne.g.byteOffset,ne=new zc(ne.g);for(var ie=null;ne.Ma();){var ue=td(ne);if(ue.id==357149030){ie=ue;break}}if(!ie)throw new G(2,3,3010);for(ie=new zc(ie.g),ue=1e6,ne=null;ie.Ma();){var ce=td(ie);if(ce.id==2807729)ue=Sn(ce);else if(ce.id==17545)if(ce.g.byteLength==4)ne=ce.g.getFloat32(0);else if(ce.g.byteLength==8)ne=ce.g.getFloat64(0);else throw new G(2,3,3003)}if(ne==null)throw new G(2,3,3011);if(ie=ue/1e9,ne*=ie,ee=td(new zc(ee)),ee.id!=475249515)throw new G(2,3,3007);ee=ll(ee,Q,ie,ne,i,n,j,B,Y)}for(N=ee,P=b(N),V=P.next();!V.done;V=P.next())F=V.value,F.codecs=e.O.codecs,F.mimeType=e.O.mimeType,F.bandwidth=e.bandwidth;return d.ce(N),M=new Vt(N),g&&M.pd(B,Y,!0),K.return(M)})}function Op(e){return e.Ed}function D0(e){var t=ol(e,Op,"RepresentationIndex");return e=Cr(e,Op,"indexRange"),e=Ad(e||""),t&&(e=ct(t,"range",Ad,e)),e}function f1(e,t){if(CS(e,t),!D0(e))throw new G(2,4,4002)}function CS(e,t){var n=e.O.mimeType.split("/")[1];if(e.O.contentType!=lt&&n!="mp4"&&n!="webm")throw new G(2,4,4006);if(n=="webm"&&!t)throw new G(2,4,4005)}function Up(e){var t=e.O;return{bandwidth:e.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate||null,height:t.height||null,mimeType:t.mimeType,channelsCount:t.mf,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null,label:e.ra.label||null,roles:e.roles||null,language:e.ra.language||null}}function fi(e,t,n){var i=Lp(e,sl,n),a=kp(e);if(!a.jb&&!a.timeline&&1<a.xd.length)throw new G(2,4,4002);if(!a.jb&&!e.sa.duration&&!a.timeline&&a.xd.length==1)throw new G(2,4,4002);if(a.timeline&&a.timeline.length==0)throw new G(2,4,4002);var l=null,f=null;e.Ga.id&&e.O.id&&(f=t.get(e.Ga.id+","+e.O.id))&&(l=f.segmentIndex);var d=xy(e.sa.start,e.sa.duration,e.O.hb,a,i,n,e.O.mimeType,e.O.codecs,e.bandwidth,e.Ib);return t=!l,l?l.ae(d,e.presentationTimeline.Fb()):l=new Vt(d),e.presentationTimeline.ce(d),e.dc&&e.sa.mi||l.pd(e.sa.start,e.sa.duration?e.sa.start+e.sa.duration:1/0,t),f&&(f.segmentIndex=l),{Pc:function(){return l&&l.getNumReferences()!=0||l.hf(d),Promise.resolve(l)}}}function sl(e){return e.pc}function kp(e){var t=JT(e);e=ul(e,sl);var n=e.me;n==0&&(n=1);var i=0;return e.jb?i=e.jb*(n-1):e.timeline&&0<e.timeline.length&&(i=e.timeline[0].start),{jb:e.jb,startTime:i,me:n,Dc:e.Dc,timeline:e.timeline,xd:t}}function xy(e,t,n,i,a,l,f,d,g,m){var S=i.xd.length;i.timeline&&i.timeline.length!=i.xd.length&&(S=Math.min(i.timeline.length,i.xd.length));for(var T=e-i.Dc,x=t?e+t:1/0,M=[],R=i.startTime,L={},I=0;I<S;L={Jf:void 0,zf:void 0},I++){L.zf=i.xd[I];var U=R;R=void 0,R=i.jb!=null?U+i.jb:i.timeline?i.timeline[I].end:U+t,L.Jf=null,L=new Ye(e+U,e+R,function(N){return function(){return N.Jf==null&&(N.Jf=wi(n(),[N.zf.Nk],m())),N.Jf}}(L),L.zf.start,L.zf.end,a,T,e,x,[],"",null,null,so,l),L.codecs=d,L.mimeType=f,L.bandwidth=g,M.push(L)}return M}function JT(e){return[e.O.pc,e.ra.pc,e.Ga.pc].filter(Du).map(function(t){return wt(t,"SegmentURL")}).reduce(function(t,n){return 0<t.length?t:n}).map(function(t){t.attributes.indexRange&&!e.Og&&(e.Og=!0);var n=Fi(t.attributes.media);return t=ct(t,"mediaRange",Ad,{start:0,end:null}),{Nk:n,start:t.start,end:t.end}})}function Bc(e,t,n,i,a,l,f,d,g){g||e.O.Xe||(e.O.Xe=Cr(e,gi,"initialization"));var m=e.O.Xe?Ql(e,f):null,S=Np(e);_p(S);var T=uc(e);if(S.Wd)return CS(e,m),{Pc:function(){var L=o1(S.Wd,T.O.originalId,null,null,T.bandwidth||null,null);return L=wi(T.O.hb(),[L]),ZT(T,t,m,L,0,null,S.Dc)}};if(S.jb)return i||e.ra.contentType==="image"||e.ra.contentType==="text"||(n=e.sa.start,i=e.Ga.id,g=e.sa.duration,i=(i=i!=null&&l.get(i)||g)?n+i:1/0,e.presentationTimeline.Vg(S.jb),e.presentationTimeline.Ai(n,i)),{Pc:function(){return WT(T,S,a,m,l,f,d,e.O.Af)}};var x=null;i=i=null,e.Ga.id&&e.O.id&&(i=e.Ga.id+","+e.O.id,i=n.get(i))&&(x=i.segmentIndex);var M=e.sa.start,R=e.sa.duration?M+e.sa.duration:1/0;return x?(n=x,wy(n,S,M,R,m),n.eb(e.presentationTimeline.Fb())):x=new nd(S,e.O.originalId,e.bandwidth,e.O.hb,e.Ib,M,R,m,f,e.O.Af),S.timeline&&e.ra.contentType!=="image"&&e.ra.contentType!=="text"&&e.presentationTimeline.Bi(x.h?x.h.timeline:[],M),i&&e.dc&&(i.segmentIndex=x),{Pc:function(){return x instanceof nd&&x.getNumReferences()==0&&wy(x,S,M,R,m),Promise.resolve(x)}}}function gi(e){return e.Ec}function Np(e){var t=ul(e,gi),n=Cr(e,gi,"media"),i=Cr(e,gi,"index"),a=Cr(e,gi,"k"),l=0;return a&&(l=parseInt(a,10)),{Hf:t.Hf,jb:t.jb,timescale:t.timescale,me:t.me,Dc:t.Dc,Eh:t.Eh,timeline:t.timeline,Bc:n&&Fi(n),Wd:i,mimeType:e.O.mimeType,codecs:e.O.codecs,bandwidth:e.bandwidth,Ok:l}}function _p(e){var t=e.Wd?1:0;if(t+=e.timeline?1:0,t+=e.jb?1:0,t==0)throw new G(2,4,4002);if(t!=1&&(e.Wd&&(e.timeline=null),e.Hf=null,e.jb=null),!e.Wd&&!e.Bc)throw new G(2,4,4002)}function WT(e,t,n,i,a,l,f,d){function g(ne){var ie=ne-I,ue=ie*L,ce=t.Hf,le=ie*ce;"BigInt"in oe&&le>Number.MAX_SAFE_INTEGER&&(le=BigInt(ie)*BigInt(ce)),ue+=x,ie=ue+L,ce=Math.min(ie,S());var Se=[],ke=t.Ok;if(ke)for(var pt=(ce-ue)/ke,$e={},fn=0;fn<ke;$e={Wi:void 0},fn++){var Ht=ue+pt*fn,Lt=Ht+pt;$e.Wi=fn+1,$e=new Ye(Ht,Lt,function(_t){return function(){var an=o1(U,j,ne,_t.Wi,N,le);return wi(B(),[an],Y())}}($e),0,null,i,P,x,S(),[],"",null,null,so,l),$e.codecs=e.O.codecs,$e.mimeType=e.O.mimeType,d==0?0<fn&&$e.vd():fn%d!=0&&$e.vd(),Se.push($e)}return ue=new Ye(ue,ce,function(){if(ke)return[];var _t=o1(U,j,ne,null,N,le);return wi(B(),[_t],Y())},0,null,i,P,x,S(),Se,"",null,null,so,l,0<Se.length),ue.codecs=e.O.codecs,ue.mimeType=e.O.mimeType,ue.bandwidth=e.bandwidth,ue.j=ie,ue}function m(){var ne=[Math.max(T.Fb(),x),Math.min(T.wc(),S())].map(function(ie){return ie-x});return ne=[Math.ceil(ne[0]/L),Math.ceil(ne[1]/L)-1],e.O.sb&&ne[1]++,ne.map(function(ie){return ie+I})}function S(){var ne=M!=null&&a.get(M)||R;return ne?x+ne:1/0}var T=e.presentationTimeline,x=e.sa.start,M=e.Ga.id,R=e.sa.duration,L=t.jb,I=t.me,U=t.Bc,N=e.bandwidth||null,j=e.O.id,B=e.O.hb,Y=e.Ib,P=x-t.Dc,V=m();n=e.dc?Math.max(V[0],V[1]-n+1):V[0],f=f||V[1],V=[];for(var F=n;F<=f;++F){var K=g(F);V.push(K)}var ee=new Vt(V);if(V=T.wc()<S(),F=T.V(),V||F){var Q=Math.max(n,f+1);n=L,e.O.sb&&(n=.1),ee.If(n,function(){var ne=T.Fb();ee.eb(ne);var ie=b(m());ie.next(),ie=ie.next().value;for(var ue=[];Q<=ie;){var ce=g(Q);ue.push(ce),Q++}return ne>S()&&!ue.length?null:ue})}return Promise.resolve(ee)}function Ql(e,t){var n=e.O.Xe;if(n||(n=Cr(e,gi,"initialization")),!n)return null;n=Fi(n);var i=e.O.originalId,a=e.bandwidth||null,l=e.O.hb,f=e.Ib;return t=new xa(function(){var d=o1(n,i,null,null,a,null);return wi(l(),[d],f())},0,null,Up(e),null,null,t,e.ra.encrypted),t.codecs=e.O.codecs,t.mimeType=e.O.mimeType,e.sa&&(t.g=e.sa.start+e.sa.duration),t}function nd(e,t,n,i,a,l,f,d,g,m){Vt.call(this,[]),this.h=e,this.H=t,this.C=n,this.D=i,this.J=a,this.j=l,this.l=f,this.u=d,this.B=g,this.I=m,Cy(this)}Xe(nd,Vt),w=nd.prototype,w.getNumReferences=function(){return this.h?this.h.timeline.length:0},w.release=function(){Vt.prototype.release.call(this),this.h=null},w.eb=function(e){if(this.h){for(var t=0,n=this.h.timeline,i=0;i<n.length&&n[i].end+this.j<=e;i+=1)t+=1;0<t&&(this.h.timeline=n.slice(t),this.g.length>=t&&(this.g=this.g.slice(t)),this.i+=t,this.getNumReferences()===0&&this.release())}};function wy(e,t,n,i,a){if(mo(e,a),e.h){if(n=e.h.timeline,e.h.Bc!==t.Bc&&(e.h.Bc=t.Bc),n.length){var l=n[n.length-1];t=t.timeline.filter(function(f){return f.end>l.end})}else t=t.timeline.slice();0<t.length&&e.h.timeline.push.apply(e.h.timeline,Ue(t)),e.l!==i&&(e.l=i)}else e.h=t,e.j=n,e.l=i;Cy(e)}function mo(e,t){if(e.u!==t){e.u=t,e=b(e.g);for(var n=e.next();!n.done;n=e.next())(n=n.value)&&qd(n,t)}}function Cy(e){if(e.h&&!e.s){for(var t=[],n=b(e.h.timeline),i=n.next();!i.done;i=n.next())i=i.value,i.start>=e.l||0>=i.end||t.push(i);e.h.timeline=t,e.eb(e.j)}}w.find=function(e){if(this.h&&this.h.timeline&&this.h.timeline.length&&e<this.h.timeline[0].start+this.j)return this.i;if(!this.h)return null;var t=this.h.timeline;if(e<this.j||e>=this.l)return null;for(var n=t.length-1,i=0;i<t.length;i++){var a=t[i],l=a.start+this.j;if(a=i<n?t[i+1].start+this.j:this.l===1/0?a.end+this.j:this.l,e>=l&&e<a)return i+this.i}return null},w.get=function(e){var t=this;if(e-=this.i,0>e||e>=this.getNumReferences()||!this.h)return null;var n=this.g[e];if(!n){var i=this.h.timeline[e],a=i.ll,l=i.Fh+this.h.Eh;n=this.j-this.h.Dc;var f=this.j+i.end,d=f;e===this.getNumReferences()-1&&this.l!==1/0&&(d=Math.min(d,this.l));for(var g=this.h.codecs,m=this.h.mimeType,S=this.h.bandwidth,T=[],x=(i.end-i.start)/i.$b,M={},R=0;R<i.$b;M={Kf:void 0,Xi:void 0},R++){var L=i.start+x*R,I=L+x;M.Xi=R+1,M.Kf=null,M=new Ye(this.j+L,this.j+I,function(U){return function(){return t.h?(U.Kf==null&&(U.Kf=MS(t.h.Bc,t.H,a,t.C,l,U.Xi,t.D,t.J)),U.Kf):[]}}(M),0,null,this.u,n,this.j,this.l,[],"",null,null,so,this.B),M.codecs=g,M.mimeType=m,M.bandwidth=S,this.I==0?0<R&&M.vd():R%this.I!=0&&M.vd(),T.push(M)}n=new Ye(this.j+i.start,d,function(){return 0<i.$b||!t.h?[]:MS(t.h.Bc,t.H,a,t.C,l,null,t.D,t.J)},0,null,this.u,n,this.j,this.l,T,"",null,null,so,this.B,0<i.$b),n.codecs=g,n.mimeType=m,n.j=f,n.bandwidth=S,this.g[e]=n}return n},w.Kb=function(e){Cy(this);for(var t=0;t<this.getNumReferences();t++){var n=this.get(t+this.i);n&&e(n)}};function MS(e,t,n,i,a,l,f,d){return e=o1(e,t,n,l,i||null,a),wi(f(),[e],d()).map(function(g){return g.toString()})}function I0(e){this.s=null,this.B=e,this.I=new Qr,this.i=[],this.h=null,this.m=[],this.C=null,this.H=[],this.D=300,this.l=new Map,this.j=new Map,this.g=null,this.u="UNKNOWN"}I0.prototype.configure=function(e){this.s=e},I0.prototype.destroy=function(){return this.B=this.s=null,this.i=[],this.h=null,this.m=[],this.H=[],this.l.clear(),this.g!=null&&(this.g.stop(),this.g=null),this.I.destroy()},I0.prototype.setManifestType=function(e){this.u=e};function jp(e,t){var n,i,a,l,f,d,g;return q(function(m){if(m.g==1)return n=wi(e.i,[E2(e,t)]),i=yi(n,e.s.retryParameters),a=e.B.networkingEngine.request(8,i),fu(e.I,a),Le(m,2),O(m,a.promise,4);if(m.g!=2)return l=m.h,f=Rn(l.data),d=JSON.parse(f),d.VERSION==1&&d1(e,d,l.uri),Ge(m,0);if((g=je(m))&&g.code==7001)return m.return();e.g!=null&&(e.g.stop(),e.g=null),e.g=new Ke(function(){jp(e,t)}),e.g.$(e.D),ve(m)})}function E2(e,t){if(!e.m.length)return t;t=new un(t);var n=e.C||e.m[0],i=Math.round(e.B.getBandwidthEstimate()),a=t.g;return e.u=="DASH"?(a.add("_DASH_pathway",n),a.add("_DASH_throughput",String(i))):e.u=="HLS"&&(a.add("_HLS_pathway",n),a.add("_HLS_throughput",String(i))),yr(a)&&wu(t,a),t.toString()}function d1(e,t,n){e.g!=null&&(e.g.stop(),e.g=null);var i=t["RELOAD-URI"]||n;e.g=new Ke(function(){jp(e,i)}),(n=t.TTL)&&(e.D=n),e.g.$(e.D),e.m=t["PATHWAY-PRIORITY"]||[],e.H=t["PATHWAY-CLONES"]||[]}function Zl(e,t,n,i){var a=e.l.get(t);a||(a=new Map),a.set(n,i),e.l.set(t,a)}I0.prototype.banLocation=function(e){this.j.set(e,Date.now()+6e4)};function h1(e,t,n){n=n===void 0?!1:n,t=e.l.get(t)||new Map;for(var i=[],a=b(e.m),l=a.next(),f={};!l.done;f={zd:void 0},l=a.next())if(f.zd=l.value,l=t.get(f.zd))i.push({$g:f.zd,location:l});else if(l=e.H.find(function(g){return function(m){return m.$l==g.zd}}(f))){var d=t.get(l["BASE-ID"]);d&&(l["URI-REPLACEMENT"].jj?(d=new un(d),Qu(d,l["URI-REPLACEMENT"].jj),i.push({$g:f.zd,location:d.toString()})):i.push({$g:f.zd,location:d}))}for(a=Date.now(),f=b(e.j.keys()),l=f.next();!l.done;l=f.next())l=l.value,d=e.j.get(l),a>d&&e.j.delete(l);if(i=i.filter(function(g){for(var m=b(e.j.keys()),S=m.next();!S.done;S=m.next())if(S.value.includes(new un(g.location).Cb))return!1;return!0}),i.length&&(e.C=i[0].$g),i=i.map(function(g){return g.location}),!i.length&&e.h)for(a=b(e.h.split(",")),f=a.next();!f.done;f=a.next())(f=t.get(f.value))&&(e.C=e.h,i.push(f));if(!i.length)for(t=b(t.values()),a=t.next();!a.done;a=t.next())i.push(a.value);return n?i:wi(e.i,i)}function Wa(){this.l=[],this.h=[],this.g=[],this.j=[],this.i=[],this.u=this.s=!1,this.m=new Set}w=Wa.prototype,w.release=function(){for(var e=b(this.h.concat(this.g,this.j,this.i)),t=e.next();!t.done;t=e.next())t=t.value,t.segmentIndex&&t.segmentIndex.release();this.h=[],this.g=[],this.j=[],this.i=[],this.l=[],this.u=this.s=!1,this.m.clear()},w.pk=function(){return this.l},w.Jg=function(){return this.j.slice()},w.Oj=function(){return this.i},w.Wh=function(e,t){if(e){if(e.type=="audio")for(var n=b(this.h),i=n.next();!i.done;i=n.next())i=i.value,i.matchedStreams=i.matchedStreams.filter(function(a){return a!==e});else if(e.type=="video")for(n=b(this.g),i=n.next();!i.done;i=n.next())i=i.value,i.matchedStreams=i.matchedStreams.filter(function(a){return a!==e}),i.trickModeVideo&&(i.trickModeVideo.matchedStreams=i.trickModeVideo.matchedStreams.filter(function(a){return a!==e})),i.dependencyStream&&(i.dependencyStream.matchedStreams=i.dependencyStream.matchedStreams.filter(function(a){return a!==e}));else if(e.type==lt)for(n=b(this.j),i=n.next();!i.done;i=n.next())i=i.value,i.matchedStreams=i.matchedStreams.filter(function(a){return a!==e});else if(e.type=="image")for(n=b(this.i),i=n.next();!i.done;i=n.next())i=i.value,i.matchedStreams=i.matchedStreams.filter(function(a){return a!==e});e.segmentIndex&&e.closeSegmentIndex(),this.m.delete(t)}};function A2(e,t){var n=[],i=[],a=[],l=[];e=b(e);for(var f=e.next();!f.done;f=e.next()){var d=f.value;f=new Map(d.audioStreams.map(function(T){return[Ry(T),T]}));var g=new Map(d.videoStreams.map(function(T){return[aE(T),T]})),m=new Map(d.textStreams.map(function(T){return[id(T),T]}));if(d=new Map(d.imageStreams.map(function(T){return[U0(T),T]})),t){var S=O0(lt);m.set(id(S),S),S=O0("image"),d.set(U0(S),S)}n.push(f),i.push(g),a.push(m),l.push(d)}return{Mh:n,gj:i,aj:a,ki:l}}w.fg=function(e,t,n){n=n===void 0?!1:n;var i=this,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne,ie,ue,ce,le,Se,ke,pt;return q(function($e){if($e.g==1){if(a=ui,!t&&e.length==1)return l=A2(e,!1),f=l.Mh,d=l.gj,g=l.aj,m=l.ki,i.h=Array.from(f[0].values()),i.g=Array.from(d[0].values()),i.j=Array.from(g[0].values()),i.i=Array.from(m[0].values()),$e.A(2);for(S=n?i.m.size:0,T=-1,x=0;x<e.length;x++)M=e[x],i.m.has(M.id)||(i.m.add(M.id),T==-1&&(T=x));return T==-1?$e.return():(R=A2(e,!0),L=R.Mh,I=R.gj,U=R.aj,N=R.ki,O($e,Promise.all([yh(i,i.h,L,T,Mr,Jl,S),yh(i,i.g,I,T,Mr,Jl,S),yh(i,i.j,U,T,Mr,Jl,S),yh(i,i.i,N,T,Mr,Jl,S)]),2))}if(j=0,B=[],i.g.length&&i.h.length)for(Q=b(i.h),ne=Q.next();!ne.done;ne=Q.next())for(ie=ne.value,ue=b(i.g),ce=ue.next();!ce.done;ce=ue.next())le=ce.value,Se=Js(ie.drmInfos,le.drmInfos),ie.drmInfos.length&&le.drmInfos.length&&!Se.length||(ke=(ie.bandwidth||0)+(le.bandwidth||0),ie.dependencyStream&&(ke+=ie.dependencyStream.bandwidth||0),le.dependencyStream&&(ke+=le.dependencyStream.bandwidth||0),pt=j++,B.push({id:pt,language:ie.language,disabledUntilTime:0,primary:ie.primary,audio:ie,video:le,bandwidth:ke,drmInfos:Se,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(Y=i.g.length?i.g:i.h,P=b(Y),V=P.next();!V.done;V=P.next())F=V.value,K=j++,ee=F.bandwidth||0,F.dependencyStream&&(ee+=F.dependencyStream.bandwidth||0),B.push({id:K,language:F.language,disabledUntilTime:0,primary:F.primary,audio:F.type==a.aa?F:null,video:F.type==a.Ba?F:null,bandwidth:ee,drmInfos:F.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});i.l=B,ve($e)})};function zp(e){var t,n,i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne,ie,ue;return q(function(ce){switch(ce.g){case 1:if(t=ui,e.length==1)return ce.return(e[0]);for(n=e.map(function(le){return new Map(le.filter(function(Se){return Se.type===t.aa}).map(function(Se){return[Ry(Se),Se]}))}),i=e.map(function(le){return new Map(le.filter(function(Se){return Se.type===t.Ba}).map(function(Se){return[aE(Se),Se]}))}),a=e.map(function(le){return new Map(le.filter(function(Se){return Se.type===t.Na}).map(function(Se){return[id(Se),Se]}))}),l=e.map(function(le){return new Map(le.filter(function(Se){return Se.type===t.Rf}).map(function(Se){return[U0(Se),Se]}))}),f=b(a),d=f.next();!d.done;d=f.next())g=d.value,m=by(t.Na),g.set(id(m),m);for(S=b(l),T=S.next();!T.done;T=S.next())x=T.value,M=by(t.Rf),x.set(U0(M),M);return R=new Wa,O(ce,yh(R,[],n,0,Pc,Hc,0),2);case 2:return L=ce.h,O(ce,yh(R,[],i,0,Pc,Hc,0),3);case 3:return I=ce.h,O(ce,yh(R,[],a,0,Pc,Hc,0),4);case 4:return U=ce.h,O(ce,yh(R,[],l,0,Pc,Hc,0),5);case 5:if(N=ce.h,j=0,I.length&&L.length)for(F=b(L),K=F.next();!K.done;K=F.next())for(ee=K.value,Q=b(I),ne=Q.next();!ne.done;ne=Q.next())ie=ne.value,ue=j++,ie.variantIds.push(ue),ee.variantIds.push(ue);else for(B=I.concat(L),Y=b(B),P=Y.next();!P.done;P=Y.next())V=P.value,V.variantIds=[j++];return ce.return(I.concat(L).concat(U).concat(N))}})}function yh(e,t,n,i,a,l,f){var d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K;return q(function(ee){switch(ee.g){case 1:for(d=[],g=0;g<n.length;g++)g>=i?d.push(new Set(n[g].values())):d.push(new Set);m=b(t),S=m.next();case 2:if(S.done){ee.A(4);break}return T=S.value,O(ee,x2(e,T,n,i,l,d,f),5);case 5:if(x=ee.h,!x)throw new G(2,4,4037);S=m.next(),ee.A(2);break;case 4:for(M=b(d),R=M.next();!R.done;R=M.next())for(L=R.value,I=b(L),U=I.next();!U.done;U=I.next())N=U.value,(j=o4(e,N,n,a,l,d))&&t.push(j);for(B=b(d),Y=B.next();!Y.done;Y=B.next())for(P=Y.value,V=b(P),F=V.next(),K={};!F.done;K={uh:void 0},F=V.next())if(K.uh=F.value,!IS(K.uh)&&t.some(function(Q){return function(ne){return tE(e,Q.uh,ne)}}(K)))throw new G(2,4,4037);return ee.return(t)}})}function x2(e,t,n,i,a,l,f){return q(function(d){return d.g==1?(RS(e,n,t,0<f),t.matchedStreams?t.segmentIndex?O(d,$T(t,i+f),2):d.A(2):d.return(!1)):(bS(t,i,a,l,f),d.return(!0))})}function $T(e,t){var n,i,a,l,f,d;return q(function(g){if(g.g==1){for(n=[],i=e.matchedStreams,a=t;a<i.length;a++)l=i[a],n.push(l.createSegmentIndex()),l.trickModeVideo&&!l.trickModeVideo.segmentIndex&&n.push(l.trickModeVideo.createSegmentIndex()),l.dependencyStream&&!l.dependencyStream.segmentIndex&&n.push(l.dependencyStream.createSegmentIndex());return O(g,Promise.all(n),2)}if(e.segmentIndex instanceof Yn)for(f=t;f<i.length;f++)d=i[f],d.segmentIndex&&e.segmentIndex.h.push(d.segmentIndex);ve(g)})}function o4(e,t,n,i,a,l){if(IS(t))return null;var f=i(t);return RS(e,n,f),f.createSegmentIndex&&(f.createSegmentIndex=function(){return q(function(d){return f.segmentIndex?d.A(0):(f.segmentIndex=new Yn,O(d,$T(f,0),0))})}),!f.matchedStreams||!f.matchedStreams.length?null:(bS(f,0,a,l,0),f)}function bS(e,t,n,i,a){var l=e.matchedStreams;for(t+=a;t<l.length;t++){var f=l[t];n(e,f);var d=!0;if(e.type=="audio"&&xl(e.language,f.language)==0&&(d=!1),d&&(i[t-a].delete(f),f.fullMimeTypes))for(f=b(f.fullMimeTypes.values()),d=f.next();!d.done;d=f.next())e.fullMimeTypes.add(d.value)}}function Mr(e){var t=Object.assign({},e);return t.originalId=null,t.createSegmentIndex=function(){return Promise.resolve()},t.closeSegmentIndex=function(){if(t.segmentIndex&&(t.segmentIndex.release(),t.segmentIndex=null),t.matchedStreams)for(var n=b(t.matchedStreams),i=n.next();!i.done;i=n.next())i=i.value,i.segmentIndex&&(i.segmentIndex.release(),i.segmentIndex=null)},t.roles=t.roles.slice(),t.segmentIndex=null,t.emsgSchemeIdUris=[],t.keyIds=new Set(e.keyIds),t.closedCaptions=e.closedCaptions?new Map(e.closedCaptions):null,t.trickModeVideo=null,t.dependencyStream=null,t}function Pc(e){var t=Object.assign({},e);return t.roles=t.roles.slice(),t.keyIds=new Set(e.keyIds),t.segments=[],t.variantIds=[],t.closedCaptions=e.closedCaptions?new Map(e.closedCaptions):null,t}function Jl(e,t){function n(f,d){f||(f=[]),d=b(d);for(var g=d.next();!g.done;g=d.next())g=g.value,f.includes(g)||f.push(g);return f}e.roles=n(e.roles,t.roles),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=n(e.emsgSchemeIdUris,t.emsgSchemeIdUris));for(var i=b(t.keyIds),a=i.next();!a.done;a=i.next())e.keyIds.add(a.value);if(e.originalId==null?e.originalId=t.originalId:(i=t.originalId||"")&&!e.originalId.endsWith(i)&&(e.originalId+=","+i),i=Js(e.drmInfos,t.drmInfos),t.drmInfos.length&&e.drmInfos.length&&!i.length)throw new G(2,4,4038);if(e.drmInfos=i,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions)for(e.closedCaptions||(e.closedCaptions=new Map),i=b(t.closedCaptions),a=i.next();!a.done;a=i.next()){var l=b(a.value);a=l.next().value,l=l.next().value,e.closedCaptions.set(a,l)}e.bandwidth&&t.bandwidth&&(e.bandwidth=Math.max(e.bandwidth,t.bandwidth)),t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=Mr(t.trickModeVideo),e.trickModeVideo.matchedStreams=[],e.trickModeVideo.createSegmentIndex=function(){if(e.trickModeVideo.segmentIndex)return Promise.resolve();for(var f=new Yn,d=b(e.trickModeVideo.matchedStreams),g=d.next();!g.done;g=d.next())f.h.push(g.value.segmentIndex);return e.trickModeVideo.segmentIndex=f,Promise.resolve()}),e.trickModeVideo.matchedStreams.push(t.trickModeVideo),Jl(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&(e.trickModeVideo.matchedStreams.push(t),Jl(e.trickModeVideo,t)),t.dependencyStream?(e.dependencyStream||(e.dependencyStream=Mr(t.dependencyStream),e.dependencyStream.matchedStreams=[],e.dependencyStream.createSegmentIndex=function(){if(e.dependencyStream.segmentIndex)return Promise.resolve();for(var f=new Yn,d=b(e.dependencyStream.matchedStreams),g=d.next();!g.done;g=d.next())f.h.push(g.value.segmentIndex);return e.dependencyStream.segmentIndex=f,Promise.resolve()}),e.dependencyStream.matchedStreams.push(t.dependencyStream),Jl(e.dependencyStream,t.dependencyStream)):e.dependencyStream&&(e.dependencyStream.matchedStreams.push(t),Jl(e.dependencyStream,t))}function Hc(e,t){var n=e.roles;n||(n=[]);for(var i=b(t.roles),a=i.next();!a.done;a=i.next())a=a.value,n.includes(a)||n.push(a);for(e.roles=n,n=b(t.keyIds),i=n.next();!i.done;i=n.next())e.keyIds.add(i.value);if(e.encrypted=e.encrypted&&t.encrypted,e.segments.push.apply(e.segments,Ue(t.segments)),t.closedCaptions)for(e.closedCaptions||(e.closedCaptions=new Map),t=b(t.closedCaptions),n=t.next();!n.done;n=t.next())i=b(n.value),n=i.next().value,i=i.next().value,e.closedCaptions.set(n,i)}function RS(e,t,n,i){i=i!==void 0&&i?n.matchedStreams:[],t=b(t);for(var a=t.next();!a.done;a=t.next()){if(a=eE(e,a.value,n),!a)return;i.push(a)}n.matchedStreams=i}function eE(e,t,n){var i={audio:Ry,video:aE,text:id,image:U0}[n.type],a=null,l=i(n);if(t.has(l))a=t.get(l);else{l={audio:function(m,S){return tE(e,m,S)},video:function(m,S){return tE(e,m,S)},text:p1,image:nE}[n.type];for(var f={audio:iE,video:DS,text:l4,image:L0}[n.type],d=b(t.values()),g=d.next();!g.done;g=d.next())g=g.value,!l(n,g)||n.fastSwitching!=g.fastSwitching||a&&!f(n,a,g)||(a=g)}return e.u&&!IS(a)&&t.delete(i(a)),a}function My(e,t){return e.mimeType!=t.mimeType?!1:Dy(e.codecs)===Dy(t.codecs)}w.Li=function(e){this.s=e},w.Si=function(e){this.u=e};function tE(e,t,n){return!(!My(t,n)&&!e.s||t.drmInfos&&!Xr(t.drmInfos,n.drmInfos))}function p1(e,t){return t.language?!(e.forced!==t.forced||xl(e.language,t.language)==0||t.kind!=e.kind):!0}function nE(){return!0}function iE(e,t,n){var i=My(e,t),a=My(e,n);if(i&&!a)return!1;if(!i&&a||(i=xl(e.language,t.language),a=xl(e.language,n.language),a>i))return!0;if(a<i)return!1;if(t.label!==n.label){if(e.label===t.label)return!1;if(e.label===n.label)return!0}if(e.roles.length){if(i=t.roles.filter(function(l){return e.roles.includes(l)}),a=n.roles.filter(function(l){return e.roles.includes(l)}),a.length>i.length)return!0;if(a.length<i.length)return!1;if(n.roles.length!==t.roles.length)return n.roles.length<t.roles.length}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return!t.primary&&n.primary?!0:t.primary&&!n.primary?!1:(i=Bp(e.channelsCount,t.channelsCount,n.channelsCount),i==cl?!0:i==yo?!1:(i=Bp(e.audioSamplingRate,t.audioSamplingRate,n.audioSamplingRate),i==cl?!0:i==yo?!1:!!(e.bandwidth&&rE(e.bandwidth,t.bandwidth,n.bandwidth)==cl)))}function DS(e,t,n){var i=My(e,t),a=My(e,n);if(i&&!a)return!1;if(!i&&a||(i=Bp(e.width*e.height,t.width*t.height,n.width*n.height),i==cl))return!0;if(i==yo)return!1;if(e.frameRate){if(i=Bp(e.frameRate,t.frameRate,n.frameRate),i==cl)return!0;if(i==yo)return!1}return!!(e.bandwidth&&rE(e.bandwidth,t.bandwidth,n.bandwidth)==cl)}function l4(e,t,n){var i=xl(e.language,t.language),a=xl(e.language,n.language);if(a>i)return!0;if(a<i)return!1;if(!t.primary&&n.primary)return!0;if(t.primary&&!n.primary)return!1;if(t.label!==n.label){if(e.label===t.label)return!1;if(e.label===n.label)return!0}if(e.roles.length){if(i=t.roles.filter(function(l){return e.roles.includes(l)}),a=n.roles.filter(function(l){return e.roles.includes(l)}),a.length>i.length)return!0;if(a.length<i.length)return!1}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return!(n.mimeType!=e.mimeType||n.codecs!=e.codecs||t.mimeType==e.mimeType&&t.codecs==e.codecs)}function L0(e,t,n){return Bp(e.width*e.height,t.width*t.height,n.width*n.height)==cl}function by(e){return{id:0,originalId:"",groupId:null,primary:!1,type:e,mimeType:"",codecs:"",language:"",originalLanguage:null,label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1,baseOriginalId:null}}function O0(e){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vt([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:e,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null}}function Bp(e,t,n){if(t==e&&e!=n)return yo;if(n==e&&e!=t)return cl;if(t>e){if(n<=e||n-e<t-e)return cl;if(n-e>t-e)return yo}else{if(n>e)return yo;if(e-n<e-t)return cl;if(e-n>e-t)return yo}return LS}function rE(e,t,n){return t=Math.abs(e-t),e=Math.abs(e-n),e<t?cl:t<e?yo:LS}function IS(e){switch(e.type){case lt:return!e.language;case"image":return!e.tilesLayout;default:return!1}}function aE(e){return JSON.stringify([e.fastSwitching,e.width,e.frameRate,Dy(e.codecs),e.mimeType,e.label,e.roles,e.closedCaptions?Array.from(e.closedCaptions.entries()):null,e.bandwidth,e.dependencyStream?e.dependencyStream.baseOriginalId:null,Array.from(e.keyIds)])}function Ry(e){return JSON.stringify([e.fastSwitching,e.channelsCount,e.language,e.bandwidth,e.label,Dy(e.codecs),e.mimeType,e.roles,e.audioSamplingRate,e.primary,e.dependencyStream?e.dependencyStream.baseOriginalId:null,Array.from(e.keyIds)])}function id(e){return JSON.stringify([e.language,e.label,e.codecs,e.mimeType,e.bandwidth,e.roles])}function U0(e){return JSON.stringify([e.width,e.codecs,e.mimeType])}function Dy(e){if(!g1.has(e)){var t=In(e);g1.set(e,t)}return g1.get(e)}xe("shaka.util.PeriodCombiner",Wa),Wa.prototype.setUseStreamOnce=Wa.prototype.Si,Wa.prototype.setAllowMultiTypeVariants=Wa.prototype.Li,Wa.prototype.combinePeriods=Wa.prototype.fg,Wa.prototype.deleteStream=Wa.prototype.Wh,Wa.prototype.getImageStreams=Wa.prototype.Oj,Wa.prototype.getTextStreams=Wa.prototype.Jg,Wa.prototype.getVariants=Wa.prototype.pk;var cl=1,LS=0,yo=-1,g1=new Map;function m1(e,t){var n=new DOMParser,i=US.value()(e);e=null;try{e=n.parseFromString(i,"text/xml")}catch{return null}if(n=e.documentElement,!n||n.getElementsByTagName("parsererror").length||n.tagName!=t)return null;if(!("createNodeIterator"in document))return n;for(t=document.createNodeIterator(e,NodeFilter.SHOW_ALL);e=t.nextNode();)if(e instanceof HTMLElement||e instanceof SVGElement)return null;return n}function OS(e,t){try{var n=ka(e);return m1(n,t)}catch{return null}}var US=new Zs(function(){if(typeof trustedTypes<"u"){var e=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(t){return t}});return function(t){return e.createHTML(t)}}return function(t){return t}});function y1(){var e=this;this.j=this.g=null,this.B=[],this.i=null,this.ua=1,this.H=[],this.l={kf:"",type:"",profiles:[],ic:null,sb:0,hb:null,fe:0},this.u=new Map,this.s=new Map,this.C=new Map,this.oa=new Map,this.m=new Wa,this.K=0,this.qa=new Ch(5),this.L=new Ke(function(){if(e.J&&!e.g.continueLoadingWhenPaused&&(e.I.Ea(e.J,"timeupdate"),e.J.paused)){e.I.wa(e.J,"timeupdate",function(){return R2(e)});return}R2(e)}),this.P=new Qr,this.N=null,this.D=[],this.Z=1/0,this.ea=!1,this.h=null,this.M=0,this.R=!1,this.I=new Ft,this.J=null,this.S=!1,this.Y="",this.ba=function(){return!1},this.U=[]}w=y1.prototype,w.configure=function(e,t){var n=this.j&&e.updatePeriod!=this.g.updatePeriod&&0<=e.updatePeriod;this.g=e,t&&(this.ba=t),n&&this.i&&this.i.presentationTimeline.V()&&this.L.Ia(),this.h&&this.h.configure(this.g),this.m&&(this.m.Li(this.g.dash.multiTypeVariantsAllowed&&eo()),this.m.Si(this.g.dash.useStreamOnceInPeriodFlattening))},w.start=function(e,t){var n=this,i;return q(function(a){if(a.g==1)return n.ea=t.isLowLatencyMode(),n.B=[e],n.j=t,O(a,kS(n),2);if(i=a.h,n.j&&S1(n,i),!n.j)throw new G(2,7,7001);return a.return(n.i)})},w.stop=function(){for(var e=b(this.s.values()),t=e.next();!t.done;t=e.next())t=t.value,t.segmentIndex&&t.segmentIndex.release();return this.m&&this.m.release(),this.g=this.j=null,this.B=[],this.i=null,this.s.clear(),this.C.clear(),this.u.clear(),this.l={kf:"",type:"",profiles:[],ic:null,sb:0,hb:null,fe:0},this.m=null,this.L!=null&&(this.L.stop(),this.L=null),this.h&&this.h.destroy(),this.I&&(this.I.release(),this.I=null),this.P.destroy()},w.update=function(){var e=this,t;return q(function(n){if(n.g==1)return Le(n,2),O(n,kS(e),4);if(n.g!=2)return Ge(n,0);if(t=je(n),!e.j||!t)return n.return();e.j.onError(t),ve(n)})},w.onExpirationUpdated=function(){},w.onInitialVariantChosen=function(e){if(this.i&&this.i.presentationTimeline.V()){var t=e.video||e.audio;if(t&&t.segmentIndex){e=this.i.presentationTimeline.wc();var n=t.segmentIndex.find(e);n!=null&&(t=t.segmentIndex.get(n))&&(this.K=t.endTime-e,S1(this,0))}}},w.banLocation=function(e){this.h&&this.h.banLocation(e)},w.setMediaElement=function(e){this.J=e};function kS(e){var t,n,i,a,l,f,d,g,m,S,T;return q(function(x){return x.g==1?(t=4,n="MPD",i=I2(e),a=e.B,i.length?(a=i,n="Patch",t=6):1<e.B.length&&e.h&&(l=h1(e.h,"Location",!0),l.length&&(a=l)),f=yi(a,e.g.retryParameters),d=Date.now(),O(x,T1(e,f,0,{type:t}),2)):x.g!=3?(g=x.h,e.j?(g.uri&&g.uri!=g.originalUri&&!e.B.includes(g.uri)&&e.B.unshift(g.uri),m=new un(g.uri),e.Y=m.g.toString(),O(x,NS(e,g.data,g.uri,n),3)):x.return(0)):(S=Date.now(),T=(S-d)/1e3,e.qa.sample(1,T),x.return(T))})}function NS(e,t,n,i){var a,l,f,d,g,m,S,T,x,M;return q(function(R){if(R.g==1){if(a=t,l=e.g.dash.manifestPreprocessor,f=Jo,l!=f){if(Gt("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead."),d=OS(a,i),!d)throw new G(2,4,4001,n);l(d),a=Do(d.outerHTML)}if(g=Ed(a,i),!g)throw new G(2,4,4001,n);return m=e.g.dash.manifestPreprocessorTXml,S=ih,m!=S&&m(g),i==="Patch"?R.return(_S(e,g)):e.g.dash.disableXlinkProcessing?R.return(uE(e,g,n)):(T=e.g.dash.xlinkFailGracefully,x=mh(g,e.g.retryParameters,T,n,e.j.networkingEngine),fu(e.P,x),O(R,x.promise,2))}return M=R.h,R.return(uE(e,M,n))})}function uE(e,t,n){var i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne,ie,ue,ce,le,Se,ke,pt,$e,fn,Ht,Lt,_t,an,Rt,Yt,vt,Dt,kn,Vr,mi,Ai,hr,oa,z1,V0,Uy;return q(function(Kc){switch(Kc.g){case 1:for(e.h&&e.h.l.clear(),i=[n],a=[],l=new Map,f=wt(t,"Location"),d=b(f),g=d.next();!g.done;g=d.next())m=g.value,S=m.attributes.serviceLocation,(T=ar(m))&&(x=wi(i,[T])[0],S&&(e.h?Zl(e.h,"Location",S,x):l.set(S,x)),a.push(x));if(e.h?(M=h1(e.h,"Location",!0),0<M.length&&(i=e.B=M)):a.length&&(i=e.B=a),e.l.kf=t.attributes.id||"",e.l.fe=ct(t,"publishTime",au)||0,e.H=wt(t,"PatchLocation"),R=Promise.resolve(),(L=Wn(t,"ContentSteering"))&&e.j)for(I=L.attributes.defaultServiceLocation,e.h?(e.h.i=i,e.h.h=I):(e.h=new I0(e.j),e.h.configure(e.g),e.h.setManifestType("DASH"),e.h.i=i,e.h.h=I,(U=ar(L))&&(ct(L,"queryBeforeStart",no,!1)?R=jp(e.h,U):jp(e.h,U))),N=b(l.keys()),j=N.next();!j.done;j=N.next())B=j.value,Y=l.get(B),Zl(e.h,"Location",B,Y);if(P=wt(t,"BaseURL"),V=!1,e.h)for(F=b(P),K=F.next();!K.done;K=F.next())ee=K.value,Q=ee.attributes.serviceLocation,ne=ar(ee),Q&&ne&&(Zl(e.h,"BaseURL",Q,ne),V=!0);if(e.U=null,V&&e.h||(ie=P.map(ar),e.U=wi(i,ie)),ue=function(){return e.h&&V?h1(e.h,"BaseURL"):e.U?e.U:[]},e.l.hb=ue,ce=0,P&&P.length&&(ce=ct(P[0],"availabilityTimeOffset",ou)||0),e.l.sb=ce,e.K=ct(t,"minimumUpdatePeriod",Ha,-1),le=ct(t,"availabilityStartTime",au),Se=ct(t,"timeShiftBufferDepth",Ha),ke=e.g.dash.ignoreSuggestedPresentationDelay,pt=null,ke||(pt=ct(t,"suggestedPresentationDelay",Ha)),$e=e.g.dash.ignoreMaxSegmentDuration,fn=null,$e||(fn=ct(t,"maxSegmentDuration",Ha)),Ht=t.attributes.type||"static",e.i&&e.i.presentationTimeline&&(e.S=e.i.presentationTimeline.V()&&Ht=="static"),e.l.type=Ht,e.i)for(Lt=e.i.presentationTimeline,_t=Lt.Fb(),an=b(e.s.values()),Rt=an.next();!Rt.done;Rt=an.next())Yt=Rt.value,Yt.segmentIndex&&Yt.segmentIndex.eb(_t);else vt=e.g.dash.ignoreMinBufferTime,Dt=0,vt||(Dt=ct(t,"minBufferTime",Ha)||0),kn=0,kn=pt!=null?Math.min(pt,Se||1/0):0<e.g.defaultPresentationDelay?e.g.defaultPresentationDelay:Math.min(1.5*Dt,Se||1/0),Lt=new We(le,kn,e.g.dash.autoCorrectDrift);return Lt.ed(Ht=="static"),Lt.V()&&!isNaN(e.g.availabilityWindowOverride)&&(Se=e.g.availabilityWindowOverride),Se==null&&(Se=1/0),Lt.Bf(Se),Vr=t.attributes.profiles||"",e.l.profiles=Vr.split(","),mi={dc:Ht!="static",presentationTimeline:Lt,Ga:null,sa:null,ra:null,O:null,bandwidth:0,Og:!1,sb:ce,ic:null,profiles:Vr.split(","),roles:null,Ib:function(){return""}},O(Kc,R,2);case 2:return e.M=0,Ai=b2(e,mi,ue,t,!1),hr=Ai.duration,oa=Ai.periods,(Ht!="static"||e.S)&&Ai.Yh||Lt.rb(hr||1/0),e.R&&e.ea&&Lt.Mi(e.Z),Lt.Vg(fn||1),e.R&&e.ea&&(z1=pt??e.g.defaultPresentationDelay,Lt.mh(z1)),e.i?(e.i.periodCount=oa.length,e.i.gapCount=e.M,O(Kc,v1(e,oa,!1),4)):O(Kc,e.m.fg(oa,mi.dc),6);case 6:if(e.i={presentationTimeline:Lt,variants:e.m.l,textStreams:e.m.Jg(),imageStreams:e.m.i,offlineSessionIds:[],sequenceMode:e.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:k0(t),nextUrl:oE(t),periodCount:oa.length,gapCount:e.M,isLowLatency:e.R,startTime:null},!Lt.dj()){Kc.A(7);break}return V0=wt(t,"UTCTiming"),O(Kc,PS(e,ue,V0),8);case 8:if(Uy=Kc.h,!e.j)return Kc.return();Lt.Ni(Uy);case 7:Lt.ef(),e.m&&!e.i.presentationTimeline.V()&&e.m.release();case 4:e.j.makeTextStreamsForClosedCaptions(e.i),s4(e),ve(Kc)}})}function v1(e,t,n){var i;return q(function(a){if(a.g==1)return O(a,e.m.fg(t,!0,n),2);e.i.variants=e.m.l,i=e.m.Jg(),0<i.length&&(e.i.textStreams=i),e.i.imageStreams=e.m.i,e.j.filter(e.i),ve(a)})}function _S(e,t){var n,i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne;return q(function(ie){if(ie.g==1){if(n=t.attributes.mpdId,i=ct(t,"originalPublishTime",au),!n||n!==e.l.kf||i!==e.l.fe)throw e.H=[],new G(1,4,4052);for(a=[],l=[],f=new Set,d=b(um(t)),g=d.next();!g.done;g=d.next())if(m=g.value,S=Oh(m.attributes.sel||""),T=S[S.length-1],x=ar(m)||"",T.name==="MPD")if(T.sc==="mediaPresentationDuration"){M=ar(m)||"";var ue=Ha(M);if(ue!=null){e.l.ic=ue;for(var ce=b(e.u.values()),le=ce.next();!le.done;le=ce.next())le.value.ic=ue}}else if(T.sc==="type"){for(e.i.presentationTimeline.ed(x=="static"),e.l.type=x,ue=b(e.u.values()),ce=ue.next();!ce.done;ce=ue.next())ce.value.dc=x=="dynamic";x=="static"&&(e.K=-1)}else T.sc==="publishTime"?e.l.fe=au(x)||0:T.sc===null&&m.tagName==="add"&&l.push(m);else if(T.name==="PatchLocation")Yy(e.H,m);else if(T.name==="Period")m.tagName==="add"?l.push(m):m.tagName==="remove"&&T.id&&jS(e,T.id);else if(T.name==="SegmentTemplate"){if(ce=Oh(m.attributes.sel||""),ue=ce[ce.length-1],ue.sc){ce=C2(e,ce),le=ar(m)||"";for(var Se=b(ce),ke=Se.next();!ke.done;ke=Se.next())ke=e.u.get(ke.value),sg(ke.O.Ec,m.tagName,ue.sc,le);ue=ce}else ue=[];for(R=ue,L=b(R),I=L.next();!I.done;I=L.next())U=I.value,f.add(U)}else if(T.name==="SegmentTimeline"||T.name==="S"){for(ue=Oh(m.attributes.sel||""),ue=C2(e,ue),ce=b(ue),le=ce.next();!le.done;le=ce.next())le=e.u.get(le.value),le=ol(le,gi,"SegmentTimeline"),Se=wt(le,"S"),Yy(Se,m),le.children=Se;for(N=ue,j=b(N),B=j.next();!B.done;B=j.next())Y=B.value,f.add(Y)}for(P=b(f),V=P.next();!V.done;V=P.next())F=V.value,M2(e,F);for(K=b(l),ee=K.next();!ee.done;ee=K.next())Q=ee.value,a.push.apply(a,Ue(w2(e,Q)));return a.length?(e.i.periodCount+=a.length,e.i.gapCount=e.M,O(ie,v1(e,a,!0),2)):ie.A(2)}e.l.type=="static"&&(ne=e.l.ic,e.i.presentationTimeline.rb(ne||1/0)),ve(ie)})}function w2(e,t){return b2(e,{dc:e.l.type=="dynamic",presentationTimeline:e.i.presentationTimeline,Ga:null,sa:null,ra:null,O:null,bandwidth:0,Og:!1,sb:e.l.sb,profiles:e.l.profiles,ic:e.l.ic,roles:null,Ib:function(){return""}},e.l.hb,t,!0).periods}function jS(e,t){e.i.periodCount--;for(var n=b(e.u.keys()),i=n.next();!i.done;i=n.next())if(i=i.value,i.startsWith(t)){var a=e.u.get(i);ol(a,gi,"SegmentTimeline").children=[],M2(e,i),e.u.delete(i)}e.D=e.D.filter(function(l){return l!==t})}function C2(e,t){var n="",i="",a=-1,l="";t=b(t);for(var f=t.next();!f.done;f=t.next())f=f.value,f.name==="Period"?n=f.id:f.name==="AdaptationSet"?(i=f.id,f.position!==null&&(a=f.position)):f.name==="Representation"&&(l=f.id);if(t=[],l)t.push(n+","+l);else if(i)for(a=b(e.u.values()),e=a.next();!e.done;e=a.next())e=e.value,e.Ga.id===n&&e.ra.id===i&&e.O.id&&t.push(n+","+e.O.id);else if(-1<a)for(i=b(e.u.values()),e=i.next();!e.done;e=i.next())e=e.value,e.Ga.id===n&&e.ra.position===a&&e.O.id&&t.push(n+","+e.O.id);return t}function M2(e,t){var n=e.u.get(t),i=e.s.get(t);i.segmentIndex&&i.segmentIndex.eb(e.i.presentationTimeline.Fb());try{var a=Bc(n,function(l,f,d,g){return HS(e,l,f,d,g)},e.s,!0,e.g.dash.initialSegmentLimit,e.oa,n.O.aesKey,null,!0);i.createSegmentIndex=function(){return q(function(l){if(l.g==1)return i.segmentIndex?l.A(0):O(l,a.Pc(),3);i.segmentIndex=l.h,ve(l)})}}catch(l){if(t=n.O.contentType,t!=lt&&t!="application"&&t!="image"||l.code!=4002)throw l}}function k0(e){var t=Wn(e,"ServiceDescription");if(!t||(e=Wn(t,"Latency"),t=Wn(t,"PlaybackRate"),!e&&!t))return null;var n={};return e&&("target"in e.attributes&&(n.targetLatency=parseInt(e.attributes.target,10)/1e3),"max"in e.attributes&&(n.maxLatency=parseInt(e.attributes.max,10)/1e3),"min"in e.attributes&&(n.minLatency=parseInt(e.attributes.min,10)/1e3)),t&&("max"in t.attributes&&(n.maxPlaybackRate=parseFloat(t.attributes.max)),"min"in t.attributes&&(n.minPlaybackRate=parseFloat(t.attributes.min))),n}function oE(e){if(e=wt(e,"SupplementalProperty"),!e.length)return null;e=b(e);for(var t=e.next();!t.done;t=e.next())if(t=t.value,t.attributes.schemeIdUri=="urn:mpeg:dash:chaining:2016")return t.attributes.value;return null}function b2(e,t,n,i,a){var l=t.ic;l||(l=ct(i,"mediaPresentationDuration",Ha),e.l.ic=l);var f=0;e.i&&e.i.presentationTimeline&&e.S&&(f=e.i.presentationTimeline.Yb());var d=[],g=f;i=wt(i,"Period");for(var m=0;m<i.length;m++){var S=i[m],T=i[m+1],x=ct(S,"start",Ha,g),M=S.attributes.id,R=ct(S,"duration",Ha);x=m==0&&x==0&&e.S?f:x;var L=null;if(T){var I=ct(T,"start",Ha);I!=null&&(L=I-x+f)}else l!=null&&(L=l-x+f);if(I=$0,L&&R&&Math.abs(L-R)>I&&L>R&&e.M++,L==null&&(L=R),!(e.N!==null&&M!==null&&x!==null&&x<e.N)||e.D.includes(M)||m+1==i.length){if(x!==null&&(e.N===null||x>e.N)&&(e.N=x),g=zS(e,t,n,{start:x,duration:L,node:S,mi:L==null||!T}),d.push(g),t.Ga.id&&L&&e.oa.set(t.Ga.id,L),L==null){g=null;break}g=x+L}}if(a)for(t=b(d),n=t.next();!n.done;n=t.next())n=n.value.id,e.D.includes(n)||e.D.push(n);else e.D=d.map(function(U){return U.id});return l!=null?{periods:d,duration:l+f,Yh:!1}:{periods:d,duration:g,Yh:!0}}function s4(e){var t=Array.from(e.C.keys()).filter(function(d){return!e.D.includes(d)});t=b(t);for(var n=t.next();!n.done;n=t.next()){n=n.value;for(var i=!0,a=b(e.C.get(n)),l=a.next();!l.done;l=a.next()){l=l.value;var f=e.s.get(l);f&&(f.segmentIndex&&f.segmentIndex.getNumReferences()!=0?i=!1:(e.m&&e.m.Wh(f,n),e.s.delete(l)))}i&&e.C.delete(n)}}function zS(e,t,n,i){t.Ga=BS(e,i.node,null,n),t.sa=i,t.Ga.sb=t.sb,t.Ga.id||(t.Ga.id="__shaka_period_"+i.start);var a=wt(i.node,"EventStream");n=t.presentationTimeline.Fb(),a=b(a);for(var l=a.next();!l.done;l=a.next())lE(e,i.start,i.duration,l.value,n);for(n=wt(i.node,"SupplementalProperty"),n=b(n),a=n.next();!a.done;a=n.next())a=a.value,a.attributes.schemeIdUri=="urn:mpeg:dash:urlparam:2014"&&(a=vh(e,a))&&(t.Ib=a);if(n=wt(i.node,"AdaptationSet").map(function(M,R){return rd(e,t,R,M)}).filter(Du),t.dc){a=[],l=b(n);for(var f=l.next();!f.done;f=l.next()){f=b(f.value.cl);for(var d=f.next();!d.done;d=f.next())a.push(d.value)}if(a.length!=new Set(a).size)throw new G(2,4,4018)}for(a=new Map,l=b(n),f=l.next();!f.done;f=l.next())for(f=b(f.value.yj),d=f.next();!d.done;d=f.next()){var g=b(d.value);d=g.next().value,g=g.next().value,a.set(d,g)}if(a.size)for(l=null,f=b(n),d=f.next();!d.done;d=f.next()){d=d.value,g=[];for(var m=b(d.streams),S=m.next(),T={};!S.done;T={vh:void 0},S=m.next())if(T.vh=S.value,a.has(T.vh.originalId)){l||(l=wt(i.node,"AdaptationSet").map(function(M,R){return rd(e,t,R,M)}).filter(Du)),S=b(l);for(var x=S.next();!x.done;x=S.next())(x=x.value.streams.find(function(M){return function(R){return R.originalId==M.vh.originalId}}(T)))&&(x.dependencyStream=a.get(x.originalId),x.originalId+=x.dependencyStream.originalId,g.push(x))}g.length&&d.streams.push.apply(d.streams,Ue(g))}if(i=n.filter(function(M){return!M.Dh}),n=n.filter(function(M){return M.Dh}),!e.g.disableIFrames){for(n=b(n),a=n.next();!a.done;a=n.next())for(a=a.value,l=a.Dh.split(" "),f=b(i),d=f.next();!d.done;d=f.next())if(d=d.value,l.includes(d.id))for(d=b(d.streams),g=d.next();!g.done;g=d.next())vg(g.value,a.streams)}if(n=N0(e.g.disableAudio,i,"audio"),a=N0(e.g.disableVideo,i,"video"),l=N0(e.g.disableText,i,lt),i=N0(e.g.disableThumbnails,i,"image"),a.length===0&&n.length===0)throw new G(2,4,4004);return{id:t.Ga.id,audioStreams:n,videoStreams:a,textStreams:l,imageStreams:i}}function N0(e,t,n){return e||!t.length?[]:t.reduce(function(i,a){return a.contentType!=n||i.push.apply(i,Ue(a.streams)),i},[])}function rd(e,t,n,i){function a(ne){var ie=ne.attributes["dvb:fontFamily"];ne=ne.attributes["dvb:url"],ie&&ne&&(ne=wi(t.ra.hb(),[ne],t.Ib()),e.j.addFont(ie,ne[0]))}function l(ne){switch(ne){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function f(ne){switch(ne){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}t.ra=BS(e,i,t.Ga,null),t.ra.position=n;var d=!1;n=wt(i,"Role");var g=n.map(function(ne){return ne.attributes.value}).filter(Du),m=void 0,S=t.ra.contentType==lt;S&&(m="subtitle"),n=b(n);for(var T=n.next();!T.done;T=n.next()){T=T.value;var x=T.attributes.schemeIdUri;if(x==null||x=="urn:mpeg:dash:role:2011")switch(T=T.attributes.value,T){case"main":d=!0;break;case"caption":case"subtitle":m=T}}var M=wt(i,"EssentialProperty");n=null;var R=!1;T=null,x=!1,M=b(M);for(var L=M.next();!L.done;L=M.next()){L=L.value;var I=L.attributes.schemeIdUri;if(I=="http://dashif.org/guidelines/trickmode")n=L.attributes.value;else if(I=="urn:mpeg:mpegB:cicp:TransferCharacteristics")var U=f(parseInt(L.attributes.value,10));else if(I=="urn:mpeg:mpegB:cicp:ColourPrimaries")var N=l(parseInt(L.attributes.value,10));else I!="urn:mpeg:mpegB:cicp:MatrixCoefficients"&&(I=="urn:mpeg:dash:ssr:2023"&&e.g.dash.enableFastSwitching?R=!0:I=="urn:dvb:dash:fontdownload:2014"?a(L):I=="urn:mpeg:dash:urlparam:2014"&&(T=vh(e,L))||(x=!0))}if(x)return null;var j=null;for(x=wt(i,"SupplementalProperty"),x=b(x),M=x.next();!M.done;M=x.next())M=M.value,L=M.attributes.schemeIdUri,L=="http://dashif.org/guidelines/last-segment-number"?j=parseInt(M.attributes.value,10)-1:L=="urn:mpeg:mpegB:cicp:TransferCharacteristics"?U=f(parseInt(M.attributes.value,10)):L=="urn:mpeg:mpegB:cicp:ColourPrimaries"?N=l(parseInt(M.attributes.value,10)):L=="urn:dvb:dash:fontdownload:2014"?a(M):L=="urn:mpeg:dash:urlparam:2014"&&(T=vh(e,M));T&&(t.Ib=T),T=wt(i,"Accessibility");var B=new Map,Y;for(T=b(T),x=T.next();!x.done;x=T.next())if(M=x.value,x=M.attributes.schemeIdUri,M=M.attributes.value,x!="urn:scte:dash:cc:cea-608:2015"||e.g.disableText)if(x!="urn:scte:dash:cc:cea-708:2015"||e.g.disableText)x=="urn:mpeg:dash:role:2011"?M!=null&&(g.push(M),M=="captions"&&(m="caption")):x=="urn:tva:metadata:cs:AudioPurposeCS:2007"&&(M=="1"?Y="visually impaired":M=="2"&&(Y="hard of hearing"));else if(x=1,M!=null)for(M=b(M.split(";")),L=M.next();!L.done;L=M.next()){I=L.value;var P=L=void 0;I.includes("=")?(I=I.split("="),L="svc"+I[0],P=I[1].split(",")[0].split(":").pop()):(L="svc"+x,x++,P=I),B.set(L,Wt(P))}else B.set("svc1","und");else if(x=1,M!=null)for(M=M.split(";"),L=b(M),I=L.next();!I.done;I=L.next()){P=I.value;var V=I=void 0;P.includes("=")?(P=P.split("="),I=P[0].startsWith("CC")?P[0]:"CC"+P[0],V=P[1]||"und"):(I="CC"+x,M.length==2?x+=2:x++,V=P),B.set(I,Wt(V))}else B.set("CC1","und");T=wt(i,"ContentProtection");var F=b0(T,e.g.ignoreDrmInfo,e.g.dash.keySystemsByURI);t.ra.encrypted=0<T.length;var K=Wt(t.ra.language||"und"),ee=t.ra.label,Q=new Map;if(i=wt(i,"Representation"),!e.g.ignoreSupplementalCodecs){for(T=[],x=b(i),M=x.next();!M.done;M=x.next())L=M.value,(M=ru(L,"urn:scte:dash:scte214-extensions","supplementalCodecs"))&&(L=pa(L),L.attributes.codecs=M.split(" ").join(","),L.attributes.id&&(L.attributes.supplementalId=L.attributes.id+"_supplementalCodecs"),T.push(L));i.push.apply(i,Ue(T))}if(T=i.map(function(ne){var ie=c4(e,t,F,m,K,ee,d,g,B,ne,Y,j);return ie&&(ie.hdr=ie.hdr||U,ie.colorGamut=ie.colorGamut||N,ie.fastSwitching=R,ne=ne.attributes.dependencyId)?(ie.baseOriginalId=ne,Q.set(ne,ie),null):ie}).filter(function(ne){return!!ne}),T.length==0&&Q.size==0){if(n=t.ra.contentType=="image",e.g.dash.ignoreEmptyAdaptationSet||S||n)return null;throw new G(2,4,4003)}if(!t.ra.contentType||t.ra.contentType=="application")for(t.ra.contentType=sE(T[0].mimeType,T[0].codecs),S=b(T),x=S.next();!x.done;x=S.next())x.value.type=t.ra.contentType;for(S=t.ra.id||"__fake__"+e.ua++,x=b(T),M=x.next();!M.done;M=x.next()){for(M=M.value,L=b(F.drmInfos),I=L.next();!I.done;I=L.next())I=I.value,I.keyIds=I.keyIds&&M.keyIds?new Set([].concat(Ue(I.keyIds),Ue(M.keyIds))):I.keyIds||M.keyIds;M.groupId=S}return i=i.map(function(ne){return ne.attributes.supplementalId||ne.attributes.id}).filter(Du),{id:S,contentType:t.ra.contentType,language:K,Lm:d,streams:T,drmInfos:F.drmInfos,Dh:n,cl:i,yj:Q}}function vh(e,t){if((t=Mu(t,"urn:mpeg:dash:schema:urlparam:2014","UrlQueryInfo"))&&ct(t,"useMPDUrlQuery",no,!1)){var n=t.attributes.queryTemplate;if(n)return function(){return n=="$querypart$"?e.Y:n.split("&").map(function(i){if(i=="$querypart$")return e.Y;var a=/\$query:(.*?)\$/g.exec(i);if(a&&a.length==2){a=a[1];var l=new gd(e.Y).get(a);if(l.length)return a+"="+l[0]}return i}).join("&")}}return null}function c4(e,t,n,i,a,l,f,d,g,m,S,T){t.O=BS(e,m,t.ra,null);var x=t.O.id;if(e.Z=Math.min(e.Z,t.O.sb),e.R=0<e.Z,!Sh(t.O))return null;var M=t.sa.start;t.bandwidth=ct(m,"bandwidth",uu)||0,t.roles=d;var R=wt(m,"SupplementalProperty"),L=wt(m,"EssentialProperty"),I=wt(m,"ContentProtection");m=null;var U=L.find(function(ce){return ce.attributes.schemeIdUri=="urn:mpeg:dash:urlparam:2014"});(U||(U=R.find(function(ce){return ce.attributes.schemeIdUri=="urn:mpeg:dash:urlparam:2014"})))&&(m=vh(e,U)),m&&(t.Ib=m),U=t.O.contentType,m=U==lt||U=="application",U=U=="image",I.length&&(t.ra.encrypted=!0);try{var N=void 0;if(n.Yf){var j=t.O.hb,B=t.Ib,Y=wi(j(),[n.Yf.Gk],B()),P=yi(Y,e.g.retryParameters);N={bitsKey:128,blockCipherMode:"CBC",iv:n.Yf.iv,firstMediaSequenceNumber:0,fetchKey:function(){var ce,le,Se;return q(function(ke){if(ke.g==1)return O(ke,T1(e,P,6),2);if(ke.g!=3){if(ce=ke.h,!ce.data||ce.data.byteLength!=16)throw new G(2,4,4049);return le={name:"AES-CBC"},Se=N,O(ke,oe.crypto.subtle.importKey("raw",ce.data,le,!0,["decrypt"]),3)}Se.cryptoKey=ke.h,N.fetchKey=void 0,ve(ke)})}}}if(t.O.aesKey=N,j=function(ce,le,Se,ke){return HS(e,ce,le,Se,ke)},t.O.Ed)var V=c1(t,j,N);else if(t.O.pc)V=fi(t,e.s,N);else if(t.O.Ec)V=Bc(t,j,e.s,!!e.i,e.g.dash.initialSegmentLimit,e.oa,N,T,!1);else{var F=t.sa.duration||0,K=t.O.hb,ee=t.O.mimeType,Q=t.O.codecs;V={Pc:function(){var ce=sp(M,F,K());return ce.Kb(function(le){le.mimeType=ee,le.codecs=Q}),Promise.resolve(ce)}}}}catch(ce){if((m||U)&&ce.code==4002)return null;throw ce}T=ra(I,n,e.g.ignoreDrmInfo,e.g.dash.keySystemsByURI),T=new Set(T?[T]:[]),I=!1,R.some(function(ce){return ce.attributes.schemeIdUri=="tag:dolby.com,2018:dash:EC3_ExtensionType:2018"&&ce.attributes.value=="JOC"})&&(I=!0),R=!1,m&&(R=d.includes("forced_subtitle")||d.includes("forced-subtitle"));var ne;if(U&&((L=L.find(function(ce){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(ce.attributes.schemeIdUri)}))&&(ne=L.attributes.value),!ne))return null;var ie;m=t.O.codecs,t.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(m.includes("hvc1.2.4.L153.B0")||m.includes("hev1.2.4.L153.B0"))&&(ie="PQ"),L=t.O.id?t.Ga.id+","+t.O.id:"",e.H.length&&x&&e.u.set(t.Ga.id+","+x,f4(t));var ue=L&&e.s.has(L)?e.s.get(L):{id:e.ua++,originalId:t.O.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){ue.segmentIndex&&(ue.segmentIndex.release(),ue.segmentIndex=null)},segmentIndex:null,mimeType:t.O.mimeType,codecs:m,frameRate:t.O.frameRate,pixelAspectRatio:t.O.pixelAspectRatio,bandwidth:t.bandwidth,width:t.O.width,height:t.O.height,kind:i,encrypted:0<n.drmInfos.length,drmInfos:n.drmInfos,keyIds:T,language:a,originalLanguage:t.ra.language,label:l,type:t.ra.contentType,primary:f,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:t.O.emsgSchemeIdUris,roles:d,forced:R,channelsCount:t.O.mf,audioSamplingRate:t.O.audioSamplingRate,spatialAudio:I,closedCaptions:g,hdr:ie,colorGamut:void 0,videoLayout:void 0,tilesLayout:ne,accessibilityPurpose:S,external:!1,fastSwitching:!1,fullMimeTypes:new Set([Et(t.O.mimeType,t.O.codecs)]),isAudioMuxedInVideo:!1,baseOriginalId:null};return ue.createSegmentIndex=function(){var ce;return q(function(le){if(le.g==1)return ue.segmentIndex?le.A(0):(ce=ue,O(le,V.Pc(),3));ce.segmentIndex=le.h,ve(le)})},L&&t.dc&&!e.s.has(L)&&(t=t.Ga.id||"",e.C.has(t)||e.C.set(t,[]),e.s.set(L,ue),e.C.get(t).push(L)),ue}function f4(e){function t(n){return n?(n=uc(n),n.Ed=null,n.pc=null,n.Ec=cg(n.Ec),n):null}return e=uc(e),e.Ga=t(e.Ga),e.ra=t(e.ra),e.O=t(e.O),e.sa&&(e.sa=uc(e.sa),e.sa.node=null),e}function R2(e){var t,n;return q(function(i){switch(i.g){case 1:return t=0,Le(i,2),O(i,kS(e),4);case 4:t=i.h,Ge(i,3);break;case 2:if(n=je(i),e.j){if(e.g.raiseFatalErrorOnManifestUpdateRequestFailure)return e.j.onError(n),i.return();n.severity=1,e.j.onError(n)}case 3:if(!e.j)return i.return();e.j.onManifestUpdated(),S1(e,t),ve(i)}})}function S1(e,t){if(!(0>e.K)){var n=e.K;0<=e.g.updatePeriod&&(n=e.g.updatePeriod),e.L.$(Math.max(n-t,$c(e.qa)))}}function BS(e,t,n,i){n=n||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,mf:null,audioSamplingRate:null,sb:0,Af:0,encrypted:!1},i=i||n.hb;var a=t.attributes.id,l=t.attributes.supplementalId,f=wt(t,"BaseURL"),d,g=!1;if(e.h)for(var m=b(f),S=m.next();!S.done;S=m.next()){var T=S.value;S=T.attributes.serviceLocation,T=ar(T),S&&T&&(Zl(e.h,a,S,T),g=!0)}g&&e.h||(d=f.map(ar)),m=t.attributes.contentType||n.contentType,S=t.attributes.mimeType||n.mimeType,T=Pm([t.attributes.codecs||n.codecs]).join(",");var x=ct(t,"frameRate",V1)||n.frameRate,M=t.attributes.sar||n.pixelAspectRatio,R=D2(wt(t,"InbandEventStream"),n.emsgSchemeIdUris),L=wt(t,"AudioChannelConfiguration");L=d4(L)||n.mf;var I=ct(t,"audioSamplingRate",ii)||n.audioSamplingRate;m||(m=sE(S,T));var U=Wn(t,"SegmentBase"),N=Wn(t,"SegmentTemplate"),j=U&&ct(U,"availabilityTimeOffset",ou)||0,B=N&&ct(N,"availabilityTimeOffset",ou)||0,Y=f&&f.length&&ct(f[0],"availabilityTimeOffset",ou)||0;j=n.sb+Y+j+B,B=null,(Y=Wn(t,"SegmentSequenceProperties"))&&(Y=Wn(Y,"SAP"))&&(B=ct(Y,"cadence",Ci)),Y=t.attributes.label;var P=wt(t,"Label");return P&&P.length&&(P=P[0],Gn(P)&&(Y=Gn(P))),{hb:function(){return wi(i(),f.length?e.h&&g?h1(e.h,a):d||[]:[])},Ed:U||n.Ed,pc:Wn(t,"SegmentList")||n.pc,Ec:N||n.Ec,width:ct(t,"width",ii)||n.width,height:ct(t,"height",ii)||n.height,contentType:m,mimeType:S,codecs:T,frameRate:x,pixelAspectRatio:M,emsgSchemeIdUris:R,id:l||a,originalId:a,language:t.attributes.lang,mf:L,audioSamplingRate:I,sb:j,Xe:null,Af:B||n.Af,label:Y||null,encrypted:!1}}function D2(e,t){t=t.slice(),e=b(e);for(var n=e.next();!n.done;n=e.next())n=n.value.attributes.schemeIdUri,t.includes(n)||t.push(n);return t}function d4(e){e=b(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;var n=t.attributes.schemeIdUri;if(n&&(t=t.attributes.value))switch(n){case"urn:mpeg:dash:outputChannelPositionList:2012":return t.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(t=parseInt(t,10),!t)continue;return t;case"tag:dolby.com,2015:dash:audio_channel_configuration:2015":if(n=[2,1,2,2,2,2,1,2,2,1,1,1,1,2,1,1,2,2],t=parseInt(t,16),!t)continue;for(var i=0,a=0;a<n.length;a++)t&1<<a&&(i+=n[a]);if(i)return i;continue;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(n=[1,1,1,1,1,2,2,1,1,2,2,2,1,2,1,1].reverse(),t=parseInt(t,16),!t)continue;for(a=i=0;a<n.length;a++)t&1<<a&&(i+=n[a]);if(i)return i;continue;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(n=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(t=parseInt(t,10))&&0<t&&t<n.length)return n[t]}}return null}function Sh(e){var t=e.Ed?1:0;return t+=e.pc?1:0,t+=e.Ec?1:0,t==0?e.contentType==lt||e.contentType=="application":(t!=1&&(e.Ed&&(e.pc=null),e.Ec=null),!0)}function _0(e,t,n,i){var a,l,f,d,g,m,S;return q(function(T){if(T.g==1)return a=[Fi(n)],l=wi(t(),a),f=yi(l,e.g.retryParameters),f.method=i,d=e.j.networkingEngine.request(4,f,{isPreload:e.ba()}),fu(e.P,d),O(T,d.promise,2);if(g=T.h,i=="HEAD"){if(!g.headers||!g.headers.date)return T.return(0);m=g.headers.date}else m=Rn(g.data);return S=Date.parse(m),isNaN(S)?T.return(0):T.return(S-Date.now())})}function PS(e,t,n){var i,a,l,f,d,g,m,S;return q(function(T){switch(T.g){case 1:i=n.map(function(x){return{scheme:x.attributes.schemeIdUri,value:x.attributes.value}}),a=e.g.dash.clockSyncUri,!i.length&&a&&i.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:a}),l=b(i),f=l.next();case 2:if(f.done){T.A(4);break}switch(d=f.value,Le(T,5),g=d.scheme,m=d.value,g){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return T.A(7);case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":return T.A(8);case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return S=Date.parse(m),T.return(isNaN(S)?0:S-Date.now());case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":st("NTP UTCTiming scheme is not supported");break;default:st("Unrecognized scheme in UTCTiming element",g)}T.A(9);break;case 7:return O(T,_0(e,t,m,"HEAD"),10);case 10:return T.return(T.h);case 8:return O(T,_0(e,t,m,"GET"),11);case 11:return T.return(T.h);case 9:Ge(T,3);break;case 5:je(T);case 3:f=l.next(),T.A(2);break;case 4:return st("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),T.return(0)}})}function lE(e,t,n,i,a){var l=i.attributes.schemeIdUri||"",f=i.attributes.value||"",d=ct(i,"timescale",ii)||1,g=ct(i,"presentationTimeOffset",ii)||0;i=b(wt(i,"Event"));for(var m=i.next();!m.done;m=i.next()){m=m.value;var S=ct(m,"presentationTime",ii)||0,T=ct(m,"duration",ii)||0;S=Math.max((S-g)/d+t,t),T=S+T/d,n!=null&&(S=Math.min(S,t+n),T=Math.min(T,t+n)),T<a||(m={schemeIdUri:l,value:f,startTime:S,endTime:T,id:m.attributes.id||"",timescale:d,eventElement:Xy(m),eventNode:cg(m)},e.j.onTimelineRegionAdded(m))}}function HS(e,t,n,i,a){var l,f,d,g;return q(function(m){return m.g==1?(l=li,f=a?0:1,d=ws(t,n,i,e.g.retryParameters),O(m,T1(e,d,l,{type:f}),2)):(g=m.h,m.return(g.data))})}function sE(e,t){return t=Et(e,t),lu(t)?lt:e.split("/")[0]}function T1(e,t,n,i){return i||(i={}),i.isPreload=e.ba(),t=e.j.networkingEngine.request(n,t,i),fu(e.P,t),t.promise}function I2(e){var t=e.l.fe;if(!e.l.kf||!t||!e.H.length)return[];var n=Date.now()/1e3,i=e.H.filter(function(a){return a=ii(a.attributes.ttl),!a||t+a>n}).map(ar).filter(Du);return i.length?wi(e.B,i):[]}xe("shaka.dash.DashParser",y1),Wi("application/dash+xml",function(){return new y1}),Wi("video/vnd.mpeg.dash.mpd",function(){return new y1});function GS(){}xe("shaka.dependencies",GS),GS.has=function(e){return fE.has(e)},GS.add=function(e,t){if(!cE[e])throw Error(e+" is not supported");e==Pp?Gt("mux.js","mux.js is no longer used in Shaka Player."):fE.set(e,function(){return t})};var Pp="muxjs",cE={Mm:Pp,ISOBoxer:"ISOBoxer"};GS.Allowed=cE;var fE=new Map([["ISOBoxer",function(){return oe.ISOBoxer}]]);function VS(e,t,n){this.type=e,this.na=t,this.segments=n||null}function ad(e,t,n,i){this.id=e,this.name=t,this.attributes=n,this.value=i===void 0?null:i}ad.prototype.toString=function(e){function t(a){return a.name+"="+(isNaN(Number(a.value))?'"'+a.value+'"':a.value)}var n="#"+this.name,i=this.attributes?this.attributes.filter(function(a){return e?!e.has(a.name):!0}).map(t):[];return this.value&&i.unshift(this.value),0<i.length&&(n+=":"+i.join(",")),n};function Iy(e,t){return t?e.toString():(t=new Set().add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI"),e.toString(t))}function j0(e,t){return e=e.attributes.filter(function(n){return n.name==t}),e.length?e[0]:null}function Ze(e,t,n){return(e=j0(e,t))?e.value:n||null}function qt(e,t){if(e=j0(e,t),!e)throw new G(2,4,4023,t);return e.value}function Wl(e,t,n){n=n===void 0?[]:n,this.na=t,this.g=e,this.$b=n}function E1(e,t){this.name=e,this.value=t}function Hr(e,t){return e.filter(function(n){return n.name==t})}function z0(e,t){return e.filter(function(n){return qt(n,"TYPE")==t})}function ir(e,t){e=b(e);for(var n=e.next();!n.done;n=e.next())if(n=n.value,n.name===t)return n;return null}function ud(e,t,n){return n=n===void 0?0:n,(e=ir(e,t))?Number(e.value):n}function od(e,t,n){return t?A1(e,[t],n):[]}function A1(e,t,n){if(!t.length)return[];var i=t;return n&&n.size&&(i=t.map(function(a){return Hp(a,n)})),wi(e,i)}function Hp(e,t){if(!t||!t.size)return e;e=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}");var n=e.match(/{\$\w*}/g);if(n){n=b(n);for(var i=n.next();!i.done;i=n.next()){i=i.value;var a=i.slice(2,i.length-1),l=t.get(a);if(l)e=e.replace(i,l);else throw new G(2,4,4039,a)}}return e}function x1(){this.g=0}function qS(e,t){t=Rn(t),t=t.replace(/\r\n|\r(?=[^\n]|$)/gm,`
35
- `).trim();var n=t.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(n[0]))throw new G(2,4,4015);t=0;for(var i=!0,a=b(n),l=a.next();!l.done;l=a.next())if(l=l.value,/^#(?!EXT)/m.test(l)||i)i=!1;else if(l=YS(e,l),--e.g,dE.includes(l.name)){t=1;break}else l.name=="EXT-X-STREAM-INF"&&(i=!0);for(a=[],i=!0,l=0;l<n.length;l++){var f=n[l],d=n[l+1];if(/^#(?!EXT)/m.test(f)||i)i=!1;else{if(f=YS(e,f),XS.includes(f.name)){if(t!=1)throw new G(2,4,4017);f=n.splice(l,n.length-l),n=[],i=[],l=[],d=null,f=b(f);for(var g=f.next();!g.done;g=f.next())g=g.value,/^(#EXT)/.test(g)?(g=YS(e,g),dE.includes(g.name)?a.push(g):g.name=="EXT-X-MAP"?d=g:g.name=="EXT-X-PART"?l.push(g):g.name=="EXT-X-PRELOAD-HINT"?Ze(g,"TYPE")=="PART"?l.push(g):Ze(g,"TYPE")=="MAP"&&(g.name="EXT-X-MAP",d=g):i.push(g)):/^#(?!EXT)/m.test(g)||(g=g.trim(),d&&i.push(d),n.push(new Wl(g,i,l)),i=[],l=[]);return l.length&&(d&&i.push(d),n.push(new Wl("",i,l))),new VS(t,a,n)}a.push(f),f.name=="EXT-X-STREAM-INF"&&(f.attributes.push(new E1("URI",d)),i=!0)}}return new VS(t,a)}function YS(e,t){e=e.g++;var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new G(2,4,4016,t);t=n[1];var i=n[2];n=[];var a;if(i){i=new za(i);var l;(l=ac(i,/^([^,=]+)(?:,|$)/g))&&(a=l[1]);for(var f=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;l=ac(i,f);)n.push(new E1(l[1],l[2]||l[3])),Ba(i)}return new ad(e,t,n,a)}var dE="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF EXT-X-DATERANGE".split(" "),XS="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP EXT-X-GAP EXT-X-TILES".split(" ");function L2(){}function hE(e,t){try{var n=w1(e);return ps({uri:e,originalUri:e,data:n.data,headers:{"content-type":n.contentType},originalRequest:t})}catch(i){return En(i)}}function w1(e){var t=e.split(":");if(2>t.length||t[0]!="data")throw new G(2,1,1004,e);if(t=t.slice(1).join(":").split(","),2>t.length)throw new G(2,1,1004,e);var n=t[0];e=oe.decodeURIComponent(t.slice(1).join(",")),t=n.split(";"),n=t[0];var i=!1;1<t.length&&t[t.length-1]=="base64"&&(i=!0,t.pop());var a;return i?a=tu(e):a=Do(e),{data:a,contentType:n}}xe("shaka.net.DataUriPlugin",L2),L2.parse=hE,Kn("data",hE);function C1(){var e=this;this.g=this.h=null,this.H=1,this.B=new Map,this.K=new Map,this.N=new Map,this.N.set("video",new Map),this.N.set("audio",new Map),this.N.set(lt,new Map),this.N.set("image",new Map),this.jc=new Map().set("com.apple.streamingkeydelivery",function(t,n,i){return pb(e,t,n,i)}).set("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",function(t){var n=qt(t,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";n=="SAMPLE-AES"&&(i="cbcs"),n=qt(t,"URI"),n=w1(n.split("?")[0]),n=at(n.data),i=Na("com.widevine.alpha",i,[{initDataType:"cenc",initData:n}]),(t=Ze(t,"KEYID"))&&i.keyIds.add(t.toLowerCase().substr(2)),t=Promise.resolve(i)}else t=Promise.resolve(null);return t}).set("com.microsoft.playready",function(t){var n=qt(t,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";n=="SAMPLE-AES"&&(i="cbcs"),t=qt(t,"URI"),t=w1(t.split("?")[0]),t=at(t.data),n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),n=kd(t,n,new Set,0),i=Na("com.microsoft.playready",i,[{initDataType:"cenc",initData:n}]),(t=us(["<PLAYREADY>",is(t),"</PLAYREADY>"].join(`
36
- `)))&&(i.licenseServerUri=Pr(t)),i=Promise.resolve(i)}else i=Promise.resolve(null);return i}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(t){var n=qt(t,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";n=="SAMPLE-AES"&&(i="cbcs"),n=qt(t,"URI"),n=w1(n.split("?")[0]),n=at(n.data),i=Na("com.huawei.wiseplay",i,[{initDataType:"cenc",initData:n}]),(t=Ze(t,"KEYID"))&&i.keyIds.add(t.toLowerCase().substr(2)),t=Promise.resolve(i)}else t=Promise.resolve(null);return t}),this.Ya=new Set,this.i=new Map,this.l=null,this.D="",this.La=new x1,this.L=-1,this.ba=1/0,this.Z=this.nc=this.Xa=!1,this.C=new Ke(function(){if(e.U&&!e.g.continueLoadingWhenPaused&&(e.S.Ea(e.U,"timeupdate"),e.U.paused)){e.S.wa(e.U,"timeupdate",function(){return Y3(e)});return}Y3(e)}),this.Oa=P2,this.m=null,this.Sa=0,this.s=1/0,this.Ka=this.Fa=this.R=0,this.Y=new Qr,this.I=new Map,this.J=new Map,this.za=new Map,this.oa=new Map,this.M=new Map,this.qa=new Map,this.ua=new Map,this.lc=this.ea=!1,this.Ob=new Ch(5),this.j=null,this.P=!0,this.Ha=new Set,this.S=new Ft,this.u=this.U=null,this.fc=function(){return!1}}w=C1.prototype,w.configure=function(e,t){var n=this.h&&e.updatePeriod!=this.g.updatePeriod&&0<=e.updatePeriod;this.g=e,t&&(this.fc=t),this.j&&this.j.configure(this.g),n&&this.m&&this.m.presentationTimeline.V()&&this.C.Ia()},w.start=function(e,t){var n=this,i;return q(function(a){return a.g==1?(n.h=t,n.ea=t.isLowLatencyMode(),O(a,p4(n,[e]).promise,2)):a.g!=3?(i=a.h,n.D=i.uri,O(a,k2(n,i.data),3)):a.return(n.m)})},w.stop=function(){this.C&&(this.C.stop(),this.C=null);var e=[];return this.Y&&(e.push(this.Y.destroy()),this.Y=null),this.g=this.h=null,this.Ya.clear(),this.m=null,this.i.clear(),this.K.clear(),this.J.clear(),this.B.clear(),this.za.clear(),this.oa.clear(),this.M.clear(),this.qa.clear(),this.ua.clear(),this.Ha.clear(),this.j&&this.j.destroy(),this.S&&(this.S.release(),this.S=null),Promise.all(e)},w.update=function(){var e=this,t,n,i,a,l,f,d,g,m,S,T,x;return q(function(M){if(M.g==1){if(!vo(e))return M.return();for(t=[],n=Array.from(e.i.values()),e.s=1/0,e.m.gapCount=0,i=n.filter(function(R){return R.stream.segmentIndex}),a=b(i),l=a.next();!l.done;l=a.next())f=l.value,t.push(O2(e,f));return O(M,Promise.all(t),2)}for(Ae(e,i.map(function(R){return R.stream})),d=i.some(function(R){return R.Sd==0}),i.length&&!d&&(g=Sb,z2(e,g.kj),m=i.map(function(R){return R.hc}),e.l.rb(Math.min.apply(Math,Ue(m))),e.h.updateDuration()),d&&Ly(e),S=b(i),T=S.next();!T.done;T=S.next())x=T.value,x.stream.isAudioMuxedInVideo||!x.stream.segmentIndex||Pu(x.stream.segmentIndex)||e.h.disableStream(x.stream);ve(M)})};function FS(e,t){return vo(e)?e.N.get(t.type):t.gf}function O2(e,t){var n,i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne,ie,ue,ce,le,Se,ke,pt,$e,fn;return q(function(Ht){switch(Ht.g){case 1:if(t.stream.isAudioMuxedInVideo)return Ht.return();for(n=[],i=b(t.T()),a=i.next();!a.done;a=i.next())l=a.value,f=new un(l),d=f.g,t.Ke&&(0<=t.Rb&&d.add("_HLS_msn",String(t.Rb)),0<=t.Sb&&d.add("_HLS_part",String(t.Sb))),t.Le&&d.add("_HLS_skip","YES"),yr(d)&&wu(f,Co(d.toString())),n.push(f.toString());return Le(Ht,2),O(Ht,p4(e,n,!0).promise,4);case 4:g=Ht.h,Ge(Ht,3);break;case 2:throw m=je(Ht),e.h&&e.h.disableStream(t.stream),m;case 3:if(!t.stream.segmentIndex)return Ht.return();if(S=qS(e.La,g.data),S.type!=1)throw new G(2,4,4017);return T=g.uri,T==g.originalUri||t.T().includes(T)||t.vf.push(T),x=Hr(S.na,"EXT-X-DEFINE"),M=ld(e,x,T),R=t.stream,L=FS(e,t),O(Ht,W(e,S,R.mimeType,t.T,M),5);case 5:for(I=Ht.h,U=I.keyIds,N=I.drmInfos,j=I.encrypted,B=I.Jh,R.encrypted||!j||B||(R.encrypted=!0),Y=function(Lt,_t){return Lt.size===_t.size&&[].concat(Ue(Lt)).every(function(an){return _t.has(an)})},Y(R.keyIds,U)||(R.keyIds=U,R.drmInfos=N,e.h.newDrmInfo(R)),P=sd(e,S,L,M,t.T,t.type),V=P.segments,(F=P.bandwidth)&&(R.bandwidth=F),K=Zd(R),ee=b(V),Q=ee.next();!Q.done;Q=ee.next())ne=Q.value,ne.ia&&(ne.ia.wd=K);R.segmentIndex.ae(V,e.l.Fb()),V.length&&(ie=ud(S.na,"EXT-X-MEDIA-SEQUENCE",0),ce=(ue=ir(S.na,"EXT-X-SKIP"))?Number(Ze(ue,"SKIPPED-SEGMENTS")):0,le=Ei(ie,V),Se=le.Rb,ke=le.Sb,t.Rb=Se+ce,t.Sb=ke,pt=L.get(ie),R.segmentIndex.eb(pt)),($e=Pu(R.segmentIndex))&&(t.Zc=$e.startTime,fn=V[V.length-1],t.hc=fn.endTime),ir(S.na,"EXT-X-ENDLIST")&&(t.Sd=!0),qe(e,S),dr(e,S.na,R.type,M,t.T),ve(Ht)}})}w.onExpirationUpdated=function(){},w.onInitialVariantChosen=function(){},w.banLocation=function(e){this.j&&this.j.banLocation(e)},w.setMediaElement=function(e){this.U=e};function pE(e,t,n){n=n===void 0?!1:n;for(var i=e.L==-1,a=b(t),l=a.next();!l.done;l=a.next()){l=l.value;var f=l.stream.segmentIndex,d=FS(e,l);if(f=Pu(f)){d=b(d);for(var g=d.next();!g.done;g=d.next()){g=b(g.value);var m=g.next().value;if(g.next().value==f.startTime){i&&(e.L=Math.max(e.L,m)),l.ng=m;break}}}}if(!(0>e.L))for(t=b(t),i=t.next();!i.done;i=t.next())i=i.value,(we(e,i.type)||n)&&(a=i.stream.segmentIndex)&&(l=e.L-i.ng,0<l&&(a.g.splice(0,l),a=Pu(a))&&(a=-a.startTime,i.stream.segmentIndex.offset(a),gE(e,i,a)))}function U2(e,t){if(e.ba==1/0){t=b(t);for(var n=t.next();!n.done;n=t.next())n=Pu(n.value.stream.segmentIndex),n!=null&&n.h!=null&&(e.ba=Math.min(e.ba,n.h))}if(t=e.ba,t!=1/0){n=b(e.i.values());for(var i=n.next();!i.done;i=n.next())if(i=i.value,!we(e,i.type)){var a=i.stream.segmentIndex;if(a!=null){var l=Pu(a);if(l)if(l.h==null)xu("Missing EXT-X-PROGRAM-DATE-TIME for stream",i.T(),"Expect AV sync issues!");else for(gE(e,i,l.h-t-l.startTime),i=b(a),a=i.next();!a.done;a=i.next())a.value.xh(t)}}}}function gE(e,t,n){if(!(.001>Math.abs(n))){t.Zc+=n,t.hc+=n,e=FS(e,t);for(var i=b(e),a=i.next();!a.done;a=i.next()){var l=b(a.value);a=l.next().value,l=l.next().value,e.set(a,l+n)}t.T()}}function k2(e,t){var n,i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne,ie,ue,ce,le,Se,ke,pt,$e,fn,Ht,Lt,_t,an,Rt,Yt;return q(function(vt){switch(vt.g){case 1:return n=ui,i=qS(e.La,t),a=Hr(i.na,"EXT-X-DEFINE"),l=[],f=[],d=[],e.l=new We(null,0),e.l.ed(!0),g=function(){return[e.D]},m=null,S=new Map,i.type==1?(e.P=!1,Se=Hr(i.na,"EXT-X-DEFINE"),S=ld(e,Se,e.D),m=n.Ba,ke="",pt=new Map,O(vt,Xt(e,e.H++,S,i,g,"",m,ke,!0,"Media Playlist",null,pt,null,!1,null,!1),7)):(mE(e,a),T=Hr(i.na,"EXT-X-MEDIA"),x=Hr(i.na,"EXT-X-STREAM-INF"),M=Hr(i.na,"EXT-X-IMAGE-STREAM-INF"),R=Hr(i.na,"EXT-X-I-FRAME-STREAM-INF"),L=Hr(i.na,"EXT-X-SESSION-KEY"),I=Hr(i.na,"EXT-X-SESSION-DATA"),U=Hr(i.na,"EXT-X-CONTENT-STEERING"),Vp(e,I),O(vt,b1(e,U),4));case 4:if(!e.g.ignoreSupplementalCodecs){for(N=[],j=b(x),B=j.next(),Y={};!B.done;Y={Zi:void 0},B=j.next())P=B.value,(V=Ze(P,"SUPPLEMENTAL-CODECS"))&&(Y.Zi=V.split(/\s*,\s*/).map(function(Dt){return Dt.split("/")[0]}),F=P.attributes.map(function(Dt){return function(kn){var Vr=kn.name,mi=kn.value;return Vr=="CODECS"&&(mi=Dt.Zi.join(","),kn=kn.value.split(","),1<kn.length&&(kn=Ki("audio",kn))&&(mi+=","+kn)),new E1(Vr,mi)}}(Y)),N.push(new ad(P.id,P.name,F,null)));for(x.push.apply(x,Ue(N)),K=[],ee=b(R),Q=ee.next(),ne={};!Q.done;ne={$i:void 0},Q=ee.next())ie=Q.value,(ue=Ze(ie,"SUPPLEMENTAL-CODECS"))&&(ne.$i=ue.split(/\s*,\s*/).map(function(Dt){return Dt.split("/")[0]}),ce=ie.attributes.map(function(Dt){return function(kn){var Vr=kn.name;return kn=kn.value,Vr=="CODECS"&&(kn=Dt.$i.join(",")),new E1(Vr,kn)}}(ne)),K.push(new ad(ie.id,ie.name,ce,null)));R.push.apply(R,Ue(K))}return Gp(e,x),v(e,T),le=_2(e,R),O(vt,r(e,x,L,T,g,e.B,le),5);case 5:return l=vt.h,f=R1(e,T),O(vt,h4(e,M,R),6);case 6:d=vt.h,vt.A(3);break;case 7:$e=vt.h,e.i.set(e.D,$e),$e.stream&&(fn=Zd($e.stream),$e.stream.segmentIndex.Kb(function(Dt){Dt.ia&&(Dt.ia.wd=fn)})),m=$e.stream.type,l.push({id:0,language:Wt(ke||"und"),disabledUntilTime:0,primary:!0,audio:m=="audio"?$e.stream:null,video:m=="video"?$e.stream:null,bandwidth:$e.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!e.h)throw new G(2,7,7001);if(ae(e,i),i.type==1&&(vo(e)&&(en(e,i),Ht=e.s,e.C.$(Ht)),Lt=Array.from(e.i.values()),he(e,Lt),Ly(e),dr(e,i.na,m,S,g)),e.m={presentationTimeline:e.l,variants:l,textStreams:f,imageStreams:d,offlineSessionIds:[],sequenceMode:e.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:e.g.hls.ignoreManifestTimestampsInSegmentsMode,type:"HLS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:e.u},e.Z||!e.g.hls.disableCodecGuessing){vt.A(8);break}for(_t=[],an=b(e.m.variants),Rt=an.next();!Rt.done;Rt=an.next())Yt=Rt.value,Yt.audio&&Yt.audio.codecs===""&&_t.push(Yt.audio.createSegmentIndex()),Yt.video&&Yt.video.codecs===""&&_t.push(Yt.video.createSegmentIndex());return O(vt,Promise.all(_t),8);case 8:e.h.makeTextStreamsForClosedCaptions(e.m),ve(vt)}})}function N2(e,t){var n,i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N;return q(function(j){if(j.g==1)return n=Ka(e.g.hls.mediaPlaylistFullMimeType),t.length?(i=V3(e,t),a=i.segment,l=i.segmentIndex,f=a.T(),d=f[0],g=new un(d),m=g.qb.split(".").pop(),(S=g4.get(m))?j.return(Ka(S)):O(j,Promise.all([M1(e,a.ia,0),M1(e,a,l)]),2)):j.return(n);if(T=j.h,x=T[1].mimeType,M=T[0].data,R=T[1].data,L="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" "),I=["audio/mp4","video/mp4","video/iso.segment"],pu(at(R))){var B=R,Y=e.g.disableAudio,P=e.g.disableVideo,V=e.g.disableText,F=at(B),K=new An().parse(F),ee=K.Pd();F=K.Kg();var Q=[],ne=!1,ie=!1;if(!Y)switch(ee.audio){case"aac":case"aac-loas":K.vb().length&&(Q.push("mp4a.40.2"),ne=!0);break;case"mp3":K.vb().length&&(Q.push("mp4a.40.34"),ne=!0);break;case"ac3":K.vb().length&&(Q.push("ac-3"),ne=!0);break;case"ec3":K.vb().length&&(Q.push("ec-3"),ne=!0);break;case"opus":K.vb().length&&(Q.push("opus"),ne=!0)}if(!P)switch(ee.video){case"avc":F.codec?Q.push(F.codec):Q.push("avc1.42E01E"),ie=!0;break;case"hvc":F.codec?Q.push(F.codec):Q.push("hvc1.1.6.L93.90"),ie=!0;break;case"av1":Q.push("av01.0.01M.08"),ie=!0}if(Q.length){if(Y=ne&&!ie,P=new Map,ie&&!V){for(V=new ja("video/mp2t"),V.i(B),B=b(V.j()),ie=B.next();!ie.done;ie=B.next())ie=ie.value,P.set(ie,ie);V.g()}F={type:Y?"audio":"video",mimeType:"video/mp2t",codecs:Q.join(", "),language:null,height:F.height,width:F.width,channelCount:null,sampleRate:null,closedCaptions:P,qe:null,colorGamut:null,frameRate:F.frameRate}}else F=null;if(U=F)return j.return(U)}else if((a.ia||L.includes(m)||I.includes(x))&&(N=Zg(M,R,e.g.disableText)))return j.return(N);return x?j.return(Ka(x)):j.return(n)})}function M1(e,t,n){var i,a,l,f,d,g;return q(function(m){switch(m.g){case 1:return t?(i=li,a=ws(t.T(),t.xc(),t.uc(),e.g.retryParameters),l=t instanceof Ye?1:0,O(m,B0(e,a,i,{type:l}).promise,2)):m.return({mimeType:null,data:null});case 2:if(f=m.h,d=f.data,!t.aesKey){m.A(3);break}return O(m,Hm(d,t.aesKey,n),4);case 4:d=m.h;case 3:return t instanceof Ye?t.le(d,!0):t.le(d),(g=f.headers["content-type"])&&(g=g.split(";")[0].toLowerCase()),m.return({mimeType:g,data:d})}})}function Ly(e){if(vo(e)){if(e.Oa==H2){for(var t=1/0,n=1/0,i=b(e.i.values()),a=i.next();!a.done;a=i.next())a=a.value,a.stream.segmentIndex&&a.stream.type!="text"&&!a.stream.isAudioMuxedInVideo&&(t=Math.min(t,a.hc),n=Math.min(n,a.Zc));t=t-n||0,isNaN(e.g.availabilityWindowOverride)||(t=e.g.availabilityWindowOverride),e.l.Bf(t)}}else e.l.rb(ge(e));if(!e.l.u)for(t=b(e.i.values()),n=t.next();!n.done;n=t.next())n=n.value,!n.stream.segmentIndex||n.type!="audio"&&n.type!="video"||(n=Pu(n.stream.segmentIndex))&&n.h&&e.l.Pi(n.h);e.l.ef()}function mE(e,t){var n=new un(e.D).g;t=b(t);for(var i=t.next();!i.done;i=t.next()){var a=i.value;i=Ze(a,"NAME");var l=Ze(a,"VALUE");a=Ze(a,"QUERYPARAM"),i&&l&&(e.B.has(i)||e.B.set(i,l)),a&&(i=n.get(a)[0])&&!e.B.has(i)&&e.B.set(a,i)}}function ld(e,t,n){n=new un(n).g;var i=new Map;t=b(t);for(var a=t.next();!a.done;a=t.next()){var l=a.value,f=Ze(l,"NAME"),d=Ze(l,"VALUE");a=Ze(l,"QUERYPARAM"),l=Ze(l,"IMPORT"),f&&d&&(i.has(f)||i.set(f,d)),a&&(f=n.get(a)[0])&&!i.has(f)&&i.set(a,f),l&&(a=e.B.get(l))&&i.set(l,a)}return i}function Gp(e,t){t=b(t);for(var n=t.next();!n.done;n=t.next()){var i=n.value,a=Ze(i,"AUDIO");n=Ze(i,"VIDEO");var l=Ze(i,"SUBTITLES");if(i=s(e,i),l){var f=Ki(lt,i);e.J.set(l,f),to(i,f)}a&&(l=Ki("audio",i),l||(l=e.g.hls.defaultAudioCodec),e.J.set(a,l)),n&&(a=Ki("video",i),a||(a=e.g.hls.defaultVideoCodec),e.J.set(n,a))}}function Vp(e,t){t=b(t);for(var n=t.next();!n.done;n=t.next()){var i=n.value,a=Ze(i,"DATA-ID");n=Ze(i,"URI");var l=Ze(i,"LANGUAGE");i=Ze(i,"VALUE"),a=new Map().set("id",a),n&&a.set("uri",od([e.D],n,e.B)[0]),l&&a.set("language",l),i&&a.set("value",i),n=new Te("sessiondata",a),e.h&&e.h.onEvent(n)}}function b1(e,t){var n,i,a,l,f,d;return q(function(g){if(!e.h||!e.g)return g.return();for(i=b(t),a=i.next();!a.done;a=i.next())if(l=a.value,f=Ze(l,"PATHWAY-ID"),d=Ze(l,"SERVER-URI"),f&&d){e.j=new I0(e.h),e.j.configure(e.g),e.j.i=[e.D],e.j.setManifestType("HLS"),e.j.h=f,n=jp(e.j,d);break}return O(g,n,0)})}function R1(e,t){var n=z0(t,"SUBTITLES");t=n.map(function(f){if(e.g.disableText)return null;try{return E(e,[f],new Map).stream}catch(d){if(e.g.hls.ignoreTextStreamFailures)return null;throw d}}),n=b(n);for(var i=n.next();!i.done;i=n.next()){var a=qt(i.value,"GROUP-ID");if((i=e.J.get(a))&&(a=e.K.get(a))){a=b(a);for(var l=a.next();!l.done;l=a.next())l=l.value,l.stream.codecs=i,l.stream.mimeType=yE(lt,i)||j2(lt),fl(l.stream)}}return t.filter(function(f){return f})}function fl(e){var t=new Set([Et(e.mimeType,e.codecs)]);e.segmentIndex&&e.segmentIndex.Kb(function(n){n.mimeType&&t.add(Et(n.mimeType,e.codecs))}),e.fullMimeTypes=t}function h4(e,t,n){var i,a;return q(function(l){return l.g==1?(i=t.map(function(f){var d,g;return q(function(m){if(m.g==1)return e.g.disableThumbnails?m.return(null):(Le(m,2),O(m,D(e,f),4));if(m.g!=2)return d=m.h,m.return(d.stream);if(g=je(m),e.g.hls.ignoreImageStreamFailures)return m.return(null);throw g})}).concat(n.map(function(f){if(e.g.disableThumbnails)return null;try{var d=k(e,f);return d.stream.type!=="image"?null:d.stream}catch(g){if(e.g.hls.ignoreImageStreamFailures)return null;throw g}})),O(l,Promise.all(i),2)):(a=l.h,l.return(a.filter(function(f){return f})))})}function KS(e,t,n){t=t.filter(function(d){var g=Ze(d,"URI")||"";return d=Ze(d,"TYPE"),d!="SUBTITLES"&&(g!=""||d=="AUDIO")});var i={};t=b(t);for(var a=t.next();!a.done;a=t.next()){a=a.value;var l=Iy(a,!e.j);i[l]?i[l].push(a):i[l]=[a]}for(var f in i)E(e,i[f],n,!1)}function _2(e,t){return t.map(function(n){return n=k(e,n),n.stream.type!=="video"?null:n.stream}).filter(function(n){return n})}function r(e,t,n,i,a,l,f){var d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne,ie,ue,ce,le,Se,ke,pt,$e,fn,Ht,Lt,_t,an,Rt;return q(function(Yt){switch(Yt.g){case 1:if(d=[],g=new Set,e.g.ignoreDrmInfo||!(0<n.length)){Yt.A(2);break}m=b(n),S=m.next();case 3:if(S.done){Yt.A(2);break}if(T=S.value,x=qt(T,"METHOD"),M=Ze(T,"KEYFORMAT")||"identity",R=null,x=="NONE"){Yt.A(4);break}if(B2(x)){L=od(a(),qt(T,"URI"),l),I=L.sort().join(""),e.M.has(I)||(U=yi(L,e.g.retryParameters),N=B0(e,U,6).promise,e.M.set(I,N)),Yt.A(4);break}if(M=="identity")return O(Yt,X3(e,T,"",a,null,l),12);if(j=e.jc.get(M),!j){B=null,Yt.A(10);break}return O(Yt,j(T,"",null),11);case 11:B=Yt.h;case 10:R=B,Yt.A(6);break;case 12:R=Yt.h;case 6:if(R){if(R.keyIds)for(Y=b(R.keyIds),P=Y.next();!P.done;P=Y.next())V=P.value,g.add(V);d.push(R)}case 4:S=m.next(),Yt.A(3);break;case 2:for(F={},K=b(t),ee=K.next();!ee.done;ee=K.next())Q=ee.value,ne=Iy(Q,!e.j),F[ne]?F[ne].push(Q):F[ne]=[Q];ie=[];for(ue in F)ce=F[ue],le=ce[0],Se=Ze(le,"FRAME-RATE"),ke=Number(Ze(le,"AVERAGE-BANDWIDTH"))||Number(qt(le,"BANDWIDTH")),pt=Ze(le,"RESOLUTION"),$e=b(pt?pt.split("x"):[null,null]),fn=$e.next().value,Ht=$e.next().value,Lt=Ze(le,"VIDEO-RANGE"),(_t=Ze(le,"REQ-VIDEO-LAYOUT"))&&_t.includes(",")&&(an=_t.split(",").filter(function(vt){return vt=="CH-STEREO"||vt=="CH-MONO"}),_t=an[0]),_t=_t||"CH-MONO",Rt=u(e,ce,i),ie.push.apply(ie,Ue(p(e,Rt.audio,Rt.video,ke,fn,Ht,Se,Lt,_t,d,g,f)));return Yt.return(ie.filter(function(vt){return vt!=null}))}})}function u(e,t,n){for(var i={audio:[],video:[]},a=new Map,l=[],f=!1,d=!1,g=b(t),m=g.next();!m.done;m=g.next()){var S=m.value;m=Ze(S,"AUDIO");var T=Ze(S,"VIDEO"),x=m||T;x&&(l.includes(x)||l.push(x),(S=Ze(S,"PATHWAY-ID"))&&a.set(x,S),m?f=!0:T&&(d=!0))}l.length&&n.length&&(n=n.filter(function(R){return l.includes(qt(R,"GROUP-ID"))}),KS(e,n,a)),n=(a=l.sort().join(","))&&e.K.has(a)?e.K.get(a):[],f?i.audio.push.apply(i.audio,Ue(n)):d&&i.video.push.apply(i.video,Ue(n)),f=!1;var M=t.map(function(R){return qt(R,"URI")});return m=i.audio.find(function(R){return R&&R.T().find(function(L){return M.includes(L)})}),d=s(e,t[0]),n=Ki("video",d),(g=Ki("audio",d))&&!n?(m="audio",f=0<i.audio.length):!i.audio.length&&!i.video.length&&g&&n?(m="video",d=[[n,g].join()]):i.audio.length&&m?(m="audio",f=!0):m=i.video.length&&!i.audio.length?"audio":"video",f||(e=H(e,t,d,m),a&&(e.stream.groupId=a),i[e.stream.type]=[e]),i}function s(e,t){return t=Ze(t,"CODECS")||"",e.Z=0<t.length,e.Z||e.g.hls.disableCodecGuessing||(t=[],e.g.disableVideo||t.push(e.g.hls.defaultVideoCodec),e.g.disableAudio||t.push(e.g.hls.defaultAudioCodec),t=t.join(",")),Pm(t.split(/\s*,\s*/))}function p(e,t,n,i,a,l,f,d,g,m,S,T){for(var x=b(n),M=x.next();!M.done;M=x.next())q3(M.value.stream,a,l,f,d,g,null);for(a=e.g.disableAudio,(!t.length||a)&&(t=[null]),a=e.g.disableVideo,(!n.length||a)&&(n=[null]),a=[],t=b(t),l=t.next();!l.done;l=t.next())for(l=l.value,f=b(n),d=f.next();!d.done;d=f.next()){var R=d.value;(d=l?l.stream:null)&&(d.drmInfos=m,d.keyIds=S),(g=R?R.stream:null)&&(g.drmInfos=m,g.keyIds=S,e.g.disableIFrames||vg(g,T)),g&&!d&&(g.bandwidth=i),!g&&d&&(d.bandwidth=i),x=l?l.stream.drmInfos:null,M=R?R.stream.drmInfos:null,R=R?R.T().sort().join(","):"";var L=l?l.T().sort().join(","):"",I=[];d&&d.codecs&&I.push(d.codecs),g&&g.codecs&&I.push(g.codecs),R=[R,L,I.sort()].join("-"),d&&g&&!Xr(x,M)||e.Ya.has(R)||(d={id:e.H++,language:d?d.language:"und",disabledUntilTime:0,primary:!!d&&d.primary||!!g&&g.primary,audio:d,video:g,bandwidth:i,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},a.push(d),e.Ya.add(R))}return a}function v(e,t){t=z0(t,"CLOSED-CAPTIONS"),e.P=t.length==0,t=b(t);for(var n=t.next();!n.done;n=t.next()){var i=n.value,a=Ze(i,"LANGUAGE");n=Wt(a||"und"),a||(a=Ze(i,"NAME"))&&(n=a),a=qt(i,"GROUP-ID"),i=qt(i,"INSTREAM-ID").replace("SERVICE","svc"),e.I.get(a)||e.I.set(a,new Map),e.I.get(a).set(i,n)}}function E(e,t,n,i){i=i===void 0?!0:i;for(var a=[],l=[],f=new Map,d=b(t),g=d.next();!g.done;g=d.next()){var m=g.value;g=i?qt(m,"URI"):Ze(m,"URI")||"shaka://hls-muxed",m=qt(m,"GROUP-ID"),a.push(g),l.push(m),f.set(m,g)}if(i=l.sort().join(","),g=t[0],t="",d=qt(g,"TYPE").toLowerCase(),d=="subtitles"&&(d=lt),d==lt)t=Ze(g,"CODECS")||"";else for(l=b(l),m=l.next();!m.done;m=l.next())if(m=m.value,e.J.has(m)){t=e.J.get(m);break}if(l=a.sort().join(","),e.i.has(l))return e.i.get(l);if(m=e.H++,e.j){f=b(f);for(var S=f.next();!S.done;S=f.next()){var T=b(S.value);S=T.next().value,T=T.next().value,(S=n.get(S))&&Zl(e.j,m,S,T)}}n=Ze(g,"LANGUAGE"),f=Ze(g,"NAME"),S=Ze(g,"DEFAULT")=="YES",d=="audio"?T=(T=Ze(g,"CHANNELS"))?parseInt(T.split("/")[0],10):null:T=null;var x;d=="audio"&&(x=Ze(g,"CHANNELS"))?(x=x.split("/"),x=x.length!=2?!1:x[1]==="JOC"||x[1].includes("ATMOS")):x=!1;var M=Ze(g,"CHARACTERISTICS"),R=Ze(g,"FORCED")=="YES";return d=="audio"?g=(g=Ze(g,"SAMPLE-RATE"))?parseInt(g,10):null:g=null,a=X(e,m,a,t,d,n,S,f,T,null,M,R,g,x),a.stream&&(a.stream.groupId=i),e.K.has(i)?e.K.get(i).push(a):e.K.set(i,[a]),e.i.set(l,a),a}function D(e,t){var n,i,a,l,f,d,g,m,S,T;return q(function(x){return x.g==1?(n=qt(t,"URI"),i=Ze(t,"CODECS","jpeg")||"",e.i.has(n)?x.return(e.i.get(n)):(a=Ze(t,"LANGUAGE"),l=Ze(t,"NAME"),f=Ze(t,"CHARACTERISTICS"),d=X(e,e.H++,[n],i,"image",a,!1,l,null,null,f,!1,null,!1),(g=Ze(t,"RESOLUTION"))?O(x,d.stream.createSegmentIndex(),3):x.A(2))):(x.g!=2&&(m=Pu(d.stream.segmentIndex),S=m.tilesLayout)&&(d.stream.width=Number(g.split("x")[0])*Number(S.split("x")[0]),d.stream.height=Number(g.split("x")[1])*Number(S.split("x")[1])),(T=Ze(t,"BANDWIDTH"))&&(d.stream.bandwidth=Number(T)),e.i.set(n,d),x.return(d))})}function k(e,t){var n="video",i=qt(t,"URI"),a=Ze(t,"CODECS")||"";if(a=="mjpg"&&(n="image"),e.i.has(i))return e.i.get(i);var l=Ze(t,"LANGUAGE"),f=Ze(t,"NAME"),d=Ze(t,"CHARACTERISTICS");return n=X(e,e.H++,[i],a,n,l,!1,f,null,null,d,!1,null,!1),a=Ze(t,"RESOLUTION"),l=b(a?a.split("x"):[null,null]),a=l.next().value,l=l.next().value,n.stream.width=Number(a)||void 0,n.stream.height=Number(l)||void 0,(t=Ze(t,"BANDWIDTH"))&&(n.stream.bandwidth=Number(t)),e.i.set(i,n),n}function H(e,t,n,i){for(var a=e.H++,l=[],f=b(t),d=f.next();!d.done;d=f.next()){var g=d.value;d=qt(g,"URI"),g=Ze(g,"PATHWAY-ID"),e.j&&g&&Zl(e.j,a,g,d),l.push(d)}if(f=l.sort().join(",")+n.sort().join(","),e.i.has(f))return e.i.get(f);d=l.join(",");e:{if(t=Ze(t[0],"CLOSED-CAPTIONS"),i=="video"){if(e.g.disableText){e.P=!1,t=null;break e}if(t){if(t!="NONE"){t=e.I.get(t);break e}e.P=!1}else if(!t&&e.I.size)for(t=b(e.I.keys()).next();!t.done;){t=e.I.get(t.value);break e}}t=null}return n=Al(i,n),i=X(e,a,l,n,i,null,!1,d,null,t,null,!1,null,!1),e.i.set(f,i),i}function X(e,t,n,i,a,l,f,d,g,m,S,T,x,M){function R(B){var Y,P,V,F,K,ee,Q,ne,ie,ue,ce,le,Se,ke,pt,$e,fn,Ht,Lt,_t,an,Rt,Yt;return q(function(vt){switch(vt.g){case 1:return Y=ui,Le(vt,2),O(vt,B.promise,4);case 4:if(P=vt.h,B.aborted)return vt.return();if(V=P.uri,V!=P.originalUri&&(F=U.T(),F.includes(V)||U.vf.push(V)),K=qS(e.La,P.data),K.type!=1)throw new G(2,4,4017);return ee=Hr(K.na,"EXT-X-DEFINE"),Q=ld(e,ee,V),ne=!1,(!e.Z&&e.g.hls.disableCodecGuessing||e.P&&a==Y.Ba&&!e.g.hls.disableClosedCaptionsDetection)&&0<K.segments.length&&(e.P=!1,ne=!0),ie=!e.Z&&e.g.hls.disableCodecGuessing,ue=vo(e),O(vt,Xt(e,0,Q,K,L,i,a,l,f,d,g,m,S,T,x,M,void 0,ne,ie),5);case 5:if(ce=vt.h,B.aborted)return vt.return();if(le=ce.stream,ae(e,K),vo(e)&&!ue&&en(e,K),U.Zc=ce.Zc,U.hc=ce.hc,U.Le=ce.Le,U.Ke=ce.Ke,U.Sd=ce.Sd,U.gf=ce.gf,U.Rb=ce.Rb,U.Sb=ce.Sb,U.Tg=!0,I.segmentIndex=le.segmentIndex,I.encrypted=le.encrypted,I.drmInfos=le.drmInfos,I.keyIds=le.keyIds,I.mimeType=le.mimeType,I.bandwidth=I.bandwidth||le.bandwidth,I.codecs=I.codecs||le.codecs,I.closedCaptions=I.closedCaptions||le.closedCaptions,I.width=I.width||le.width,I.height=I.height||le.height,I.hdr=I.hdr||le.hdr,I.colorGamut=I.colorGamut||le.colorGamut,I.frameRate=I.frameRate||le.frameRate,I.language=="und"&&le.language!="und"&&(I.language=le.language),I.language=I.language||le.language,I.channelsCount=I.channelsCount||le.channelsCount,I.audioSamplingRate=I.audioSamplingRate||le.audioSamplingRate,fl(I),I.drmInfos.length&&e.h.newDrmInfo(I),Se=!1,(!m&&I.closedCaptions||m&&I.closedCaptions&&m.size!=I.closedCaptions.size)&&(Se=!0),e.m&&Se&&e.h.makeTextStreamsForClosedCaptions(e.m),a==Y.Ba||a==Y.aa)for(ke=b(e.i.values()),pt=ke.next();!pt.done;pt=ke.next())$e=pt.value,$e.Tg||$e.type!=a||($e.stream.mimeType=le.mimeType,fl($e.stream));a==Y.Na&&(fn=Pu(le.segmentIndex))&&fn.ia&&(I.mimeType="application/mp4",fl(I)),Ht=Zd(I),I.segmentIndex.Kb(function(Dt){Dt.ia&&(Dt.ia.wd=Ht)}),yt(e)&&(e.nc?he(e,[U]):(e.nc=!0,Lt=Array.from(e.i.values()),_t=Lt.filter(function(Dt){return Dt.stream.segmentIndex}),he(e,_t),Ly(e),an=e.s,0<an&&e.C.$(an))),dr(e,K.na,I.type,Q,L),e.m&&(e.m.startTime=e.u),Ge(vt,0);break;case 2:if(Rt=je(vt),I.closeSegmentIndex(),Rt.code===7001)return vt.return();if(Yt=e.h.disableStream(I),!Yt)throw Rt;ve(vt)}})}function L(){return e.j&&1<n.length?h1(e.j,t):U.vf.concat(A1([e.D],n,e.B))}var I=Mn(e,i,a,l,f,d,g,m,S,T,x,M);n.includes("shaka://hls-muxed")&&(I.isAudioMuxedInVideo=!0,I.mimeType="video/mp2t",fl(I));var U={stream:I,type:a,vf:[],Zc:0,hc:0,gf:new Map,Le:!1,Ke:!1,Sd:!1,ng:-1,Rb:-1,Sb:-1,Tg:!1,T:L},N=null,j;return I.createSegmentIndex=function(){return N||(I.isAudioMuxedInVideo?(I.segmentIndex=new Vt([]),Promise.resolve()):(j=p4(e,U.T(),!0),N=new Promise(function(B){B(R(j))})))},I.closeSegmentIndex=function(){N&&!I.segmentIndex&&j.abort(),I.segmentIndex&&(I.segmentIndex.release(),I.segmentIndex=null),N=null},U}function ge(e){var t=1/0;e=b(e.i.values());for(var n=e.next();!n.done;n=e.next())n=n.value,n.stream.segmentIndex&&n.stream.type!="text"&&!n.stream.isAudioMuxedInVideo&&(t=Math.min(t,n.hc));return t}function Ae(e,t){var n=[];t=b(t);for(var i=t.next();!i.done;i=t.next())i=i.value,i.segmentIndex&&i.segmentIndex.Kb(function(a){n.push(a)});e.l.ce(n)}function he(e,t){if(!vo(e))for(var n=ge(e),i=b(t),a=i.next();!a.done;a=i.next())a.value.stream.segmentIndex.pd(0,n);Ae(e,t.map(function(l){return l.stream})),i=Array.from(e.i.values()).filter(function(l){return l.stream.segmentIndex}),n=i.some(function(l){return l.stream.type=="audio"}),a=i.some(function(l){return l.stream.type=="video"}),i=vo(e)&&!e.Xa,n=!vo(e)&&e.Xa&&!(n&&a),e.g.hls.ignoreManifestProgramDateTime||i||n?pE(e,t,i):(U2(e,t),0<e.g.hls.ignoreManifestProgramDateTimeForTypes.length&&pE(e,t))}function we(e,t){return e.g.hls.ignoreManifestProgramDateTime?!0:e.g.hls.ignoreManifestProgramDateTimeForTypes.includes(t)}function yt(e){if(!e.m)return!1;var t=[],n=[];e=b(e.m.variants);for(var i=e.next();!i.done;i=e.next())i=i.value,i.video&&t.push(i.video),i.audio&&n.push(i.audio);return!(0<t.length&&!t.some(function(a){return a.segmentIndex})||0<n.length&&!n.some(function(a){return a.segmentIndex}))}function Xt(e,t,n,i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N){U=U===void 0?!0:U,N=N===void 0?!0:N;var j,B,Y,P,V,F,K,ee,Q,ne,ie,ue,ce,le,Se,ke,pt,$e,fn,Ht,Lt,_t,an,Rt,Yt,vt,Dt,kn,Vr;return q(function(mi){switch(mi.g){case 1:if(j=i.segments||[],B=j.every(function(Ai){return!!ir(Ai.na,"EXT-X-GAP")}),!j.length||B)throw new G(2,4,4053);if(Me(e,i),vo(e)&&qe(e,i),Y=vo(e)?e.N.get(f):new Map,P=sd(e,i,Y,n,a,f),V=P.segments,F=P.bandwidth,ie=ne=Q=ee=K=null,!(0<V.length&&U)){mi.A(2);break}return O(mi,N2(e,V),3);case 3:ue=mi.h,f=ue.type,d=ue.language,S=ue.channelCount,R=ue.sampleRate,e.g.disableText||(T=ue.closedCaptions),ee=ue.height,K=ue.width,Q=ue.qe,ne=ue.colorGamut,ie=ue.frameRate,N&&(I=ue.mimeType,l=ue.codecs);case 2:if(I){mi.A(4);break}return O(mi,hb(e,f,l,V),5);case 5:I=mi.h,f!=lt||l||I!="application/mp4"||!V[0]||V[0].ia||(I="text/vtt");case 4:return O(mi,W(e,i,I,a,n),6);case 6:if(ce=mi.h,le=ce.drmInfos,Se=ce.keyIds,ke=ce.encrypted,pt=ce.Jh,ke&&!le.length&&!pt)throw new G(2,4,4026);return $e=Mn(e,l,f,d,g,m,S,T,x,M,R,L),$e.encrypted=ke&&!pt,$e.drmInfos=le,$e.keyIds=Se,$e.mimeType=I,F&&($e.bandwidth=F),fl($e),f=="video"&&(K||ee||Q||ne)&&q3($e,K,ee,ie,Q,null,ne),vo(e)&&qe(e,i),fn=V[0].startTime,Ht=V[V.length-1],Lt=Ht.endTime,_t=new Vt(V),$e.segmentIndex=_t,Rt=(an=ir(i.na,"EXT-X-SERVER-CONTROL"))?j0(an,"CAN-SKIP-UNTIL")!=null:!1,Yt=an?j0(an,"CAN-BLOCK-RELOAD")!=null:!1,vt=ud(i.na,"EXT-X-MEDIA-SEQUENCE",0),Dt=Ei(vt,V),kn=Dt.Rb,Vr=Dt.Sb,mi.return({stream:$e,type:f,vf:[],T:a,Zc:fn,hc:Lt,Le:Rt,Ke:Yt,Sd:!1,ng:-1,Rb:kn,Sb:Vr,gf:Y,Tg:!1})}})}function Ei(e,t){e=e+t.length-1;var n=-1;if(!t.length)return e++,{Rb:e,Sb:n};t=t[t.length-1];var i=t.g;return t.g.length?(n=i.length-1,i[i.length-1].isPreload()||(e++,n=0),{Rb:e,Sb:n}):(e++,t.m&&(n=0),{Rb:e,Sb:n})}function Mn(e,t,n,i,a,l,f,d,g,m,S,T){var x=yE(n,t)||j2(n),M=[];if(g){g=b(g.split(","));for(var R=g.next();!R.done;R=g.next())M.push(R.value)}return g=void 0,R=null,n==lt?g=M.includes("public.accessibility.transcribes-spoken-dialog")&&M.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":M.includes("public.accessibility.describes-video")&&(R="visually impaired"),M.length||g!=="subtitle"||M.push("subtitle"),e={id:e.H++,originalId:l,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:x,codecs:t,kind:n==lt?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:Wt(i||"und"),originalLanguage:i,label:l,type:n,primary:a,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:M,forced:m,channelsCount:f,audioSamplingRate:S,spatialAudio:T,closedCaptions:d,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:R,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null},fl(e),e}function W(e,t,n,i,a){var l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne,ie,ue,ce,le,Se;return q(function(ke){switch(ke.g){case 1:if(l=new Map,!e.g.ignoreDrmInfo&&t.segments){for(f=b(t.segments),d=f.next();!d.done;d=f.next())if(g=d.value,m=Hr(g.na,"EXT-X-KEY"),S=null,m.length)for(S=gt(e,t,g.na,i,a),T=b(m),x=T.next();!x.done;x=T.next())M=x.value,l.set(M,S)}L=R=!1,I=[],U=new Set,N=b(l),j=N.next();case 2:if(j.done){ke.A(4);break}if(B=j.value,Y=b(B),P=Y.next().value,V=Y.next().value,F=P,K=V,ee=qt(F,"METHOD"),ee=="NONE"){ke.A(3);break}if(R=!0,Q=Ze(F,"KEYFORMAT")||"identity",ne=null,B2(ee)){L=!0,ke.A(3);break}if(Q=="identity")return O(ke,X3(e,F,n,i,K,a),11);if(ie=e.jc.get(Q),!ie){ue=null,ke.A(9);break}return O(ke,ie(F,n,K),10);case 10:ue=ke.h;case 9:ne=ue,ke.A(6);break;case 11:ne=ke.h;case 6:if(ne){if(ne.keyIds)for(ce=b(ne.keyIds),le=ce.next();!le.done;le=ce.next())Se=le.value,U.add(Se);I.push(ne)}case 3:j=N.next(),ke.A(2);break;case 4:return ke.return({drmInfos:I,keyIds:U,encrypted:R,Jh:L})}})}function $(e,t,n,i,a){if(!oe.crypto||!oe.crypto.subtle)throw st("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new G(2,4,4042);var l=0,f=Ze(t,"IV","");if(f){var d=Io(f.substr(2));if(d.byteLength!=16)throw new G(2,4,4048)}else l=ud(n.na,"EXT-X-MEDIA-SEQUENCE",0);var g=od(i(),qt(t,"URI"),a),m=g.sort().join("");if(n=t.toString()+"-"+l+"-"+m,!e.oa.has(n)){var S={bitsKey:128,blockCipherMode:"CBC",iv:d,firstMediaSequenceNumber:l};switch(qt(t,"METHOD")){case"AES-256":S.bitsKey=256;break;case"AES-256-CTR":S.bitsKey=256,S.blockCipherMode="CTR"}S.fetchKey=function(){var T,x,M,R;return q(function(L){if(L.g==1)return e.M.has(m)||(T=yi(g,e.g.retryParameters),x=B0(e,T,6).promise,e.M.set(m,x)),O(L,e.M.get(m),2);if(L.g!=3){if(M=L.h,!M.data||M.data.byteLength!=S.bitsKey/8)throw new G(2,4,4049);return R={name:S.blockCipherMode=="CTR"?"AES-CTR":"AES-CBC",length:S.bitsKey},O(L,oe.crypto.subtle.importKey("raw",M.data,R,!0,["decrypt"]),3)}S.cryptoKey=L.h,S.fetchKey=void 0,ve(L)})},e.oa.set(n,S)}return e.oa.get(n)}function ae(e,t){e.u==null&&(t=ir(t.na,"EXT-X-START"))&&(e.u=Number(qt(t,"TIME-OFFSET")))}function Me(e,t){var n=ir(t.na,"EXT-X-PLAYLIST-TYPE");t=ir(t.na,"EXT-X-ENDLIST"),t=n&&n.value=="VOD"||t,n=n&&n.value=="EVENT"&&!t,n=!t&&!n,t?z2(e,P2):n?z2(e,H2):z2(e,Q3)}function qe(e,t){var n=1/0,i=t.segments;if(i.length)for(var a=i.length-1;0<=a;){var l=ir(i[a].na,"EXTINF");if(l){n=Number(l.value.split(",")[0]);break}a--}if(i=ir(t.na,"EXT-X-TARGETDURATION"),!i)throw new G(2,4,4024,"EXT-X-TARGETDURATION");i=Number(i.value),(a=ir(t.na,"EXT-X-PART-INF"))&&(e.R=Number(qt(a,"PART-TARGET"))),t=ir(t.na,"EXT-X-SERVER-CONTROL"),e.ea&&e.R?(e.s=e.lc?5*e.R<=n?Math.min(e.R,e.s):Math.min(n,e.s):Math.min(e.R,e.s),e.Ka=t?Number(qt(t,"PART-HOLD-BACK")):0):(e.s=Math.min(n,e.s),n=t?j0(t,"HOLD-BACK"):null,e.Fa=n?Number(n.value):0),e.Sa=Math.max(i,e.Sa)}function en(e,t){var n=0;if(e.g.defaultPresentationDelay)n=e.g.defaultPresentationDelay;else if(e.Ka)n=e.Ka;else if(e.Fa)n=e.Fa;else{var i=t.segments.length,a=e.g.hls.liveSegmentsDelay;for(a>i-2&&(a=Math.max(1,i-2)),a=i-a;a<i;a++){var l=ir(t.segments[a].na,"EXTINF");n=l?n+Math.ceil(Number(l.value.split(",")[0])):n+e.Sa}}e.u&&0>e.u&&(n=Math.min(-e.u,n),e.u+=n),e.l.Ri(0),e.l.mh(n),e.l.ed(!1)}function gt(e,t,n,i,a){var l=ir(n,"EXT-X-MAP");if(!l)return null;var f=qt(l,"URI"),d=od(i(),f,a);if(f=[d.toString(),Ze(l,"BYTERANGE","")].join("-"),!e.za.has(f)){var g=void 0,m=null,S=!1;n=b(n);for(var T=n.next();!T.done;T=n.next())T=T.value,T.name=="EXT-X-KEY"?(S=qt(T,"METHOD"),B2(S)&&T.id<l.id?(S=!1,g=$(e,T,t,i,a)):S=S!="NONE"):T.name=="EXT-X-BYTERANGE"&&T.id<l.id&&(m=T);t=rn(d,l,m,g,S),e.za.set(f,t)}return e.za.get(f)}function rn(e,t,n,i,a){var l=0,f=null;return t=Ze(t,"BYTERANGE"),!t&&n&&(t=n.value),t&&(l=t.split("@"),f=Number(l[0]),l=Number(l[1]),f=l+f-1,i&&(n=f+1-l,n%16&&(f+=16-n%16))),new xa(function(){return e},l,f,null,null,null,i,a)}function sn(e,t,n,i,a,l,f,d,g){function m(ke){ke=new un(ke).qb.split(".").pop();var pt=m4.get(f).get(ke);return pt||(pt=g4.get(ke)),pt}var S=i.na,T=ir(S,"EXTINF"),x=0,M=0,R=null;i.$b.length&&(e.m.isLowLatency=!0);var L=null;if(!e.g.hls.ignoreManifestProgramDateTime){var I=ir(S,"EXT-X-PROGRAM-DATE-TIME");I&&I.value&&(L=au(I.value),e.Xa=!0)}var U=so;if(ir(S,"EXT-X-GAP")&&(e.m.gapCount++,U=2),!T){if(i.$b.length==0)throw new G(2,4,4024,"EXTINF");if(!e.ea)return null}var N=[];I=!1;var j=null,B=!1,Y=!1;if(e.ea&&i.$b.length){x=t&&oe.ReadableStream&&e.g.hls.allowLowLatencyByteRangeOptimization;for(var P=L,V={},F=0;F<i.$b.length;V={Lf:void 0,qf:void 0},F++){var K=i.$b[F],ee=F==0?n:N[N.length-1],Q=F==0?a:ee.endTime,ne=Number(Ze(K,"DURATION"))||e.R;if(ne){var ie=Q+ne,ue=0,ce=null;if(K.name=="EXT-X-PRELOAD-HINT"?(ue=(ue=Ze(K,"BYTERANGE-START"))?Number(ue):0,(ee=Ze(K,"BYTERANGE-LENGTH"))?ce=ue+Number(ee)-1:ue&&(ce=Number.MAX_SAFE_INTEGER)):(ue=Ze(K,"BYTERANGE"),ce=b(Di(ee,ue)),ue=ce.next().value,ce=ce.next().value),V.qf=Ze(K,"URI"),V.qf){ee=so,Ze(K,"GAP")=="YES"&&(e.m.gapCount++,ee=2,B=!0),V.Lf=null;var le=function(ke){return function(){return ke.Lf==null&&(ke.Lf=od(d(),ke.qf,l)),ke.Lf}}(V);x&&0<=ue&&ce!=null&&(j=le,I=!0),Q=new Ye(Q,ie,le,ue,ce,t,0,0,1/0,[],"",null,P,ee,g),K.name=="EXT-X-PRELOAD-HINT"&&(Q.Ug(),Y=!0),Ze(K,"INDEPENDENT")!="YES"&&0<F&&Q.vd(),(V=m(V.qf))&&(Q.mimeType=V,K3.has(V)&&(Q.ia=null)),N.push(Q),P&&(P+=ne)}}}}if(T){if(T=Number(T.value.split(",")[0]),T==0)return null;x=a+T}else if(N.length)x=N[N.length-1].endTime;else return null;I&&(B||N[0].startByte!=0?(I=!1,j=null):N=[]),(T=ir(S,"EXT-X-BYTERANGE"))?(R=b(Di(n,T.value)),M=R.next().value,R=R.next().value):N.length&&(M=N[0].startByte,R=N[N.length-1].endByte),n="",T=null,f=="image"&&(n="1x1",S=ir(S,"EXT-X-TILES"))&&(n=qt(S,"LAYOUT"),(S=Ze(S,"DURATION"))&&(T=Number(S)));var Se=null;return t=new Ye(a,x,function(){return j?j():(Se==null&&(Se=od(d(),i.g,l)),Se||[])},M,R,t,0,0,1/0,N,n,T,L,U,g,0<N.length&&!!i.g),(a=m(i.g))&&(t.mimeType=a,K3.has(a)&&(t.ia=null)),I&&(e.lc=!0,t.ri(),Y&&t.Ug()),t}function Di(e,t){var n=0,i=null;return t&&(n=t.split("@"),t=Number(n[0]),n=n[1]?Number(n[1]):e.endByte+1,i=n+t-1),[n,i]}function dr(e,t,n,i,a){if(n=="video"||n=="audio"){var l=e.l.m;if(l&&!we(e,n))for(t=Hr(t,"EXT-X-DATERANGE"),t=t.filter(function(Q){return j0(Q,"START-DATE")!=null}).sort(function(Q,ne){return Q=qt(Q,"START-DATE"),ne=qt(ne,"START-DATE"),Q<ne?-1:Q>ne?1:0}),n=0;n<t.length;n++){var f=t[n];try{var d=qt(f,"ID");if(!e.Ha.has(d)){var g=qt(f,"START-DATE"),m=au(g);if(!isNaN(m)){var S=Math.max(0,m-l),T=null,x=Ze(f,"END-DATE");if(x){var M=au(x);if(!isNaN(M)&&(T=M-l,0>T))continue}if(T==null){var R=Ze(f,"DURATION")||Ze(f,"PLANNED-DURATION");if(R){var L=parseFloat(R);if(isNaN(L)||(T=S+L),0>m-l+L)continue}}var I=Ze(f,"CLASS")||"com.apple.quicktime.HLS",U=Ze(f,"END-ON-NEXT")=="YES";if(T==null&&U){for(var N=n+1;N<t.length;N++){var j=Ze(t[N],"CLASS")||"com.apple.quicktime.HLS";if(I==j){var B=qt(t[N],"START-DATE"),Y=au(B);if(!isNaN(Y)&&Y&&Y>m){T=Math.max(0,Y-l);break}}}if(T==null)continue}N=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];for(var P=[],V=b(f.attributes),F=V.next();!F.done;F=V.next()){var K=F.value;if(!N.includes(K.name)){var ee=Hp(K.value,i);(K.name=="X-ASSET-URI"||K.name=="X-ASSET-LIST")&&(ee=od(a(),K.value,i)[0]),P.push({key:K.name,description:"",data:ee,mimeType:null,pictureType:null})}}1<P.length&&e.h.onMetadata(I,S,T,P),e.Ha.add(d)}}}catch{}}}}function sd(e,t,n,i,a,l){var f=t.segments,d=void 0,g=ud(t.na,"EXT-X-DISCONTINUITY-SEQUENCE",-1),m=ud(t.na,"EXT-X-MEDIA-SEQUENCE",0),S=ir(t.na,"EXT-X-SKIP"),T=S?Number(Ze(S,"SKIPPED-SEGMENTS")):0,x=m+T,M=0;vo(e)&&n.has(x)&&(M=n.get(x)),M===0&&e.Oa==H2&&0<n.size&&!n.has(x)&&e.l.i!=null&&(M=e.l.Fb());var R=[],L=null;S=[];for(var I=0;I<f.length;I++){var U=f[I],N=I==0?M:L.endTime;x=m+T+I,ir(U.na,"EXT-X-DISCONTINUITY")&&(g++,L&&L.ia&&(L.ia.g=N));for(var j=b(U.na),B=j.next();!B.done;B=j.next())B=B.value,B.name=="EXT-X-KEY"&&(B2(qt(B,"METHOD"))?d=$(e,B,t,a,i):d=void 0);n.set(x,N),j=gt(e,t,U.na,a,i),(N=sn(e,j,L,U,N,i,l,a,d))&&((L=ud(U.na,"EXT-X-BITRATE"))?S.push({bitrate:L,duration:N.endTime-N.startTime}):S.length&&(L=S.pop(),L.duration+=N.endTime-N.startTime,S.push(L)),L=N,N.i=g,we(e,l)&&e.L!=null&&x<e.L||R.push(N))}if(t=void 0,S.length&&(t=S.reduce(function(Y,P){return Y+P.duration},0),t=Math.round(S.reduce(function(Y,P){return Y+P.bitrate*P.duration},0)/t*1e3)),S=R.some(function(Y){return Y.h!=null})){for(n={},i=0;i<R.length;n={Pe:void 0,Oe:void 0,He:void 0,bd:void 0,Ge:void 0},i++)if(n.bd=R[i],n.bd.h==null)for(n.Oe=0,n.Pe=i,a=function(Y){return function(){var P=R[Y.Pe];if(P){if(P.h!=null)return P.h+Y.Oe;Y.Oe-=P.endTime-P.startTime,Y.Pe+=1}return null}}(n),n.Ge=0,n.He=i,f=function(Y){return function(){var P=R[Y.He];if(P){if(P!=Y.bd&&(Y.Ge+=P.endTime-P.startTime),P.h!=null)return P.h+Y.Ge;--Y.He}return null}}(n);n.bd.h==null;)n.bd.h=f(),n.bd.h==null&&(n.bd.h=a())}if(S)for(n=b(R),i=n.next();!i.done;i=n.next())for(a=i.value,i=a.h,a=b(a.g),f=a.next();!f.done;f=a.next())f=f.value,f.h=i,i+=f.endTime-f.startTime;if(n=e.ba,S&&n!=1/0&&!we(e,l))for(e=b(R),l=e.next();!l.done;l=e.next())l.value.xh(n);return{segments:R,bandwidth:t}}function yE(e,t){if(e==lt){if(t=="vtt"||t=="wvtt")return"text/vtt";if(t&&t!=="")return"application/mp4"}return e!="image"||t&&t!="jpeg"?e=="audio"&&t=="mp4a.40.34"?"audio/mpeg":t=="mjpg"?"application/mp4":null:"image/jpeg"}function j2(e){return e==lt?"text/vtt":m4.get(e).get("mp4")}function V3(e,t){e=vo(e)?Math.trunc((t.length-1)/2):0;for(var n=t[e];n.yc()==2&&e+1<t.length;)e++,n=t[e];return{segment:n,segmentIndex:e}}function hb(e,t,n,i){var a,l,f,d,g,m,S,T,x,M,R,L,I;return q(function(U){switch(U.g){case 1:return a=li,l=V3(e,i),f=l.segment,f.status==2?U.return(j2(t)):(d=f.T(),g=new un(d[0]),m=g.qb.split(".").pop(),S=m4.get(t),(T=S.get(m))||(T=g4.get(m))||(T=yE(t,n))?U.return(T):(M=1,R=yi(d,e.g.retryParameters),Le(U,2),R.method="HEAD",O(U,B0(e,R,a,{type:M}).promise,4)));case 4:L=U.h,x=L.headers["content-type"],Ge(U,3);break;case 2:if(I=je(U),!I||I.code!=1002&&I.code!=1001){U.A(3);break}return R.method="GET",e.g.hls.allowRangeRequestsToGuessMimeType&&(R.headers.Range="bytes=0-0"),O(U,B0(e,R,a,{type:M}).promise,6);case 6:L=U.h,x=L.headers["content-type"];case 3:if(!x){U.A(7);break}if(T=x.toLowerCase().split(";")[0],T!="application/octet-stream"){U.A(8);break}if(L.data.byteLength){U.A(9);break}return R.method="GET",O(U,B0(e,R,a,{type:M}).promise,10);case 10:L=U.h;case 9:pu(at(L.data))&&(T="video/mp2t");case 8:if(T!="application/octet-stream")return U.return(T);case 7:return U.return(j2(t))}})}function q3(e,t,n,i,a,l,f){e&&(e.width=Number(t)||void 0,e.height=Number(n)||void 0,e.frameRate=Number(i)||void 0,e.hdr=a||void 0,e.videoLayout=l||void 0,e.colorGamut=f||void 0)}function p4(e,t,n){return B0(e,yi(t,e.g.retryParameters),0,{type:n?2:3})}function Y3(e){var t,n,i,a,l,f;return q(function(d){switch(d.g){case 1:return e.h?(Le(d,2),t=Date.now(),O(d,e.update(),4)):d.return();case 4:n=Date.now(),vo(e)&&(i=(n-t)/1e3,e.Ob.sample(1,i),a=0<e.g.updatePeriod?e.g.updatePeriod:e.s,l=Math.max(0,a-$c(e.Ob)),e.C.$(l)),Ge(d,3);break;case 2:if(f=je(d),!e.h)return d.return();if(e.g.raiseFatalErrorOnManifestUpdateRequestFailure)return e.h.onError(f),d.return();f.severity=1,e.h.onError(f),e.C.$(.1);case 3:if(!e.h)return d.return();e.h.onManifestUpdated(),ve(d)}})}function vo(e){return e.Oa!=P2}function z2(e,t){e.Oa=t,e.l&&e.l.ed(!vo(e)),vo(e)||e.C.stop()}function B0(e,t,n,i){if(!e.Y)throw new G(2,7,7001);return i||(i={}),i.isPreload=e.fc(),t=e.h.networkingEngine.request(n,t,i),fu(e.Y,t),t}function B2(e){return e=="AES-128"||e=="AES-256"||e=="AES-256-CTR"}function pb(e,t,n,i){var a,l,f,d,g,m;return q(function(S){if(S.g==1){if(n=="video/mp2t")throw new G(2,4,4040);if(oe.shakaMediaKeysPolyfill==="apple")throw new G(2,4,4041);if(a=qt(t,"METHOD"),l=["SAMPLE-AES","SAMPLE-AES-CTR"],!l.includes(a))return S.return(null);f="cenc",a=="SAMPLE-AES"&&(f="cbcs"),d=qt(t,"URI"),g=Na("com.apple.fps",f,[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}],d);var T=new un(d).Cb.replace(/-/g,"").toLowerCase();return(m=T.length===32&&/^[0-9a-f]+$/.test(T)?T:null)||!i?S.A(2):O(S,F3(e,i),3)}return S.g!=2&&(m=S.h),m&&g.keyIds.add(m),S.return(g)})}function X3(e,t,n,i,a,l){var f,d,g,m,S,T,x,M,R,L,I,U;return q(function(N){switch(N.g){case 1:if(n=="video/mp2t")throw new G(2,4,4040);if(oe.shakaMediaKeysPolyfill==="apple")throw new G(2,4,4041);if(f=qt(t,"METHOD"),d=["SAMPLE-AES","SAMPLE-AES-CTR"],!d.includes(f))return N.return(null);if(g=od(i(),qt(t,"URI"),l),g[0].startsWith("data:text/plain;base64,")){m=nu(tu(g[0].split("data:text/plain;base64,").pop())),N.A(2);break}return S=g.sort().join(""),e.qa.has(S)||(T=yi(g,e.g.retryParameters),x=B0(e,T,6).promise,e.qa.set(S,x)),O(N,e.qa.get(S),3);case 3:M=N.h,m=nu(M.data);case 2:if(R="00000000000000000000000000000000",!a){N.A(4);break}return O(N,F3(e,a),5);case 5:(L=N.h)&&(R=L);case 4:return I=new Map,I.set(R,m),U="cenc",f=="SAMPLE-AES"&&(U="cbcs"),N.return(rs(I,U))}})}function F3(e,t){var n,i,a,l;return q(function(f){return f.g==1?(n=null,e.ua.has(t)?(n=e.ua.get(t),f.A(2)):(i=ws(t.T(),t.xc(),t.uc(),e.g.retryParameters),a=li,O(f,B0(e,i,a,{type:0}).promise,3))):(f.g!=2&&(l=f.h,t.le(l.data),n=vv(l.data),e.ua.set(t,n)),f.return(n))})}xe("shaka.hls.HlsParser",C1);var g4=new Map().set("aac","audio/aac").set("ac3","audio/ac3").set("ec3","audio/ec3").set("mp3","audio/mpeg"),gb=new Map().set("mp4","audio/mp4").set("mp4a","audio/mp4").set("m4s","audio/mp4").set("m4i","audio/mp4").set("m4a","audio/mp4").set("m4f","audio/mp4").set("cmfa","audio/mp4").set("ts","video/mp2t").set("tsa","video/mp2t"),mb=new Map().set("mp4","video/mp4").set("mp4v","video/mp4").set("m4s","video/mp4").set("m4i","video/mp4").set("m4v","video/mp4").set("m4f","video/mp4").set("cmfv","video/mp4").set("ts","video/mp2t").set("tsv","video/mp2t"),yb=new Map().set("mp4","application/mp4").set("m4s","application/mp4").set("m4i","application/mp4").set("m4f","application/mp4").set("cmft","application/mp4").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml"),vb=new Map().set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif"),m4=new Map().set("audio",gb).set("video",mb).set("text",yb).set("image",vb),K3=new Set(["video/mp2t"].concat(Ue(ao))),P2="VOD",Q3="EVENT",H2="LIVE",Sb={kj:P2,Ul:Q3,bm:H2};Wi("application/x-mpegurl",function(){return new C1}),Wi("application/vnd.apple.mpegurl",function(){return new C1});function G2(e){return Pr(e)}var Tb=new Map().set("com.microsoft.playready",G2).set("com.microsoft.playready.recommendation",G2).set("com.microsoft.playready.software",G2).set("com.microsoft.playready.hardware",G2);function y4(){var e=this;this.h=this.g=null,this.l=[],this.j=null,this.u=1,this.i=null,this.D=new Ch(5),this.s=new Ke(function(){Eb(e)}),this.C=new Qr,this.m=new Map,this.B=function(){return!1}}w=y4.prototype,w.configure=function(e,t){this.g=e,t&&(this.B=t)},w.start=function(e,t){var n=this;return q(function(i){if(i.g==1)return n.l=[e],n.h=t,O(i,v4(n),2);if(!n.h)throw new G(2,7,7001);return i.return(n.j)})};function Eb(e){var t;q(function(n){switch(n.g){case 1:return Le(n,2),O(n,v4(e),4);case 4:Ge(n,3);break;case 2:t=je(n),e.h&&(t.severity=1,e.h.onError(t));case 3:if(!e.h)return n.return();ve(n)}})}w.stop=function(){return this.g=this.h=null,this.l=[],this.j=null,this.s!=null&&(this.s.stop(),this.s=null),this.m.clear(),this.C.destroy()},w.update=function(){var e=this,t;return q(function(n){if(n.g==1)return Le(n,2),O(n,v4(e),4);if(n.g!=2)return Ge(n,0);if(t=je(n),!e.h||!t)return n.return();e.h.onError(t),ve(n)})},w.onExpirationUpdated=function(){},w.onInitialVariantChosen=function(){},w.banLocation=function(){},w.setMediaElement=function(){};function v4(e){var t,n,i,a,l,f,d;return q(function(g){if(g.g==1)return t=yi(e.l,e.g.retryParameters),n=e.h.networkingEngine,i=Date.now(),a=n.request(0,t,{type:5,isPreload:e.B()}),fu(e.C,a),O(g,a.promise,2);if(l=g.h,!e.h)return g.return();l.uri&&!e.l.includes(l.uri)&&e.l.unshift(l.uri);var m=l.uri,S=l.data,T=e.g.mss.manifestPreprocessor;if(T!=Jo){if(Gt("manifest.mss.manifestPreprocessor configuration","Please Use manifest.mss.manifestPreprocessorTXml instead."),S=OS(S,"SmoothStreamingMedia"),!S)throw new G(2,4,4046,m);T(S),S=Do(S.outerHTML)}var x=Ed(S,"SmoothStreamingMedia");if(!x)throw new G(2,4,4046,m);if(m=e.g.mss.manifestPreprocessorTXml,m!=ih&&m(x),e.i||(e.i=new We(null,0)),m=ct(x,"IsLive",no,!1))throw new G(2,4,4047);e.i.ed(!m),T=ct(x,"TimeScale",ii,1e7),S=ct(x,"DVRWindowLength",ii),m&&(S===0||isNaN(S))&&(S=1/0);var M=ct(x,"CanSeek",no,!1);S===0&&M&&(S=1/0),M=null,S&&0<S&&(M=S/T),m&&!isNaN(e.g.availabilityWindowOverride)&&(M=e.g.availabilityWindowOverride),M==null&&(M=1/0),e.i.Bf(M),S=ct(x,"Duration",ii,1/0),m||e.i.rb(S/T),m={variants:[],textStreams:[],timescale:T,duration:S/T};var R;for(M=wt(x,"Protection"),T=e.g.mss.keySystemsBySystemId,S=[],M=b(M),R=M.next();!R.done;R=M.next())S=S.concat(wt(R.value,"ProtectionHeader"));if(S.length){for(M=[],R=0;R<S.length;R++){var L=S[R],I=L.attributes.SystemID.toLowerCase(),U=T[I];if(U){var N;e:{if(N=KT(L)){N=b(Dn(N,"DATA"));for(var j=N.next();!j.done;j=N.next())if(j=Wn(j.value,"KID")){N=tu(Gn(j)),N=new Uint8Array([N[3],N[2],N[1],N[0],N[5],N[4],N[7],N[6]].concat(Ue(N.slice(8)))),N=nu(N);break e}}N=null}j=tu(Gn(L)),I=Io(I.replace(/-/g,"")),I=[{initData:kd(j,I,new Set,0),initDataType:"cenc",keyId:N}],I=Na(U,"cenc",I),N&&I.keyIds.add(N),(U=Tb.get(U))&&(I.licenseServerUri=U(L)),M.push(I)}}T=M}else T=[];for(R=T,M=[],T=[],S=[],x=wt(x,"StreamIndex"),x=b(x),L=x.next();!L.done;L=x.next()){L=L.value,U=wt(L,"QualityLevel"),I=m.timescale,N=m.duration,j=wt(L,"c");for(var B=[],Y=0,P=0;P<j.length;++P){var V=j[P],F=j[P+1],K=ct(V,"t",ii),ee=ct(V,"d",ii);if(V=ct(V,"r",Ci),!ee)break;if(K=K??Y,(V=V||0)&&V--,0>V)if(F){if(F=ct(F,"t",ii),F==null)break;if(K>=F)break;V=Math.ceil((F-K)/ee)-1}else{if(N==1/0)break;if(K/I>=N)break;V=Math.ceil((N*I-K)/ee)-1}for(F=0;F<=V;++F)Y=K+ee,B.push({start:K/I,end:Y/I,Fh:K}),K=Y}for(I=B,U=b(U),N=U.next();!N.done;N=U.next())(N=Ab(e,L,N.value,I,R,m))&&(N.type!="audio"||e.g.disableAudio?N.type!="video"||e.g.disableVideo?N.type!=lt||e.g.disableText||S.push(N):T.push(N):M.push(N))}for(x=[],M=b(0<M.length?M:[null]),R=M.next();!R.done;R=M.next())for(R=R.value,L=b(0<T.length?T:[null]),B=L.next();!B.done;B=L.next())U=x,I=U.push,N=e,j=R,B=B.value,P=0,j&&j.bandwidth&&0<j.bandwidth&&(P+=j.bandwidth),B&&B.bandwidth&&0<B.bandwidth&&(P+=B.bandwidth),N={id:N.u++,language:j?j.language:"und",disabledUntilTime:0,primary:!!j&&j.primary||!!B&&B.primary,audio:j,video:B,bandwidth:P,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},I.call(U,N);m.variants=x,m.textStreams=S,e.j?(e.j.variants=m.variants,e.j.textStreams=m.textStreams,e.h.filter(e.j)):(e.j={presentationTimeline:e.i,variants:m.variants,textStreams:m.textStreams,imageStreams:[],offlineSessionIds:[],sequenceMode:e.g.mss.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"MSS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:null},e.i.ef()),Promise.resolve(),f=Date.now(),d=(f-i)/1e3,e.D.sample(1,d),ve(g)})}function Ab(e,t,n,i,a,l){var f=t.attributes.Type;if(f!=="audio"&&f!=="video"&&f!=="text")return st("Ignoring unrecognized type:",f),null;var d=t.attributes.Language,g=e.u++,m=ct(n,"Bitrate",uu),S=ct(n,"MaxWidth",uu),T=ct(n,"MaxHeight",uu),x=ct(n,"Channels",uu),M=ct(n,"SamplingRate",uu),R=l.duration;i.length&&(R=i[i.length-1].end-i[0].start);var L=e.i.getDuration();e.i.rb(Math.min(R,L));var I={id:g,originalId:t.attributes.Name||String(g),groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:"",codecs:"",frameRate:void 0,pixelAspectRatio:void 0,bandwidth:m||0,width:S||void 0,height:T||void 0,kind:"",encrypted:0<a.length,drmInfos:a,keyIds:new Set,language:Wt(d||"und"),originalLanguage:d,label:"",type:"",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:[],roles:[],forced:!1,channelsCount:x,audioSamplingRate:M,spatialAudio:!1,closedCaptions:null,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,matchedStreams:[],mssPrivateData:{duration:R,timescale:l.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null};if((a=t.attributes.Subtype)&&((a=Rb.get(a))&&I.roles.push(a),a==="main"&&(I.primary=!0)),a=n.attributes.FourCC,(a===null||a==="")&&(a=t.attributes.FourCC),!a){if(f==="audio")a="AAC";else if(f==="video")return st('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null}if(!bb.includes(a.toUpperCase()))return st("Codec not supported:",a),null;switch(n=xb(n,f,a,I),I.mssPrivateData.codecPrivateData=n,f){case"audio":if(!n)return st("Quality unsupported without CodecPrivateData",f),null;I.type="audio",I.mimeType="mss/audio/mp4",I.codecs=wb(a,n);break;case"video":if(!n)return st("Quality unsupported without CodecPrivateData",f),null;I.type="video",I.mimeType="mss/video/mp4",I.codecs=Cb(n);break;case"text":I.type=lt,I.mimeType="application/mp4",(a==="TTML"||a==="DFXP")&&(I.codecs="stpp")}return I.fullMimeTypes.add(Et(I.mimeType,I.codecs)),I.createSegmentIndex=function(){if(I.segmentIndex)return Promise.resolve();if(e.m.has(I.id))var U=e.m.get(I.id);else U=[],I.type=="video"&&(U=I.mssPrivateData.codecPrivateData.split("00000001").slice(1)),U={id:I.id,type:I.type,codecs:I.codecs,encrypted:I.encrypted,timescale:I.mssPrivateData.timescale,duration:I.mssPrivateData.duration,Ab:U,Ja:new Uint8Array([]),Va:new Uint8Array([]),bb:0,cb:0,data:null,stream:I},U=Tf(new qo([U])),e.m.set(I.id,U);return U=Mb(e,new xa(function(){return[]},0,null,Zd(I),I.mssPrivateData.timescale,U,null,I.encrypted),I,t,i),I.segmentIndex=new Vt(U),Promise.resolve()},I.closeSegmentIndex=function(){I.segmentIndex&&(I.segmentIndex.release(),I.segmentIndex=null)},I}function xb(e,t,n,i){if(e=e.attributes.CodecPrivateData)return e;if(t!=="audio")return null;t=i.channelsCount||2,e=i.audioSamplingRate||44100;var a={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12};return i=a[e],n==="AACH"?(n=new Uint8Array(4),e=a[2*e],n[0]=40|i>>1,n[1]=i<<7|t<<3|e>>1,n[2]=e<<7|8,n[3]=0,t=new Uint16Array(2),t[0]=(n[0]<<8)+n[1],t[1]=(n[2]<<8)+n[3],t[0].toString(16)+t[1].toString(16)):(n=new Uint8Array(2),n[0]=16|i>>1,n[1]=i<<7|t<<3,t=new Uint16Array(1),t[0]=(n[0]<<8)+n[1],t[0].toString(16))}function wb(e,t){var n=0;return e==="AACH"&&(n=5),t?n===0&&(n=(parseInt(t.substr(0,2),16)&248)>>3):(n=2,e==="AACH"&&(n=5)),"mp4a.40."+n}function Cb(e){var t=/00000001[0-9]7/.exec(e);return t.length&&e?"avc1."+e.substr(e.indexOf(t[0])+10,6):""}function Mb(e,t,n,i,a){var l=i.attributes.Url.replace("{bitrate}",String(n.bandwidth));i=[],a=b(a);for(var f=a.next(),d={};!f.done;d={Ff:void 0},f=a.next())d.Ff=f.value,i.push(new Ye(d.Ff.start,d.Ff.end,function(g){return function(){return wi(e.l,[l.replace("{start time}",String(g.Ff.Fh))])}}(d),0,null,t,0,0,n.mssPrivateData.duration));return i}xe("shaka.mss.MssParser",y4);var bb="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),Rb=new Map().set("CAPT","main").set("SUBT","alternate").set("DESC","main");Wi("application/vnd.ms-sstr+xml",function(){return new y4});function Z3(e,t,n,i,a,l,f){if(200<=n&&299>=n&&n!=202||n==304)return{uri:a||i,originalUri:i,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"],originalRequest:l};l=null;try{l=ka(t)}catch{}throw new G(n==401||n==403?2:1,1,1001,i,n,l,e,f,a||i)}function S4(){}function V2(e,t,n,i,a,l){var f=new Ub;ms(t.headers).forEach(function(S,T){f.append(T,S)});var d=new Lb,g={Ph:!1,cj:!1};if(e=Db(e,t,n,{body:t.body||void 0,headers:f,method:t.method,signal:d.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},g,i,a,t.streamDataCallback,l.minBytesForProgressEvents||0),e=new ft(e,function(){return g.Ph=!0,d.abort(),Promise.resolve()}),t=t.retryParameters.timeout){var m=new Ke(function(){g.cj=!0,d.abort()});m.$(t/1e3),e.finally(function(){m.stop()})}return e}function Db(e,t,n,i,a,l,f,d,g){var m,S,T,x,M,R,L,I,U,N,j,B,Y,P;return q(function(V){switch(V.g){case 1:return m=Ib,S=Ob,x=new ArrayBuffer(0),R=M=0,L=Date.now(),Le(V,2),O(V,m(e,i),4);case 4:if(T=V.h,f(J3(T.headers)),i.method=="HEAD"){V.A(5);break}return U=(I=T.headers.get("Content-Length"))?parseInt(I,10):0,T.body?(N=T.clone().body.getReader(),j=function(F){function K(){var ee,Q,ne,ie;return q(function(ue){switch(ue.g){case 1:return Le(ue,2),O(ue,N.read(),4);case 4:ee=ue.h,Ge(ue,3);break;case 2:return je(ue),ue.return();case 3:if(ee.done){ue.A(5);break}if(M+=ee.value.byteLength,!d){ue.A(5);break}return O(ue,d(ee.value),5);case 5:Q=Date.now(),ne=M-R,(100<Q-L&&ne>=g||ee.done)&&(ie=ee.done?0:U-M,l(Q-L,ne,ie),R=M,L=Q),ee.done?F.close():(F.enqueue(ee.value),K()),ve(ue)}})}K()},new S({start:j}),O(V,T.arrayBuffer(),8)):O(V,T.arrayBuffer(),9);case 8:x=V.h,V.A(5);break;case 9:x=V.h,B=Date.now(),l(B-L,x.byteLength,0);case 5:Ge(V,3);break;case 2:throw Y=je(V),a.Ph?new G(1,1,7001,e,n):a.cj?new G(1,1,1003,e,n):new G(1,1,1002,e,Y,n);case 3:return P=J3(T.headers),V.return(Z3(P,x,T.status,e,T.url,t,n))}})}function J3(e){var t={};return e.forEach(function(n,i){t[i.trim()]=n}),t}function W3(){if(oe.ReadableStream)try{new ReadableStream({})}catch{return!1}else return!1;if(oe.Response){if(!new Response("").body)return!1}else return!1;return!(!oe.fetch||"polyfill"in oe.fetch||!oe.AbortController)}xe("shaka.net.HttpFetchPlugin",S4),S4.isSupported=W3,S4.parse=V2;var Ib=oe.fetch,Lb=oe.AbortController,Ob=oe.ReadableStream,Ub=oe.Headers;W3()&&(Kn("http",V2,2,!0),Kn("https",V2,2,!0),Kn("blob",V2,2,!0));function $3(){}function q2(e,t,n,i,a,l){var f=new kb,d=Date.now(),g=0,m=new Promise(function(S,T){f.open(t.method,e,!0),f.responseType="arraybuffer",f.timeout=t.retryParameters.timeout,f.withCredentials=t.allowCrossSiteCredentials,f.onabort=function(){T(new G(1,1,7001,e,n))};var x=!1;f.onreadystatechange=function(){if(f.readyState==2&&!x){var R=ew(f);a(R),x=!0}},f.onload=function(R){var L=ew(f),I=f.response;try{i(Date.now()-d,R.loaded-g,0);var U=Z3(L,I,f.status,e,f.responseURL,t,n);S(U)}catch(N){T(N)}},f.onerror=function(R){T(new G(1,1,1002,e,R,n))},f.ontimeout=function(){T(new G(1,1,1003,e,n))},f.onprogress=function(R){var L=Date.now(),I=l.minBytesForProgressEvents||0,U=R.loaded-g;(100<L-d&&U>=I||R.lengthComputable&&R.loaded==R.total)&&(i(L-d,U,f.readyState==4?0:R.total-R.loaded),g=R.loaded,d=L)};for(var M in t.headers)f.setRequestHeader(M.toLowerCase(),t.headers[M]);f.send(t.body)});return new ft(m,function(){return f.abort(),Promise.resolve()})}function ew(e){var t=e.getAllResponseHeaders().trim().split(`\r
37
- `);e={},t=b(t);for(var n=t.next();!n.done;n=t.next())n=n.value.split(": "),e[n[0].toLowerCase()]=n.slice(1).join(": ");return e}xe("shaka.net.HttpXHRPlugin",$3),$3.parse=q2;var kb=oe.XMLHttpRequest;Kn("http",q2,1,!0),Kn("https",q2,1,!0),Kn("blob",q2,1,!0);function tw(e,t,n,i,a){this.g=e,this.i=t,this.groupId=n,this.h=i,this.j=a}function T4(e){var t=e.Zb(!1);return t?is(t):e.T().map(function(n){return"{"+encodeURI(n.split("#xywh=")[0])+"}"}).join("")+":"+e.startByte+":"+e.endByte}function Nb(e,t){return ws(e.g.T(),e.g.startByte,e.g.endByte,t.streaming.retryParameters)}function nw(){this.g=this.j=this.i=0,this.h=new Map,this.l=0}function iw(e,t){e.i+=t;var n=e.l;return e.l++,e.h.set(n,t),n}nw.prototype.close=function(e,t){if(this.h.has(e)){var n=this.h.get(e);this.h.delete(e),this.j+=n,this.g+=t}};function rw(e){return e.i==0?0:e.j/e.i}function aw(e){var t=this;this.u=e,this.i=new Map,this.h=new gs(function(){return E4(t).catch(function(){})}),this.j=[],this.s=function(){},this.m=function(){},this.g=new nw,this.l=!1}aw.prototype.destroy=function(){return this.h.destroy()};function _b(e,t,n){e.s=t,e.m=n}function E4(e){e.l=!0;var t=e.j.map(function(n){return n()});return e.j=[],Promise.all(t)}function jb(e,t,n,i,a,l){Mt(e.h);var f=(e.i.get(t)||Promise.resolve()).then(function(){var d,g,m,S,T,x,M;return q(function(R){if(R.g==1)return O(R,Pb(e,n),2);if(d=R.h,e.h.g)throw new G(2,9,7001);if(a)for(S in g=at(d),m=new Xh(g),m.data)T=Number(S),x=m.data[T],M=m.g[T],e.m(x,M);return e.g.close(i,d.byteLength),e.s(rw(e.g),e.g.g),R.return(l(d))})});e.i.set(t,f)}function zb(e,t,n,i,a,l){Mt(e.h);var f=(e.i.get(t)||Promise.resolve()).then(function(){if(e.h.g)throw new G(2,9,7001);if(a){var d=at(n);d=new Xh(d);for(var g in d.data){var m=Number(g);e.m(d.data[m],d.g[m])}}return e.g.close(i,n.byteLength),e.s(rw(e.g),e.g.g),l(n)});e.i.set(t,f)}function Bb(e){return q(function(t){return t.g==1?O(t,Promise.all(e.i.values()),2):t.return(e.g.g)})}function Pb(e,t){var n,i,a,l;return q(function(f){return f.g==1?(n=li,i=e.u.request(n,t),a=function(){return i.abort()},e.j.push(a),O(f,i.promise,2)):(l=f.h,to(e.j,a),f.return(l.data))})}function Y2(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new Bt,e.onabort=function(i){i.preventDefault(),n.g.reject()},e.onerror=function(i){i.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}Y2.prototype.abort=function(){var e=this;return q(function(t){if(t.g==1){try{e.i.abort()}catch{}return Le(t,2),O(t,e.g,4)}if(t.g!=2)return Ge(t,0);je(t),ve(t)})};function A4(e,t){return new Promise(function(n,i){var a=e.h.openCursor();a.onerror=i,a.onsuccess=function(){var l;return q(function(f){if(f.g==1)return a.result==null?(n(),f.return()):(l=a.result,O(f,t(l.key,l.value,l),2));l.continue(),ve(f)})}})}Y2.prototype.store=function(){return this.h},Y2.prototype.promise=function(){return this.g};function x4(e){this.h=e,this.g=[]}x4.prototype.destroy=function(){return Promise.all(this.g.map(function(e){return e.abort()}))};function D1(e,t){return X2(e,t,"readwrite")}function X2(e,t,n){n=e.h.transaction([t],n);var i=new Y2(n,t);return e.g.push(i),i.promise().then(function(){to(e.g,i)},function(){to(e.g,i)}),i}function I1(e,t,n){this.h=new x4(e),this.i=t,this.g=n}w=I1.prototype,w.destroy=function(){return this.h.destroy()},w.hasFixedKeySpace=function(){return!0},w.addSegments=function(){return uw(this.i)},w.removeSegments=function(e,t){return ow(this,this.i,e,t)},w.getSegments=function(e){var t=this,n;return q(function(i){return i.g==1?O(i,lw(t,t.i,e),2):(n=i.h,i.return(n.map(function(a){return t.Uh(a)})))})},w.addManifests=function(){return uw(this.g)},w.updateManifest=function(){return Promise.reject(new G(2,9,9016,"Cannot modify values in "+this.g))};function Hb(e,t,n){e=D1(e.h,e.g);var i=e.store();return i.get(t).onsuccess=function(){i.put(n,t)},e.promise()}w.updateManifestExpiration=function(e,t){var n=D1(this.h,this.g),i=n.store();return i.get(e).onsuccess=function(a){(a=a.target.result)&&(a.expiration=t,i.put(a,e))},n.promise()},w.removeManifests=function(e,t){return ow(this,this.g,e,t)},w.getManifests=function(e){var t=this,n;return q(function(i){return i.g==1?O(i,lw(t,t.g,e),2):(n=i.h,i.return(Promise.all(n.map(function(a){return t.Kd(a)}))))})},w.getAllManifests=function(){var e=this,t,n;return q(function(i){return i.g==1?(t=X2(e.h,e.g,"readonly"),n=new Map,O(i,A4(t,function(a,l){var f;return q(function(d){if(d.g==1)return O(d,e.Kd(l),2);f=d.h,n.set(a,f),ve(d)})}),2)):i.g!=3?O(i,t.promise(),3):i.return(n)})},w.Uh=function(e){return e},w.Kd=function(e){return Promise.resolve(e)};function uw(e){return Promise.reject(new G(2,9,9011,"Cannot add new value to "+e))}w.add=function(e,t){var n=this,i,a,l,f,d,g,m;return q(function(S){if(S.g==1){for(i=D1(n.h,e),a=i.store(),l=[],f=b(t),d=f.next(),g={};!d.done;g={eh:void 0},d=f.next())m=d.value,g.eh=a.add(m),g.eh.onsuccess=function(T){return function(){l.push(T.eh.result)}}(g);return O(S,i.promise(),2)}return S.return(l)})};function ow(e,t,n,i){e=D1(e.h,t),t=e.store(),n=b(n);for(var a=n.next(),l={};!a.done;l={Sg:void 0},a=n.next())l.Sg=a.value,t.delete(l.Sg).onsuccess=function(f){return function(){return i(f.Sg)}}(l);return e.promise()}function lw(e,t,n){var i,a,l,f,d,g,m;return q(function(S){if(S.g==1){for(i=X2(e.h,t,"readonly"),a=i.store(),l={},f=[],d=b(n),g=d.next(),m={};!g.done;m={xf:void 0,$e:void 0},g=d.next())m.$e=g.value,m.xf=a.get(m.$e),m.xf.onsuccess=function(T){return function(){T.xf.result==null&&f.push(T.$e),l[T.$e]=T.xf.result}}(m);return O(S,i.promise(),2)}if(f.length)throw new G(2,9,9012,"Could not find values for "+f);return S.return(n.map(function(T){return l[T]}))})}function vE(e){this.g=new x4(e)}vE.prototype.destroy=function(){return this.g.destroy()},vE.prototype.getAll=function(){var e=this,t,n;return q(function(i){return i.g==1?(t=X2(e.g,"session-ids","readonly"),n=[],O(i,A4(t,function(a,l){n.push(l)}),2)):i.g!=3?O(i,t.promise(),3):i.return(n)})},vE.prototype.add=function(e){var t=D1(this.g,"session-ids"),n=t.store();e=b(e);for(var i=e.next();!i.done;i=e.next())n.add(i.value);return t.promise()},vE.prototype.remove=function(e){var t=this,n;return q(function(i){return i.g==1?(n=D1(t.g,"session-ids"),O(i,A4(n,function(a,l,f){e.includes(l.sessionId)&&f.delete()}),2)):O(i,n.promise(),0)})};function dl(){this.g=new Map}dl.prototype.destroy=function(){for(var e=[],t=b(this.g.values()),n=t.next();!n.done;n=t.next())e.push(n.value.destroy());return this.g.clear(),Promise.all(e)},dl.prototype.init=function(){var e=this;SE.forEach(function(a,l){(a=a())&&e.g.set(l,a)});for(var t=[],n=b(this.g.values()),i=n.next();!i.done;i=n.next())t.push(i.value.init());return Promise.all(t)};function sw(e){var t=null;if(e.g.forEach(function(n,i){n.getCells().forEach(function(a,l){a.hasFixedKeySpace()||t||(t={path:{Qb:i,gb:l},gb:a})})}),t)return t;throw new G(2,9,9013,"Could not find a cell that supports add-operations")}function Gb(e,t){e.g.forEach(function(n,i){n.getCells().forEach(function(a,l){t({Qb:i,gb:l},a)})})}function F2(e,t,n){if(e=e.g.get(t),!e)throw new G(2,9,9013,"Could not find mechanism with name "+t);if(t=e.getCells().get(n),!t)throw new G(2,9,9013,"Could not find cell with name "+n);return t}function Vb(e,t){e.g.forEach(function(n){t(n.getEmeSessionCell())})}function qb(e){var t=Array.from(e.g.keys());if(!t.length)throw new G(2,9,9e3,"No supported storage mechanisms found");return e.g.get(t[0]).getEmeSessionCell()}function Yb(e){var t,n,i;return q(function(a){return a.g==1?(t=Array.from(e.g.values()),n=0<t.length,n||(i=SE,i.forEach(function(l){(l=l())&&t.push(l)})),O(a,Promise.all(t.map(function(l){return l.erase()})),2)):n?a.A(0):O(a,Promise.all(t.map(function(l){return l.destroy()})),0)})}function cw(e,t){SE.set(e,t)}xe("shaka.offline.StorageMuxer",dl),dl.unregister=function(e){SE.delete(e)},dl.register=cw,dl.prototype.destroy=dl.prototype.destroy;var SE=new Map;function TE(){I1.apply(this,arguments)}Xe(TE,I1),TE.prototype.updateManifestExpiration=function(e,t){var n=this,i,a,l;return q(function(f){return i=D1(n.h,n.g),a=i.store(),l=new Bt,a.get(e).onsuccess=function(d){(d=d.target.result)?(d.expiration=t,a.put(d),l.resolve()):l.reject(new G(2,9,9012,"Could not find values for "+e))},O(f,Promise.all([i.promise(),l]),0)})},TE.prototype.Kd=function(e){var t,n,i,a,l,f;return q(function(d){if(d.g==1){for(t=[],n=0;n<e.periods.length;++n)i=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,a=i-e.periods[n].startTime,l=Xb(e.periods[n],a),t.push(l);return O(d,zp(t),2)}return f=d.h,d.return({creationTime:0,originalManifestUri:e.originalManifestUri,duration:e.duration,size:e.size,expiration:e.expiration==null?1/0:e.expiration,streams:f,sessionIds:e.sessionIds,drmInfo:e.drmInfo,appMetadata:e.appMetadata,sequenceMode:!1})})};function Xb(e,t){Kb(e);for(var n=b(e.streams),i=n.next();!i.done;i=n.next());return e.streams.map(function(a){return Fb(a,e.startTime,t)})}function Fb(e,t,n){var i=e.initSegmentUri?fw(e.initSegmentUri):null,a=t+e.presentationTimeOffset,l=t+n;return{id:e.id,originalId:null,groupId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:void 0,hdr:void 0,colorGamut:void 0,videoLayout:void 0,kind:e.kind,language:e.language,originalLanguage:e.language||null,label:e.label,width:e.width,height:e.height,initSegmentKey:i,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map(function(f){var d=fw(f.uri);return{startTime:t+f.startTime,endTime:t+f.endTime,dataKey:d,initSegmentKey:i,appendWindowStart:t,appendWindowEnd:l,timestampOffset:a,tilesLayout:"",mimeType:null,codecs:null,thumbnailSprite:null}}),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1}}TE.prototype.Uh=function(e){return{data:e.data}};function fw(e){var t;if((t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e))||(t=/^offline:segment\/([0-9]+)$/.exec(e)))return Number(t[1]);throw new G(2,9,9004,"Could not parse uri "+e)}function Kb(e){var t=e.streams.filter(function(d){return d.contentType=="audio"});if(e=e.streams.filter(function(d){return d.contentType=="video"}),!t.every(function(d){return d.variantIds})||!e.every(function(d){return d.variantIds})){for(var n=b(t),i=n.next();!i.done;i=n.next())i.value.variantIds=[];for(n=b(e),i=n.next();!i.done;i=n.next())i.value.variantIds=[];if(n=0,e.length&&!t.length){i=n++;for(var a=b(e),l=a.next();!l.done;l=a.next())l.value.variantIds.push(i)}if(!e.length&&t.length)for(i=n++,a=b(t),l=a.next();!l.done;l=a.next())l.value.variantIds.push(i);if(e.length&&t.length)for(t=b(t),i=t.next();!i.done;i=t.next())for(i=i.value,a=b(e),l=a.next();!l.done;l=a.next()){l=l.value;var f=n++;i.variantIds.push(f),l.variantIds.push(f)}}}function K2(){I1.apply(this,arguments)}Xe(K2,I1),K2.prototype.Kd=function(e){var t,n,i,a,l,f;return q(function(d){if(d.g==1){for(t=[],n=0;n<e.periods.length;++n){i=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,a=i-e.periods[n].startTime;for(var g=e.periods[n],m=[],S=b(g.streams),T=S.next();!T.done;T=S.next())T=T.value,T.variantIds.length!=0&&m.push(Qb(T,g.startTime,g.startTime+a));l=m,t.push(l)}return O(d,zp(t),2)}return f=d.h,d.return({appMetadata:e.appMetadata,creationTime:0,drmInfo:e.drmInfo,duration:e.duration,expiration:e.expiration==null?1/0:e.expiration,originalManifestUri:e.originalManifestUri,sessionIds:e.sessionIds,size:e.size,streams:f,sequenceMode:!1})})};function Qb(e,t,n){return{id:e.id,originalId:e.originalId,groupId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:e.pixelAspectRatio,hdr:void 0,colorGamut:void 0,videoLayout:void 0,kind:e.kind,language:e.language,originalLanguage:e.language||null,label:e.label,width:e.width,height:e.height,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map(function(i){return{startTime:t+i.startTime,endTime:t+i.endTime,initSegmentKey:e.initSegmentKey,appendWindowStart:t,appendWindowEnd:n,timestampOffset:t-e.presentationTimeOffset,dataKey:i.dataKey,tilesLayout:"",mimeType:null,codecs:null,thumbnailSprite:null}}),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1}}function w4(){I1.apply(this,arguments)}Xe(w4,I1),w=w4.prototype,w.hasFixedKeySpace=function(){return!1},w.addSegments=function(e){return this.add(this.i,e)},w.addManifests=function(e){return this.add(this.g,e)},w.updateManifest=function(e,t){return Hb(this,e,t)},w.Kd=function(e){return e.expiration==null&&(e.expiration=1/0),Promise.resolve(e)};function dw(){this.m=this.j=this.i=this.h=this.g=this.l=null}w=dw.prototype,w.init=function(){var e=this,t=new Bt,n=!1,i=new Ke(function(){n=!0,t.reject(new G(2,9,9017))});i.$(5);var a=oe.indexedDB.open("shaka_offline_db",5);return a.onsuccess=function(){if(!n){var l=a.result;e.l=l;var f=l.objectStoreNames;f=f.contains("manifest")&&f.contains("segment")?new TE(l,"segment","manifest"):null,e.g=f,f=l.objectStoreNames,f=f.contains("manifest-v2")&&f.contains("segment-v2")?new K2(l,"segment-v2","manifest-v2"):null,e.h=f,f=l.objectStoreNames,f=f.contains("manifest-v3")&&f.contains("segment-v3")?new K2(l,"segment-v3","manifest-v3"):null,e.i=f,f=l.objectStoreNames,f=f.contains("manifest-v5")&&f.contains("segment-v5")?new w4(l,"segment-v5","manifest-v5"):null,e.j=f,l=l.objectStoreNames.contains("session-ids")?new vE(l):null,e.m=l,i.stop(),t.resolve()}},a.onupgradeneeded=function(){for(var l=a.result,f=b(["segment-v5","manifest-v5","session-ids"]),d=f.next();!d.done;d=f.next())d=d.value,l.objectStoreNames.contains(d)||l.createObjectStore(d,{autoIncrement:!0})},a.onerror=function(l){n||(t.reject(new G(2,9,9001,a.error)),i.stop(),l.preventDefault())},t},w.destroy=function(){var e=this;return q(function(t){switch(t.g){case 1:if(!e.g){t.A(2);break}return O(t,e.g.destroy(),2);case 2:if(!e.h){t.A(4);break}return O(t,e.h.destroy(),4);case 4:if(!e.i){t.A(6);break}return O(t,e.i.destroy(),6);case 6:if(!e.j){t.A(8);break}return O(t,e.j.destroy(),8);case 8:if(!e.m){t.A(10);break}return O(t,e.m.destroy(),10);case 10:e.l&&e.l.close(),ve(t)}})},w.getCells=function(){var e=new Map;return this.g&&e.set("v1",this.g),this.h&&e.set("v2",this.h),this.i&&e.set("v3",this.i),this.j&&e.set("v5",this.j),e},w.getEmeSessionCell=function(){return this.m},w.erase=function(){var e=this;return q(function(t){switch(t.g){case 1:if(!e.g){t.A(2);break}return O(t,e.g.destroy(),2);case 2:if(!e.h){t.A(4);break}return O(t,e.h.destroy(),4);case 4:if(!e.i){t.A(6);break}return O(t,e.i.destroy(),6);case 6:if(!e.j){t.A(8);break}return O(t,e.j.destroy(),8);case 8:return e.l&&e.l.close(),O(t,Zb(),10);case 10:return e.l=null,e.g=null,e.h=null,e.i=null,e.j=null,O(t,e.init(),0)}})};function Zb(){var e=new Bt,t=oe.indexedDB.deleteDatabase("shaka_offline_db");return t.onblocked=function(){},t.onsuccess=function(){e.resolve()},t.onerror=function(n){e.reject(new G(2,9,9001,t.error)),n.preventDefault()},e}cw("idb",function(){return(!$a()||$a()&&eu())&&!Zu()&&oe.indexedDB?new dw:null});function qp(e,t,n,i){this.g=e,this.i=t,this.h=n,this.l=i,this.j=["offline:",e,"/",t,"/",n,"/",i].join("")}qp.prototype.Qb=function(){return this.i},qp.prototype.gb=function(){return this.h},qp.prototype.key=function(){return this.l},qp.prototype.toString=function(){return this.j};function C4(e){if(e=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(e),e==null)return null;var t=e[1];if(t!="manifest"&&t!="segment")return null;var n=e[2];if(!n)return null;var i=e[3];return i&&t!=null?new qp(t,n,i,Number(e[4])):null}function hw(e,t){this.h=e,this.g=t}function pw(e,t){var n=new We(null,0);n.rb(t.duration);var i=t.streams.filter(function(m){return m.type=="audio"}),a=t.streams.filter(function(m){return m.type=="video"});i=Jb(e,i,a,n),a=t.streams.filter(function(m){return m.type==lt}).map(function(m){return Q2(e,m,n)});var l=t.streams.filter(function(m){return m.type=="image"}).map(function(m){return Q2(e,m,n)}),f=t.drmInfo?[t.drmInfo]:[];if(t.drmInfo)for(var d=b(i.values()),g=d.next();!g.done;g=d.next())g=g.value,g.audio&&g.audio.encrypted&&(g.audio.drmInfos=f),g.video&&g.video.encrypted&&(g.video.drmInfos=f);return{presentationTimeline:n,offlineSessionIds:t.sessionIds,variants:Array.from(i.values()),textStreams:a,imageStreams:l,sequenceMode:t.sequenceMode||!1,ignoreManifestTimestampsInSegmentsMode:!1,type:t.type||"UNKNOWN",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:null}}function Jb(e,t,n,i){for(var a=new Set,l=b(t),f=l.next();!f.done;f=l.next()){f=b(f.value.variantIds);for(var d=f.next();!d.done;d=f.next())a.add(d.value)}for(l=b(n),f=l.next();!f.done;f=l.next())for(f=b(f.value.variantIds),d=f.next();!d.done;d=f.next())a.add(d.value);for(l=new Map,a=b(a),f=a.next();!f.done;f=a.next())f=f.value,l.set(f,{id:f,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});for(t=b(t),a=t.next();!a.done;a=t.next())for(f=a.value,a=Q2(e,f,i),f=b(f.variantIds),d=f.next();!d.done;d=f.next())d=l.get(d.value),d.language=a.language,d.primary=d.primary||a.primary,d.audio=a;for(n=b(n),t=n.next();!t.done;t=n.next())for(a=t.value,t=Q2(e,a,i),a=b(a.variantIds),f=a.next();!f.done;f=a.next())f=l.get(f.value),f.primary=f.primary||t.primary,f.video=t;return l}function Q2(e,t,n){var i=t.segments.map(function(a){return Wb(e,a,t)});return n.ce(i),{id:t.id,originalId:t.originalId,groupId:t.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vt(i),mimeType:t.mimeType,codecs:t.codecs,width:t.width||void 0,height:t.height||void 0,frameRate:t.frameRate,pixelAspectRatio:t.pixelAspectRatio,hdr:t.hdr,colorGamut:t.colorGamut,videoLayout:t.videoLayout,kind:t.kind,encrypted:t.encrypted,drmInfos:[],keyIds:t.keyIds,language:t.language,originalLanguage:t.originalLanguage||null,label:t.label,type:t.type,primary:t.primary,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:t.roles,forced:t.forced,channelsCount:t.channelsCount,audioSamplingRate:t.audioSamplingRate,spatialAudio:t.spatialAudio,closedCaptions:t.closedCaptions,tilesLayout:t.tilesLayout,mssPrivateData:t.mssPrivateData,accessibilityPurpose:null,external:t.external,fastSwitching:t.fastSwitching,fullMimeTypes:new Set([Et(t.mimeType,t.codecs)]),isAudioMuxedInVideo:!1,baseOriginalId:null}}function Wb(e,t,n){var i=new qp("segment",e.h,e.g,t.dataKey);return e=new Ye(t.startTime,t.endTime,function(){return[i.toString()]},0,null,t.initSegmentKey!=null?$b(e,t.initSegmentKey):null,t.timestampOffset,t.appendWindowStart,t.appendWindowEnd,[],t.tilesLayout||""),e.mimeType=t.mimeType||n.mimeType||"",e.codecs=t.codecs||n.codecs||"",t.thumbnailSprite&&e.Ef(t.thumbnailSprite),e}function $b(e,t){var n=new qp("segment",e.h,e.g,t);return new xa(function(){return[n.toString()]},0,null)}function gw(){this.g=null}w=gw.prototype,w.configure=function(){},w.start=function(e,t){var n=this,i,a,l,f,d,g,m;return q(function(S){switch(S.g){case 1:if(i=C4(e),n.g=i,i==null||i.g!="manifest")throw new G(2,1,9004,e);return a=new dl,_n(S,2),O(S,a.init(),4);case 4:return O(S,F2(a,i.Qb(),i.gb()),5);case 5:return l=S.h,O(S,l.getManifests([i.key()]),6);case 6:return f=S.h,d=f[0],g=new hw(i.Qb(),i.gb()),m=pw(g,d),t.makeTextStreamsForClosedCaptions(m),S.return(m);case 2:return re(S),O(S,a.destroy(),7);case 7:Re(S,0)}})},w.stop=function(){return Promise.resolve()},w.update=function(){},w.onExpirationUpdated=function(e,t){var n=this,i,a,l,f,d,g,m;return q(function(S){switch(S.g){case 1:return i=n.g,a=new dl,Le(S,2,3),O(S,a.init(),5);case 5:return O(S,F2(a,i.Qb(),i.gb()),6);case 6:return l=S.h,O(S,l.getManifests([i.key()]),7);case 7:if(f=S.h,d=f[0],g=d.sessionIds.includes(e),m=d.expiration==null||d.expiration>t,!g||!m){S.A(3);break}return O(S,l.updateManifestExpiration(i.key(),t),3);case 3:return re(S),O(S,a.destroy(),10);case 10:Re(S,0);break;case 2:je(S),S.A(3)}})},w.onInitialVariantChosen=function(){},w.banLocation=function(){},w.setMediaElement=function(){},Wi("application/x-offline-manifest",function(){return new gw});function mw(){}function yw(e,t){var n=C4(e);return n&&n.g=="manifest"?(e={uri:e,originalUri:e,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"},originalRequest:t},e=ps(e)):e=n&&n.g=="segment"?eR(n.key(),n,t):En(new G(2,1,9004,e)),e}function eR(e,t,n){var i=new dl;return ps(void 0).ab(function(){return i.init()}).ab(function(){return F2(i,t.Qb(),t.gb())}).ab(function(a){return a.getSegments([t.key()])}).ab(function(a){return{uri:t,data:a[0].data,headers:{},originalRequest:n}}).finally(function(){return i.destroy()})}xe("shaka.offline.OfflineScheme",mw),mw.plugin=yw,Kn("offline",yw);function vw(e,t,n){var i,a,l,f,d,g;return q(function(m){switch(m.g){case 1:i=[];for(var S=[],T=b(n),x=T.next();!x.done;x=T.next()){x=x.value;for(var M=!1,R=b(S),L=R.next();!L.done;L=R.next())if(L=L.value,nR(L.info,x)){L.sessionIds.push(x.sessionId),M=!0;break}M||S.push({info:x,sessionIds:[x.sessionId]})}a=b(S),l=a.next();case 2:if(l.done){m.A(4);break}return f=l.value,d=tR(e,t,f),O(m,d,5);case 5:g=m.h,i=i.concat(g),l=a.next(),m.A(2);break;case 4:return m.return(i)}})}function tR(e,t,n){var i,a;return q(function(l){switch(l.g){case 1:return i=new Fh({kc:t,onError:function(){},nf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),Le(l,2),i.configure(e),O(l,ym(i,n.info.keySystem,n.info.licenseUri,n.info.serverCertificate,n.info.audioCapabilities,n.info.videoCapabilities),4);case 4:Ge(l,3);break;case 2:return je(l),O(l,i.destroy(),5);case 5:return l.return([]);case 3:return a=[],O(l,Promise.all(n.sessionIds.map(function(f){return q(function(d){if(d.g==1)return Le(d,2),O(d,Mg(i,f),4);if(d.g!=2)return a.push(f),Ge(d,0);je(d),ve(d)})})),6);case 6:return O(l,i.destroy(),7);case 7:return l.return(a)}})}function nR(e,t){function n(i,a){return i.robustness==a.robustness&&i.contentType==a.contentType}return e.keySystem==t.keySystem&&e.licenseUri==t.licenseUri&&Ih(e.audioCapabilities,t.audioCapabilities,n)&&Ih(e.videoCapabilities,t.videoCapabilities,n)}function iR(e,t,n){var i=t.presentationTimeline.getDuration();return t=Sw(t),{offlineUri:null,originalManifestUri:e,duration:i,size:0,expiration:1/0,tracks:t,appMetadata:n,isIncomplete:!1}}function M4(e,t){var n=pw(new hw(e.Qb(),e.gb()),t),i=t.appMetadata||{};return n=Sw(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:i,isIncomplete:t.isIncomplete||!1}}function Sw(e){var t=[],n=Ph(e.variants);n=b(n);for(var i=n.next();!i.done;i=n.next())t.push(Il(i.value));for(e=b(e.textStreams),n=e.next();!n.done;n=e.next())t.push(ds(n.value));return t}function rR(){this.g=new Map}function aR(e,t){var n=t.audio,i=t.video;if(n&&!i&&e.g.set(n.id,n.bandwidth||t.bandwidth),!n&&i&&e.g.set(i.id,i.bandwidth||t.bandwidth),n&&i){var a=n.bandwidth||393216,l=i.bandwidth||t.bandwidth-a;0>=l&&(l=t.bandwidth),e.g.set(n.id,a),e.g.set(i.id,l)}}function uR(e,t){e.g.set(t.id,t.bandwidth||2048)}function Tw(e,t){return e=e.g.get(t),e==null&&(e=0),e}function La(e){var t=this;if(e&&e.constructor!=te)throw new G(2,9,9008);this.g=this.h=null,e?(this.h=e.g,this.g=e.Db()):(this.h=Lc(),this.g=new yn),this.i=[],this.l=[];var n=!e;this.j=new gs(function(){var i,a,l,f,d;return q(function(g){switch(g.g){case 1:return O(g,Promise.all(t.l.map(function(m){return E4(m)})),2);case 2:for(i=function(){},a=[],l=b(t.i),f=l.next();!f.done;f=l.next())d=f.value,a.push(d.then(i,i));return O(g,Promise.all(a),3);case 3:if(!n){g.A(4);break}return O(g,t.g.destroy(),4);case 4:t.h=null,t.g=null,ve(g)}})}),this.m=1e9}function b4(){if(fa())e:{for(var e=b(SE.values()),t=e.next();!t.done;t=e.next())if(t=t.value,t=t()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}w=La.prototype,w.destroy=function(){return this.j.destroy()},w.configure=function(e,t){return arguments.length==2&&typeof e=="string"&&(e=gp(e,t)),ki(this.h,e)},w.getConfiguration=function(){var e=Lc();return ki(e,this.h,Lc()),e},w.Db=function(){return this.g},w.store=function(e,t,n,i,a){var l=this,f=this.getConfiguration(),d=new aw(this.g);return this.l.push(d),t=oR(this,e,t||{},i||[],a||[],function(){var g;return q(function(m){return m.g==1?n?m.A(2):O(m,el(e,l.g,f.manifest.retryParameters),3):(m.g!=2&&(n=m.h),g=_l(e,n||null),m.return(g()))})},f,d),t=new ft(t,function(){return E4(d)}),t.finally(function(){to(l.l,d)}),xR(this,t)};function oR(e,t,n,i,a,l,f,d){var g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne,ie,ue,ce;return q(function(le){switch(le.g){case 1:return Z2(),m=g=null,S=new dl,M=x=T=null,Le(le,2,3),O(le,l(),5);case 5:return g=le.h,O(le,mR(e,t,g,f),6);case 6:if(R=le.h,Gs(e),L=!R.presentationTimeline.V()&&!R.presentationTimeline.Vc(),!L)throw new G(2,9,9005,t);I=b(i),U=I.next();case 7:if(U.done){le.A(9);break}return N=U.value,O(le,yR(e,N,R),10);case 10:j=le.h,R.imageStreams.push(j),Gs(e),U=I.next(),le.A(7);break;case 9:B=b(a),Y=B.next();case 11:return Y.done?(gf(f.drm.clearKeys,R.variants),F=R.variants.some(function(Se){if(Se.audio){for(var ke=b(Se.audio.drmInfos),pt=ke.next();!pt.done;pt=ke.next())if(pt.value.licenseServerUri.startsWith("data:"))return!0}if(Se.video){for(Se=b(Se.video.drmInfos),ke=Se.next();!ke.done;ke=Se.next())if(ke.value.licenseServerUri.startsWith("data:"))return!0}return!1}),K=f.offline.usePersistentLicense,F&&(K=!1),O(le,e.md(R,function(Se){M=M||Se},f,K),15)):(P=Y.value,O(le,vR(e,R,P.uri,P.language,P.kind,P.mime,P.codecs),14));case 14:V=le.h,R.textStreams.push(V),Gs(e),Y=B.next(),le.A(11);break;case 15:if(m=le.h,Gs(e),M)throw M;return O(le,sR(R,m,f,K),16);case 16:return O(le,S.init(),17);case 17:return Gs(e),O(le,sw(S),18);case 18:return T=le.h,Gs(e),ee=cR(m,R,t,n,f,d,K),Q=ee.Ik,ne=ee.Bh,O(le,T.gb.addManifests([Q]),19);case 19:if(ie=le.h,Gs(e),x=ie[0],Gs(e),M)throw M;return O(le,lR(e,ne,x,Q,d,f,T.gb,R,m,K),20);case 20:return Gs(e),ww(R,Q,m,K),O(le,T.gb.updateManifest(x,Q),21);case 21:return Gs(e),ue=new qp("manifest",T.path.Qb,T.path.gb,x),le.return(M4(ue,Q));case 3:return re(le),O(le,S.destroy(),22);case 22:if(!g){le.A(23);break}return O(le,g.stop(),23);case 23:if(!m){le.A(25);break}return O(le,m.destroy(),25);case 25:Re(le,0);break;case 2:if(ce=je(le),x==null){le.A(27);break}return O(le,Ew(x),27);case 27:throw M||ce}})}function lR(e,t,n,i,a,l,f,d,g,m){var S,T,x,M,R,L,I,U,N,j,B;return q(function(Y){switch(Y.g){case 1:if(S={},T=0,x=function(){if(e.j.g||a.l)throw new G(2,9,7001)},M=function(P,V){var F,K,ee,Q,ne,ie,ue,ce,le;return q(function(Se){if(Se.g==1){for(F=b(P),K=F.next(),ee={};!K.done;ee={cc:void 0},K=F.next())ee.cc=K.value,x(),Q=Nb(ee.cc,l),ne=ee.cc.i,ie=ee.cc.h,ue=function(ke){return function(pt){var $e,fn,Ht,Lt;return q(function(_t){switch(_t.g){case 1:if($e=ke.cc.g,fn=$e.Zb(!1),!$e.aesKey||fn){_t.A(2);break}return O(_t,Hm(pt,$e.aesKey,ke.cc.j),3);case 3:pt=_t.h;case 2:return Ht=T4($e),O(_t,f.addSegments([{data:pt}]),4);case 4:Lt=_t.h,x(),S[Ht]=Lt[0],T+=pt.byteLength,ve(_t)}})}}(ee),ce=ee.cc.g,(le=ce.Zb(!1))?zb(a,ee.cc.groupId,le,ne,ie,ue):jb(a,ee.cc.groupId,Q,ne,ie,ue);return O(Se,Bb(a),2)}return x(),!V||a.l?Se.A(0):(ww(d,i,g,m),O(Se,f.updateManifest(n,i),0))})},R=!1,Le(Y,2),!R4(d)||!R||xw(d)){Y.A(4);break}return O(Y,M(t.filter(function(P){return P.h}),!0),5);case 5:return x(),t=t.filter(function(P){return!P.h}),L=S,I=T,S={},T=0,O(Y,Aw(f,n,i,L,I,function(){return Gs(e)}),6);case 6:x();case 4:if(R){Y.A(7);break}return O(Y,M(t,!1),8);case 8:return x(),U=S,N=T,S={},T=0,O(Y,Aw(f,n,i,U,N,function(){return x()}),9);case 9:x();case 7:Ge(Y,0);break;case 2:return j=je(Y),B=Object.values(S),O(Y,f.removeSegments(B,function(){}),10);case 10:throw j}})}function Ew(e){var t,n,i,a;return q(function(l){switch(l.g){case 1:return t=new dl,O(l,t.init(),2);case 2:return O(l,sw(t),3);case 3:return n=l.h,i=new qp("manifest",n.path.Qb,n.path.gb,e),O(l,t.destroy(),4);case 4:return a=new La,O(l,a.remove(i.toString()),0)}})}function Aw(e,t,n,i,a,l){var f,d,g,m,S,T,x,M,R,L,I;return q(function(U){switch(U.g){case 1:for(f=!1,Le(U,2),d=!0,g=b(n.streams),m=g.next();!m.done;m=g.next())for(S=m.value,T=b(S.segments),x=T.next();!x.done;x=T.next())M=x.value,R=M.pendingSegmentRefId?i[M.pendingSegmentRefId]:null,R!=null&&(M.dataKey=R,M.pendingSegmentRefId=void 0),R=M.pendingInitSegmentRefId?i[M.pendingInitSegmentRefId]:null,R!=null&&(M.initSegmentKey=R,M.pendingInitSegmentRefId=void 0),M.pendingSegmentRefId&&(d=!1),M.pendingInitSegmentRefId&&(d=!1);return n.size+=a,d&&(n.isIncomplete=!1),O(U,e.updateManifest(t,n),4);case 4:f=!0,l(),Ge(U,0);break;case 2:return L=je(U),O(U,Ew(t),5);case 5:if(f){U.A(6);break}return I=Object.values(i),O(U,e.removeSegments(I,function(){}),6);case 6:throw L}})}function sR(e,t,n,i){var a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y,P,V,F,K,ee,Q,ne,ie,ue,ce,le,Se;return q(function(ke){switch(ke.g){case 1:return a={width:1/0,height:1/0},fs(e,n.restrictions,a),O(ke,oo(t,e,i,n.drm.preferredKeySystems,n.drm.keySystemsMapping),2);case 2:for(l=[],f=n.preferredDecodingAttributes,d=n.preferredVideoCodecs,g=n.preferredAudioCodecs,m=n.preferredTextFormats,Ar(e,d,g,f,m),S=b(e.variants),T=S.next();!T.done;T=S.next())x=T.value,l.push(Il(x));for(M=b(e.textStreams),R=M.next();!R.done;R=M.next())L=R.value,l.push(ds(L));for(I=b(e.imageStreams),U=I.next();!U.done;U=I.next())N=U.value,l.push(Bh(N));return O(ke,n.offline.trackSelectionCallback(l),3);case 3:for(j=ke.h,B=e.presentationTimeline.getDuration(),Y=0,P=b(j),V=P.next();!V.done;V=P.next())F=V.value,K=F.bandwidth*B/8,Y+=K;return Le(ke,4),O(ke,n.offline.downloadSizeCallback(Y),6);case 6:if(ee=ke.h,!ee)throw new G(2,9,9014);Ge(ke,5);break;case 4:throw Q=je(ke),Q instanceof G?Q:new G(2,9,9015);case 5:for(ne=new Set,ie=new Set,ue=new Set,ce=b(j),le=ce.next();!le.done;le=ce.next())Se=le.value,Se.type=="variant"&&ne.add(Se.id),Se.type=="text"&&ie.add(Se.id),Se.type=="image"&&ue.add(Se.id);e.variants=e.variants.filter(function(pt){return ne.has(pt.id)}),e.textStreams=e.textStreams.filter(function(pt){return ie.has(pt.id)}),e.imageStreams=e.imageStreams.filter(function(pt){return ue.has(pt.id)}),MR(e),ve(ke)}})}function cR(e,t,n,i,a,l,f){var d=iR(n,t,i),g=a.offline.progressCallback;_b(l,function(R,L){d.size=L,g(d,R)},function(R,L){m&&f&&S==L&&Vn(e,"cenc",R)});var m=R4(t)&&!xw(t),S=null;m&&(S=bR.get(e.h.keySystem));for(var T=new rR,x=b(t.textStreams),M=x.next();!M.done;M=x.next())T.g.set(M.value.id,52);for(x=b(t.imageStreams),M=x.next();!M.done;M=x.next())uR(T,M.value);for(x=b(t.variants),M=x.next();!M.done;M=x.next())aR(T,M.value);return l=TR(l,T,t,a),a=l.streams,l=l.Bh,(T=e.h)&&f&&(T.initData=[]),{Ik:{creationTime:Date.now(),originalManifestUri:n,duration:t.presentationTimeline.getDuration(),size:0,expiration:e.Qd(),streams:a,sessionIds:f?Wy(e):[],drmInfo:T,appMetadata:i,isIncomplete:!0,sequenceMode:t.sequenceMode,type:t.type},Bh:l}}function R4(e){return e.variants.some(function(t){var n=t.audio&&t.audio.encrypted;return t.video&&t.video.encrypted||n})}function xw(e){return e.variants.some(function(t){return(t.video?t.video.drmInfos:[]).concat(t.audio?t.audio.drmInfos:[]).some(function(n){return n.initData&&n.initData.length})})}function ww(e,t,n,i){if(t.expiration=n.Qd(),n=Wy(n),t.sessionIds=i?n:[],R4(e)&&i&&!n.length)throw new G(2,9,9007)}w.remove=function(e){return D4(this,fR(this,e))};function fR(e,t){var n,i,a,l,f,d;return q(function(g){switch(g.g){case 1:if(Z2(),n=C4(t),n==null||n.g!="manifest")throw new G(2,9,9004,t);return i=n,a=new dl,_n(g,2),O(g,a.init(),4);case 4:return O(g,F2(a,i.Qb(),i.gb()),5);case 5:return l=g.h,O(g,l.getManifests([i.key()]),6);case 6:return f=g.h,d=f[0],O(g,Promise.all([dR(e,d,a),hR(l,i,d)]),2);case 2:return re(g),O(g,a.destroy(),8);case 8:Re(g,0)}})}function Cw(e,t){for(var n=[],i=b(e.streams),a=i.next();!a.done;a=i.next())a=a.value,t&&a.type=="video"?n.push({contentType:Et(a.mimeType,a.codecs),robustness:e.drmInfo.videoRobustness}):t||a.type!="audio"||n.push({contentType:Et(a.mimeType,a.codecs),robustness:e.drmInfo.audioRobustness});return n}function dR(e,t,n){return q(function(i){return O(i,CR(e.g,e.h.drm,n,t),0)})}function hR(e,t,n){function i(){}var a=wR(n);return M4(t,n),Promise.all([e.removeSegments(a,i),e.removeManifests([t.key()],i)])}w.al=function(){return D4(this,pR(this))};function pR(e){var t,n,i,a,l,f,d,g,m,S;return q(function(T){switch(T.g){case 1:return Z2(),t=e.g,n=e.h.drm,i=new dl,a=!1,_n(T,2),O(T,i.init(),4);case 4:l=[],Vb(i,function(x){return l.push(x)}),f=b(l),d=f.next();case 5:if(d.done){T.A(2);break}return g=d.value,O(T,g.getAll(),8);case 8:return m=T.h,O(T,vw(n,t,m),9);case 9:return S=T.h,O(T,g.remove(S),10);case 10:S.length!=m.length&&(a=!0),d=f.next(),T.A(5);break;case 2:return re(T),O(T,i.destroy(),11);case 11:Re(T,3);break;case 3:return T.return(!a)}})}w.list=function(){return D4(this,gR())};function gR(){var e,t,n;return q(function(i){switch(i.g){case 1:return Z2(),e=[],t=new dl,_n(i,2),O(i,t.init(),4);case 4:return n=Promise.resolve(),Gb(t,function(a,l){n=n.then(function(){var f;return q(function(d){if(d.g==1)return O(d,l.getAllManifests(),2);f=d.h,f.forEach(function(g,m){g=M4(new qp("manifest",a.Qb,a.gb,m),g),e.push(g)}),ve(d)})})}),O(i,n,2);case 2:return re(i),O(i,t.destroy(),6);case 6:Re(i,3);break;case 3:return i.return(e)}})}function mR(e,t,n,i){var a,l,f,d,g;return q(function(m){if(m.g==1)return a=null,l=e.g,f={networkingEngine:l,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(S){a=S},isLowLatencyMode:function(){return!1},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return i.abr.defaultBandwidthEstimate},onMetadata:function(){},disableStream:function(){},addFont:function(){}},n.configure(i.manifest),Gs(e),O(m,n.start(t,f),2);if(m.g!=3)return d=m.h,Gs(e),g=bw(d),O(m,Promise.all(Zp(g,function(S){return S.createSegmentIndex()})),3);if(Gs(e),a)throw a;return m.return(d)})}function yR(e,t,n){var i,a,l,f,d,g,m,S,T,x,M,R,L,I,U;return q(function(N){switch(N.g){case 1:return O(N,Mw(e,t),2);case 2:if(i=N.h,i!="text/vtt")throw new G(1,2,2017,t);return O(N,SR(t,e.g,e.h.streaming.retryParameters),3);case 3:if(a=N.h,l=uo(i),!l)throw new G(2,2,2014,i);for(f=l(),d={periodStart:0,segmentStart:0,segmentEnd:n.presentationTimeline.getDuration(),vttOffset:0},g=at(a),m=f.parseMedia(g,d,t,[]),S=[],T=b(m),x=T.next(),M={};!x.done;M={Mf:void 0,od:void 0},x=T.next())M.od=x.value,M.Mf=null,R=function(j){return function(){return j.Mf==null&&(j.Mf=wi([t],[j.od.payload])),j.Mf||[]}}(M),L=new Ye(M.od.startTime,M.od.endTime,R,0,null,null,0,0,1/0),M.od.payload.includes("#xywh")&&(I=M.od.payload.split("#xywh=")[1].split(","),I.length===4&&L.Ef({height:parseInt(I[3],10),positionX:parseInt(I[0],10),positionY:parseInt(I[1],10),width:parseInt(I[2],10)})),S.push(L);if(U=i,!S.length){N.A(4);break}return O(N,el(S[0].T()[0],e.g,e.h.manifest.retryParameters),5);case 5:U=N.h;case 4:return N.return({id:e.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vt(S),mimeType:U||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"image",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Et(U||"","")]),isAudioMuxedInVideo:!1,baseOriginalId:null})}})}function vR(e,t,n,i,a,l,f){var d,g,m;return q(function(S){if(S.g==1)return l?S.A(2):O(S,Mw(e,n),3);if(S.g!=2&&(l=S.h),d={id:e.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:sp(0,t.presentationTimeline.getDuration(),[n]),mimeType:l||"",codecs:f||"",kind:a,encrypted:!1,drmInfos:[],keyIds:new Set,language:i,originalLanguage:i,label:null,type:lt,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Et(l||"",f||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null},g=Et(d.mimeType,d.codecs),m=lu(g),!m)throw new G(2,2,2014,l);return S.return(d)})}function Mw(e,t){var n;return q(function(i){switch(i.g){case 1:return Le(i,2),O(i,el(t,e.g,e.h.streaming.retryParameters),4);case 4:n=i.h,Ge(i,3);break;case 2:je(i);case 3:if(n)return i.return(n);throw new G(1,2,2011,t)}})}function SR(e,t,n){var i,a,l;return q(function(f){return f.g==1?(i=li,a=yi([e],n),a.method="GET",O(f,t.request(i,a).promise,2)):(l=f.h,f.return(l.data))})}w.md=function(e,t,n,i){var a=this,l;return q(function(f){return f.g==1?(l=new Fh({kc:a.g,onError:t,nf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),l.configure(n.drm),O(f,Jy(l,e.variants,i),2)):f.g!=3?O(f,yc(l),3):f.return(l)})};function TR(e,t,n,i){var a=new Map,l=bw(n),f=new Map;l=b(l);for(var d=l.next();!d.done;d=l.next()){d=d.value;var g=ER(e,t,n,d,i,a);f.set(d.id,g)}for(e=b(n.variants),t=e.next();!t.done;t=e.next())t=t.value,t.audio&&f.get(t.audio.id).variantIds.push(t.id),t.video&&f.get(t.video.id).variantIds.push(t.id);return{streams:Array.from(f.values()),Bh:Array.from(a.values())}}function ER(e,t,n,i,a,l){var f={id:i.id,originalId:i.originalId,groupId:i.groupId,primary:i.primary,type:i.type,mimeType:i.mimeType,codecs:i.codecs,frameRate:i.frameRate,pixelAspectRatio:i.pixelAspectRatio,hdr:i.hdr,colorGamut:i.colorGamut,videoLayout:i.videoLayout,kind:i.kind,language:i.language,originalLanguage:i.originalLanguage,label:i.label,width:i.width||null,height:i.height||null,encrypted:i.encrypted,keyIds:i.keyIds,segments:[],variantIds:[],roles:i.roles,forced:i.forced,channelsCount:i.channelsCount,audioSamplingRate:i.audioSamplingRate,spatialAudio:i.spatialAudio,closedCaptions:i.closedCaptions,tilesLayout:i.tilesLayout,mssPrivateData:i.mssPrivateData,external:i.external,fastSwitching:i.fastSwitching,isAudioMuxedInVideo:i.isAudioMuxedInVideo},d=a.offline.numberOfParallelDownloads,g=d===0?i.id:0;return AR(i,n.presentationTimeline.Fb(),function(m,S){var T=T4(m),x=void 0;if(!l.has(T)){var M=m.endTime-m.startTime;M=Tw(t,i.id)*M,M=iw(e.g,M),l.set(T,new tw(m,M,g,!1,S))}m.ia&&(x=T4(m.ia),l.has(x)||(M=.5*Tw(t,i.id),M=iw(e.g,M),l.set(x,new tw(m.ia,M,g,!0,S)))),f.segments.push({pendingInitSegmentRefId:x,initSegmentKey:x?0:null,startTime:m.startTime,endTime:m.endTime,appendWindowStart:m.appendWindowStart,appendWindowEnd:m.appendWindowEnd,timestampOffset:m.timestampOffset,tilesLayout:m.tilesLayout,pendingSegmentRefId:T,dataKey:0,mimeType:m.mimeType,codecs:m.codecs,thumbnailSprite:m.thumbnailSprite}),d!==0&&(g=(g+1)%d)}),f}function AR(e,t,n){if(t=e.segmentIndex.find(t),t!=null)for(var i=e.segmentIndex.get(t);i;)n(i,t),i=e.segmentIndex.get(++t)}function Gs(e){if(e.j.g)throw new G(2,9,7001)}function Z2(){if(!b4())throw new G(2,9,9e3)}function D4(e,t){return q(function(n){return n.g==1?(e.i.push(t),_n(n,2),O(n,t,4)):n.g!=2?n.return(n.h):(re(n),to(e.i,t),Re(n,0))})}function xR(e,t){var n=t.promise;return e.i.push(n),t.finally(function(){to(e.i,n)})}function wR(e){var t=new Set;e=b(e.streams);for(var n=e.next();!n.done;n=e.next()){n=b(n.value.segments);for(var i=n.next();!i.done;i=n.next())i=i.value,i.initSegmentKey!=null&&t.add(i.initSegmentKey),t.add(i.dataKey)}return Array.from(t)}function CR(e,t,n,i){var a,l,f;return q(function(d){return d.g==1?i.drmInfo?(a=qb(n),l=i.sessionIds.map(function(g){return{sessionId:g,keySystem:i.drmInfo.keySystem,licenseUri:i.drmInfo.licenseServerUri,serverCertificate:i.drmInfo.serverCertificate,audioCapabilities:Cw(i,!1),videoCapabilities:Cw(i,!0)}}),O(d,vw(t,e,l),2)):d.return():d.g!=3?(f=d.h,O(d,a.remove(f),3)):O(d,a.add(l.filter(function(g){return!f.includes(g.sessionId)})),0)})}function bw(e){for(var t=new Set,n=b(e.variants),i=n.next();!i.done;i=n.next())i=i.value,i.audio&&t.add(i.audio),i.video&&t.add(i.video);for(n=b(e.textStreams),i=n.next();!i.done;i=n.next())t.add(i.value);for(e=b(e.imageStreams),n=e.next();!n.done;n=e.next())t.add(n.value);return t}function MR(e){e.variants.map(function(l){return l.video});var t=new Set(e.variants.map(function(l){return l.audio}));e=e.textStreams;for(var n=b(t),i=n.next();!i.done;i=n.next()){i=b(t);for(var a=i.next();!a.done;a=i.next());}for(t=b(e),n=t.next();!n.done;n=t.next())for(n=b(e),i=n.next();!i.done;i=n.next());}xe("shaka.offline.Storage",La),La.deleteAll=function(){var e;return q(function(t){return t.g==1?(e=new dl,_n(t,2),O(t,Yb(e),2)):t.g!=5?(re(t),O(t,e.destroy(),5)):Re(t,0)})},La.prototype.list=La.prototype.list,La.prototype.removeEmeSessions=La.prototype.al,La.prototype.remove=La.prototype.remove,La.prototype.store=La.prototype.store,La.prototype.getNetworkingEngine=La.prototype.Db,La.prototype.getConfiguration=La.prototype.getConfiguration,La.prototype.configure=La.prototype.configure,La.prototype.destroy=La.prototype.destroy,La.support=b4;var bR=new Map().set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.huawei.wiseplay","3d5e6d359b9a41e8b843dd3c6e72c42c");fe("offline",b4);function Ku(){}function Rw(){for(var e=b(EE),t=e.next();!t.done;t=e.next()){t=t.value;try{t.callback()}catch(n){st("Error installing polyfill!",n)}}}function hl(e,t){for(e={priority:t||0,callback:e},t=0;t<EE.length;t++)if(EE[t].priority<e.priority){EE.splice(t,0,e);return}EE.push(e)}xe("shaka.polyfill",Ku),Ku.register=hl,Ku.installAll=Rw;var EE=[];function Dw(){}function Iw(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var e=b(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),t=e.next();!t.done;t=e.next())RR(t.value)}function RR(e){var t="aria-"+e.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,e,{get:function(){return this.getAttribute(t)},set:function(n){n==null||n==null?this.removeAttribute(t):this.setAttribute(t,n)}})}Ku.Aria=Dw,Dw.install=Iw,hl(Iw);function Lw(){}function Ow(){Fr()||Tn("Sky_STB")||YC()}Ku.EncryptionScheme=Lw,Lw.install=Ow,hl(Ow,-2);function Uw(){}function kw(){if(oe.Document){var e=Element.prototype;e.requestFullscreen=e.requestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen||e.webkitRequestFullscreen,e=Document.prototype,e.exitFullscreen=e.exitFullscreen||e.mozCancelFullScreen||e.msExitFullscreen||e.webkitCancelFullScreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",QS),document.addEventListener("webkitfullscreenerror",QS),document.addEventListener("mozfullscreenchange",QS),document.addEventListener("mozfullscreenerror",QS),document.addEventListener("MSFullscreenChange",QS),document.addEventListener("MSFullscreenError",QS)}}function QS(e){var t=e.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),n=document.createEvent("Event");n.initEvent(t,e.bubbles,e.cancelable),e.target.dispatchEvent(n)}Ku.Fullscreen=Uw,Uw.install=kw,hl(kw);function I4(){}function Nw(){var e=!0;($a()&&!eu()&&!Zc()||ai()||vr()||Fr()||Ju()||Sl()||ns()||$p()||$s()&&!ai())&&(e=!1),e&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),_w=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=DR)}function DR(e){var t,n,i,a,l,f,d,g,m,S,T;return q(function(x){switch(x.g){case 1:if(t={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:e},n=e.video,i=e.audio,e.type!="media-source"){if(e.type=="file"){if(n&&(a=n.contentType,l=xh(a),!l)||i&&(f=i.contentType,d=xh(f),!d))return x.return(t)}else return x.return(t);x.A(2);break}if(!fa())return x.return(t);if(!n){x.A(3);break}return O(x,IR(n),4);case 4:if(g=x.h,!g)return x.return(t);case 3:if(i){var M=i.contentType;if($a()&&i.spatialRendering&&(M+="; spatialRendering=true"),m=zi(M),!m)return x.return(t)}case 2:return e.keySystemConfiguration?(S=e.keySystemConfiguration,O(x,LR(n,i,S),6)):(t.supported=!0,x.return(t));case 6:(T=x.h)&&(t.supported=!0,t.keySystemAccess=T);case 5:return x.return(t)}})}function IR(e){var t;return q(function(n){return n.g==1?$a()?O(n,OR(e),3):n.A(2):n.g!=2?(t=n.h,n.return(t)):n.return(zi(e.contentType))})}function LR(e,t,n){var i,a,l,f,d,g,m,S,T,x,M;return q(function(R){switch(R.g){case 1:if(i=[],a=[],n.audio&&(l={robustness:n.audio.robustness||"",contentType:t.contentType},Sl()&&t.contentType.includes('codecs="ac-3"')&&(l.contentType='audio/mp4; codecs="ec-3"'),n.audio.encryptionScheme&&(l.encryptionScheme=n.audio.encryptionScheme),i.push(l)),n.video&&(f={robustness:n.video.robustness||"",contentType:e.contentType},n.video.encryptionScheme&&(f.encryptionScheme=n.video.encryptionScheme),a.push(f)),d={initDataTypes:[n.initDataType],distinctiveIdentifier:n.distinctiveIdentifier,persistentState:n.persistentState,sessionTypes:n.sessionTypes},i.length&&(d.audioCapabilities=i),a.length&&(d.videoCapabilities=a),g=e?e.contentType:"",m=t?t.contentType:"",S=va(g)+";"+jo(g),T=va(m)+";"+jo(m),x=n.keySystem,M=null,Le(R,2),ts.has(S+"#"+T+"#"+x)){M=ts.get(S+"#"+T+"#"+x)||null,R.A(4);break}return O(R,navigator.requestMediaKeySystemAccess(n.keySystem,[d]),5);case 5:M=R.h,ts.set(S+"#"+T+"#"+x,M);case 4:Ge(R,3);break;case 2:je(R);case 3:return R.return(M)}})}function OR(e){var t,n,i,a,l;return q(function(f){if(f.g==1){if(!(oe.cast&&cast.__platform__&&cast.__platform__.canDisplayType))return f.return(zi(e.contentType));switch(t=e.contentType,e.width&&e.height&&1280<e.width&&720<e.height&&(t+="; width="+e.width+"; height="+e.height),e.framerate&&(n=Math.round(e.framerate),24>n||30<n)&&(t+="; framerate="+e.framerate),i=e.transferFunction||"",i){case"":case"srgb":break;case"pq":t+="; eotf=smpte2084";break;case"hlg":t+="; eotf=arib-std-b67";break;default:return f.return(!1)}return a=!1,l=UR,l.has(t)?(a=l.get(t),f.A(2)):O(f,cast.__platform__.canDisplayType(t),3)}return f.g!=2&&(a=f.h,l.set(t,a)),f.return(a)})}Ku.MediaCapabilities=I4,I4.install=Nw;var _w=null;I4.originalMcap=_w;var UR=new Map;hl(Nw,-1);function jw(){}function zw(){var e=ha();(oe.MediaSource||oe.ManagedMediaSource)&&(e&&oe.MediaSource?12>=e?(L4(),Bw()):15>=e&&L4():Tn("DT_STB_BCM")?(L4(),Bw()):(Tn("Tizen 2")||da()||Tn("Tizen 4"))&&NR()),(oe.MediaSource||oe.ManagedMediaSource)&&kR(),oe.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&_R()}function L4(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,xt.apply(0,arguments));return t.abort=function(){},t}}function Bw(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}function kR(){if(oe.MediaSource){var e=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(n){return cs(n)!="mp2t"&&e(n)}}if(oe.ManagedMediaSource){var t=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);oe.ManagedMediaSource.isTypeSupported=function(n){return cs(n)!="mp2t"&&t(n)}}}function NR(){var e=MediaSource.isTypeSupported.bind(MediaSource);if(MediaSource.isTypeSupported=function(n){return jo(n)!="opus"&&e(n)},oe.ManagedMediaSource){var t=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);oe.ManagedMediaSource.isTypeSupported=function(n){return jo(n)!="opus"&&t(n)}}}function _R(){var e=MediaSource.isTypeSupported;Ju()||(MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */),i=n.findIndex(function(f){return f.startsWith("codecs=")});if(0>i)return e(t);var a=n[i].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),l=a.findIndex(function(f){return f.startsWith("vp09")});return 0<=l&&(a[l]="vp9",n[i]='codecs="'+a.join(",")+'"',t=n.join("; ")),e(t)})}Ku.MediaSource=jw,jw.install=zw,hl(zw);function Pw(){}function Hw(){screen.orientation&&screen.orientation.unlock||(screen.orientation!=null?jR():oe.orientation!=null&&zR())}function jR(){screen.orientation.lock===void 0&&(screen.orientation.lock=function(){return Promise.resolve()}),screen.orientation.unlock===void 0&&(screen.orientation.unlock=function(){})}function zR(){function e(){switch(oe.orientation){case-90:t.type="landscape-secondary",t.angle=270;break;case 0:t.type="portrait-primary",t.angle=0;break;case 90:t.type="landscape-primary",t.angle=90;break;case 180:t.type="portrait-secondary",t.angle=180}}var t=new J2;screen.orientation=t,e(),oe.addEventListener("orientationchange",function(){e();var n=new Te("change");t.dispatchEvent(n)})}Ku.Orientation=Pw,Pw.install=Hw;function J2(){Tt.call(this),this.type="",this.angle=0}Xe(J2,Tt),J2.prototype.lock=function(e){function t(i){return screen.lockOrientation?screen.lockOrientation(i):screen.mozLockOrientation?screen.mozLockOrientation(i):screen.msLockOrientation?screen.msLockOrientation(i):!1}var n=!1;switch(e){case"natural":n=t("default");break;case"any":n=!0,this.unlock();break;default:n=t(e)}return n?Promise.resolve():(e=Error("screen.orientation.lock() is not available on this device"),e.name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,Promise.reject(e))},J2.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()},hl(Hw);function O4(){}var U4,k4,N4,_4,j4,z4;function Gw(e){oe.HTMLVideoElement&&oe.WebKitMediaKeys&&oe.shakaMediaKeysPolyfill!=P4&&(e!==void 0&&e&&(U4=!0,k4=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),N4=HTMLMediaElement.prototype.setMediaKeys,_4=oe.MediaKeys,j4=oe.MediaKeySystemAccess,z4=navigator.requestMediaKeySystemAccess),delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=PR,oe.MediaKeys=AE,oe.MediaKeySystemAccess=W2,navigator.requestMediaKeySystemAccess=BR,oe.shakaMediaKeysPolyfill=P4,hs.clear(),ts.clear())}function BR(e,t){try{var n=new W2(e,t);return Promise.resolve(n)}catch(i){return Promise.reject(i)}}function PR(e){var t=this.mediaKeys;return t&&t!=e&&Vw(t,null),delete this.mediaKeys,(this.mediaKeys=e)?Vw(e,this):Promise.resolve()}function HR(e){if(e=at(e.initData),br(e).getUint32(0,!0)+4!=e.byteLength)throw new RangeError("Malformed FairPlay init data");e=Ro(e.subarray(4),!0),e=Do(e);var t=new Event("encrypted");t.initDataType="skd",t.initData=Yr(e),this.dispatchEvent(t)}Ku.PatchedMediaKeysApple=O4,O4.uninstall=function(){oe.shakaMediaKeysPolyfill==P4&&U4&&(U4=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",k4),HTMLMediaElement.prototype.setMediaKeys=N4,oe.MediaKeys=_4,oe.MediaKeySystemAccess=j4,navigator.requestMediaKeySystemAccess=z4,k4=z4=N4=j4=_4=null,oe.shakaMediaKeysPolyfill="",hs.clear(),ts.clear())},O4.install=Gw;function W2(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(e=b(t),t=e.next();!t.done;t=e.next()){var n=t.value;if(n.persistentState=="required")t=null;else{t={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:n.initDataTypes,sessionTypes:["temporary"],label:n.label};var i=!1,a=!1;if(n.audioCapabilities)for(var l=b(n.audioCapabilities),f=l.next();!f.done;f=l.next())f=f.value,f.contentType&&(i=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(t.audioCapabilities.push(f),a=!0));if(n.videoCapabilities)for(n=b(n.videoCapabilities),l=n.next();!l.done;l=n.next())l=l.value,l.contentType&&(i=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(t.videoCapabilities.push(l),a=!0));i||(a=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),t=a?t:null}if(t){this.g=t;return}}throw e=Error("Unsupported keySystem"),e.name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}W2.prototype.createMediaKeys=function(){var e=new AE(this.keySystem);return Promise.resolve(e)},W2.prototype.getConfiguration=function(){return this.g};function AE(e){this.h=new WebKitMediaKeys(e),this.g=new Ft}AE.prototype.createSession=function(e){if(e=e||"temporary",e!="temporary")throw new TypeError("Session type "+e+" is unsupported on this platform.");return new B4(this.h)},AE.prototype.setServerCertificate=function(){return Promise.resolve(!1)};function Vw(e,t){if(e.g.$a(),!t)return Promise.resolve();e.g.o(t,"webkitneedkey",HR);try{return Nr(t,HTMLMediaElement.HAVE_METADATA,e.g,function(){t.webkitSetMediaKeys(e.h)}),Promise.resolve()}catch(n){return Promise.reject(n)}}AE.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function B4(e){Tt.call(this),this.i=null,this.l=e,this.g=this.h=null,this.j=new Ft,this.sessionId="",this.expiration=NaN,this.closed=new Bt,this.keyStatuses=new qw}Xe(B4,Tt),w=B4.prototype,w.generateRequest=function(e,t){var n=this;this.h=new Bt;try{var i=this.l.createSession("video/mp4",at(t));this.i=i,this.sessionId=i.sessionId||"",this.j.o(this.i,"webkitkeymessage",function(a){n.h&&(n.h.resolve(),n.h=null),a=new Map().set("messageType",n.keyStatuses.yc()==null?"license-request":"license-renewal").set("message",Yr(a.message)),a=new Te("message",a),n.dispatchEvent(a)}),this.j.o(i,"webkitkeyadded",function(){n.g&&($2(n,"usable"),n.g.resolve(),n.g=null)}),this.j.o(i,"webkitkeyerror",function(){var a=Error("EME PatchedMediaKeysApple key error");if(a.errorCode=n.i.error,n.h!=null)n.h.reject(a),n.h=null;else if(n.g!=null)n.g.reject(a),n.g=null;else switch(n.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:$2(n,"output-not-allowed");break;default:$2(n,"internal-error")}}),$2(this,"status-pending")}catch(a){this.h.reject(a)}return this.h},w.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},w.update=function(e){this.g=new Bt;try{this.i.update(at(e))}catch(t){this.g.reject(t)}return this.g},w.close=function(){try{this.i.close(),this.closed.resolve(),this.j.$a()}catch(e){this.closed.reject(e)}return this.closed},w.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function $2(e,t){var n=e.keyStatuses;n.size=t==null?0:1,n.g=t,t=new Te("keystatuseschange"),e.dispatchEvent(t)}function qw(){this.size=0,this.g=void 0}w=qw.prototype,w.yc=function(){return this.g},w.forEach=function(e){this.g&&e(this.g,Xi.value())},w.get=function(e){if(this.has(e))return this.g},w.has=function(e){var t=Xi.value();return!!(this.g&&ji(e,t))},w.entries=function(){},w.keys=function(){},w.values=function(){};var P4="apple";hl(function(){oe.HTMLVideoElement&&oe.WebKitMediaKeys&&(navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||Gw())});function Yw(){}function Xw(){oe.MediaKeys&&(!MediaKeys.prototype.setServerCertificate||da()||Tn("Tizen 4")||Tn("Tizen 5.0")||Wu())&&(MediaKeys.prototype.setServerCertificate=GR)}function GR(){return Promise.resolve(!1)}Ku.PatchedMediaKeysCert=Yw,Yw.install=Xw,hl(Xw);function Fw(){}function Kw(){if(!(!oe.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)Y4="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=VR,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=qR,oe.MediaKeys=xE,oe.MediaKeySystemAccess=eA,oe.shakaMediaKeysPolyfill=YR}}function H4(e){var t=Y4;return t?t+e.charAt(0).toUpperCase()+e.slice(1):e}function VR(e,t){try{var n=new eA(e,t);return Promise.resolve(n)}catch(i){return Promise.reject(i)}}function qR(e){var t=this.mediaKeys;return t&&t!=e&&Qw(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&Qw(e,this),Promise.resolve()}Ku.PatchedMediaKeysWebkit=Fw,Fw.install=Kw;function eA(e,t){this.g=this.keySystem=e;var n=!1;e=="org.w3.clearkey"&&(this.g="webkit-org.w3.clearkey",n=!1);var i=!1,a=document.getElementsByTagName("video");a=a.length?a[0]:document.createElement("video"),t=b(t);for(var l=t.next();!l.done;l=t.next()){l=l.value;var f={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:l.initDataTypes,sessionTypes:["temporary"],label:l.label},d=!1;if(l.audioCapabilities)for(var g=b(l.audioCapabilities),m=g.next();!m.done;m=g.next())m=m.value,m.contentType&&(d=!0,a.canPlayType(m.contentType.split(";")[0],this.g)&&(f.audioCapabilities.push(m),i=!0));if(l.videoCapabilities)for(g=b(l.videoCapabilities),m=g.next();!m.done;m=g.next())m=m.value,m.contentType&&(d=!0,a.canPlayType(m.contentType,this.g)&&(f.videoCapabilities.push(m),i=!0));if(d||(i=a.canPlayType("video/mp4",this.g)||a.canPlayType("video/webm",this.g)),l.persistentState=="required"&&(n?(f.persistentState="required",f.sessionTypes=["persistent-license"]):i=!1),i){this.h=f;return}}throw n="Unsupported keySystem",(e=="org.w3.clearkey"||e=="com.widevine.alpha")&&(n="None of the requested configurations were supported."),e=Error(n),e.name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}eA.prototype.createMediaKeys=function(){var e=new xE(this.g);return Promise.resolve(e)},eA.prototype.getConfiguration=function(){return this.h};function xE(e){this.l=e,this.h=null,this.g=new Ft,this.i=[],this.j=new Map}function Qw(e,t){e.h=t,e.g.$a();var n=Y4;t&&(e.g.o(t,n+"needkey",function(i){var a=new CustomEvent("encrypted");a.initDataType="cenc",a.initData=Yr(i.initData),e.h.dispatchEvent(a)}),e.g.o(t,n+"keymessage",function(i){var a=G4(e,i.sessionId);a&&(i=new Map().set("messageType",a.keyStatuses.yc()==null?"licenserequest":"licenserenewal").set("message",i.message),i=new Te("message",i),a.h&&(a.h.resolve(),a.h=null),a.dispatchEvent(i))}),e.g.o(t,n+"keyadded",function(i){(i=G4(e,i.sessionId))&&i.ready()}),e.g.o(t,n+"keyerror",function(i){var a=G4(e,i.sessionId);if(a){var l=Error("EME v0.1b key error"),f=i.errorCode;f.systemCode=i.systemCode,l.errorCode=f,!i.sessionId&&a.h?(i.systemCode==45&&(l.message="Unsupported session type."),a.h.reject(l),a.h=null):i.sessionId&&a.g?(a.g.reject(l),a.g=null):(l=i.systemCode,i.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?tA(a,"output-restricted"):l==1?tA(a,"expired"):tA(a,"internal-error"))}}))}xE.prototype.createSession=function(e){if(e=e||"temporary",e!="temporary"&&e!="persistent-license")throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.h||document.createElement("video");return t.src||(t.src="about:blank"),e=new V4(t,this.l,e),this.i.push(e),e},xE.prototype.setServerCertificate=function(){return Promise.resolve(!1)},xE.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function G4(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function V4(e,t,n){Tt.call(this),this.j=e,this.m=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new Bt,this.keyStatuses=new Jw}Xe(V4,Tt),w=V4.prototype,w.ready=function(){tA(this,"usable"),this.g&&this.g.resolve(),this.g=null};function Zw(e,t,n){if(e.m)return Promise.reject(Error("The session is already initialized."));e.m=!0;try{if(e.l=="persistent-license")if(n)var i=at(Do("LOAD_SESSION|"+n));else{var a=Do("PERSISTENT|");i=gn(a,t)}else i=at(t)}catch(f){return Promise.reject(f)}e.h=new Bt;var l=H4("generateKeyRequest");try{e.j[l](e.i,i)}catch(f){if(f.name!="InvalidStateError")return e.h=null,Promise.reject(f);new Ke(function(){try{e.j[l](e.i,i)}catch(d){e.h.reject(d),e.h=null}}).$(.01)}return e.h}function q4(e,t,n){if(e.g)e.g.then(function(){return q4(e,t,n)}).catch(function(){return q4(e,t,n)});else{if(e.g=t,e.i=="webkit-org.w3.clearkey"){var i=Rn(n),a=JSON.parse(i);a.keys[0].kty!="oct"&&(e.g.reject(Error("Response is not a valid JSON Web Key Set.")),e.g=null),i=tu(a.keys[0].k),a=tu(a.keys[0].kid)}else i=at(n),a=null;var l=H4("addKey");try{e.j[l](e.i,i,a,e.sessionId)}catch(f){e.g.reject(f),e.g=null}}}function tA(e,t){var n=e.keyStatuses;n.size=t==null?0:1,n.g=t,t=new Te("keystatuseschange"),e.dispatchEvent(t)}w.generateRequest=function(e,t){return Zw(this,t,null)},w.load=function(e){return this.l=="persistent-license"?Zw(this,null,e):Promise.reject(Error("Not a persistent session."))},w.update=function(e){var t=new Bt;return q4(this,t,e),t},w.close=function(){if(this.l!="persistent-license"){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=H4("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch{}}return this.closed.resolve(),this.closed},w.remove=function(){return this.l!="persistent-license"?Promise.reject(Error("Not a persistent session.")):this.close()};function Jw(){this.size=0,this.g=void 0}w=Jw.prototype,w.yc=function(){return this.g},w.forEach=function(e){this.g&&e(this.g,Xi.value())},w.get=function(e){if(this.has(e))return this.g},w.has=function(e){var t=Xi.value();return!!(this.g&&ji(e,t))},w.entries=function(){},w.keys=function(){},w.values=function(){};var Y4="",YR="webkit";hl(Kw);function Ww(){}function $w(){if(oe.HTMLVideoElement){var e=HTMLVideoElement.prototype;e.requestPictureInPicture&&document.exitPictureInPicture||!e.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,e.requestPictureInPicture=FR,Object.defineProperty(e,"disablePictureInPicture",{get:QR,set:ZR,enumerable:!0,configurable:!0}),document.exitPictureInPicture=KR,document.addEventListener("webkitpresentationmodechanged",XR,!0))}}function XR(e){if(e=e.target,e.webkitPresentationMode=="picture-in-picture"){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function FR(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function KR(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function QR(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function ZR(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Ku.PiPWebkit=Ww,Ww.install=$w,hl($w);function eC(){}function tC(){oe.crypto&&("randomUUID"in oe.crypto||(oe.crypto.randomUUID=JR))}function JR(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}Ku.RandomUUID=eC,eC.install=tC,hl(tC);function nC(){}function iC(){var e=Symbol.prototype;"description"in e||Object.defineProperty(e,"description",{get:WR})}function WR(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}Ku.Symbol=nC,nC.install=iC,hl(iC);function rC(){}function aC(){if(oe.HTMLMediaElement){var e=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var t=e.apply(this);return t&&t.catch(function(){}),t}}}Ku.VideoPlayPromise=rC,rC.install=aC,hl(aC);function uC(){}function oC(){if(oe.HTMLVideoElement){var e=HTMLVideoElement.prototype;!e.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in e||Wu())&&(e.getVideoPlaybackQuality=$R)}}function $R(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Ku.VideoPlaybackQuality=uC,uC.install=oC,hl(oC);function lC(){}function sC(){if(!oe.VTTCue&&oe.TextTrackCue){var e=null,t=TextTrackCue.length;if(t==3)e=X4;else if(t==6)e=eD;else{try{var n=!!X4(1,2,"")}catch{n=!1}n&&(e=X4)}e&&(oe.VTTCue=function(i,a,l){return e(i,a,l)})}}function X4(e,t,n){return new oe.TextTrackCue(e,t,n)}function eD(e,t,n){return new oe.TextTrackCue(e+"-"+t+"-"+n,e,t,n)}Ku.VTTCue=lC,lC.install=sC,hl(sC);function Vs(){}Vs.prototype.parseInit=function(){},Vs.prototype.setSequenceMode=function(){},Vs.prototype.setManifestType=function(){},Vs.prototype.parseMedia=function(e,t){var n=null,i=[];e=Rn(e).split(/\r?\n/),e=b(e);for(var a=e.next();!a.done;a=e.next())if((a=a.value)&&!/^\s+$/.test(a)&&(a=tD.exec(a))){var l=nD.exec(a[1]);l=60*parseInt(l[1],10)+parseFloat(l[2].replace(",",".")),a=new Kt(l,t.segmentEnd?t.segmentEnd:l+2,a[2]),n&&(n.endTime=l,i.push(n)),n=a}return n&&i.push(n),i},xe("shaka.text.LrcTextParser",Vs),Vs.prototype.parseMedia=Vs.prototype.parseMedia,Vs.prototype.setManifestType=Vs.prototype.setManifestType,Vs.prototype.setSequenceMode=Vs.prototype.setSequenceMode,Vs.prototype.parseInit=Vs.prototype.parseInit;var tD=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,nD=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;$n("application/x-subtitle-lrc",function(){return new Vs});function $l(){}$l.prototype.parseInit=function(){},$l.prototype.setSequenceMode=function(){},$l.prototype.setManifestType=function(){},$l.prototype.parseMedia=function(e,t,n,i){var a=Rn(e);if(e=[],a=="")return e;var l=us(a,"tt",!0);if(!l)throw new G(2,2,2005,"Failed to parse TTML.");if(a=Dn(l,"body")[0],!a)return[];var f=Sr(l,wE,"frameRate"),d=Sr(l,wE,"subFrameRate"),g=Sr(l,wE,"frameRateMultiplier"),m=Sr(l,wE,"tickRate"),S=Sr(l,wE,"cellResolution"),T=l.attributes["xml:space"]||"default",x=Sr(l,rA,"extent");if(T!="default"&&T!="preserve")throw new G(2,2,2005,"Invalid xml:space value: "+T);T=T=="default",f=new oD(f,d,g,m),S=uD(S),d=Dn(l,"metadata")[0],d=(d?d.children:[]).filter(function(L){return L!=`
38
- `}),g=Dn(l,"style"),l=Dn(l,"region"),m=[];for(var M=b(l),R=M.next();!R.done;R=M.next())(R=iD(R.value,g,x))&&m.push(R);if(wt(a,"p").length)throw new G(2,2,2001,"<p> can only be inside <div> in TTML");for(x=b(wt(a,"div")),M=x.next();!M.done;M=x.next())if(wt(M.value,"span").length)throw new G(2,2,2001,"<span> can only be inside <p> in TTML");return(t=cC(a,t,f,d,g,l,m,T,S,null,!1,n,i))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e};function cC(e,t,n,i,a,l,f,d,g,m,S,T,x){var M=m;if(Lh(e)){if(!S)return null;var R={tagName:"span",children:[Gn(e)],attributes:{},parent:null}}else R=e;for(var L=null,I=b(TC),U=I.next();!U.done&&!(L=iA(R,"backgroundImage",i,"#",U.value)[0]);U=I.next());I=null,U=Sr(R,TC,"backgroundImage");var N=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(U&&N.test(U)){if(I=parseInt(U.split(":").pop(),10)-1,I>=x.length)return null;I=x[I]}else T&&U&&!U.startsWith("#")&&(N=new un(T),U=new un(U),(U=N.resolve(U).toString())&&(I=U));if((e.tagName=="p"||L||I)&&(S=!0),e=S,U=(R.attributes["xml:space"]||(d?"default":"preserve"))=="default",N=R.children.every(Lh),d=[],!N)for(var j=b(R.children),B=j.next();!B.done;B=j.next())(B=cC(B.value,t,n,i,a,l,f,U,g,R,S,T,x))&&d.push(B);if(i=m!=null,T=Gn(R),T=R.children.length&&T&&/\S/.test(T),j=R.attributes.begin||R.attributes.end||R.attributes.dur,!(j||T||R.tagName=="br"||d.length!=0||i&&!U))return null;for(x=hC(R,n),T=x.start,x=x.end;M&&M.tagName&&M.tagName!="tt";)x=aD(M,n,T,x),T=x.start,x=x.end,M=M.parent;if(T==null&&(T=0),T+=t.periodStart,x=x==null?1/0:x+t.periodStart,T=Math.max(T,t.segmentStart),x=Math.min(x,t.segmentEnd),!j&&0<d.length)for(T=1/0,x=0,t=b(d),n=t.next();!n.done;n=t.next())n=n.value,T=Math.min(T,n.startTime),x=Math.max(x,n.endTime);if(R.tagName=="br")return a=new Kt(T,x,""),a.lineBreak=!0,a;if(t="",N&&(t=Fi(Gn(R)||""),U&&(t=t.replace(/\s+/g," "))),t=new Kt(T,x,t),t.nestedCues=d,S||(t.isContainer=!0),g&&(t.cellResolution=g),g=iA(R,"region",l,"")[0],R.attributes.region&&g&&g.attributes["xml:id"]){var Y=g.attributes["xml:id"];t.region=f.filter(function(P){return P.id==Y})[0]}return f=g,m&&i&&!R.attributes.region&&!R.attributes.style&&(f=iA(m,"region",l,"")[0]),rD(t,R,f,L,I,a,e,d.length==0),t}function iD(e,t,n){var i=new Cu,a=e.attributes["xml:id"];if(!a)return null;i.id=a,a=null,n&&(a=J4.exec(n)||W4.exec(n)),n=a?Number(a[1]):null,a=a?Number(a[2]):null;var l,f=nA(e,t,"extent");if(f){var d=(l=J4.exec(f))||W4.exec(f);d!=null&&(i.width=Number(d[1]),i.height=Number(d[2]),l||(n!=null&&(i.width=100*i.width/n),a!=null&&(i.height=100*i.height/a)),i.widthUnits=l||n!=null?Zi:0,i.heightUnits=l||a!=null?Zi:0)}return(e=nA(e,t,"origin"))&&(d=(l=J4.exec(e))||W4.exec(e),d!=null&&(i.viewportAnchorX=Number(d[1]),i.viewportAnchorY=Number(d[2]),l?f||(i.width=100-i.viewportAnchorX,i.widthUnits=Zi,i.height=100-i.viewportAnchorY,i.heightUnits=Zi):(a!=null&&(i.viewportAnchorY=100*i.viewportAnchorY/a),n!=null&&(i.viewportAnchorX=100*i.viewportAnchorX/n)),i.viewportAnchorUnits=l||n!=null?Zi:0)),i}function F4(e){var t=e.match(/rgba\(([^)]+)\)/);return t&&(t=t[1].split(","),t.length==4)?(t[3]=String(Number(t[3])/255),"rgba("+t.join(",")+")"):e}function rD(e,t,n,i,a,l,f,d){if(f=f||d,Tu(t,n,l,"direction",f)=="rtl"&&(e.direction="rtl"),d=Tu(t,n,l,"writingMode",f),d=="tb"||d=="tblr"?e.writingMode="vertical-lr":d=="tbrl"?e.writingMode="vertical-rl":d=="rltb"||d=="rl"?e.direction="rtl":d&&(e.direction=Uh),(d=Tu(t,n,l,"textAlign",!0))?(e.positionAlign=cD.get(d),e.lineAlign=sD.get(d),e.textAlign=uf[d.toUpperCase()]):e.textAlign=Dr,(d=Tu(t,n,l,"displayAlign",!0))&&(e.displayAlign=xd[d.toUpperCase()]),(d=Tu(t,n,l,"color",f))&&(e.color=F4(d)),(d=Tu(t,n,l,"backgroundColor",f))&&(e.backgroundColor=F4(d)),(d=Tu(t,n,l,"border",f))&&(e.border=d),d=Tu(t,n,l,"fontFamily",f))switch(d){case"monospaceSerif":e.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case"proportionalSansSerif":e.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case"sansSerif":e.fontFamily="sans-serif";break;case"monospaceSansSerif":e.fontFamily="Consolas,monospace";break;case"proportionalSerif":e.fontFamily="serif";break;default:e.fontFamily=d.split(",").filter(function(g){return g!="default"}).join(",")}switch((d=Tu(t,n,l,"fontWeight",f))&&d=="bold"&&(e.fontWeight=oi),d=Tu(t,n,l,"wrapOption",f),e.wrapLine=!(d&&d=="noWrap"),(d=Tu(t,n,l,"lineHeight",f))&&d.match(ZS)&&(e.lineHeight=d),(d=Tu(t,n,l,"fontSize",f))&&(d.match(ZS)||d.match(lD))&&(e.fontSize=d),(d=Tu(t,n,l,"fontStyle",f))&&(e.fontStyle=kh[d.toUpperCase()]),i?(a=i.attributes.imageType||i.attributes.imagetype,d=i.attributes.encoding,i=Gn(i).trim(),a=="PNG"&&d=="Base64"&&i&&(e.backgroundImage="data:image/png;base64,"+i)):a&&(e.backgroundImage=a),(i=Tu(t,n,l,"textOutline",f))&&(i=i.split(" "),i[0].match(ZS)?e.textStrokeColor=e.color:(e.textStrokeColor=F4(i[0]),i.shift()),i[0]&&i[0].match(ZS)?e.textStrokeWidth=i[0]:e.textStrokeColor=""),(i=Tu(t,n,l,"letterSpacing",f))&&i.match(ZS)&&(e.letterSpacing=i),(i=Tu(t,n,l,"linePadding",f))&&i.match(ZS)&&(e.linePadding=i),(i=Tu(t,n,l,"opacity",f))&&(e.opacity=parseFloat(i)),(i=nA(n,l,"textDecoration"))&&fC(e,i),(i=K4(t,l,"textDecoration"))&&fC(e,i),(i=Tu(t,n,l,"textCombine",f))&&(e.textCombineUpright=i),Tu(t,n,l,"ruby",f)){case"container":e.rubyTag="ruby";break;case"text":e.rubyTag="rt"}}function fC(e,t){t=b(t.split(" "));for(var n=t.next();!n.done;n=t.next())switch(n.value){case"underline":e.textDecoration.includes(bu)||e.textDecoration.push(bu);break;case"noUnderline":e.textDecoration.includes(bu)&&to(e.textDecoration,bu);break;case"lineThrough":e.textDecoration.includes("lineThrough")||e.textDecoration.push("lineThrough");break;case"noLineThrough":e.textDecoration.includes("lineThrough")&&to(e.textDecoration,"lineThrough");break;case"overline":e.textDecoration.includes("overline")||e.textDecoration.push("overline");break;case"noOverline":e.textDecoration.includes("overline")&&to(e.textDecoration,"overline")}}function Tu(e,t,n,i,a){return a=a===void 0?!0:a,(e=K4(e,n,i))?e:a?nA(t,n,i):null}function nA(e,t,n){if(!e)return null;var i=Sr(e,rA,n);return i||dC(e,t,n)}function K4(e,t,n){var i=Sr(e,rA,n);return i||dC(e,t,n)}function dC(e,t,n){e=iA(e,"style",t,"");for(var i=null,a=0;a<e.length;a++){var l=ru(e[a],"urn:ebu:tt:style",n);l||(l=Sr(e[a],rA,n)),l||(l=K4(e[a],t,n)),l&&(i=l)}return i}function iA(e,t,n,i,a){var l=[];if(!e||1>n.length)return l;var f=e;for(e=null;!e&&!(e=a?ru(f,a,t):f.attributes[t])&&(f=f.parent,f););if(t=e){for(t=b(t.split(" ")),a=t.next();!a.done;a=t.next())for(a=a.value,e=b(n),f=e.next();!f.done;f=e.next())if(f=f.value,i+f.attributes["xml:id"]==a){l.push(f);break}}return l}function aD(e,t,n,i){return e=hC(e,t),n==null?n=e.start:e.start!=null&&(n+=e.start),i==null?i=e.end:e.start!=null&&(i+=e.start),{start:n,end:i}}function hC(e,t){var n=Q4(e.attributes.begin,t),i=Q4(e.attributes.end,t);return e=Q4(e.attributes.dur,t),i==null&&e!=null&&(i=n+e),{start:n,end:i}}function Q4(e,t){var n=null;if(pC.test(e)){e=pC.exec(e),n=Number(e[1]);var i=Number(e[2]),a=Number(e[3]),l=Number(e[4]);l+=(Number(e[5])||0)/t.h,a+=l/t.frameRate,n=a+60*i+3600*n}else if(gC.test(e))n=Z4(gC,e);else if(mC.test(e))n=Z4(mC,e);else if(yC.test(e))e=yC.exec(e),n=Number(e[1])/t.frameRate;else if(vC.test(e))e=vC.exec(e),n=Number(e[1])/t.g;else if(SC.test(e))n=Z4(SC,e);else if(e)throw new G(2,2,2001,"Could not parse cue time range in TTML");return n}function Z4(e,t){return e=e.exec(t),e==null||e[0]==""?null:(Number(e[4])||0)/1e3+(Number(e[3])||0)+60*(Number(e[2])||0)+3600*(Number(e[1])||0)}function uD(e){return e&&(e=/^(\d+) (\d+)$/.exec(e))?{Mc:parseInt(e[1],10),rows:parseInt(e[2],10)}:null}xe("shaka.text.TtmlTextParser",$l),$l.prototype.parseMedia=$l.prototype.parseMedia,$l.prototype.setManifestType=$l.prototype.setManifestType,$l.prototype.setSequenceMode=$l.prototype.setSequenceMode,$l.prototype.parseInit=$l.prototype.parseInit;function oD(e,t,n,i){this.frameRate=Number(e)||30,this.h=Number(t)||1,this.g=Number(i),this.g==0&&(this.g=e?this.frameRate*this.h:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}var J4=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,lD=/^(\d{1,4}(?:\.\d+)?|100)%$/,ZS=/^(\d+px|\d+em|\d*\.?\d+c)$/,W4=/^(\d+)px (\d+)px$/,pC=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,gC=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,mC=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,yC=/^(\d*(?:\.\d*)?)f$/,vC=/^(\d*(?:\.\d*)?)t$/,SC=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),sD=new Map().set("left",ma).set("center","center").set("right","end").set("start",ma).set("end","end"),cD=new Map().set("left","line-left").set("center","center").set("right","line-right"),wE=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],rA=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],TC=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];$n("application/ttml+xml",function(){return new $l});function Gr(){this.g=new $l}Gr.prototype.parseInit=function(e){var t=!1;if(new Zt().box("moov",mt).box("trak",mt).box("mdia",mt).box("minf",mt).box("stbl",mt).W("stsd",Ul).box("stpp",function(n){t=!0,n.parser.stop()}).parse(e),!t)throw new G(2,2,2007)},Gr.prototype.setSequenceMode=function(){},Gr.prototype.setManifestType=function(){},Gr.prototype.parseMedia=function(e,t,n){var i=[],a=null,l=[],f=new Map,d=[];if(new Zt().box("moof",mt).box("traf",mt).W("tfhd",function(U){a=Ou(U.reader,U.flags).Nd}).W("trun",function(U){U=jl(U.reader,U.version,U.flags),U=b(U.hh);for(var N=U.next();!N.done;N=U.next())d.push(N.value.sampleSize||a||0)}).W("subs",function(U){for(var N=U.reader,j=N.X(),B=-1,Y=0;Y<j;Y++){var P=N.X();B+=P,P=N.Da();for(var V=[],F=0;F<P;F++)U.version==1?V.push(N.X()):V.push(N.Da()),N.ha(),N.ha(),N.X();f.set(B,V)}}).box("mdat",ys(function(U){l.push(U)})).parse(e,!1),l.length==0)throw new G(2,2,2007);for(var g=gn.apply(Li,Ue(l)),m=0,S=0;S<d.length;S++){var T=at(g,m,d[S]);m+=d[S];var x=f.get(S);if(x&&x.length){T=at(T,0,x[0]);for(var M=[],R=x[0],L=1;L<x.length;L++){var I=at(e,R,x[L]);I=ec(I),M.push("data:image/png;base64,"+I),R+=x[L]}i=i.concat(this.g.parseMedia(T,t,n,M))}else i=i.concat(this.g.parseMedia(T,t,n,[]))}return i},xe("shaka.text.Mp4TtmlParser",Gr),Gr.prototype.parseMedia=Gr.prototype.parseMedia,Gr.prototype.setManifestType=Gr.prototype.setManifestType,Gr.prototype.setSequenceMode=Gr.prototype.setSequenceMode,Gr.prototype.parseInit=Gr.prototype.parseInit,$n('application/mp4; codecs="stpp"',function(){return new Gr}),$n('application/mp4; codecs="stpp.ttml"',function(){return new Gr}),$n('application/mp4; codecs="stpp.ttml.im1i"',function(){return new Gr}),$n('application/mp4; codecs="stpp.ttml.im1t"',function(){return new Gr}),$n('application/mp4; codecs="stpp.ttml.im2i"',function(){return new Gr}),$n('application/mp4; codecs="stpp.ttml.im2t"',function(){return new Gr}),$n('application/mp4; codecs="stpp.ttml.etd1"',function(){return new Gr}),$n('application/mp4; codecs="stpp.ttml.etd1|im1t"',function(){return new Gr}),$n('application/mp4; codecs="stpp.ttml.im1t|etd1"',function(){return new Gr}),$n('application/mp4; codecs="stpp.TTML.im1t"',function(){return new Gr});function So(){this.g="UNKNOWN"}So.prototype.parseInit=function(){},So.prototype.setSequenceMode=function(){},So.prototype.setManifestType=function(e){this.g=e},So.prototype.parseMedia=function(e,t){e=Rn(e),e=e.replace(/\r\n|\r(?=[^\n]|$)/gm,`
39
- `);var n=e.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(n[0]))throw new G(2,2,2e3);if(e=t.vttOffset,this.g=="HLS")if(n[0].includes("X-TIMESTAMP-MAP")){var i=n[0];if(e=i.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),i=i.match(/MPEGTS:(\d+)/m),!e||!i)throw new G(2,2,2e3);if(e=nf(e[1]),e==null)throw new G(2,2,2e3);i=Number(i[1]);for(var a=t.segmentStart-t.periodStart;95443.7176888889<=a;)a-=95443.7176888889,i+=8589934592;e=t.periodStart+i/9e4-e}else t.periodStart&&t.vttOffset==t.periodStart&&(e=0);for(t=[],i=b(n[0].split(`
40
- `)),a=i.next();!a.done;a=i.next())if(a=a.value,/^Region:/.test(a)){a=new za(a);var l=new Cu;Pa(a),Ba(a);for(var f=Pa(a);f;){var d=l,g=f;(f=/^id=(.*)$/.exec(g))?d.id=f[1]:(f=/^width=(\d{1,2}|100)%$/.exec(g))?d.width=Number(f[1]):(f=/^lines=(\d+)$/.exec(g))?(d.height=Number(f[1]),d.heightUnits=2):(f=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(g))?(d.regionAnchorX=Number(f[1]),d.regionAnchorY=Number(f[2])):(f=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(g))?(d.viewportAnchorX=Number(f[1]),d.viewportAnchorY=Number(f[2])):/^scroll=up$/.exec(g)&&(d.scroll="up"),Ba(a),f=Pa(a)}t.push(l)}for(i=new Map,lc(i),a=[],n=b(n.slice(1)),l=n.next();!l.done;l=n.next()){if(l=l.value.split(`
41
- `),(l.length!=1||l[0])&&!/^NOTE($|[ \t])/.test(l[0])&&l[0]=="STYLE"){for(d=[],f=-1,g=1;g<l.length;g++)l[g].includes("::cue")&&(d.push([]),f=d.length-1),f!=-1&&(d[f].push(l[g]),l[g].includes("}")&&(f=-1));for(d=b(d),f=d.next();!f.done;f=d.next()){var m=f.value;f="global",(g=m[0].match(/\((.*)\)/))&&(f=g.pop()),g=m.slice(1,-1),m[0].includes("}")&&(m=/\{(.*?)\}/.exec(m[0]))&&(g=m[1].split(";")),(m=i.get(f))||(m=new Kt(0,0,""));for(var S=!1,T=0;T<g.length;T++){var x=/^\s*([^:]+):\s*(.*)/.exec(g[T]);if(x){var M=x[2].trim().replace(";","");switch(x[1].trim()){case"background-color":case"background":S=!0,m.backgroundColor=M;break;case"color":S=!0,m.color=M;break;case"font-family":S=!0,m.fontFamily=M;break;case"font-size":S=!0,m.fontSize=M;break;case"font-weight":(700<=parseInt(M,10)||M=="bold")&&(S=!0,m.fontWeight=oi);break;case"font-style":switch(M){case"normal":S=!0,m.fontStyle=ss;break;case"italic":S=!0,m.fontStyle=ro;break;case"oblique":S=!0,m.fontStyle="oblique"}break;case"opacity":S=!0,m.opacity=parseFloat(M);break;case"text-combine-upright":S=!0,m.textCombineUpright=M;break;case"text-shadow":S=!0,m.textShadow=M;break;case"white-space":S=!0,m.wrapLine=M!="noWrap"}}}S&&i.set(f,m)}}if(m=l,S=e,m.length==1&&!m[0]||/^NOTE($|[ \t])/.test(m[0])||m[0]=="STYLE"||m[0]=="REGION")l=null;else if(l=null,m[0].includes("-->")||(l=m[0],m.splice(0,1)),d=new za(m[0]),f=Sd(d),T=ac(d,/[ \t]+--\x3e[ \t]+/g),g=Sd(d),f==null||T==null||g==null)st("Failed to parse VTT time code. Cue skipped:",l,m),l=null;else{for(f+=S,g+=S,S=m.slice(1).join(`
42
- `).trim(),i.has("global")?(m=i.get("global").clone(),m.startTime=f,m.endTime=g,m.payload=S):m=new Kt(f,g,S),Ba(d),f=Pa(d);f;)EC(m,f,t),Ba(d),f=Pa(d);ga(m,i),l!=null&&(m.id=l),l=m}l&&a.push(l)}return a};function EC(e,t,n){var i;(i=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=i[1],t=="middle"?e.textAlign=Dr:e.textAlign=uf[t.toUpperCase()]):(i=/^vertical:(lr|rl)$/.exec(t))?e.writingMode=i[1]=="lr"?"vertical-lr":"vertical-rl":(i=/^size:([\d.]+)%$/.exec(t))?e.size=Number(i[1]):(i=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(t))?(e.position=Number(i[1]),i[2]&&(t=i[2],e.positionAlign=t=="line-left"||t=="start"?"line-left":t=="line-right"||t=="end"?"line-right":t=="center"||t=="middle"?"center":sc)):(i=/^region:(.*)$/.exec(t))?(t=fD(n,i[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=on[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=fc,e.line=Number(n[1]),n[2]&&(e.lineAlign=on[n[2].toUpperCase()]))}function fD(e,t){return e=e.filter(function(n){return n.id==t}),e.length?e[0]:null}xe("shaka.text.VttTextParser",So),So.prototype.parseMedia=So.prototype.parseMedia,So.prototype.setManifestType=So.prototype.setManifestType,So.prototype.setSequenceMode=So.prototype.setSequenceMode,So.prototype.parseInit=So.prototype.parseInit,$n("text/vtt",function(){return new So}),$n('text/vtt; codecs="vtt"',function(){return new So}),$n('text/vtt; codecs="wvtt"',function(){return new So});function qs(){this.g=null}qs.prototype.parseInit=function(e){var t=this,n=!1;if(new Zt().box("moov",mt).box("trak",mt).box("mdia",mt).W("mdhd",function(i){i=vf(i.reader,i.version),t.g=i.timescale}).box("minf",mt).box("stbl",mt).W("stsd",Ul).box("wvtt",function(){n=!0}).parse(e),!this.g)throw new G(2,2,2008);if(!n)throw new G(2,2,2008)},qs.prototype.setSequenceMode=function(){},qs.prototype.setManifestType=function(){},qs.prototype.parseMedia=function(e,t){if(!e.length)return[];if(!this.g)throw new G(2,2,2008);var n=0,i=[],a,l=[],f=!1,d=!1,g=!1,m=null;if(new Zt().box("moof",mt).box("traf",mt).W("tfdt",function(j){f=!0,n=Qn(j.reader,j.version).baseMediaDecodeTime}).W("tfhd",function(j){m=Ou(j.reader,j.flags).Md}).W("trun",function(j){d=!0,i=jl(j.reader,j.version,j.flags).hh}).box("mdat",ys(function(j){g=!0,a=j})).parse(e,!1),!g&&!f&&!d)throw new G(2,2,2008);e=n;for(var S=new hn(a,0),T=b(i),x=T.next();!x.done;x=T.next()){x=x.value;var M=x.ih||m,R=x.yf?n+x.yf:e;e=R+(M||0);var L=0;do{var I=S.X();L+=I;var U=S.X(),N=null;Ud(U)=="vttc"?8<I&&(N=S.Tb(I-8)):S.skip(I-8),M&&N&&(I=dD(N,t.periodStart+R/this.g,t.periodStart+e/this.g),l.push(I))}while(x.sampleSize&&L<x.sampleSize)}return l.filter(Du)};function dD(e,t,n){var i,a,l;return new Zt().box("payl",ys(function(f){i=Rn(f)})).box("iden",ys(function(f){a=Rn(f)})).box("sttg",ys(function(f){l=Rn(f)})).parse(e),i?hD(i,a,l,t,n):null}function hD(e,t,n,i,a){if(e=new Kt(i,a,e),ga(e),t&&(e.id=t),n)for(t=new za(n),n=Pa(t);n;)EC(e,n,[]),Ba(t),n=Pa(t);return e}xe("shaka.text.Mp4VttParser",qs),qs.prototype.parseMedia=qs.prototype.parseMedia,qs.prototype.setManifestType=qs.prototype.setManifestType,qs.prototype.setSequenceMode=qs.prototype.setSequenceMode,qs.prototype.parseInit=qs.prototype.parseInit,$n('application/mp4; codecs="wvtt"',function(){return new qs});function Ys(){}Ys.prototype.parseInit=function(){},Ys.prototype.setSequenceMode=function(){},Ys.prototype.setManifestType=function(){},Ys.prototype.parseMedia=function(e){var t=Rn(e).replace(/\r+/g,"");if(t=t.trim(),e=[],t=="")return e;t=b(t.split(`
43
-
44
- `));for(var n=t.next();!n.done;n=t.next()){n=n.value.split(`
45
- `);var i=new za(n[0]),a=Sd(i),l=ac(i,/,/g);if(i=Sd(i),a==null||l==null||i==null)throw new G(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new Kt(a,i,n.slice(1).join(`
46
- `).trim()))}return e},xe("shaka.text.SbvTextParser",Ys),Ys.prototype.parseMedia=Ys.prototype.parseMedia,Ys.prototype.setManifestType=Ys.prototype.setManifestType,Ys.prototype.setSequenceMode=Ys.prototype.setSequenceMode,Ys.prototype.parseInit=Ys.prototype.parseInit,$n("text/x-subviewer",function(){return new Ys});function es(){this.g=new So}es.prototype.parseInit=function(){},es.prototype.setSequenceMode=function(){},es.prototype.setManifestType=function(){},es.prototype.parseMedia=function(e,t,n){return e=Rn(e),e=AC(e),e=at(Do(e)),this.g.parseMedia(e,t,n,[])};function AC(e){var t=`WEBVTT
47
-
48
- `;if(e=="")return t;e=e.replace(/\r+/g,""),e=e.trim(),e=b(e.split(`
49
-
50
- `));for(var n=e.next();!n.done;n=e.next())n=n.value.split(/\n/),n[0].match(/\d+/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join(`
51
- `).replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+`
52
-
53
- `;return t}xe("shaka.text.SrtTextParser",es),es.srt2webvtt=AC,es.prototype.parseMedia=es.prototype.parseMedia,es.prototype.setManifestType=es.prototype.setManifestType,es.prototype.setSequenceMode=es.prototype.setSequenceMode,es.prototype.parseInit=es.prototype.parseInit,$n("text/srt",function(){return new es});function Xs(){}Xs.prototype.parseInit=function(){},Xs.prototype.setSequenceMode=function(){},Xs.prototype.setManifestType=function(){},Xs.prototype.parseMedia=function(e){var t="",n="",i=null,a=null;for(a=Rn(e).split(/\r?\n\s*\r?\n/),e=b(a),a=e.next();!a.done;a=e.next()){var l=a.value;a=l,(l=gD.exec(l))&&(i=l[1],a=l[2]),i=="V4 Styles"||i=="V4+ Styles"?(t=a,t=n?t+(`
54
- `+a):a):i=="Events"&&(n=n?n+(`
55
- `+a):a)}for(i=[],a=null,t=b(t.split(/\r?\n/)),e=t.next();!e.done;e=t.next())if(e=e.value,!/^\s*;/.test(e)&&(l=CC.exec(e))){if(e=l[1].trim(),l=l[2].trim(),e=="Format")a=l.split(aA);else if(e=="Style"){e=l.split(aA),l={};for(var f=0;f<a.length&&f<e.length;f++)l[a[f]]=e[f];i.push(l)}}for(a=[],t=null,n=b(n.split(/\r?\n/)),l=n.next(),e={};!l.done;e={Vi:void 0},l=n.next())if(l=l.value,!/^\s*;/.test(l)&&(f=CC.exec(l))){if(l=f[1].trim(),f=f[2].trim(),l=="Format")t=f.split(aA);else if(l=="Dialogue"){f=f.split(aA),l={};for(var d=0;d<t.length&&d<f.length;d++)l[t[d]]=f[d];d=wC(l.Start);var g=wC(l.End);f=new Kt(d,g,f.slice(t.length-1).join(",").replace(/\\N/g,`
56
- `).replace(/\{[^}]+\}/g,"")),e.Vi=l.Style,(e=i.find(function(m){return function(S){return S.Name==m.Vi}}(e)))&&pD(f,e),a.push(f)}}return a};function pD(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=xC(n))&&(e.color=n),(n=t.BackColour)&&(n=xC(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=oi),t.Italic&&(e.fontStyle=ro),t.Underline&&e.textDecoration.push(bu),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=cc,e.textAlign="start";break;case 2:e.displayAlign=cc,e.textAlign=Dr;break;case 3:e.displayAlign=cc,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=Dr;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=Dr;break;case 11:e.displayAlign="center",e.textAlign="end"}(t=t.AlphaLevel)&&(e.opacity=parseFloat(t))}function xC(e){return e=parseInt(e.replace("&H",""),16),0<=e?"rgba("+(e&255)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function wC(e){return e=mD.exec(e),3600*(e[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}xe("shaka.text.SsaTextParser",Xs),Xs.prototype.parseMedia=Xs.prototype.parseMedia,Xs.prototype.setManifestType=Xs.prototype.setManifestType,Xs.prototype.setSequenceMode=Xs.prototype.setSequenceMode,Xs.prototype.parseInit=Xs.prototype.parseInit;var gD=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,CC=/^\s*([^:]+):\s*(.*)/,aA=/\s*,\s*/,mD=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;$n("text/x-ssa",function(){return new Xs});function MC(e,t){var n=e[t+1]&1?7:9;return t+n<=e.length&&(e=((e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5)-n,0<e)?{Vd:n,va:e}:null}function bC(e,t){var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=(e[t+2]&60)>>>2;if(i>n.length-1)return null;var a=((e[t+2]&192)>>>6)+1,l=(e[t+2]&1)<<2;return l|=(e[t+3]&192)>>>6,{sampleRate:n[i],channelCount:l,codec:"mp4a.40."+a}}function RC(e,t){if(t+1<e.length&&e[t]===255&&(e[t+1]&246)===240){var n=e[t+1]&1?7:9;if(t+n>=e.length)return!1;var i=(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5;return i<=n?!1:(t+=i,t===e.length||t+1<e.length&&e[t]===255&&(e[t+1]&246)===240)}return!1}function yD(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2||t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}function Fs(e){this.j=e,this.h=0,this.g=new Map,this.i=null}w=Fs.prototype,w.destroy=function(){this.g.clear()},w.isSupported=function(e){return e.toLowerCase().split(";")[0]=="audio/aac"?zi(this.convertCodecs("audio",e)):!1},w.convertCodecs=function(e,t){return t.toLowerCase().split(";")[0]=="audio/aac"?'audio/mp4; codecs="'+(Er(t)||"mp4a.40.2")+'"':t},w.getOriginalMimeType=function(){return this.j},w.transmux=function(e,t,n,i){for(var a=at(e),l=di(a),f=l.length;f<a.length&&!RC(a,f);f++);if(e=1e3*n.endTime,l=Xa(l),l.length&&n&&(l=l.find(function(S){return S.description==="com.apple.streaming.transportStreamTimestamp"}))&&(e=l.data),l=bC(a,f),!l)return Promise.reject(new G(2,3,3018,n?n.T()[0]:null));t.audioSamplingRate=l.sampleRate,t.channelsCount=l.channelCount;for(var d=[];f<a.length;){var g=MC(a,f);if(!g)return Promise.reject(new G(2,3,3018,n?n.T()[0]:null));var m=g.Vd+g.va;f+m<=a.length&&d.push({data:a.subarray(f+g.Vd,f+m),size:g.va,duration:1024,ub:0,flags:{wb:0,pb:0,ob:0,kb:0,mb:2,xb:0}}),f+=m}return a=l.sampleRate,e=Math.floor(e*a/1e3),i={id:t.id,type:"audio",codecs:l.codec,encrypted:t.encrypted&&0<t.drmInfos.length,timescale:a,duration:i,Ab:[],Ja:new Uint8Array([]),Va:new Uint8Array([]),bb:0,cb:0,data:{Ub:this.h,baseMediaDecodeTime:e,yb:d},stream:t},i=new qo([i]),n=t.id+"_"+n.i,this.g.has(n)?t=this.g.get(n):(t=Tf(i),this.g.set(n,t)),n=this.i!==t,i=Gd(i),this.i=t,this.h++,n?(t=gn(t,i),Promise.resolve(t)):Promise.resolve(i)},xe("shaka.transmuxer.AacTransmuxer",Fs),Fs.prototype.transmux=Fs.prototype.transmux,Fs.prototype.getOriginalMimeType=Fs.prototype.getOriginalMimeType,Fs.prototype.convertCodecs=Fs.prototype.convertCodecs,Fs.prototype.isSupported=Fs.prototype.isSupported,Fs.prototype.destroy=Fs.prototype.destroy,ya("audio/aac",function(){return new Fs("audio/aac")},tn);function DC(e,t){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return null;var n=e[t+4]>>6;if(3<=n)return null;var i=e[t+4]&63,a=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*i+n];if(t+a>e.length)return null;var l=e[t+6]>>5,f=0;l===2?f+=2:(l&1&&l!==1&&(f+=2),l&4&&(f+=2)),f=(e[t+6]<<8|e[t+7])>>12-f&1;var d=e[t+5]&7;return e=new Uint8Array([n<<6|e[t+5]>>3<<1|d>>2,(d&3)<<6|l<<3|f<<2|i>>4,i<<4&224]),{sampleRate:[48e3,44100,32e3][n],channelCount:[2,1,2,3,3,4,4,5][l]+f,Ja:e,va:a}}function vD(e,t){if(e[t]===11&&e[t+1]===119){var n=0,i=5;t+=i;for(var a,l;0<i;){l=e[t];var f=Math.min(i,8),d=8-f;a=4278190080>>>24+d<<d,a=(l&a)>>d,n=n?n<<f|a:a,t+=1,i-=f}if(16>n)return!0}return!1}function Gc(e){this.j=e,this.h=0,this.g=new Map,this.i=null}w=Gc.prototype,w.destroy=function(){this.g.clear()},w.isSupported=function(e){return e.toLowerCase().split(";")[0]=="audio/ac3"?zi(this.convertCodecs("audio",e)):!1},w.convertCodecs=function(e,t){return t.toLowerCase().split(";")[0]=="audio/ac3"?da()?'audio/mp4; codecs="ec-3"':'audio/mp4; codecs="ac-3"':t},w.getOriginalMimeType=function(){return this.j},w.transmux=function(e,t,n,i){e=at(e);for(var a=di(e),l=a.length;l<e.length&&!vD(e,l);l++);var f=1e3*n.endTime;a=Xa(a),a.length&&n&&(a=a.find(function(S){return S.description==="com.apple.streaming.transportStreamTimestamp"}))&&(f=a.data),a=0;for(var d=new Uint8Array([]),g=[];l<e.length;){var m=DC(e,l);if(!m)return Promise.reject(new G(2,3,3018,n?n.T()[0]:null));t.audioSamplingRate=m.sampleRate,t.channelsCount=m.channelCount,a=m.sampleRate,d=m.Ja,g.push({data:e.subarray(l,l+m.va),size:m.va,duration:1536,ub:0,flags:{wb:0,pb:0,ob:0,kb:0,mb:2,xb:0}}),l+=m.va}return e=Math.floor(f*a/1e3),i={id:t.id,type:"audio",codecs:"ac-3",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:a,duration:i,Ab:[],Ja:d,Va:new Uint8Array([]),bb:0,cb:0,data:{Ub:this.h,baseMediaDecodeTime:e,yb:g},stream:t},i=new qo([i]),n=t.id+"_"+n.i,this.g.has(n)?t=this.g.get(n):(t=Tf(i),this.g.set(n,t)),n=this.i!==t,i=Gd(i),this.i=t,this.h++,n?(t=gn(t,i),Promise.resolve(t)):Promise.resolve(i)},xe("shaka.transmuxer.Ac3Transmuxer",Gc),Gc.prototype.transmux=Gc.prototype.transmux,Gc.prototype.getOriginalMimeType=Gc.prototype.getOriginalMimeType,Gc.prototype.convertCodecs=Gc.prototype.convertCodecs,Gc.prototype.isSupported=Gc.prototype.isSupported,Gc.prototype.destroy=Gc.prototype.destroy,ya("audio/ac3",function(){return new Gc("audio/ac3")},tn);function IC(e,t){if(t+8>e.length||(e[t]<<8|e[t+1]<<0)!==2935)return null;var n=new Xo(e.subarray(t+2));Bn(n,2),Bn(n,3);var i=kt(n,11)+1<<1,a=kt(n,2);if(a==3){a=kt(n,2),a=[24e3,22060,16e3][a];var l=3}else a=[48e3,44100,32e3][a],l=kt(n,2);var f=kt(n,3),d=kt(n,1);return n=kt(n,5),t+i>e.byteLength?null:(e=Math.floor(i*a/(16*[1,2,3,6][l])),e=new Uint8Array([(e&8160)>>5,(e&31)<<3,a<<6|n<<1|0,0|f<<1|d<<0,0]),{sampleRate:a,channelCount:[2,1,2,3,3,4,4,5][f]+d,Ja:e,va:i})}function Vc(e){this.j=e,this.h=0,this.g=new Map,this.i=null}w=Vc.prototype,w.destroy=function(){this.g.clear()},w.isSupported=function(e){return e.toLowerCase().split(";")[0]=="audio/ec3"?zi(this.convertCodecs("audio",e)):!1},w.convertCodecs=function(e,t){return t.toLowerCase().split(";")[0]=="audio/ec3"?'audio/mp4; codecs="ec-3"':t},w.getOriginalMimeType=function(){return this.j},w.transmux=function(e,t,n,i){e=at(e);for(var a=di(e),l=a.length;l<e.length&&(e[l]<<8|e[l+1]<<0)!==2935;l++);var f=1e3*n.endTime;a=Xa(a),a.length&&n&&(a=a.find(function(S){return S.description==="com.apple.streaming.transportStreamTimestamp"}))&&(f=a.data),a=0;for(var d=new Uint8Array([]),g=[];l<e.length;){var m=IC(e,l);if(!m)return Promise.reject(new G(2,3,3018,n?n.T()[0]:null));t.audioSamplingRate=m.sampleRate,t.channelsCount=m.channelCount,a=m.sampleRate,d=m.Ja,g.push({data:e.subarray(l,l+m.va),size:m.va,duration:1536,ub:0,flags:{wb:0,pb:0,ob:0,kb:0,mb:2,xb:0}}),l+=m.va}return e=Math.floor(f*a/1e3),i={id:t.id,type:"audio",codecs:"ec-3",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:a,duration:i,Ab:[],Ja:d,Va:new Uint8Array([]),bb:0,cb:0,data:{Ub:this.h,baseMediaDecodeTime:e,yb:g},stream:t},i=new qo([i]),n=t.id+"_"+n.i,this.g.has(n)?t=this.g.get(n):(t=Tf(i),this.g.set(n,t)),n=this.i!==t,i=Gd(i),this.i=t,this.h++,n?(t=gn(t,i),Promise.resolve(t)):Promise.resolve(i)},xe("shaka.transmuxer.Ec3Transmuxer",Vc),Vc.prototype.transmux=Vc.prototype.transmux,Vc.prototype.getOriginalMimeType=Vc.prototype.getOriginalMimeType,Vc.prototype.convertCodecs=Vc.prototype.convertCodecs,Vc.prototype.isSupported=Vc.prototype.isSupported,Vc.prototype.destroy=Vc.prototype.destroy,ya("audio/ec3",function(){return new Vc("audio/ec3")},tn);function SD(e){if(!e.length)return null;var t=e.find(function(L){return L.type==7});if(e=e.find(function(L){return L.type==8}),!t||!e)return null;var n=new Xo(t.data),i=Qe(n);if(Qe(n),Qe(n),Jr(n),ED.includes(i)&&(i=Oe(n),i===3&&Bn(n,1),Jr(n),Jr(n),Bn(n,1),Ve(n))){i=i!==3?8:12;for(var a=0;a<i;a++)Ve(n)&&(6>a?Xd(n,16):Xd(n,64))}if(Jr(n),i=Oe(n),i===0)Oe(n);else if(i===1)for(Bn(n,1),Jr(n),Jr(n),i=Oe(n),a=0;a<i;a++)Jr(n);Jr(n),Bn(n,1);var l=Oe(n),f=Oe(n),d=kt(n,1);d===0&&Bn(n,1),Bn(n,1);var g=0,m=0,S=0,T=0;if(Ve(n)&&(g=Oe(n),m=Oe(n),S=Oe(n),T=Oe(n)),a=i=1,Ve(n)&&Ve(n)){var x=Qe(n),M=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],R=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<x&&16>=x?(i=M[x-1],a=R[x-1]):x===255&&(i=kt(n,16),a=kt(n,16))}return n=(2-d)*(f+1)*16-2*S-2*T,l=16*(l+1)-2*g-2*m,g=[],t=t.fullData,g.push(t.byteLength>>>8&255),g.push(t.byteLength&255),g=g.concat.apply(g,Ue(t)),t=[],e=e.fullData,t.push(e.byteLength>>>8&255),t.push(e.byteLength&255),t=t.concat.apply(t,Ue(e)),e=new Uint8Array([1,g[3],g[4],g[5],255,225].concat(g,[1],t)),{height:n,width:l,Va:e,bb:i,cb:a}}function TD(e){function t(R){a={data:new Uint8Array([]),frame:!1,isKeyframe:!1,pts:R.pts,dts:R.dts,nalus:[]}}function n(){if(a&&a.nalus.length&&a.frame){for(var R=[],L=b(a.nalus),I=L.next();!I.done;I=L.next()){I=I.value;var U=I.fullData.byteLength,N=new Uint8Array(4);N[0]=U>>24&255,N[1]=U>>16&255,N[2]=U>>8&255,N[3]=U&255,R.push(N),R.push(I.fullData)}a.data=gn.apply(Li,Ue(R)),i.push(a)}}for(var i=[],a=null,l=!1,f=0;f<e.length;f++){var d=e[f],g=d.nalus,m=!1;a&&g.length&&!l&&(n(),t(d)),g=b(d.nalus);for(var S=g.next();!S.done;S=g.next()){S=S.value;var T=!1;switch(S.type){case 1:var x=!1;T=!0;var M=S.data;m&&4<M.length&&(M=sv(new Xo(M)),M===2||M===4||M===7||M===9)&&(x=!0),x&&a&&a.frame&&!a.isKeyframe&&(n(),a=null),a||t(d),a.frame=!0,a.isKeyframe=x;break;case 5:T=!0,a&&a.frame&&!a.isKeyframe&&(n(),a=null),a||t(d),a.frame=!0,a.isKeyframe=!0;break;case 6:T=!0;break;case 7:m=T=!0;break;case 8:T=!0;break;case 9:l=T=!0,a&&a.frame&&(n(),a=null),a||t(d);break;case 12:T=!0;break;default:T=!1}a&&T&&a.nalus.push(S)}}return n(),i}var ED=[100,110,122,244,44,83,86,118,128,138,139,134];function AD(e){if(!e.length)return null;var t=e.find(function(f){return f.type==32}),n=e.find(function(f){return f.type==33}),i=e.find(function(f){return f.type==34});if(!t||!n||!i)return null;var a=xD(t.fullData);e=wD(n.fullData);var l=CD(i.fullData);return t=MD(t.fullData,n.fullData,i.fullData,{Wg:a.Wg,yh:a.yh,Bg:e.Bg,Cg:e.Cg,vg:e.vg,Ag:e.Ag,wg:e.wg,xg:e.xg,yg:e.yg,zg:e.zg,og:e.og,pg:e.pg,qg:e.qg,rg:e.rg,sg:e.sg,ug:e.ug,gg:e.gg,jf:e.jf,eg:e.eg,$f:e.$f,Zf:e.Zf,Yg:l.Yg}),{height:e.height,width:e.width,Va:t,bb:e.kl,cb:e.jl}}function xD(e){var t=new Xo(e,!0);return Qe(t),Qe(t),kt(t,4),kt(t,2),kt(t,6),e=kt(t,3),t=Ve(t),{Wg:e+1,yh:t}}function wD(e){e=new Xo(e,!0),Qe(e),Qe(e);var t=0,n=0,i=0,a=0;kt(e,4);var l=kt(e,3);Ve(e);for(var f=kt(e,2),d=kt(e,1),g=kt(e,5),m=Qe(e),S=Qe(e),T=Qe(e),x=Qe(e),M=Qe(e),R=Qe(e),L=Qe(e),I=Qe(e),U=Qe(e),N=Qe(e),j=Qe(e),B=[],Y=[],P=0;P<l;P++)B.push(Ve(e)),Y.push(Ve(e));if(0<l)for(P=l;8>P;P++)kt(e,2);for(P=0;P<l;P++)B[P]&&kt(e,88),Y[P]&&Qe(e);Oe(e),B=Oe(e),B==3&&kt(e,1),Y=Oe(e),P=Oe(e),Ve(e)&&(t+=Oe(e),n+=Oe(e),i+=Oe(e),a+=Oe(e));var V=Oe(e),F=Oe(e),K=Oe(e);if(Ve(e))for(var ee=0;ee<=l;ee++)Oe(e),Oe(e),Oe(e);else Oe(e),Oe(e),Oe(e);if(Oe(e),Oe(e),Oe(e),Oe(e),Oe(e),Oe(e),Ve(e)&&Ve(e))for(ee=0;4>ee;ee++)for(var Q=0;Q<(ee===3?2:6);Q++)if(Ve(e)){var ne=Math.min(64,1<<4+(ee<<1));1<ee&&$i(e);for(var ie=0;ie<ne;ie++)$i(e)}else Oe(e);for(Ve(e),Ve(e),Ve(e)&&(Qe(e),Oe(e),Oe(e),Ve(e)),ee=Oe(e),ne=Q=0;ne<ee;ne++)if(ie=!1,ne!==0&&(ie=Ve(e)),ie){ne===ee&&Oe(e),Ve(e),Oe(e);for(var ue=ie=0;ue<=Q;ue++){var ce=Ve(e),le=!1;ce||(le=Ve(e)),(ce||le)&&ie++}Q=ie}else{for(ue=Oe(e),ie=Oe(e),Q=ue+ie,ce=0;ce<ue;ce++)Oe(e),Ve(e);for(ue=0;ue<ie;ue++)Oe(e),Ve(e)}if(Ve(e))for(ee=Oe(e),Q=0;Q<ee;Q++){for(ne=0;ne<K+4;ne++)kt(e,1);kt(e,1)}if(ee=K=1,Q=0,Ve(e),Ve(e),Ve(e)){if(Ve(e)&&(ne=Qe(e),ie=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],ue=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<ne&&16>=ne?(K=ie[ne-1],ee=ue[ne-1]):ne===255&&(K=kt(e,16),ee=kt(e,16))),Ve(e)&&Ve(e),Ve(e)&&(kt(e,3),Ve(e),Ve(e)&&(Qe(e),Qe(e),Qe(e))),Ve(e)&&(Oe(e),Oe(e)),Ve(e),Ve(e),Ve(e),(ne=Ve(e))&&(Oe(e),Oe(e),Oe(e),Oe(e)),Ve(e)&&(kt(e,32),kt(e,32),Ve(e)&&Oe(e),Ve(e)))for(ue=!1,ne=Ve(e),ie=Ve(e),(ne||ie)&&((ue=Ve(e))&&(Qe(e),kt(e,5),Ve(e),kt(e,5)),kt(e,4),kt(e,4),ue&&kt(e,4),kt(e,5),kt(e,5),kt(e,5)),ce=0;ce<=l;ce++){var Se=!0;le=1,Ve(e)||(Se=Ve(e));var ke=!1;if(Se?Oe(e):ke=Ve(e),ke||(le=Oe(e)+1),ne){for(Se=0;Se<le;Se++)Oe(e),Oe(e),ue&&(Oe(e),Oe(e));Ve(e)}if(ie){for(Se=0;Se<le;Se++)Oe(e),Oe(e),ue&&(Oe(e),Oe(e));Ve(e)}}Ve(e)&&(Ve(e),Ve(e),Ve(e),Q=Oe(e),Oe(e),Oe(e),Oe(e),Oe(e))}return{vg:j,Bg:f,Cg:d,Ag:g,wg:m,xg:S,yg:T,zg:x,og:M,pg:R,qg:L,rg:I,sg:U,ug:N,jf:Q,gg:0,eg:B,$f:V,Zf:F,width:Y-(t+n)*(B===1||B===2?2:1),height:P-(i+a)*(B===1?2:1),kl:K,jl:ee}}function CD(e){var t=new Xo(e,!0);Qe(t),Qe(t),Oe(t),Oe(t),Ve(t),Ve(t),kt(t,3),Ve(t),Ve(t),Oe(t),Oe(t),$i(t),Ve(t),Ve(t),Ve(t)&&Oe(t),$i(t),$i(t),Ve(t),Ve(t),Ve(t),Ve(t),e=Ve(t),t=Ve(t);var n=1;return t&&e?n=0:t?n=3:e&&(n=2),{Yg:n}}function MD(e,t,n,i){var a=new Uint8Array(23+(5+e.byteLength)+(5+t.byteLength)+(5+n.byteLength));return a[0]=1,a[1]=(i.Bg&3)<<6|(i.Cg?1:0)<<5|i.Ag&31,a[2]=i.wg,a[3]=i.xg,a[4]=i.yg,a[5]=i.zg,a[6]=i.og,a[7]=i.pg,a[8]=i.qg,a[9]=i.rg,a[10]=i.sg,a[11]=i.ug,a[12]=i.vg,a[13]=240|(i.jf&3840)>>8,a[14]=i.jf&255,a[15]=252|i.Yg&3,a[16]=252|i.eg&3,a[17]=248|i.$f&7,a[18]=248|i.Zf&7,a[19]=0,a[20]=0,a[21]=(i.gg&3)<<6|(i.Wg&7)<<3|(i.yh?1:0)<<2|3,a[22]=3,a[23]=160,a[24]=0,a[25]=1,a[26]=(e.byteLength&65280)>>8,a[27]=(e.byteLength&255)>>0,a.set(e,28),a[23+(5+e.byteLength)]=161,a[e.byteLength+29]=0,a[e.byteLength+30]=1,a[e.byteLength+31]=(t.byteLength&65280)>>8,a[e.byteLength+32]=(t.byteLength&255)>>0,a.set(t,e.byteLength+33),a[23+(e.byteLength+10+t.byteLength)]=162,a[e.byteLength+10+t.byteLength+24]=0,a[e.byteLength+10+t.byteLength+25]=1,a[e.byteLength+10+t.byteLength+26]=(n.byteLength&65280)>>8,a[e.byteLength+10+t.byteLength+27]=(n.byteLength&255)>>0,a.set(n,e.byteLength+10+t.byteLength+28),a}function uA(e,t){var n=e[t+1]>>3&3,i=e[t+1]>>1&3,a=e[t+2]>>4&15,l=e[t+2]>>2&3;if(n!==1&&a!==0&&a!==15&&l!==3){var f=e[t+3]>>6;a=1e3*bD[14*(n===3?3-i:i===3?3:4)+a-1],l=RD[3*(n===3?0:n===2?1:2)+l],n=DD[n][i];var d=ID[i],g=Math.floor(n*a/l+(e[t+2]>>1&1))*d,m=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);return(m=m?parseInt(m[1],10):0)&&87>=m&&i===2&&224e3<=a&&f===0&&(e[t+3]|=128),{sampleRate:l,channelCount:f===3?1:2,va:g,il:8*n*d}}return null}function LC(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function OC(e,t){if(t+1<e.length&&LC(e,t)){var n=uA(e,t),i=4;return n&&n.va&&(i=n.va),t+=i,t===e.length||t+1<e.length&&LC(e,t)}return!1}var bD=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],RD=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],DD=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],ID=[0,1,1,4];function qc(e){this.j=e,this.h=0,this.g=new Map,this.i=null}w=qc.prototype,w.destroy=function(){this.g.clear()},w.isSupported=function(e){return e.toLowerCase().split(";")[0]=="audio/mpeg"?zi(this.convertCodecs("audio",e)):!1},w.convertCodecs=function(e,t){return t.toLowerCase().split(";")[0]=="audio/mpeg"?'audio/mp4; codecs="mp3"':t},w.getOriginalMimeType=function(){return this.j},w.transmux=function(e,t,n,i){for(var a=at(e),l=di(a).length;l<a.length&&!OC(a,l);l++);var f;for(e=[];l<a.length;){var d=uA(a,l);if(!d)return Promise.reject(new G(2,3,3018,n?n.T()[0]:null));f||(f=d),l+d.va<=a.length&&e.push({data:a.subarray(l,l+d.va),size:d.va,duration:1152,ub:0,flags:{wb:0,pb:0,ob:0,kb:0,mb:2,xb:0}}),l+=d.va}return f?(a=9e4*f.il/f.sampleRate*this.h,i={id:t.id,type:"audio",codecs:"mp3",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:f.sampleRate,duration:i,Ab:[],Ja:new Uint8Array([]),Va:new Uint8Array([]),bb:0,cb:0,data:{Ub:this.h,baseMediaDecodeTime:a,yb:e},stream:t},i=new qo([i]),n=t.id+"_"+n.i,this.g.has(n)?t=this.g.get(n):(t=Tf(i),this.g.set(n,t)),n=this.i!==t,i=Gd(i),this.i=t,this.h++,n?(t=gn(t,i),Promise.resolve(t)):Promise.resolve(i)):Promise.reject(new G(2,3,3018,n?n.T()[0]:null))},xe("shaka.transmuxer.Mp3Transmuxer",qc),qc.prototype.transmux=qc.prototype.transmux,qc.prototype.getOriginalMimeType=qc.prototype.getOriginalMimeType,qc.prototype.convertCodecs=qc.prototype.convertCodecs,qc.prototype.isSupported=qc.prototype.isSupported,qc.prototype.destroy=qc.prototype.destroy,ya("audio/mpeg",function(){return new qc("audio/mpeg")},tn);function Yc(e){this.h=e,this.g=null}w=Yc.prototype,w.destroy=function(){},w.isSupported=function(e){if(e.toLowerCase().split(";")[0]!="video/mp2t")return!1;var t=Er(e).split(","),n=Ki("audio",t);return t=Ki("video",t),!n||t||In(n)!="mp3"?!1:zi(this.convertCodecs("audio",e))},w.convertCodecs=function(e,t){return t.toLowerCase().split(";")[0]=="video/mp2t"?"audio/mpeg":t},w.getOriginalMimeType=function(){return this.h},w.transmux=function(e,t,n,i,a){if(this.g?this.g.clearData():this.g=new An,e=at(e),e=this.g.parse(e),e.Pd().audio!="mp3"||a!="audio")return Promise.reject(new G(2,3,3018,n?n.T()[0]:null));for(n=new Uint8Array([]),a=b(e.vb()),e=a.next();!e.done;e=a.next())if(e=e.value.data)for(t=0;t<e.length;)(i=uA(e,t))?(t+i.va<=e.length&&(n=gn(n,e.subarray(t,t+i.va))),t+=i.va):t++;return Promise.resolve(n)},xe("shaka.transmuxer.MpegTsTransmuxer",Yc),Yc.prototype.transmux=Yc.prototype.transmux,Yc.prototype.getOriginalMimeType=Yc.prototype.getOriginalMimeType,Yc.prototype.convertCodecs=Yc.prototype.convertCodecs,Yc.prototype.isSupported=Yc.prototype.isSupported,Yc.prototype.destroy=Yc.prototype.destroy,ya("video/mp2t",function(){return new Yc("video/mp2t")},Nh);/*
57
- @license
58
- MSS Transmuxer
59
- Copyright 2015 Dash Industry Forum
60
- SPDX-License-Identifier: BSD-3-Clause
61
- */function Ks(e){this.h=e,(this.g=fE.get("ISOBoxer")())&&LD(this)}function LD(e){function t(){this._procFullBox(),this.flags&1&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8)),this._procField("sample_count","uint",32),this._procEntries("entry",this.sample_count,function(n){this._procEntryField(n,"InitializationVector","data",8),this.flags&2&&(this._procEntryField(n,"NumberOfEntries","uint",16),this._procSubEntries(n,"clearAndCryptedData",n.NumberOfEntries,function(i){this._procEntryField(i,"BytesOfClearData","uint",16),this._procEntryField(i,"BytesOfEncryptedData","uint",32)}))})}e.g.addBoxProcessor("saio",function(){this._procFullBox(),this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("entry_count","uint",32),this._procFieldArray("offset",this.entry_count,"uint",this.version===1?64:32)}),e.g.addBoxProcessor("saiz",function(){this._procFullBox(),this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("default_sample_info_size","uint",8),this._procField("sample_count","uint",32),this.default_sample_info_size===0&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)}),e.g.addBoxProcessor("senc",t),e.g.addBoxProcessor("uuid",function(){for(var n=!0,i=0;16>i;i++)this.usertype[i]!==OD[i]&&(n=!1);n&&(this._parsing&&(this.type="sepiff"),t.call(this))})}w=Ks.prototype,w.destroy=function(){},w.isSupported=function(e,t){var n=e.startsWith("mss/");return!this.g||!n?!1:t?zi(this.convertCodecs(t,e)):(t=this.convertCodecs("audio",e),e=this.convertCodecs("video",e),zi(t)||zi(e))},w.convertCodecs=function(e,t){return t.replace("mss/","")},w.getOriginalMimeType=function(){return this.h},w.transmux=function(e,t,n){if(!n)return Promise.resolve(at(e));if(!t.mssPrivateData)return Promise.reject(new G(2,3,3020,n?n.T()[0]:null));try{var i,a=this.g.parseBuffer(e),l=a.fetch("tfhd");l.track_ID=t.id+1;var f=a.fetch("tfdt"),d=a.fetch("traf");f===null&&(f=this.g.createFullBox("tfdt",d,l),f.version=1,f.flags=0,f.baseMediaDecodeTime=Math.floor(n.startTime*t.mssPrivateData.timescale));var g=a.fetch("trun"),m=a.fetch("tfxd");m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),1);var S=a.fetch("tfrf");S&&S._parent.boxes.splice(S._parent.boxes.indexOf(S),1);var T=a.fetch("sepiff");if(T!==null){T.type="senc",T.usertype=void 0;var x=a.fetch("saio");if(x===null){x=this.g.createFullBox("saio",d),x.version=0,x.flags=0,x.entry_count=1,x.offset=[0];var M=this.g.createFullBox("saiz",d);if(M.version=0,M.flags=0,M.sample_count=T.sample_count,M.default_sample_info_size=0,M.sample_info_size=[],T.flags&2)for(i=0;i<T.sample_count;i+=1)M.sample_info_size[i]=10+6*T.entry[i].NumberOfEntries;else M.default_sample_info_size=8}}l.flags&=16777214,l.flags|=131072,g.flags|=1;var R=a.fetch("moof");g.data_offset=R.getLength()+8;var L=a.fetch("saio");L!==null&&(L.offset[0]=UC(R,"traf")+UC(d,"senc")+16);var I=at(a.write());return Promise.resolve(I)}catch(U){return U instanceof G?Promise.reject(U):Promise.reject(new G(2,3,3022,n?n.T()[0]:null))}};function UC(e,t){for(var n=8,i=0;i<e.boxes.length&&e.boxes[i].type!==t;i++)n+=e.boxes[i].size;return n}xe("shaka.transmuxer.MssTransmuxer",Ks),Ks.prototype.transmux=Ks.prototype.transmux,Ks.prototype.getOriginalMimeType=Ks.prototype.getOriginalMimeType,Ks.prototype.convertCodecs=Ks.prototype.convertCodecs,Ks.prototype.isSupported=Ks.prototype.isSupported,Ks.prototype.destroy=Ks.prototype.destroy;var OD=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);ya("mss/audio/mp4",function(){return new Ks("mss/audio/mp4")},tn),ya("mss/video/mp4",function(){return new Ks("mss/video/mp4")},tn);function Xc(e){this.m=e,this.g=0,this.i=new Map,this.l=this.h=this.j=null}w=Xc.prototype,w.destroy=function(){this.i.clear(),this.h&&this.h.destroy()},w.isSupported=function(e,t){if(e.toLowerCase().split(";")[0]!="video/mp2t")return!1;var n=e;t&&(n=this.convertCodecs(t,e));var i=Er(n).split(",");return n=Ki("audio",i),i=Ki("video",i),n&&(n=In(n),!UD.includes(n))||i&&(n=In(i),!kD.includes(n))?!1:t?zi(this.convertCodecs(t,e)):(t=this.convertCodecs("audio",e),e=this.convertCodecs("video",e),zi(t)||zi(e))},w.convertCodecs=function(e,t){return t.toLowerCase().split(";")[0]=="video/mp2t"?(t=Er(t).replace("mp4a.40.34","mp3").split(",").map(function(n){return hc(n,"audio/mp4")}).map(pc).join(","),e=="audio"?'audio/mp4; codecs="'+t+'"':'video/mp4; codecs="'+t+'"'):t},w.getOriginalMimeType=function(){return this.m},w.transmux=function(e,t,n,i,a){var l=at(e);if(a=="audio"&&!pu(l)){for(var f=di(l),d=f.length;d<l.length;d++)if(OC(l,d))return Promise.reject(new G(2,3,3018,n?n.T()[0]:null));for(d=f.length;d<l.length;d++)if(RC(l,d))return this.h||(this.h=new Fs("audio/aac")),this.h.transmux(e,t,n,i,a);return Promise.reject(new G(2,3,3018,n?n.T()[0]:null))}this.j?this.j.clearData():this.j=new An;var g=this.j.parse(l),m=[],S=g.Pd();try{var T=null;if(a=="video"){switch(S.video){case"avc":var x=[],M=null,R=g.Rc(),L=TD(R);if(!L.length)throw new G(2,3,3023,n?n.T()[0]:null);for(var I=0;I<L.length;I++){var U=L[I];M==null&&(M=U.dts);var N=void 0;N=I+1<L.length?(L[I+1].dts||0)-(U.dts||0):1<L.length?(U.dts||0)-(L[I-1].dts||0):9e4*(n.endTime-n.startTime),x.push({data:U.data,size:U.data.byteLength,duration:N,ub:Math.round((U.pts||0)-(U.dts||0)),flags:{wb:0,pb:0,ob:0,kb:0,mb:U.isKeyframe?2:1,xb:U.isKeyframe?0:1}})}for(var j=[],B=b(R),Y=B.next();!Y.done;Y=B.next())j.push.apply(j,Ue(Y.value.nalus));var P=SD(j);if(!P||M==null)throw new G(2,3,3018,n?n.T()[0]:null);t.height=P.height,t.width=P.width,T={id:t.id,type:"video",codecs:"avc1",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:9e4,duration:i,Ab:[],Ja:new Uint8Array([]),Va:P.Va,bb:P.bb,cb:P.cb,data:{Ub:this.g,baseMediaDecodeTime:M,yb:x},stream:t};break;case"hvc":var V=[],F=null,K=[],ee=g.Rc();if(!ee.length)throw new G(2,3,3023,n?n.T()[0]:null);for(var Q=0;Q<ee.length;Q++){var ne=ee[Q],ie=ne.nalus;K.push.apply(K,Ue(ie));for(var ue=!1,ce=[],le=!1,Se=b(ie),ke=Se.next();!ke.done;ke=Se.next()){var pt=ke.value;switch(pt.type){case 1:case 0:var $e=le=!0;break;case 19:case 20:case 21:ue=$e=le=!0;break;case 32:$e=!0;break;case 33:$e=!0;break;case 34:$e=!0;break;case 35:le=$e=!0;break;case 39:case 40:$e=!0;break;default:$e=!1}if(le&&$e){var fn=pt.fullData.byteLength,Ht=new Uint8Array(4);Ht[0]=fn>>24&255,Ht[1]=fn>>16&255,Ht[2]=fn>>8&255,Ht[3]=fn&255,ce.push(Ht),ce.push(pt.fullData)}}var Lt=ce.length?{data:gn.apply(Li,Ue(ce)),isKeyframe:ue}:null;if(Lt){F==null&&ne.dts!=null&&(F=ne.dts);var _t=void 0;_t=Q+1<ee.length?(ee[Q+1].dts||0)-(ne.dts||0):1<ee.length?(ne.dts||0)-(ee[Q-1].dts||0):9e4*(n.endTime-n.startTime),V.push({data:Lt.data,size:Lt.data.byteLength,duration:_t,ub:Math.round((ne.pts||0)-(ne.dts||0)),flags:{wb:0,pb:0,ob:0,kb:0,mb:Lt.isKeyframe?2:1,xb:Lt.isKeyframe?0:1}})}}var an=AD(K);if(!an||F==null)throw new G(2,3,3018,n?n.T()[0]:null);t.height=an.height,t.width=an.width,T={id:t.id,type:"video",codecs:"hvc1",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:9e4,duration:i,Ab:[],Ja:new Uint8Array([]),Va:an.Va,bb:an.bb,cb:an.cb,data:{Ub:this.g,baseMediaDecodeTime:F,yb:V},stream:t}}T&&(m.push(T),T=null)}if(a=="audio"){switch(S.audio){case"aac":for(var Rt=[],Yt,vt=null,Dt=null,kn=null,Vr=b(g.vb()),mi=Vr.next();!mi.done;mi=Vr.next()){var Ai=mi.value,hr=Ai.data;if(hr){var oa=0;if(Dt==-1&&kn)hr=gn(kn,Ai.data),Dt=null;else if(Dt!=null&&kn){oa=Math.max(0,Dt);var z1=gn(kn,hr.subarray(0,oa));Rt.push({data:z1,size:z1.byteLength,duration:1024,ub:0,flags:{wb:0,pb:0,ob:0,kb:0,mb:2,xb:0}}),Dt=kn=null}if(Yt=bC(hr,oa),!Yt)throw new G(2,3,3018,n?n.T()[0]:null);for(t.audioSamplingRate=Yt.sampleRate,t.channelsCount=Yt.channelCount,vt==null&&Ai.pts!==null&&(vt=Ai.pts);oa<hr.length;){var V0=MC(hr,oa);if(!V0){kn=hr.subarray(oa,hr.length),Dt=-1;break}var Uy=V0.Vd+V0.va;Dt=Math.max(0,oa+Uy-hr.length),Dt!=0?kn=hr.subarray(oa+V0.Vd,oa+Uy):oa+Uy<=hr.length&&Rt.push({data:hr.subarray(oa+V0.Vd,oa+Uy),size:V0.va,duration:1024,ub:0,flags:{wb:0,pb:0,ob:0,kb:0,mb:2,xb:0}}),oa+=Uy}}}if(!Yt||vt==null){if(!g.Rc().length)throw new G(2,3,3018,n?n.T()[0]:null);vt=9e4*n.startTime;var Kc=Ki("audio",t.codecs.split(","));if(!Kc||!t.channelsCount||!t.audioSamplingRate)throw new G(2,3,3018,n?n.T()[0]:null);Yt={sampleRate:t.audioSamplingRate,channelCount:t.channelsCount,codec:Kc};var x3=yD(Kc,t.channelsCount);if(!x3)throw new G(2,3,3018,n?n.T()[0]:null);for(var OI=vt+9e4*(n.endTime-n.startTime),zM=vt;zM<OI;)Rt.push({data:x3,size:x3.byteLength,duration:1024,ub:0,flags:{wb:0,pb:0,ob:0,kb:0,mb:2,xb:0}}),zM+=1024/Yt.sampleRate*9e4}var BM=Yt.sampleRate,UI=vt/9e4*BM;T={id:t.id,type:"audio",codecs:Yt.codec,encrypted:t.encrypted&&0<t.drmInfos.length,timescale:BM,duration:i,Ab:[],Ja:new Uint8Array([]),Va:new Uint8Array([]),bb:0,cb:0,data:{Ub:this.g,baseMediaDecodeTime:UI,yb:Rt},stream:t};break;case"ac3":for(var PM=[],NA=0,w3=new Uint8Array([]),_A=null,HM=b(g.vb()),C3=HM.next();!C3.done;C3=HM.next()){var M3=C3.value,b3=M3.data;_A==null&&M3.pts!==null&&(_A=M3.pts);for(var rT=0;rT<b3.length;){var ky=DC(b3,rT);ky?(t.audioSamplingRate=ky.sampleRate,t.channelsCount=ky.channelCount,NA=ky.sampleRate,w3=ky.Ja,PM.push({data:b3.subarray(rT,rT+ky.va),size:ky.va,duration:1536,ub:0,flags:{wb:0,pb:0,ob:0,kb:0,mb:2,xb:0}}),rT+=ky.va):rT++}}if(NA==0||w3.byteLength==0||_A==null)throw new G(2,3,3018,n?n.T()[0]:null);var kI=_A/9e4*NA;T={id:t.id,type:"audio",codecs:"ac-3",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:NA,duration:i,Ab:[],Ja:w3,Va:new Uint8Array([]),bb:0,cb:0,data:{Ub:this.g,baseMediaDecodeTime:kI,yb:PM},stream:t};break;case"ec3":for(var GM=[],jA=0,R3=new Uint8Array([]),zA=null,VM=b(g.vb()),D3=VM.next();!D3.done;D3=VM.next()){var I3=D3.value,L3=I3.data;zA==null&&I3.pts!==null&&(zA=I3.pts);for(var aT=0;aT<L3.length;){var Ny=IC(L3,aT);Ny?(t.audioSamplingRate=Ny.sampleRate,t.channelsCount=Ny.channelCount,jA=Ny.sampleRate,R3=Ny.Ja,GM.push({data:L3.subarray(aT,aT+Ny.va),size:Ny.va,duration:1536,ub:0,flags:{wb:0,pb:0,ob:0,kb:0,mb:2,xb:0}}),aT+=Ny.va):aT++}}if(jA==0||R3.byteLength==0||zA==null)throw new G(2,3,3018,n?n.T()[0]:null);var NI=zA/9e4*jA;T={id:t.id,type:"audio",codecs:"ec-3",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:jA,duration:i,Ab:[],Ja:R3,Va:new Uint8Array([]),bb:0,cb:0,data:{Ub:this.g,baseMediaDecodeTime:NI,yb:GM},stream:t};break;case"mp3":for(var qM=[],BA,PA=null,YM=b(g.vb()),O3=YM.next();!O3.done;O3=YM.next()){var U3=O3.value,jE=U3.data;if(jE){PA==null&&U3.pts!==null&&(PA=U3.pts);for(var B1=0;B1<jE.length;){var uT=uA(jE,B1);uT?(BA||(BA=uT),B1+uT.va<=jE.length&&qM.push({data:jE.subarray(B1,B1+uT.va),size:uT.va,duration:1152,ub:0,flags:{wb:0,pb:0,ob:0,kb:0,mb:2,xb:0}}),B1+=uT.va):B1++}}}if(!BA||PA==null)throw new G(2,3,3018,n?n.T()[0]:null);var XM=BA.sampleRate,_I=PA/9e4*XM;T={id:t.id,type:"audio",codecs:"mp3",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:XM,duration:i,Ab:[],Ja:new Uint8Array([]),Va:new Uint8Array([]),bb:0,cb:0,data:{Ub:this.g,baseMediaDecodeTime:_I,yb:qM},stream:t};break;case"opus":var FM=[],HA=null,Fp=g.H;if(!Fp)throw new G(2,3,3018,n?n.T()[0]:null);var Eo=[];switch(Fp.sj){case 1:case 2:Eo=[0];break;case 0:Eo=[255,1,1,0,1];break;case 128:Eo=[255,2,0,0,1];break;case 3:Eo=[1,2,1,0,2,1];break;case 4:Eo=[1,2,2,0,1,2,3];break;case 5:Eo=[1,3,2,0,4,1,2,3];break;case 6:Eo=[1,4,2,0,4,1,2,3,5];break;case 7:Eo=[1,4,2,0,4,1,2,3,5,6];break;case 8:Eo=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Eo=[1,1,2,0,1];break;case 131:Eo=[1,1,3,0,1,2];break;case 132:Eo=[1,1,4,0,1,2,3];break;case 133:Eo=[1,1,5,0,1,2,3,4];break;case 134:Eo=[1,1,6,0,1,2,3,4,5];break;case 135:Eo=[1,1,7,0,1,2,3,4,5,6];break;case 136:Eo=[1,1,8,0,1,2,3,4,5,6,7]}for(var KM=new Uint8Array([0,Fp.channelCount,0,0,Fp.sampleRate>>>24&255,Fp.sampleRate>>>17&255,Fp.sampleRate>>>8&255,Fp.sampleRate>>>0&255,0,0].concat(Ue(Eo))),QM=Fp.sampleRate,ZM=b(g.vb()),k3=ZM.next();!k3.done;k3=ZM.next()){var N3=k3.value,oT=N3.data;HA==null&&N3.pts!==null&&(HA=N3.pts);for(var zE=0;zE<oT.length;){for(var jI=(oT[zE+1]&16)!==0,zI=(oT[zE+1]&8)!==0,q0=zE+2,GA=0;oT[q0]===255;)GA+=255,q0+=1;GA+=oT[q0],q0+=1,q0+=jI?2:0,q0+=zI?2:0;var JM=oT.slice(q0,q0+GA);FM.push({data:JM,size:JM.byteLength,duration:960,ub:0,flags:{wb:0,pb:0,ob:0,kb:0,mb:2,xb:0}}),zE=q0+GA}}if(KM.byteLength==0||HA==null)throw new G(2,3,3018,n?n.T()[0]:null);t.audioSamplingRate=Fp.sampleRate,t.channelsCount=Fp.channelCount;var BI=HA/9e4*QM;T={id:t.id,type:"audio",codecs:"opus",encrypted:t.encrypted&&0<t.drmInfos.length,timescale:QM,duration:i,Ab:[],Ja:KM,Va:new Uint8Array([]),bb:0,cb:0,data:{Ub:this.g,baseMediaDecodeTime:BI,yb:FM},stream:t}}T&&(m.push(T),T=null)}}catch(j3){return j3&&j3.code==3023?Promise.resolve(new Uint8Array([])):Promise.reject(j3)}if(!m.length)return Promise.reject(new G(2,3,3018,n?n.T()[0]:null));var WM=new qo(m),_3=t.id+"_"+n.i;if(this.i.has(_3))var BE=this.i.get(_3);else BE=Tf(WM),this.i.set(_3,BE);var PI=this.l!==BE,$M=Gd(WM);if(this.l=BE,this.g++,PI){var HI=gn(BE,$M);return Promise.resolve(HI)}return Promise.resolve($M)},xe("shaka.transmuxer.TsTransmuxer",Xc),Xc.prototype.transmux=Xc.prototype.transmux,Xc.prototype.getOriginalMimeType=Xc.prototype.getOriginalMimeType,Xc.prototype.convertCodecs=Xc.prototype.convertCodecs,Xc.prototype.isSupported=Xc.prototype.isSupported,Xc.prototype.destroy=Xc.prototype.destroy;var UD=["aac","ac-3","ec-3","mp3","opus"],kD=["avc","hevc"];ya("video/mp2t",function(){return new Xc("video/mp2t")},dc);function kC(){}Xe(kC,Vi),xe("shaka.util.FairPlayUtils",kC);/*
62
- @license
63
- EME Encryption Scheme Polyfill
64
- Copyright 2019 Google LLC
65
- SPDX-License-Identifier: Apache-2.0
66
- */function NC(){}var CE;function _C(){CE||navigator.emeEncryptionSchemePolyfilled?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(CE=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=ND,navigator.emeEncryptionSchemePolyfilled=!0):console.debug("EmeEncryptionSchemePolyfill: EME not found")}function ND(e,t){var n=this,i;return q(function(a){return a.g==1?(console.assert(n==navigator,'bad "this" for requestMediaKeySystemAccess'),O(a,CE.call(n,e,t),2)):(i=a.h,qC(i)?(console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=CE,a.return(i)):(console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.requestMediaKeySystemAccess=jC,a.return(jC.call(n,e,t))))})}function jC(e,t){var n=this,i,a,l,f,d,g,m,S,T,x,M,R;return q(function(L){if(L.g==1){for(console.assert(n==navigator,'bad "this" for requestMediaKeySystemAccess'),i=VC(e),a=[],l=b(t),f=l.next();!f.done;f=l.next())d=f.value,g=zC(d.videoCapabilities,i),m=zC(d.audioCapabilities,i),d.videoCapabilities&&d.videoCapabilities.length&&!g.length||d.audioCapabilities&&d.audioCapabilities.length&&!m.length||(S=Object.assign({},d),S.videoCapabilities=g,S.audioCapabilities=m,a.push(S));if(!a.length)throw T=Error("Unsupported keySystem or supportedConfigurations."),T.name="NotSupportedError",T.code=DOMException.NOT_SUPPORTED_ERR,T;return O(L,CE.call(n,e,a),2)}return x=L.h,R=M=null,a[0]&&(a[0].videoCapabilities&&(M=a[0].videoCapabilities[0].encryptionScheme),a[0].audioCapabilities&&(R=a[0].audioCapabilities[0].encryptionScheme)),L.return(new oA(x,M,R))})}function zC(e,t){return e&&e.filter(function(n){return $4(n.encryptionScheme,t)})}xe("EmeEncryptionSchemePolyfill",NC),NC.install=_C;function BC(){}var ME;function PC(){ME||navigator.mediaCapabilitiesEncryptionSchemePolyfilled?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(ME=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=_D,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}function _D(e){var t=this,n,i;return q(function(a){switch(a.g){case 1:return console.assert(t==navigator.mediaCapabilities,'bad "this" for decodingInfo'),O(a,ME.call(t,e),2);case 2:if(n=a.h,!n.supported||!e.keySystemConfiguration)return a.return(n);if((i=n.keySystemAccess)&&qC(i))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=ME,a.return(n);if(console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=HC,i){a.A(3);break}return O(a,GC(e),4);case 4:return n.keySystemAccess=a.h,a.return(n);case 3:return a.return(HC.call(t,e))}})}function HC(e){var t=this,n,i,a,l,f,d,g;return q(function(m){switch(m.g){case 1:return console.assert(t==navigator.mediaCapabilities,'bad "this" for decodingInfo'),i=n=null,!e.keySystemConfiguration||(a=e.keySystemConfiguration,l=a.keySystem,i=a.audio&&a.audio.encryptionScheme,n=a.video&&a.video.encryptionScheme,f=VC(l),d={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},$4(i,f)&&$4(n,f))?O(m,ME.call(t,e),2):m.return(d);case 2:if(g=m.h,g.keySystemAccess){g.keySystemAccess=new oA(g.keySystemAccess,n,i),m.A(3);break}if(!e.keySystemConfiguration){m.A(3);break}return O(m,GC(e),5);case 5:g.keySystemAccess=m.h;case 3:return m.return(g)}})}function GC(e){var t,n;return q(function(i){if(i.g==1){var a=e.keySystemConfiguration,l=[],f=[];return a.audio&&l.push({robustness:a.audio.robustness||"",contentType:e.audio.contentType,encryptionScheme:a.audio.encryptionScheme}),a.video&&f.push({robustness:a.video.robustness||"",contentType:e.video.contentType,encryptionScheme:a.video.encryptionScheme}),a={initDataTypes:a.initDataType?[a.initDataType]:[],distinctiveIdentifier:a.distinctiveIdentifier,persistentState:a.persistentState,sessionTypes:a.sessionTypes},l.length&&(a.audioCapabilities=l),f.length&&(a.videoCapabilities=f),t=a,O(i,navigator.requestMediaKeySystemAccess(e.keySystemConfiguration.keySystem,[t]),2)}return n=i.h,i.return(n)})}xe("McEncryptionSchemePolyfill",BC),BC.install=PC;function oA(e,t,n){this.g=e,this.i=t||null,this.h=n||null,this.keySystem=e.keySystem}oA.prototype.getConfiguration=function(){var e=this.g.getConfiguration();if(e.videoCapabilities)for(var t=b(e.videoCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.i;if(e.audioCapabilities)for(t=b(e.audioCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.h;return e},oA.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function VC(e){return e.startsWith("com.widevine")||e.startsWith("com.microsoft")||e.startsWith("com.chromecast")||e.startsWith("com.adobe")||e.startsWith("org.w3")?"cenc":e.startsWith("com.apple")?"cbcs":e.startsWith("com.huawei")?"cenc":(console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",e,"Please contribute!"),null)}function qC(e){e=e.getConfiguration();var t=e.audioCapabilities&&e.audioCapabilities[0];return!!((e=e.videoCapabilities&&e.videoCapabilities[0]||t)&&e.encryptionScheme!==void 0)}function $4(e,t){return!!(!e||e==t||(e=="cbcs"||e=="cbcs-1-9")&&(zD||BD||jD))}function ex(){}function YC(){_C(),PC()}xe("EncryptionSchemePolyfills",ex),ex.install=YC;var jD=navigator.userAgent.includes("CrKey"),zD=100<=parseInt(navigator.userAgent.split("Firefox/").pop(),10),tx,XC=navigator.userAgent||"";if(XC.includes("Web0S")){var FC=XC.match(/Chrome\/(\d+)/);tx=FC?79<=parseInt(FC[1],10):!1}else tx=!1;var BD=tx;typeof la<"u"&&la.exports&&(la.exports=ex);/*
67
- @license
68
- Copyright 2013 Ali Al Dallal
69
-
70
- Licensed under the MIT license.
71
-
72
- Permission is hereby granted, free of charge, to any person obtaining a copy
73
- of this software and associated documentation files (the "Software"), to deal
74
- in the Software without restriction, including without limitation the rights
75
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
76
- copies of the Software, and to permit persons to whom the Software is
77
- furnished to do so, subject to the following conditions:
78
-
79
- The above copyright notice and this permission notice shall be included in
80
- all copies or substantial portions of the Software.
81
-
82
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
83
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
84
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
85
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
86
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
87
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
88
- SOFTWARE.
89
- */for(var L1={ach:{F:"Lwo",G:"Acholi"},ady:{F:"Адыгэбзэ",G:"Adyghe"},af:{F:"Afrikaans",G:"Afrikaans"},"af-NA":{F:"Afrikaans (Namibia)",G:"Afrikaans (Namibia)"},"af-ZA":{F:"Afrikaans (South Africa)",G:"Afrikaans (South Africa)"},ak:{F:"Tɕɥi",G:"Akan"},ar:{F:"العربية",G:"Arabic"},"ar-AR":{F:"العربية",G:"Arabic"},"ar-MA":{F:"العربية",G:"Arabic (Morocco)"},"ar-SA":{F:"العربية (السعودية)",G:"Arabic (Saudi Arabia)"},"ay-BO":{F:"Aymar aru",G:"Aymara"},az:{F:"Azərbaycan dili",G:"Azerbaijani"},"az-AZ":{F:"Azərbaycan dili",G:"Azerbaijani"},"be-BY":{F:"Беларуская",G:"Belarusian"},bg:{F:"Български",G:"Bulgarian"},"bg-BG":{F:"Български",G:"Bulgarian"},bn:{F:"বাংলা",G:"Bengali"},"bn-IN":{F:"বাংলা (ভারত)",G:"Bengali (India)"},"bn-BD":{F:"বাংলা(বাংলাদেশ)",G:"Bengali (Bangladesh)"},"bs-BA":{F:"Bosanski",G:"Bosnian"},ca:{F:"Català",G:"Catalan"},"ca-ES":{F:"Català",G:"Catalan"},cak:{F:"Maya Kaqchikel",G:"Kaqchikel"},"ck-US":{F:"ᏣᎳᎩ (tsalagi)",G:"Cherokee"},cs:{F:"Čeština",G:"Czech"},"cs-CZ":{F:"Čeština",G:"Czech"},cy:{F:"Cymraeg",G:"Welsh"},"cy-GB":{F:"Cymraeg",G:"Welsh"},da:{F:"Dansk",G:"Danish"},"da-DK":{F:"Dansk",G:"Danish"},de:{F:"Deutsch",G:"German"},"de-AT":{F:"Deutsch (Österreich)",G:"German (Austria)"},"de-DE":{F:"Deutsch (Deutschland)",G:"German (Germany)"},"de-CH":{F:"Deutsch (Schweiz)",G:"German (Switzerland)"},dsb:{F:"Dolnoserbšćina",G:"Lower Sorbian"},el:{F:"Ελληνικά",G:"Greek"},"el-GR":{F:"Ελληνικά",G:"Greek (Greece)"},en:{F:"English",G:"English"},"en-GB":{F:"English (UK)",G:"English (UK)"},"en-AU":{F:"English (Australia)",G:"English (Australia)"},"en-CA":{F:"English (Canada)",G:"English (Canada)"},"en-IE":{F:"English (Ireland)",G:"English (Ireland)"},"en-IN":{F:"English (India)",G:"English (India)"},"en-PI":{F:"English (Pirate)",G:"English (Pirate)"},"en-UD":{F:"English (Upside Down)",G:"English (Upside Down)"},"en-US":{F:"English (US)",G:"English (US)"},"en-ZA":{F:"English (South Africa)",G:"English (South Africa)"},"en@pirate":{F:"English (Pirate)",G:"English (Pirate)"},eo:{F:"Esperanto",G:"Esperanto"},"eo-EO":{F:"Esperanto",G:"Esperanto"},es:{F:"Español",G:"Spanish"},"es-AR":{F:"Español (Argentine)",G:"Spanish (Argentina)"},"es-419":{F:"Español (Latinoamérica)",G:"Spanish (Latin America)"},"es-CL":{F:"Español (Chile)",G:"Spanish (Chile)"},"es-CO":{F:"Español (Colombia)",G:"Spanish (Colombia)"},"es-EC":{F:"Español (Ecuador)",G:"Spanish (Ecuador)"},"es-ES":{F:"Español (España)",G:"Spanish (Spain)"},"es-LA":{F:"Español (Latinoamérica)",G:"Spanish (Latin America)"},"es-NI":{F:"Español (Nicaragua)",G:"Spanish (Nicaragua)"},"es-MX":{F:"Español (México)",G:"Spanish (Mexico)"},"es-US":{F:"Español (Estados Unidos)",G:"Spanish (United States)"},"es-VE":{F:"Español (Venezuela)",G:"Spanish (Venezuela)"},et:{F:"eesti keel",G:"Estonian"},"et-EE":{F:"Eesti (Estonia)",G:"Estonian (Estonia)"},eu:{F:"Euskara",G:"Basque"},"eu-ES":{F:"Euskara",G:"Basque"},fa:{F:"فارسی",G:"Persian"},"fa-IR":{F:"فارسی",G:"Persian"},"fb-LT":{F:"Leet Speak",G:"Leet"},ff:{F:"Fulah",G:"Fulah"},fi:{F:"Suomi",G:"Finnish"},"fi-FI":{F:"Suomi",G:"Finnish"},"fo-FO":{F:"Føroyskt",G:"Faroese"},fr:{F:"Français",G:"French"},"fr-CA":{F:"Français (Canada)",G:"French (Canada)"},"fr-FR":{F:"Français (France)",G:"French (France)"},"fr-BE":{F:"Français (Belgique)",G:"French (Belgium)"},"fr-CH":{F:"Français (Suisse)",G:"French (Switzerland)"},"fy-NL":{F:"Frysk",G:"Frisian (West)"},ga:{F:"Gaeilge",G:"Irish"},"ga-IE":{F:"Gaeilge (Gaelic)",G:"Irish (Gaelic)"},gl:{F:"Galego",G:"Galician"},"gl-ES":{F:"Galego",G:"Galician"},"gn-PY":{F:"Avañe'ẽ",G:"Guarani"},"gu-IN":{F:"ગુજરાતી",G:"Gujarati"},"gx-GR":{F:"Ἑλληνική ἀρχαία",G:"Classical Greek"},he:{F:"עברית‏",G:"Hebrew"},"he-IL":{F:"עברית‏",G:"Hebrew"},hi:{F:"हिन्दी",G:"Hindi"},"hi-IN":{F:"हिन्दी",G:"Hindi"},hr:{F:"Hrvatski",G:"Croatian"},"hr-HR":{F:"Hrvatski",G:"Croatian"},hsb:{F:"Hornjoserbšćina",G:"Upper Sorbian"},ht:{F:"Kreyòl",G:"Haitian Creole"},hu:{F:"Magyar",G:"Hungarian"},"hu-HU":{F:"Magyar",G:"Hungarian"},"hy-AM":{F:"Հայերեն",G:"Armenian"},id:{F:"Bahasa Indonesia",G:"Indonesian"},"id-ID":{F:"Bahasa Indonesia",G:"Indonesian"},is:{F:"Íslenska",G:"Icelandic"},"is-IS":{F:"Íslenska (Iceland)",G:"Icelandic (Iceland)"},it:{F:"Italiano",G:"Italian"},"it-IT":{F:"Italiano",G:"Italian"},ja:{F:"日本語",G:"Japanese"},"ja-JP":{F:"日本語",G:"Japanese"},"jv-ID":{F:"Basa Jawa",G:"Javanese"},"ka-GE":{F:"ქართული",G:"Georgian"},"kk-KZ":{F:"Қазақша",G:"Kazakh"},km:{F:"ភាសាខ្មែរ",G:"Khmer"},"km-KH":{F:"ភាសាខ្មែរ",G:"Khmer"},kab:{F:"Taqbaylit",G:"Kabyle"},kn:{F:"ಕನ್ನಡ",G:"Kannada"},"kn-IN":{F:"ಕನ್ನಡ (India)",G:"Kannada (India)"},ko:{F:"한국어",G:"Korean"},"ko-KR":{F:"한국어 (韩国)",G:"Korean (Korea)"},ku:{F:"Kurdî",G:"Kurdish"},"ku-TR":{F:"Kurdî",G:"Kurdish"},la:{F:"Latin",G:"Latin"},"la-VA":{F:"Latin",G:"Latin"},lb:{F:"Lëtzebuergesch",G:"Luxembourgish"},"li-NL":{F:"Lèmbörgs",G:"Limburgish"},lt:{F:"Lietuvių",G:"Lithuanian"},"lt-LT":{F:"Lietuvių",G:"Lithuanian"},lv:{F:"Latviešu",G:"Latvian"},"lv-LV":{F:"Latviešu",G:"Latvian"},mai:{F:"मैथिली, মৈথিলী",G:"Maithili"},"mg-MG":{F:"Malagasy",G:"Malagasy"},mk:{F:"Македонски",G:"Macedonian"},"mk-MK":{F:"Македонски (Македонски)",G:"Macedonian (Macedonian)"},ml:{F:"മലയാളം",G:"Malayalam"},"ml-IN":{F:"മലയാളം",G:"Malayalam"},"mn-MN":{F:"Монгол",G:"Mongolian"},mr:{F:"मराठी",G:"Marathi"},"mr-IN":{F:"मराठी",G:"Marathi"},ms:{F:"Bahasa Melayu",G:"Malay"},"ms-MY":{F:"Bahasa Melayu",G:"Malay"},mt:{F:"Malti",G:"Maltese"},"mt-MT":{F:"Malti",G:"Maltese"},my:{F:"ဗမာစကာ",G:"Burmese"},nb:{F:"Norsk (bokmål)",G:"Norwegian (bokmal)"},"nb-NO":{F:"Norsk (bokmål)",G:"Norwegian (bokmal)"},ne:{F:"नेपाली",G:"Nepali"},"ne-NP":{F:"नेपाली",G:"Nepali"},nl:{F:"Nederlands",G:"Dutch"},"nl-BE":{F:"Nederlands (België)",G:"Dutch (Belgium)"},"nl-NL":{F:"Nederlands (Nederland)",G:"Dutch (Netherlands)"},"nn-NO":{F:"Norsk (nynorsk)",G:"Norwegian (nynorsk)"},no:{F:"Norsk",G:"Norwegian"},oc:{F:"Occitan",G:"Occitan"},"or-IN":{F:"ଓଡ଼ିଆ",G:"Oriya"},pa:{F:"ਪੰਜਾਬੀ",G:"Punjabi"},"pa-IN":{F:"ਪੰਜਾਬੀ (ਭਾਰਤ ਨੂੰ)",G:"Punjabi (India)"},pl:{F:"Polski",G:"Polish"},"pl-PL":{F:"Polski",G:"Polish"},"ps-AF":{F:"پښتو",G:"Pashto"},pt:{F:"Português",G:"Portuguese"},"pt-BR":{F:"Português (Brasil)",G:"Portuguese (Brazil)"},"pt-PT":{F:"Português (Portugal)",G:"Portuguese (Portugal)"},"qu-PE":{F:"Qhichwa",G:"Quechua"},"rm-CH":{F:"Rumantsch",G:"Romansh"},ro:{F:"Română",G:"Romanian"},"ro-RO":{F:"Română",G:"Romanian"},ru:{F:"Русский",G:"Russian"},"ru-RU":{F:"Русский",G:"Russian"},"sa-IN":{F:"संस्कृतम्",G:"Sanskrit"},"se-NO":{F:"Davvisámegiella",G:"Northern Sámi"},"si-LK":{F:"පළාත",G:"Sinhala (Sri Lanka)"},sk:{F:"Slovenčina",G:"Slovak"},"sk-SK":{F:"Slovenčina (Slovakia)",G:"Slovak (Slovakia)"},sl:{F:"Slovenščina",G:"Slovenian"},"sl-SI":{F:"Slovenščina",G:"Slovenian"},"so-SO":{F:"Soomaaliga",G:"Somali"},sq:{F:"Shqip",G:"Albanian"},"sq-AL":{F:"Shqip",G:"Albanian"},sr:{F:"Српски",G:"Serbian"},"sr-RS":{F:"Српски (Serbia)",G:"Serbian (Serbia)"},su:{F:"Basa Sunda",G:"Sundanese"},sv:{F:"Svenska",G:"Swedish"},"sv-SE":{F:"Svenska",G:"Swedish"},sw:{F:"Kiswahili",G:"Swahili"},"sw-KE":{F:"Kiswahili",G:"Swahili (Kenya)"},ta:{F:"தமிழ்",G:"Tamil"},"ta-IN":{F:"தமிழ்",G:"Tamil"},te:{F:"తెలుగు",G:"Telugu"},"te-IN":{F:"తెలుగు",G:"Telugu"},tg:{F:"забо́ни тоҷикӣ́",G:"Tajik"},"tg-TJ":{F:"тоҷикӣ",G:"Tajik"},th:{F:"ภาษาไทย",G:"Thai"},"th-TH":{F:"ภาษาไทย (ประเทศไทย)",G:"Thai (Thailand)"},tl:{F:"Filipino",G:"Filipino"},"tl-PH":{F:"Filipino",G:"Filipino"},tlh:{F:"tlhIngan-Hol",G:"Klingon"},tr:{F:"Türkçe",G:"Turkish"},"tr-TR":{F:"Türkçe",G:"Turkish"},"tt-RU":{F:"татарча",G:"Tatar"},uk:{F:"Українська",G:"Ukrainian"},"uk-UA":{F:"Українська",G:"Ukrainian"},ur:{F:"اردو",G:"Urdu"},"ur-PK":{F:"اردو",G:"Urdu"},uz:{F:"O'zbek",G:"Uzbek"},"uz-UZ":{F:"O'zbek",G:"Uzbek"},vi:{F:"Tiếng Việt",G:"Vietnamese"},"vi-VN":{F:"Tiếng Việt",G:"Vietnamese"},"xh-ZA":{F:"isiXhosa",G:"Xhosa"},yi:{F:"ייִדיש",G:"Yiddish"},"yi-DE":{F:"ייִדיש (German)",G:"Yiddish (German)"},zh:{F:"中文",G:"Chinese"},"zh-HANS":{F:"中文简体",G:"Chinese Simplified"},"zh-HANT":{F:"中文繁體",G:"Chinese Traditional"},"zh-CN":{F:"中文(中国)",G:"Chinese Simplified (China)"},"zh-HK":{F:"中文(香港)",G:"Chinese Traditional (Hong Kong)"},"zh-SG":{F:"中文(新加坡)",G:"Chinese Simplified (Singapore)"},"zh-TW":{F:"中文(台灣)",G:"Chinese Traditional (Taiwan)"},"zu-ZA":{F:"isiZulu",G:"Zulu"}},KC=b(Object.keys(L1)),nx=KC.next();!nx.done;nx=KC.next()){var QC=nx.value;L1[QC.toLowerCase()]=L1[QC]}function St(e,t){var n=this;this.parent=e,this.controls=t,this.eventManager=new Ft,this.localization=this.controls.za,this.player=this.controls.vc(),this.video=this.controls.zc(),this.adManager=this.player.Qe(),this.ad=t.getAd(),this.eventManager.o(this.adManager,"ad-started",function(i){n.ad=i.ad}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.ad=null})}St.prototype.release=function(){this.eventManager.release(),this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null},xe("shaka.ui.Element",St),St.prototype.release=St.prototype.release;function lA(e){return ix(e,"shaka-back-to-overflow-button")}function ix(e,t){return e=e.getElementsByClassName(t),e.length?e[0]:null}function JS(e){e&&(e=ix(e,"shaka-chosen-item"))&&e.parentElement.focus()}function O1(){var e=Ne("i");return e.classList.add("material-icons-round"),e.classList.add("shaka-chosen-item"),e.textContent="done",e.ariaHidden="true",e}function ht(e,t){e&&(t?e.classList.remove("shaka-hidden"):e.classList.add("shaka-hidden"))}function WS(e,t){var n=Math.floor(e/3600),i=Math.floor(e/60%60);return e=Math.floor(e%60),10>e&&(e="0"+e),e=i+":"+e,t&&(10>i&&(e="0"+e),e=n+":"+e),e}function sA(e,t){St.call(this,e,t);var n=this;this.i=Ne("div"),this.i.classList.add("shaka-ad-counter"),this.parent.appendChild(this.i),this.h=Ne("span"),this.h.classList.add("shaka-ad-counter-span"),this.i.appendChild(this.h),this.g=new Ke(function(){if(n.ad.isLinear()){var i=Math.round(n.ad.getRemainingTime()),a=n.ad.getDuration();i!=-1&&a!=-1&&(0<i?(i=WS(a-i,!1)+" / "+WS(a,!1),1<n.ad.getSequenceLength()?n.h.textContent=i:(a=n.localization.resolve("AD_TIME"),n.h.textContent=a.replace("[AD_TIME]",i))):(n.g.stop(),n.h.textContent=""))}}),this.eventManager.o(this.localization,"locale-updated",function(){}),this.eventManager.o(this.localization,"locale-changed",function(){}),this.eventManager.o(this.adManager,"ad-started",function(){n.g.Ia(),n.g.xa(.5)}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.g.stop(),n.h.textContent=""}),this.ad&&(this.g.Ia(),this.g.xa(.5))}Xe(sA,St),sA.prototype.release=function(){this.g.stop(),this.g=null,St.prototype.release.call(this)},xe("shaka.ui.AdCounter",sA);function rx(e,t){St.call(this,e,t);var n=this;this.g=Ne("div"),this.g.classList.add("shaka-ad-position"),ht(this.g,!1),this.parent.appendChild(this.g),this.h=Ne("span"),this.h.classList.add("shaka-ad-position-span"),this.g.appendChild(this.h),this.eventManager.o(this.localization,"locale-updated",function(){n.ad&&cA(n)}),this.eventManager.o(this.localization,"locale-changed",function(){n.ad&&cA(n)}),this.eventManager.o(this.adManager,"ad-started",function(){cA(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.h.textContent="",ht(n.g,!1)}),this.ad&&cA(this)}Xe(rx,St);function cA(e){var t=e.ad.getSequenceLength();if(1<t&&e.ad.isLinear()){var n=e.ad.getPositionInSequence();e.h.textContent=e.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(n)).replace("[NUM_ADS]",String(t)),ht(e.g,!0)}}xe("shaka.ui.AdPosition",rx);function Oy(e,t){St.call(this,e,t);var n=this;this.j=this.controls.g,this.h=this.controls.j,this.i=[],this.g=Ne("div"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("shaka-context-menu"),this.g.classList.add("shaka-hidden"),this.h.appendChild(this.g),this.eventManager.o(this.h,"contextmenu",function(i){if(n.g.classList.contains("shaka-hidden")){i.preventDefault();var a=n.h.getBoundingClientRect();n.g.style.left=i.clientX-a.left+"px",n.g.style.top=i.clientY-a.top+"px",ht(n.g,!0)}else ht(n.g,!1)}),this.eventManager.o(oe,"click",function(){ht(n.g,!1)}),this.eventManager.o(this.g,"click",function(){ht(n.g,!1)}),PD(this)}Xe(Oy,St),Oy.prototype.release=function(){this.h=null;for(var e=b(this.i),t=e.next();!t.done;t=e.next())t.value.release();this.i=[],St.prototype.release.call(this)},Oy.prototype.Th=function(){ht(this.g,!1)};function U1(e,t){ZC.set(e,t)}function PD(e){for(var t=b(e.j.contextMenuElements),n=t.next();!n.done;n=t.next()){n=n.value;var i=ZC.get(n);i?e.i.push(i.create(e.g,e.controls)):st("Unrecognized context menu element:",n)}}xe("shaka.ui.ContextMenu",Oy),Oy.registerElement=U1,Oy.prototype.closeMenu=Oy.prototype.Th;var ZC=new Map;function Yp(e,t){St.call(this,e,t);var n=this;this.button=zn(),this.parent.appendChild(this.button),this.eventManager.o(this.localization,"locale-updated",function(){n.g()}),this.eventManager.o(this.localization,"locale-changed",function(){n.g()}),this.eventManager.o(this.video,"play",function(){n.g(),n.h()}),this.eventManager.o(this.video,"pause",function(){n.g(),n.h()}),this.eventManager.o(this.video,"seeking",function(){n.g(),n.h()}),this.eventManager.o(this.adManager,"ad-paused",function(){n.g(),n.h()}),this.eventManager.o(this.adManager,"ad-resumed",function(){n.g(),n.h()}),this.eventManager.o(this.adManager,"ad-started",function(){n.g(),n.h()}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.g(),n.h()}),this.eventManager.o(this.button,"click",function(){n.controls.Ca()&&IE(n.controls)}),this.ad&&(this.g(),this.h())}Xe(Yp,St),Yp.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var e=this.ad.isPaused();else e=this.controls,e=e.u.paused&&!e.U;return e},Yp.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.player?this.player.isEnded():!0},Yp.prototype.g=function(){},Yp.prototype.h=function(){},xe("shaka.ui.PlayButton",Yp);function bE(e,t){Yp.call(this,e,t),this.button.classList.add("shaka-play-button"),this.button.classList.add("shaka-no-propagation"),this.h(),this.g()}Xe(bE,Yp),bE.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")},bE.prototype.g=function(){var e=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(e)},xe("shaka.ui.BigPlayButton",bE);function $S(e,t){St.call(this,e,t);var n=this;this.s=null,this.j=this.C=!1,this.B=this.u=null,this.l=new Ke(function(){parseInt(n.h.textContent,10)===0&&Ax(n.controls);var i=parseInt(n.h.textContent,10);i!==0&&(n.video.currentTime=n.controls.Fg()+i),n.g.style.opacity="0",n.C=!1,n.h.textContent="0s"}),this.g=Ne("div"),this.parent.appendChild(this.g),this.h=Ne("span"),this.h.textContent="0s",this.g.appendChild(this.h),this.i=Ne("span"),this.i.classList.add("shaka-forward-rewind-container-icon"),this.g.appendChild(this.i),this.m=!1,this.eventManager.o(this.g,"touchstart",function(i){n.controls.Ca()&&(0<i.touches.length&&(n.u=i.touches[0].clientX,n.B=i.touches[0].clientY),n.j=!1)}),this.eventManager.o(this.g,"touchmove",function(i){if(0<i.touches.length&&n.u!=null&&n.B!=null){var a=i.touches[0].clientX-n.u;i=i.touches[0].clientY-n.B,10<Math.sqrt(a*a+i*i)&&(n.j=!0)}}),this.eventManager.o(this.g,"touchend",function(i){if(n.controls.Ca()&&!n.j){if(n.controls.Id())i.preventDefault(),n.controls.Sc();else if(0<n.controls.g.tapSeekDistance){if(i.preventDefault(),i=n.controls.g.tapSeekDistance,!n.C)n.C=!0,n.s=Date.now(),n.l.$(.5);else if(n.s+500>Date.now()){n.l.stop(),n.s=Date.now();var a=parseInt(n.h.textContent,10);a=n.m?a-i:a+i,n.h.textContent=a.toString()+"s",n.g.style.opacity="1",n.l.$(.5)}}}})}Xe($S,St),xe("shaka.ui.HiddenSeekButton",$S);function ax(e,t){$S.call(this,e,t),this.g.classList.add("shaka-fast-forward-container"),this.i.textContent="fast_forward",this.m=!1}Xe(ax,$S),xe("shaka.ui.HiddenFastForwardButton",ax);function ux(e,t){$S.call(this,e,t),this.g.classList.add("shaka-rewind-container"),this.i.textContent="fast_rewind",this.m=!0}Xe(ux,$S),xe("shaka.ui.HiddenRewindButton",ux);function aa(e,t,n,i){St.call(this,e,t);var a=this;this.container=Ne("div"),this.container.classList.add("shaka-range-container"),this.container.classList.add.apply(this.container.classList,Ue(n)),this.i=!1,this.bar=document.createElement("input"),this.H=new Ke(function(){a.onChangeEnd(),a.i=!1}),this.bar.classList.add("shaka-range-element"),this.bar.classList.add.apply(this.bar.classList,Ue(i)),this.bar.type="range",this.bar.step="any",this.bar.min="0",this.bar.max="1",this.bar.value="0",this.bar.disabled=!this.controls.Ca(),this.container.appendChild(this.bar),this.parent.appendChild(this.container),this.M=new Ke(function(){a.bar.disabled=!1}),this.eventManager.o(this.controls,"showingui",function(){a.M.$(0)}),this.eventManager.o(this.controls,"hidingui",function(){a.M.stop(),a.bar.disabled=!0}),this.eventManager.o(this.bar,"mousedown",function(l){a.bar.disabled||(a.i=!0,a.onChangeStart(),l.stopPropagation())}),this.eventManager.o(this.bar,"touchstart",function(l){a.bar.disabled||(a.i=!0,fA(a,l),a.onChangeStart(),l.stopPropagation())}),this.eventManager.o(this.bar,"input",function(){a.onChange()}),this.eventManager.o(this.bar,"touchmove",function(l){a.i&&(fA(a,l),a.onChange(),l.stopPropagation())}),this.eventManager.o(this.bar,"touchend",function(l){a.i&&(a.i=!1,fA(a,l),a.onChangeEnd(),l.stopPropagation())}),this.eventManager.o(this.bar,"touchcancel",function(l){a.i&&(a.i=!1,fA(a,l),a.onChangeEnd(),l.stopPropagation())}),this.eventManager.o(this.bar,"mouseup",function(l){a.i&&(a.i=!1,a.onChangeEnd(),l.stopPropagation())}),this.eventManager.o(this.bar,"blur",function(){a.i&&(a.i=!1,a.onChangeEnd())}),this.eventManager.o(this.bar,"contextmenu",function(l){l.preventDefault(),l.stopPropagation()})}Xe(aa,St),w=aa.prototype,w.release=function(){this.H&&(this.H.stop(),this.H=null),St.prototype.release.call(this)},w.setRange=function(e,t){this.bar.min=e,this.bar.max=t},w.onChangeStart=function(){},w.onChange=function(){},w.onChangeEnd=function(){},w.changeTo=function(e){this.i||(this.i=!0,this.onChangeStart());var t=parseFloat(this.bar.min),n=parseFloat(this.bar.max);this.bar.value=e>n?n:e<t?t:e,this.onChange(),this.H.$(.5)},w.getValue=function(){return parseFloat(this.bar.value)},w.setValue=function(e){this.i||(this.bar.value=e)};function fA(e,t){t.preventDefault();var n=t.changedTouches[0],i=e.bar.getBoundingClientRect();t=parseFloat(e.bar.min);var a=parseFloat(e.bar.max);n=t+(a-t)/i.width*(n.clientX-i.left),n<t?n=t:n>a&&(n=a),e.bar.value=n}xe("shaka.ui.RangeElement",aa),aa.prototype.setValue=aa.prototype.setValue,aa.prototype.getValue=aa.prototype.getValue,aa.prototype.changeTo=aa.prototype.changeTo,aa.prototype.onChangeEnd=aa.prototype.onChangeEnd,aa.prototype.onChange=aa.prototype.onChange,aa.prototype.onChangeStart=aa.prototype.onChangeStart,aa.prototype.setRange=aa.prototype.setRange;function RE(e,t){aa.call(this,e,t,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var n=this;this.D=Ne("div"),this.D.classList.add("shaka-ad-markers"),this.container.insertBefore(this.D,this.container.childNodes[0]),this.J=this.controls.g,this.u=new Ke(function(){var i=n.getValue();n.player.V()||i==n.video.duration&&(i-=.001),n.video.currentTime=i}),this.B=new Ke(function(){JC(n)}),this.N=!1,this.h=Ne("div"),this.h.id="shaka-player-ui-thumbnail-container",this.g=Ne("img"),this.g.id="shaka-player-ui-thumbnail-image",this.g.draggable=!1,this.L=Ne("div"),this.L.id="shaka-player-ui-thumbnail-time-container",this.I=Ne("div"),this.I.id="shaka-player-ui-thumbnail-time",this.L.appendChild(this.I),this.h.appendChild(this.g),this.h.appendChild(this.L),this.container.appendChild(this.h),this.j=Ne("div"),this.j.id="shaka-player-ui-time-container",this.container.appendChild(this.j),this.l=this.m=null,this.K=!1,this.s=new Ke(function(){DE(n)}),this.C=[],this.eventManager.o(this.localization,"locale-updated",function(){return lx(n)}),this.eventManager.o(this.localization,"locale-changed",function(){return lx(n)}),this.eventManager.o(this.adManager,"ad-started",function(){ox(n)||ht(n.container,!1)}),this.eventManager.o(this.adManager,"ad-stopped",function(){ox(n)&&ht(n.container,!0)}),this.eventManager.o(this.adManager,"ad-cue-points-changed",function(i){n.C=i.cuepoints,WC(n)}),this.eventManager.o(this.player,"unloading",function(){n.C=[],WC(n),n.l&&(n.l.abort(),n.l=null),n.m=null,DE(n),sx(n)}),this.eventManager.o(this.bar,"mousemove",function(i){var a=n.bar.getBoundingClientRect(),l=parseFloat(n.bar.min),f=parseFloat(n.bar.max);i=Math.max(0,i.clientX-a.left),a=Math.min(f,Math.round(l+(f-l)/a.width*i)),n.player.Gg().length?(sx(n),eM(n,i,a)):(DE(n),$C(n,i,a))}),this.eventManager.o(this.container,"mouseleave",function(){sx(n),n.s.stop(),n.s.$(.25)}),this.setValue(this.video.currentTime),this.update(),lx(this),this.ad&&ht(this.container,!1)}Xe(RE,aa),w=RE.prototype,w.release=function(){this.u&&(this.u.stop(),this.u=null,this.B.stop(),this.B=null),aa.prototype.release.call(this)},w.onChangeStart=function(){this.N=!this.video.paused,this.controls.rh(!0),this.video.pause(),this.s.stop(),this.K=!0},w.onChange=function(){if(this.video.duration)if(this.update(),this.u.$(.125),this.player.Gg().length){var e=parseFloat(this.bar.min),t=parseFloat(this.bar.max),n=this.bar.getBoundingClientRect(),i=Math.round(this.getValue());eM(this,(i-e)/((t-e)/n.width),i)}else DE(this)},w.onChangeEnd=function(){this.u.Ia(),this.controls.rh(!1),this.N&&this.video.play(),this.K&&(this.K=!1,this.s.stop(),this.s.$(.25))},w.isShowing=function(){return!this.container.classList.contains("shaka-hidden")},w.update=function(){var e=this.J.seekBarColors,t=this.getValue(),n=this.video.buffered.length,i=n?this.video.buffered.start(0):0,a=n?this.video.buffered.end(n-1):0;n=this.player.Aa();var l=n.end-n.start;this.setRange(n.start,n.end),ox(this)?(ht(this.container,!0),i=(Math.max(i,n.start)-n.start)/l||0,a=(Math.min(a,n.end)-n.start)/l||0,t=(Math.min(Math.max(t,n.start),n.end)-n.start)/l||0,this.container.style.background="linear-gradient("+["to right",(this.J.showUnbufferedStart?e.base:e.played)+" "+100*i+"%",e.played+" "+100*i+"%",e.played+" "+100*t+"%",e.buffered+" "+100*t+"%",e.buffered+" "+100*a+"%",e.base+" "+100*a+"%"].join()+")"):ht(this.container,!1)};function JC(e){if(e.C.length){for(var t=e.player.Aa(),n=t.end-t.start,i=["to right"],a=[],l=e.J.seekBarColors.adBreaks,f=!1,d=b(e.C),g=d.next();!g.done;g=d.next())if(g=g.value,g.start==-1&&!g.end)f=!0;else if(!g.end&&g.start>=t.start||typeof g.end=="number"&&g.end>t.start){var m=(Math.max(g.start,t.start)-t.start)/n||0,S=m+.01;g.end&&(S=(g.end-t.start)/n||0),a.push({start:m,end:S})}for(a=a.sort(function(T,x){return T.start-x.start}),t=b(a),n=t.next();!n.done;n=t.next())n=n.value,i.push("transparent "+100*n.start+"%"),i.push(l+" "+100*n.start+"%"),i.push(l+" "+100*n.end+"%"),i.push("transparent "+100*n.end+"%");f&&(i.push("transparent 99%"),i.push(l+" 99%")),e.D.style.background="linear-gradient("+i.join(",")+")"}else e.D.style.background="transparent",e.B.stop()}function WC(e){function t(){JC(e);var n=e.player.Aa();n=n.end-n.start,e.player.V()&&5<n&&e.B.xa(.25)}e.player.Z?t():e.eventManager.wa(e.player,"loaded",t)}function ox(e){var t=e.player.Aa();return t=t.end-t.start,e.player.V()&&(5>t||!isFinite(t))?!1:e.ad==null||!e.ad.isLinear()}function lx(e){e.bar.ariaLabel=e.localization.resolve("SEEK")}function $C(e,t,n){var i=e.j.clientWidth;e.j.style.width="auto",e.j.style.height="20px",e.j.style.top="-30px",e.j.style.left=Math.min(e.bar.offsetWidth-i,Math.max(0,t-i/2))+"px",e.j.style.right="",e.j.style.visibility="visible",t=e.player.Aa(),e.player.V()?(n=t.end-n,1>n?(e.j.textContent=e.localization.resolve("LIVE"),e.j.style.left="",e.j.style.right="0px"):e.j.textContent="-"+dA(n)):e.j.textContent=dA(n-t.start)}function eM(e,t,n){var i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j;q(function(B){switch(B.g){case 1:return 0>n&&(n=0),i=e.player.Aa(),a=Math.max(Math.ceil(i.start),Math.min(Math.floor(i.end),n)),e.player.V()?(l=i.end-n,e.I.textContent=1>l?e.localization.resolve("LIVE"):"-"+dA(l)):e.I.textContent=dA(n),O(B,e.player.gi(null,a),2);case 2:if(f=B.h,!f||!f.uris||!f.uris.length)return DE(e),$C(e,t,n),B.return();if(f.width<f.height?e.h.classList.add("portrait-thumbnail"):e.h.classList.remove("portrait-thumbnail"),d=-10,g=e.h.clientWidth,m=Math.floor(9*g/16),e.h.style.height=m+"px",e.h.style.top=-(m-d)+"px",S=Math.min(e.bar.offsetWidth-g,Math.max(0,t-g/2)),e.h.style.left=S+"px",e.h.style.visibility="visible",T=f.uris[0].split("#xywh=")[0],e.m&&T===e.m.uris[0].split("#xywh=")[0]&&f.startByte==e.m.startByte&&f.endByte==e.m.endByte){B.A(3);break}if(e.m=f,e.l&&(e.l.abort(),e.l=null),f.codecs!="mjpg"&&!T.startsWith("offline:")){B.A(4);break}return e.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',Le(B,5),x=li,M=ws(f.uris,f.startByte,f.endByte,e.player.getConfiguration().streaming.retryParameters),e.l=e.player.Db().request(x,M,{type:1}),O(B,e.l.promise,7);case 7:R=B.h,e.l=null,f.codecs=="mjpg"?(L=new Zt().box("mdat",ys(function(Y){T=URL.createObjectURL(new Blob([Y],{type:"image/jpeg"}))})),L.parse(R.data,!1)):(I=f.mimeType||"image/jpeg",U=new Blob([R.data],{type:I}),T=URL.createObjectURL(U)),Ge(B,4);break;case 5:if(N=je(B),N.code==7001)return B.return();throw N;case 4:try{e.h.removeChild(e.g)}catch{}e.g=Ne("img"),e.g.id="shaka-player-ui-thumbnail-image",e.g.draggable=!1,e.g.src=T,e.g.onload=function(){T.startsWith("blob:")&&URL.revokeObjectURL(T)},e.h.insertBefore(e.g,e.h.firstChild);case 3:j=g/f.width,f.imageHeight?e.g.height=f.imageHeight:f.sprite||(e.g.style.height="100%",e.g.style.objectFit="contain"),f.imageWidth?e.g.width=f.imageWidth:f.sprite||(e.g.style.width="100%",e.g.style.objectFit="contain"),e.g.style.left="-"+j*f.positionX+"px",e.g.style.top="-"+j*f.positionY+"px",e.g.style.transform="scale("+j+")",e.g.style.transformOrigin="left top",m=Math.floor(g*f.height/f.width),e.h.style.height=m+"px",e.h.style.top=-(m-d)+"px",ve(B)}})}function DE(e){e.h.style.visibility="hidden"}function sx(e){e.j.style.visibility="hidden"}function dA(e){var t=Math.round(e);e=Math.floor(t/3600);var n=Math.floor((t-3600*e)/60);return t=t-3600*e-60*n,10>t&&(t="0"+t),0<e?(10>n&&(n="0"+n),e+":"+n+":"+t):n+":"+t}xe("shaka.ui.SeekBar",RE);function cx(){}cx.prototype.create=function(e,t){return new RE(e,t)},RE.Factory=cx;function hA(e,t){St.call(this,e,t);var n=this;this.j=Ne("div"),this.j.classList.add("shaka-skip-ad-container"),this.parent.appendChild(this.j),this.h=Ne("div"),this.h.classList.add("shaka-skip-ad-counter"),ht(this.h,!1),this.j.appendChild(this.h),this.g=zn(),this.g.classList.add("shaka-skip-ad-button"),this.g.disabled=!0,ht(this.g,!1),this.g.classList.add("shaka-no-propagation"),this.j.appendChild(this.g),fx(this),this.i=new Ke(function(){if(n.ad.isSkippable()){var i=Math.round(n.ad.getTimeUntilSkippable());0<i?n.h.textContent=i:(n.i.stop(),ht(n.h,!1))}else dx(n)}),this.eventManager.o(this.localization,"locale-updated",function(){fx(n)}),this.eventManager.o(this.localization,"locale-changed",function(){fx(n)}),this.eventManager.o(this.adManager,"ad-started",function(){tM(n)}),this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){n.ad.isSkippable()?n.ad.canSkipNow()&&(n.g.disabled=!1,n.i.stop(),ht(n.h,!1)):dx(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){dx(n)}),this.eventManager.o(this.g,"click",function(){n.ad.skip()}),this.ad&&tM(this)}Xe(hA,St),hA.prototype.release=function(){this.i.stop(),this.i=null,St.prototype.release.call(this)};function fx(e){e.g.textContent=e.localization.resolve("SKIP_AD")}function tM(e){e.ad.isSkippable()&&e.ad.needsSkipUI()&&(ht(e.g,!0),ht(e.h,!0),e.h.textContent="",e.i.Ia(),e.i.xa(.5))}function dx(e){e.i.stop(),e.g.disabled=!0,ht(e.g,!1),ht(e.h,!1)}xe("shaka.ui.SkipAdButton",hA);/*
90
- @license
91
- glMatrix: https://github.com/toji/gl-matrix/
92
- Copyright 2015-2021, Brandon Jones, Colin MacKenzie IV
93
- SPDX-License-Identifier: MIT
94
- */function P0(){var e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function hx(e,t,n){t=1/Math.tan(t/2),e[0]=t/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,n=1/-99.9,e[10]=100.1*n,e[14]=20*n}function pA(e,t,n){var i=t[0],a=t[1],l=t[2],f=t[3],d=t[4],g=t[5],m=t[6],S=t[7],T=t[8],x=t[9],M=t[10],R=t[11],L=t[12],I=t[13],U=t[14];t=t[15];var N=n[0],j=n[1],B=n[2],Y=n[3];e[0]=N*i+j*d+B*T+Y*L,e[1]=N*a+j*g+B*x+Y*I,e[2]=N*l+j*m+B*M+Y*U,e[3]=N*f+j*S+B*R+Y*t,N=n[4],j=n[5],B=n[6],Y=n[7],e[4]=N*i+j*d+B*T+Y*L,e[5]=N*a+j*g+B*x+Y*I,e[6]=N*l+j*m+B*M+Y*U,e[7]=N*f+j*S+B*R+Y*t,N=n[8],j=n[9],B=n[10],Y=n[11],e[8]=N*i+j*d+B*T+Y*L,e[9]=N*a+j*g+B*x+Y*I,e[10]=N*l+j*m+B*M+Y*U,e[11]=N*f+j*S+B*R+Y*t,N=n[12],j=n[13],B=n[14],Y=n[15],e[12]=N*i+j*d+B*T+Y*L,e[13]=N*a+j*g+B*x+Y*I,e[14]=N*l+j*m+B*M+Y*U,e[15]=N*f+j*S+B*R+Y*t}function px(e,t){var n=new Float32Array(3),i=t[0],a=t[1],l=t[2],f=t[4],d=t[5],g=t[6],m=t[8],S=t[9],T=t[10];n[0]=Math.sqrt(i*i+a*a+l*l),n[1]=Math.sqrt(f*f+d*d+g*g),n[2]=Math.sqrt(m*m+S*S+T*T),g=1/n[0],m=1/n[1],S=1/n[2],f=t[0]*g,n=t[1]*m,i=t[2]*S,a=t[4]*g,d=t[5]*m,l=t[6]*S,g*=t[8],m*=t[9],t=t[10]*S,S=f+d+t,0<S?(t=2*Math.sqrt(S+1),e[3]=.25*t,e[0]=(l-m)/t,e[1]=(g-i)/t,e[2]=(n-a)/t):f>d&&f>t?(t=2*Math.sqrt(1+f-d-t),e[3]=(l-m)/t,e[0]=.25*t,e[1]=(n+a)/t,e[2]=(g+i)/t):d>t?(t=2*Math.sqrt(1+d-f-t),e[3]=(g-i)/t,e[0]=(n+a)/t,e[1]=.25*t,e[2]=(l+m)/t):(t=2*Math.sqrt(1+t-f-d),e[3]=(n-a)/t,e[0]=(g+i)/t,e[1]=(l+m)/t,e[2]=.25*t)}function nM(e,t){var n=t[0],i=t[1],a=t[2];t=t[3];var l=n+n,f=i+i,d=a+a;n*=l;var g=i*l;i*=f;var m=a*l,S=a*f;a*=d,l*=t,f*=t,t*=d,e[0]=1-i-a,e[1]=g+t,e[2]=m-f,e[3]=0,e[4]=g-t,e[5]=1-n-a,e[6]=S+l,e[7]=0,e[8]=m+f,e[9]=S-l,e[10]=1-n-i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1}function gx(){var e=new Float32Array(4);return e[3]=1,e}function HD(e,t){var n=t[0],i=t[1],a=t[2];t=t[3];var l=n*n+i*i+a*a+t*t;0<l&&(l=1/Math.sqrt(l)),e[0]=n*l,e[1]=i*l,e[2]=a*l,e[3]=t*l}function iM(e){var t=[],n=[],i=[],a=Math.PI;e=e!==void 0&&e?a/2:a;for(var l=0;100>=l;l++){var f=l*a/100,d=Math.sin(f);f=Math.cos(f);for(var g=0;100>=g;g++){var m=2*g*e/100;t.push(Math.sin(m)*d,f,Math.cos(m)*d),n.push(g/100,l/100)}}for(a=0;100>a;a++)for(e=0;100>e;e++)l=101*a+e,d=l+101,i.push(l,d,l+1),i.push(d,d+1,l+1);return{ej:t,bj:n,indices:i}}function mx(e,t,n,i,a){this.i=e,this.ua=t,this.s=n,this.g=i,this.u=new Ft,this.N=gx(),this.h=gx(),this.oa=this.qa=this.ea=this.l=null,this.D=P0(),this.K=P0(),this.P=P0(),this.Z=P0(),this.C=null,this.R=!1,this.L=this.B=null,this.za=this.Oa=0,this.ba=this.S=this.U=this.M=null,this.J=this.I=0,this.j=75,this.Y=0,this.m=a,this.H=-1,GD(this)}mx.prototype.release=function(){this.H!=-1&&(this.i.cancelVideoFrameCallback(this.H),this.H=-1),this.u&&(this.u.release(),this.u=null),this.B&&(this.B.stop(),this.B=null),this.L&&(this.L.stop(),this.L=null)},mx.prototype.Gd=function(){(this.R=!this.R)||this.g.viewport(0,0,this.s.width,this.s.height),Fc(this,!1)};function GD(e){VD(e),qD(e),YD(e),XD(e),FD(e),Nr(e.i,HTMLMediaElement.HAVE_CURRENT_DATA,e.u,function(){if(e.i.readyState>=HTMLMediaElement.HAVE_ENOUGH_DATA&&Fc(e),"requestVideoFrameCallback"in e.i){var t=function(){e.H!=-1&&(Fc(e),e.H!=-1&&(e.H=e.i.requestVideoFrameCallback(t)))};e.H=e.i.requestVideoFrameCallback(t)}else{var n;e.u.o(e.i,"canplaythrough",function(){Fc(e)}),e.u.o(e.i,"playing",function(){if(e.B&&e.B.stop(),!n){var i=e.ua.Mb();i=b(i);for(var a=i.next();!a.done;a=i.next())(a=a.value.frameRate)&&(!n||n<a)&&(n=a)}n||(n=60),Fc(e),e.B=new Ke(function(){Fc(e)}).Ia().xa(1/n)}),e.u.o(e.i,"pause",function(){e.B&&e.B.stop(),e.B=null,Fc(e)}),e.u.o(e.i,"seeked",function(){Fc(e)}),e.u.o(document,"visibilitychange",function(){Fc(e)})}})}function VD(e){var t=e.D,n=[0,0,0],i=[1,0,0],a=[0,1,0],l=n[0],f=n[1];n=n[2];var d=a[0],g=a[1],m=a[2],S=i[0];a=i[1];var T=i[2];if(1e-6>Math.abs(l-S)&&1e-6>Math.abs(f-a)&&1e-6>Math.abs(n-T))for(l=0;16>l;l++)t[l]=l%5==0?1:0;else{i=l-S,a=f-a,S=n-T;var x=1/Math.sqrt(i*i+a*a+S*S);i*=x,a*=x,S*=x,T=g*S-m*a,m=m*i-d*S,d=d*a-g*i,(x=Math.sqrt(T*T+m*m+d*d))?(x=1/x,T*=x,m*=x,d*=x):d=m=T=0,g=a*d-S*m;var M=S*T-i*d,R=i*m-a*T;(x=Math.sqrt(g*g+M*M+R*R))?(x=1/x,g*=x,M*=x,R*=x):R=M=g=0,t[0]=T,t[1]=g,t[2]=i,t[3]=0,t[4]=m,t[5]=M,t[6]=a,t[7]=0,t[8]=d,t[9]=R,t[10]=S,t[11]=0,t[12]=-(T*l+m*f+d*n),t[13]=-(g*l+M*f+R*n),t[14]=-(i*l+a*f+S*n),t[15]=1}px(e.N,e.D),e=t=e.Z,n=[4,4,4],l=n[0],f=n[1],n=n[2],t[0]=e[0]*l,t[1]=e[1]*l,t[2]=e[2]*l,t[3]=e[3]*l,t[4]=e[4]*f,t[5]=e[5]*f,t[6]=e[6]*f,t[7]=e[7]*f,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]}function qD(e){aM(e),e.g.viewport(0,0,e.g.drawingBufferWidth,e.g.drawingBufferHeight),e.g.clearColor(0,0,0,1),e.g.enable(e.g.CULL_FACE),e.g.cullFace(e.g.FRONT),e.g.clear(e.g.COLOR_BUFFER_BIT)}function YD(e){var t=rM(e,e.g.VERTEX_SHADER),n=rM(e,e.g.FRAGMENT_SHADER);e.l=e.g.createProgram(),e.g.attachShader(e.l,t),e.g.attachShader(e.l,n),e.g.linkProgram(e.l),e.m=="cubemap"?(e.U=e.g.getAttribLocation(e.l,"aVertexPosition"),e.S=e.g.getAttribLocation(e.l,"aTextureCoord")):(e.U=e.g.getAttribLocation(e.l,"a_vPosition"),e.g.enableVertexAttribArray(e.U),e.S=e.g.getAttribLocation(e.l,"a_TexCoordinate"),e.g.enableVertexAttribArray(e.S))}function rM(e,t){switch(t){case e.g.VERTEX_SHADER:var n=e.m=="cubemap"?`attribute vec4 aVertexPosition;
95
- attribute vec2 aTextureCoord;
96
- uniform mat4 uModelViewMatrix;
97
- uniform mat4 uProjectionMatrix;
98
- varying highp vec2 vTextureCoord;
99
- varying highp vec3 vLighting;
100
- void main(void) {
101
- gl_Position = uProjectionMatrix * uModelViewMatrix * aVertexPosition;
102
- vTextureCoord = aTextureCoord;
103
- }`:`attribute vec4 a_vPosition;
104
- // Per-vertex texture coordinate info
105
- attribute vec2 a_TexCoordinate;
106
- uniform mat4 u_VPMatrix;
107
- // Passed into the fragment shader.
108
- varying vec2 v_TexCoordinate;
109
- varying vec3 pass_position;
110
- void main()
111
- {
112
- gl_Position = u_VPMatrix * a_vPosition;
113
- // Pass through texture coord
114
- v_TexCoordinate = a_TexCoordinate;
115
- pass_position = a_vPosition.xyz;
116
- }`;break;case e.g.FRAGMENT_SHADER:n=e.m=="cubemap"?`varying highp vec2 vTextureCoord;
117
- uniform sampler2D uSampler;
118
- void main(void) {
119
- highp vec4 texelColor = texture2D(uSampler, vTextureCoord);
120
- gl_FragColor = vec4(texelColor.rgb , texelColor.a);
121
- }`:`precision highp float;
122
- #define PI 3.141592653589793238462643383279
123
- varying vec2 v_TexCoordinate;
124
- varying vec3 pass_position;
125
- uniform sampler2D uSampler;
126
- void main(void) {
127
- highp float xValue =
128
- (PI + atan(pass_position.z, pass_position.x)) / (2.0 * PI);
129
- vec2 tc = vec2(xValue, v_TexCoordinate.t);
130
- tc = vec2(tc.x , tc.y);
131
- highp vec4 texelColor =
132
- texture2D(uSampler, tc);
133
- gl_FragColor = vec4(texelColor.rgb, texelColor.a);
134
- }`;break;default:return null}return t=e.g.createShader(t),e.g.shaderSource(t,n),e.g.compileShader(t),t}function XD(e){e.M=e.m=="cubemap"?{ej:[-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1],bj:[2/3,.5,1/3,.5,1/3,0,2/3,0,2/3,.5,2/3,0,1,0,1,.5,1,1,2/3,1,2/3,.5,1,.5,0,.5,0,0,1/3,0,1/3,.5,0,.5,1/3,.5,1/3,1,0,1,1/3,1,1/3,.5,2/3,.5,2/3,1],indices:[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]}:e.m=="halfequirectangular"?iM(!0):iM(),e.ea=e.g.createBuffer(),e.g.bindBuffer(e.g.ARRAY_BUFFER,e.ea),e.g.bufferData(e.g.ARRAY_BUFFER,new Float32Array(e.M.ej),e.g.STATIC_DRAW),e.qa=e.g.createBuffer(),e.g.bindBuffer(e.g.ARRAY_BUFFER,e.qa),e.g.bufferData(e.g.ARRAY_BUFFER,new Float32Array(e.M.bj),e.g.STATIC_DRAW),e.oa=e.g.createBuffer(),e.g.bindBuffer(e.g.ELEMENT_ARRAY_BUFFER,e.oa),e.g.bufferData(e.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(e.M.indices),e.g.STATIC_DRAW)}function FD(e){e.ba=e.g.createTexture(),e.g.bindTexture(e.g.TEXTURE_2D,e.ba),e.g.texParameteri(e.g.TEXTURE_2D,e.g.TEXTURE_WRAP_S,e.g.CLAMP_TO_EDGE),e.g.texParameteri(e.g.TEXTURE_2D,e.g.TEXTURE_WRAP_T,e.g.CLAMP_TO_EDGE),e.g.texParameteri(e.g.TEXTURE_2D,e.g.TEXTURE_MIN_FILTER,e.g.NEAREST),e.g.texParameteri(e.g.TEXTURE_2D,e.g.TEXTURE_MAG_FILTER,e.g.NEAREST)}function Fc(e,t){t=t===void 0?!0:t;var n=e.ua.m==ci;!e.i||2>e.i.readyState||!n&&e.i.playbackRate==0||(hx(e.K,e.j*Math.PI/180,1.5625),e.m=="cubemap"?hx(e.K,e.j*Math.PI/180,2.5):hx(e.K,e.j*Math.PI/180,1.5625),e.g.useProgram(e.l),e.g.clear(e.g.COLOR_BUFFER_BIT),aM(e),t&&(e.g.activeTexture(e.g.TEXTURE0),e.g.bindTexture(e.g.TEXTURE_2D,e.ba),e.g.pixelStorei(e.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),e.g.texImage2D(e.g.TEXTURE_2D,0,e.g.RGBA,e.g.RGBA,e.g.UNSIGNED_BYTE,e.i)),(e.m=="equirectangular"||e.m=="halfequirectangular")&&(pA(e.P,e.D,e.Z),pA(e.P,e.K,e.P)),e.g.bindBuffer(e.g.ARRAY_BUFFER,e.ea),e.g.vertexAttribPointer(e.U,3,e.g.FLOAT,!1,0,0),e.g.enableVertexAttribArray(e.U),e.g.bindBuffer(e.g.ARRAY_BUFFER,e.qa),e.g.vertexAttribPointer(e.S,2,e.g.FLOAT,!1,0,0),e.g.enableVertexAttribArray(e.S),e.g.bindBuffer(e.g.ELEMENT_ARRAY_BUFFER,e.oa),e.m=="cubemap"?(e.g.uniformMatrix4fv(e.g.getUniformLocation(e.l,"uProjectionMatrix"),!1,e.K),e.g.uniformMatrix4fv(e.g.getUniformLocation(e.l,"uModelViewMatrix"),!1,e.P)):e.g.uniformMatrix4fv(e.g.getUniformLocation(e.l,"u_VPMatrix"),!1,e.P),e.g.uniform1i(e.g.getUniformLocation(e.l,"uSampler"),0),e.R&&e.g.viewport(0,0,e.s.width/2,e.s.height),e.g.drawElements(e.g.TRIANGLES,e.M.indices.length,e.g.UNSIGNED_SHORT,0),e.R&&(e.g.viewport(e.s.width/2,0,e.s.width/2,e.s.height),e.g.drawElements(e.g.TRIANGLES,e.M.indices.length,e.g.UNSIGNED_SHORT,0)))}function aM(e){var t=e.i.videoWidth;t||(t=e.s.scrollWidth);var n=e.i.videoHeight;if(n||(n=e.s.scrollHeight),e.Oa!==t||e.za!==n){e.s.width=t,e.s.height=n,e.Oa=t,e.za=n;var i=t/n,a=e.K,l=-i,f=1/(i-l);a[0]=0*f,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=0,a[6]=0,a[7]=0,a[8]=(i+l)*f,a[9]=0,a[10]=-1,a[11]=-1,a[12]=0,a[13]=0,a[14]=-0,a[15]=0,e.K=a,e.g.viewport(0,0,t,n)}}function eT(e,t,n,i){var a=1/0,l=90*Math.PI/180;e.m=="halfequirectangular"&&(a=90*Math.PI/180,l/=2);var f=e.m=="cubemap"?e.P:e.D;if(e.I+=t,e.J+=n,e.I<a&&e.I>-a){a=Math.sin(t),t=Math.cos(t);var d=f[0],g=f[1],m=f[2],S=f[3],T=f[8],x=f[9],M=f[10],R=f[11];f!==f&&(f[4]=f[4],f[5]=f[5],f[6]=f[6],f[7]=f[7],f[12]=f[12],f[13]=f[13],f[14]=f[14],f[15]=f[15]),f[0]=d*t-T*a,f[1]=g*t-x*a,f[2]=m*t-M*a,f[3]=S*t-R*a,f[8]=d*a+T*t,f[9]=g*a+x*t,f[10]=m*a+M*t,f[11]=S*a+R*t}else e.I-=t;e.J<l&&e.J>-l?(l=P0(),a=P0(),t=-1*n,n=Math.sin(t),t=Math.cos(t),d=a[4],g=a[5],m=a[6],S=a[7],T=a[8],x=a[9],M=a[10],R=a[11],a!==l&&(l[0]=a[0],l[1]=a[1],l[2]=a[2],l[3]=a[3],l[12]=a[12],l[13]=a[13],l[14]=a[14],l[15]=a[15]),l[4]=d*t+T*n,l[5]=g*t+x*n,l[6]=m*t+M*n,l[7]=S*t+R*n,l[8]=T*t-d*n,l[9]=x*t-g*n,l[10]=M*t-m*n,l[11]=R*t-S*n,pA(f,l,f)):e.J-=n,n=P0(),l=P0(),a=Math.sin(i),i=Math.cos(i),t=l[0],d=l[1],g=l[2],m=l[3],S=l[4],T=l[5],x=l[6],M=l[7],l!==n&&(n[8]=l[8],n[9]=l[9],n[10]=l[10],n[11]=l[11],n[12]=l[12],n[13]=l[13],n[14]=l[14],n[15]=l[15]),n[0]=t*i+S*a,n[1]=d*i+T*a,n[2]=g*i+x*a,n[3]=m*i+M*a,n[4]=S*i-t*a,n[5]=T*i-d*a,n[6]=x*i-g*a,n[7]=M*i-m*a,pA(f,n,f),Fc(e,!1)}function yx(e,t){(t===void 0||t)&&(px(e.h,e.D),e.Y=0,e.C=gx(),e.C[0]=(e.h[0]-e.N[0])/20,e.C[1]=(e.h[1]-e.N[1])/20,e.C[2]=(e.h[2]-e.N[2])/20,e.C[3]=(e.h[3]-e.N[3])/20),e.h[0]-=e.C[0],e.h[1]-=e.C[1],e.h[2]-=e.C[2],e.h[3]-=e.C[3],t=P0(),HD(e.h,e.h),nM(t,e.h),e.D=t,e.L&&(e.L.stop(),e.L=null),20>e.Y?e.L=new Ke(function(){yx(e,!1),e.I=0,e.J=0,e.Y++,Fc(e,!1)}).$(.025):(nM(t,e.N),e.D=t)}function vx(e,t,n,i,a){Tt.call(this);var l=this;this.i=e,this.j=t,this.H=n,this.L=i,this.u=a,this.s=new Ft,this.h=new Ft,this.B=Sx(this.j),this.g=null,this.l=!1,this.K=this.J=this.I=this.D=this.C=0,this.m=null,this.s.o(i,"loading",function(){l.g&&yx(l.g),tT(l)}),this.s.o(i,"spatialvideoinfo",function(f){switch(f=f.detail,f.projection){case"hequ":switch(f.hfov){case 360:l.m="equirectangular";break;case 180:l.m="halfequirectangular"}break;case"fish":l.m="equirectangular";break;default:l.m=null}tT(l)}),this.s.o(i,"nospatialvideoinfo",function(){l.m=null,tT(l)}),this.s.o(i,"unloading",function(){l.m=null,tT(l)}),tT(this)}Xe(vx,Tt),w=vx.prototype,w.release=function(){this.s&&(this.s.release(),this.s=null),this.h&&(this.h.release(),this.h=null),this.g&&(this.g.release(),this.g=null),Tt.prototype.release.call(this)},w.configure=function(e){this.u=e,tT(this)},w.cg=function(){return this.j?!!this.B:!!Sx(document.createElement("canvas"))},w.Nb=function(){return!!this.g},w.Gd=function(){this.g?this.g.Gd():st("Not playing VR content")},w.Ng=function(e){this.g?eT(this.g,e*k1,0,0):st("Not playing VR content")},w.Lg=function(e){this.g?eT(this.g,0,e*k1,0):st("Not playing VR content")},w.Mg=function(e){this.g?eT(this.g,0,0,e*k1):st("Not playing VR content")};function tT(e){if(e.u.displayInVrMode||e.m){e.j||(e.j=document.createElement("canvas"),e.j.classList.add("shaka-vr-canvas-container"),e.H.parentElement.insertBefore(e.j,e.H.nextElementSibling),e.B=Sx(e.j));var t=e.m||e.u.defaultVrProjectionMode;e.g?e.g.m!=t&&(e.h.$a(),e.g.release(),uM(e,t)):(e.j.style.display="",uM(e,t),e.dispatchEvent(new Te("vrstatuschanged",new Map().set("newStatus",e.Nb()))))}else!e.u.displayInVrMode&&!e.m&&e.j&&e.g&&(e.j.style.display="none",e.h.$a(),e.g.release(),e.g=null,e.dispatchEvent(new Te("vrstatuschanged",new Map().set("newStatus",e.Nb()))))}function uM(e,t){e.B&&e.j&&(e.g=new mx(e.H,e.L,e.j,e.B,t),KD(e))}function Sx(e){if(!e||Z0())return null;for(var t=b(["webgl2","webgl"]),n=t.next();!n.done;n=t.next())if(n=e.getContext(n.value))return n;return null}function KD(e){e.h.o(e.i,"mousedown",function(i){if(!e.l){var a=i.clientX;i=i.clientY,e.l=!0,e.C=a,e.D=i}}),0<navigator.maxTouchPoints&&e.h.o(e.i,"touchstart",function(i){if(!e.l){var a=i.touches[0].clientX;i=i.touches[0].clientY,e.l=!0,e.C=a,e.D=i}}),e.h.o(e.i,"wheel",function(i){if(!e.l){var a=e.g,l=i.deltaY;l/=50,20<=a.j&&100>=a.j&&(a.j+=l),20>a.j?a.j=20:100<a.j&&(a.j=100),Fc(a,!1),i.preventDefault(),i.stopPropagation()}}),e.h.o(e.i,"mousemove",function(i){e.l&&oM(e,i.clientX,i.clientY)}),0<navigator.maxTouchPoints&&e.h.o(e.i,"touchmove",function(i){e.l&&oM(e,i.touches[0].clientX,i.touches[0].clientY),i.preventDefault()}),e.h.o(e.i,"mouseleave",function(){e.l=!1}),e.h.o(e.i,"mouseup",function(){e.l=!1}),0<navigator.maxTouchPoints&&e.h.o(e.i,"touchend",function(){e.l=!1});var t=!1;if(oe.DeviceOrientationEvent)if(typeof DeviceMotionEvent.requestPermission=="function"){var n=function(){DeviceMotionEvent.requestPermission().then(function(i){i!=="granted"||t||(t=!0,Tx(e))})};DeviceMotionEvent.requestPermission().then(function(i){e.h.Ea(e.i,"click",n),e.h.Ea(e.i,"mouseup",n),0<navigator.maxTouchPoints&&e.h.Ea(e.i,"touchend",n),i!=="granted"?(e.h.wa(e.i,"click",n),e.h.wa(e.i,"mouseup",n),0<navigator.maxTouchPoints&&e.h.wa(e.i,"touchend",n)):(t=!0,Tx(e))}).catch(function(){e.h.Ea(e.i,"click",n),e.h.Ea(e.i,"mouseup",n),0<navigator.maxTouchPoints&&e.h.Ea(e.i,"touchend",n),e.h.wa(e.i,"click",n),e.h.wa(e.i,"mouseup",n),0<navigator.maxTouchPoints&&e.h.wa(e.i,"touchend",n)})}else t=!0,Tx(e)}function Tx(e){e.h.o(oe,"deviceorientation",function(t){if(e.g){var n=(t.alpha||0)-e.I,i=(t.beta||0)-e.J,a=(t.gamma||0)-e.K;(10<Math.abs(n)||10<Math.abs(i)||5<Math.abs(a))&&(i=a=n=0),e.I=t.alpha||0,e.J=t.beta||0,e.K=t.gamma||0,t=screen.orientation.angle,t==90||t==-90?eT(e.g,n*k1*-1,a*k1*-1,0):eT(e.g,n*k1*-1,i*k1,0)}})}function oM(e,t,n){var i=-.6*Math.PI/180;eT(e.g,(t-e.C)*i,-1*(n-e.D)*i,0),e.C=t,e.D=n}var k1=Math.PI/180;function Be(e,t,n,i,a){Tt.call(this);var l=this;this.Z=!0,this.g=a,this.D=new Zn(n,e,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible),this.ua=!0,this.u=this.D.zc(),this.m=n,this.B=this.D.vc(),this.ba=e,this.l=t,this.Ob=i,this.qa=this.B.Qe(),this.s=this.i=null,this.U=!1,this.J=[],this.Sa=[],this.La=!1,this.K=new Ke(function(){l.l.classList.add("no-cursor"),l.La=!1,Th(l)}),this.ea=new Ke(function(){l.j.removeAttribute("shown"),l.Y&&l.Y.Th(),l.N.$(l.g.closeMenusDelay),wx(l)}),this.N=new Ke(function(){for(var f=b(l.J),d=f.next();!d.done;d=f.next())ht(d.value,!1)}),this.Fa=new Ke(function(){l.Ca()&&vA(l)}),this.P=null,this.I=[],this.za=pI(),this.h=new Ft,this.C=null,this.configure(this.g),oI(this),lI(this),this.oa=new Set,xx(this),this.Fa.xa(this.g.refreshTickInSeconds),this.h.o(this.za,"locale-changed",function(f){f=f.locales[0],l.qa.setLocale(f),l.l.setAttribute("lang",f)}),this.qa.initInterstitial(this.H,this.ba,this.m)}Xe(Be,Tt),w=Be.prototype,w.destroy=function(){var e=this;return q(function(t){switch(t.g){case 1:if(document.pictureInPictureElement!=e.m){t.A(2);break}return O(t,document.exitPictureInPicture(),2);case 2:if(e.h&&(e.h.release(),e.h=null),e.K&&(e.K.stop(),e.K=null),e.ea&&(e.ea.stop(),e.ea=null),e.N&&(e.N.stop(),e.N=null),e.Fa&&(e.Fa.stop(),e.Fa=null),e.C&&(e.C.release(),e.C=null),lM(e),e.j&&(e.l.removeChild(e.j),e.j=null),!e.D){t.A(4);break}return O(t,e.D.destroy(),5);case 5:e.D=null;case 4:if(e.L&&(e.l.removeChild(e.L),e.L=null),e.H&&(e.l.removeChild(e.H),e.H=null),!e.ba){t.A(6);break}return O(t,e.ba.destroy(),7);case 7:e.ba=null;case 6:e.B=null,e.m=null,e.u=null,e.za=null,e.oa.clear(),sI(e),Tt.prototype.release.call(e),ve(t)}})};function lM(e){for(var t=b(e.I),n=t.next();!n.done;n=t.next())n.value.release();e.I=[]}function ua(e,t){Cx.set(e,t)}w.oj=function(e){this.ua=e,xx(this)},w.Hk=function(){Th(this)},w.configure=function(e){var t=this;this.g=e,this.D.Rh(e.castReceiverAppId,e.castAndroidReceiverCompatible),this.s&&(this.s=null),this.Ka&&(this.Ka=null),this.Y&&(this.Y=null),this.C&&this.C.configure(e),this.j?(Zr(this.j),lM(this)):(JD(this),uI(this),this.C=new vx(this.j,this.Ob,this.m,this.B,this.g)),this.l.classList.add("shaka-video-container"),this.m.classList.add("shaka-video"),$D(this),this.g.addBigPlayButton&&WD(this),this.g.customContextMenu&&(this.Y=new Oy(this.S,this),this.I.push(this.Y)),this.L||tI(this),this.g.seekOnTaps&&(nI(this),iI(this)),this.Ha=Ne("div"),this.Ha.classList.add("shaka-server-side-ad-container"),this.j.appendChild(this.Ha),rI(this),this.J=Array.from(this.l.getElementsByClassName("shaka-settings-menu")),this.J.push.apply(this.J,Ue(Array.from(this.l.getElementsByClassName("shaka-overflow-menu")))),aI(this),this.Sa=Array.from(this.l.getElementsByClassName("shaka-show-controls-on-mouse-over")),Th(this),e=b(this.l.getElementsByClassName("shaka-no-propagation"));for(var n=e.next();!n.done;n=e.next()){n=n.value;var i=function(a){return a.stopPropagation()};this.h.o(n,"click",i),this.h.o(n,"dblclick",i),0<navigator.maxTouchPoints&&this.h.o(n,"touchend",function(a){t.Ca()&&a.stopPropagation()})}},w.nh=function(e){(this.Z=e)?(this.l.setAttribute("shaka-controls","true"),this.m.tabIndex=-1,this.m.controls=!1):this.l.removeAttribute("shaka-controls"),Th(this)},w.Oi=function(e){this.m.controls=e,this.m.tabIndex=e?0:-1,e&&this.nh(!1)},w.getAd=function(){return this.i},w.Dj=function(){return this.D},w.Uj=function(){return this.za},w.qk=function(){return this.l},w.zc=function(){return this.u},w.Tj=function(){return this.m},w.vc=function(){return this.B},w.Sj=function(){return this.ba},w.Jj=function(){return this.j},w.fk=function(){return this.Ha},w.Fj=function(){return this.H},w.Gj=function(){return this.g},w.Ek=function(){return this.U},w.rh=function(e){(this.U=e)?this.K.stop():this.K.$(3)},w.yk=function(){return this.ua},w.Fg=function(){return this.s?this.s.getValue():this.u.currentTime},w.Qi=function(e){this.P=e},w.Id=function(){return this.J.some(function(e){return!e.classList.contains("shaka-hidden")})},w.Sc=function(){this.N.Ia()};function gA(e){return!(!document.fullscreenEnabled||e.m.webkitSupportsFullscreen&&e.g.preferVideoFullScreenInVisionOS&&Q0()&&"xr"in navigator)}function Ex(e){return"documentPictureInPicture"in oe&&e.g.preferDocumentPictureInPicture}w.Xd=function(){return this.D.Qa()?!1:!!(gA(this)||(!this.i||!this.i.isUsingAnotherMediaElement())&&this.m.webkitSupportsFullscreen)},w.Ac=function(){if(gA(this))return!!document.fullscreenElement;var e=this.m;return e.webkitSupportsFullscreen?e.webkitDisplayingFullscreen:!1};function sM(e){var t,n,i;return q(function(a){switch(a.g){case 1:if(Le(a,2),!gA(e)){t=e.m,t.webkitSupportsFullscreen&&t.webkitEnterFullscreen(),a.A(4);break}if(!e.Yd()){a.A(5);break}return O(a,e.fd(),6);case 6:if(!Ex(e)){a.A(5);break}return O(a,new Promise(function(l){new Ke(l).$(.05)}),5);case 5:return n=e.g.fullScreenElement,O(a,n.requestFullscreen({navigationUI:"hide"}),9);case 9:if(!e.g.forceLandscapeOnFullscreen||!screen.orientation){a.A(4);break}return Le(a,11),O(a,screen.orientation.lock("landscape"),13);case 13:Ge(a,4,2);break;case 11:je(a,2);case 4:Ge(a,0);break;case 2:i=je(a),e.dispatchEvent(new Te("error",new Map().set("detail",i))),ve(a)}})}function mA(e){var t;return q(function(n){return gA(e)?(screen.orientation&&screen.orientation.unlock(),O(n,document.exitFullscreen(),0)):(t=e.m,t.webkitSupportsFullscreen&&t.webkitExitFullscreen(),n.A(0))})}w.Gf=function(){var e=this;return q(function(t){return e.Ac()?O(t,mA(e),0):O(t,sM(e),0)})},w.Ze=function(){return this.D.Qa()?!1:document.pictureInPictureEnabled||Ex(this)?!this.m.disablePictureInPicture:!1},w.Yd=function(){return!!(oe.documentPictureInPicture&&oe.documentPictureInPicture.window||document.pictureInPictureElement)},w.fd=function(){var e=this,t,n;return q(function(i){switch(i.g){case 1:if(Le(i,2),Ex(e)){if(!e.Ac()){i.A(10);break}return O(i,mA(e),10)}return document.pictureInPictureElement?O(i,document.exitPictureInPicture(),5):(e.Ac()&&mA(e),t=e.m,O(i,t.requestPictureInPicture(),5));case 10:return O(i,QD(e),5);case 5:Ge(i,0);break;case 2:n=je(i),e.dispatchEvent(new Te("error",new Map().set("detail",n))),ve(i)}})};function QD(e){var t,n,i,a,l,f;return q(function(d){if(d.g==1)return oe.documentPictureInPicture.window?(oe.documentPictureInPicture.window.close(),d.return()):(t=e.l,n=t.getBoundingClientRect(),O(d,oe.documentPictureInPicture.requestWindow({width:n.width,height:n.height}),2));i=d.h,ZD(i),a=t.parentNode||document.body,l=e.l.cloneNode(!0),l.style.visibility="hidden",l.style.height=getComputedStyle(t).height,a.appendChild(l),f=document.createElement("style"),f.append(`[data-shaka-player-container] {
135
- width: 100% !important; max-height: 100%}`),i.document.head.append(f),i.document.body.append(t),e.h.wa(i,"pagehide",function(){l.replaceWith(t)}),ve(d)})}function ZD(e){var t=[].concat(Ue(document.styleSheets)).map(function(i){try{return[].concat(Ue(i.cssRules)).map(function(l){return l.cssText}).join("")}catch{var a=document.createElement("link");a.rel="stylesheet",a.type=i.type,a.media=i.media,a.href=i.href,e.document.head.appendChild(a)}return""}).filter(Boolean).join(`
136
- `),n=document.createElement("style");n.textContent=t,e.document.head.appendChild(n)}w.Ui=function(){ht(this.M,!0),ht(this.H,!0),this.i.hasCustomClick()?this.j.setAttribute("ad-active","true"):this.j.removeAttribute("ad-active")},w.ii=function(){ht(this.M,!1),ht(this.H,!1),this.j.removeAttribute("ad-active")};function IE(e){if(e.Z){if(e.i&&(e.i&&e.i.isPaused()?e.i.play():e.i&&e.i.pause(),e.i.isLinear()))return;e.u.duration&&(e.u.paused&&!e.U?(e.B.isEnded()&&(e.u.currentTime=e.B.Aa().start),e.u.play()):e.u.pause())}}function JD(e){e.j=Ne("div"),e.j.classList.add("shaka-controls-container"),e.l.appendChild(e.j),e.l.setAttribute("shaka-controls","true"),e.h.o(e.j,"touchend",function(t){e.u.duration&&(e.Ca()?e.P=Date.now():(N1(e,t),t.cancelable&&t.preventDefault()))}),e.h.o(e.j,"click",function(){Ax(e)}),e.h.o(e.j,"dblclick",function(){e.g.doubleClickForFullscreen&&e.Xd()&&e.Gf()})}function WD(e){var t=Ne("div");t.classList.add("shaka-play-button-container"),e.j.appendChild(t),e.Ka=new bE(t,e),e.I.push(e.Ka)}function $D(e){var t=Ne("div");t.classList.add("shaka-scrim-container"),e.j.appendChild(t)}function eI(e){e.M=Ne("div"),e.M.classList.add("shaka-ad-controls");var t=e.i!=null&&e.i.isLinear();ht(e.M,t),e.R.appendChild(e.M),t=new rx(e.M,e),e.I.push(t),t=new sA(e.M,e),e.I.push(t),t=new hA(e.M,e),e.I.push(t)}function tI(e){e.L=Ne("div"),e.L.classList.add("shaka-spinner-container"),e.l.appendChild(e.L);var t=Ne("div");t.classList.add("shaka-spinner"),e.L.appendChild(t),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),e.classList.add("shaka-spinner-svg"),e.setAttribute("viewBox","0 0 30 30"),t.appendChild(e),t=document.createElementNS("http://www.w3.org/2000/svg","circle"),t.classList.add("shaka-spinner-path"),t.setAttribute("cx","15"),t.setAttribute("cy","15"),t.setAttribute("r","14.5"),t.setAttribute("fill","none"),t.setAttribute("stroke-width","1"),t.setAttribute("stroke-miterlimit","10"),e.appendChild(t)}function nI(e){var t=Ne("div");t.classList.add("shaka-hidden-fast-forward-container"),e.j.appendChild(t),e.Xa=new ax(t,e),e.I.push(e.Xa)}function iI(e){var t=Ne("div");t.classList.add("shaka-hidden-rewind-container"),e.j.appendChild(t),e.Ya=new ux(t,e),e.I.push(e.Ya)}function rI(e){e.R=Ne("div"),e.R.classList.add("shaka-bottom-controls"),e.R.classList.add("shaka-no-propagation"),e.j.appendChild(e.R),e.h.o(e.R,"click",function(i){i.target.closest(".shaka-overflow-button")||e.Sc()}),eI(e),e.S=Ne("div"),e.S.classList.add("shaka-controls-button-panel"),e.S.classList.add("shaka-show-controls-on-mouse-over"),e.g.enableTooltips&&e.S.classList.add("shaka-tooltips-on"),e.R.appendChild(e.S);for(var t=b(e.g.controlPanelElements),n=t.next();!n.done;n=t.next())n=n.value,Cx.get(n)?(n=Cx.get(n).create(e.S,e),e.I.push(n)):st("Unrecognized control panel element requested:",n)}function aI(e){if(e.g.addSeekBar)e.s=cM.create(e.R,e),e.I.push(e.s);else{e=b(e.J);for(var t=e.next();!t.done;t=e.next())t.value.classList.add("shaka-low-position")}}function uI(e){e.H=Ne("div"),e.H.classList.add("shaka-client-side-ad-container"),ht(e.H,!1),e.h.o(e.H,"click",function(){Ax(e)}),e.l.appendChild(e.H)}function oI(e){e.h.o(e.B,"buffering",function(){yA(e)}),yA(e),e.h.o(oe,"keydown",function(t){dI(e,t)}),e.h.o(oe,"click",function(){return e.Sc()}),e.h.o(e,"submenuopen",function(){e.Sc()}),e.h.o(e.u,"play",function(){Th(e)}),e.h.o(e.u,"pause",function(){Th(e)}),e.h.o(e.l,"mousemove",function(t){N1(e,t)}),e.h.o(e.l,"touchmove",function(t){N1(e,t)},{passive:!0}),e.h.o(e.l,"touchend",function(t){N1(e,t)},{passive:!0}),e.h.o(e.l,"mouseleave",function(){e.P||e.K.Ia()}),e.h.o(e.l,"wheel",function(t){N1(e,t)},{passive:!0}),e.h.o(e.D,"caststatuschanged",function(){xx(e)}),e.h.o(e.C,"vrstatuschanged",function(){e.dispatchEvent(new Te("vrstatuschanged"))}),e.h.o(e.l,"keydown",function(t){var n=document.activeElement,i=n&&n.classList?n.classList.contains("shaka-volume-bar"):!1,a=n&&n.classList&&n.classList.contains("shaka-seek-bar");if(e.j.contains(n)&&N1(e,t),e.g.enableKeyboardPlaybackControls){n=e.g.keyboardSeekDistance;var l=e.g.keyboardLargeSeekDistance;switch(t.key){case"ArrowLeft":e.s&&a&&!i&&0<n&&(t.preventDefault(),H0(e,e.s.getValue()-n));break;case"ArrowRight":e.s&&a&&!i&&0<n&&(t.preventDefault(),H0(e,e.s.getValue()+n));break;case"PageDown":e.s&&a&&0<n&&(t.preventDefault(),H0(e,e.s.getValue()-l));break;case"PageUp":e.s&&a&&0<n&&(t.preventDefault(),H0(e,e.s.getValue()+l));break;case"Home":e.s&&H0(e,e.B.Aa().start);break;case"End":e.s&&H0(e,e.B.Aa().end);break;case"f":e.Xd()&&e.Gf();break;case"m":e.i&&e.i.isLinear()?e.i.setMuted(!e.i.isMuted()):e.m.muted=!e.m.muted;break;case"p":e.Ze()&&e.fd();break;case" ":a&&IE(e)}}}),e.h.o(e.l,"keyup",function(t){e.oa.delete(t.key)}),e.h.o(e.qa,"ad-started",function(t){e.i=t.ad,e.Ui(),yA(e)}),e.h.o(e.qa,"ad-stopped",function(){e.i=null,e.ii(),yA(e)}),screen.orientation&&e.h.o(screen.orientation,"change",function(){return q(function(t){return O(t,cI(e),0)})})}function lI(e){if(e.g.setupMediaSession&&navigator.mediaSession){var t=function(l,f){try{navigator.mediaSession.setActionHandler(l,function(d){f(d)})}catch{}},n=function(){if(e.i&&e.i.isLinear())i();else{var l=e.B.Aa(),f=l.end-l.start;l=parseFloat((e.u.currentTime-l.start).toFixed(2)),e.B.V()&&1>Math.abs(f-l)&&(f=1/0);try{navigator.mediaSession.setPositionState({duration:Math.max(0,f),playbackRate:e.u.playbackRate,position:Math.max(0,l)})}catch{}}},i=function(){try{navigator.mediaSession.setPositionState()}catch{}},a=function(l){var f=e.g.keyboardSeekDistance;switch(l.action){case"pause":IE(e);break;case"play":IE(e);break;case"seekbackward":if(l.seekOffset&&!isFinite(l.seekOffset))break;e.i&&e.i.isLinear()||H0(e,e.s.getValue()-(l.seekOffset||f));break;case"seekforward":if(l.seekOffset&&!isFinite(l.seekOffset))break;e.i&&e.i.isLinear()||H0(e,e.s.getValue()+(l.seekOffset||f));break;case"seekto":if(l.seekTime&&!isFinite(l.seekTime))break;e.i&&e.i.isLinear()||H0(e,e.B.Aa().start+l.seekTime);break;case"stop":e.B.rc();break;case"enterpictureinpicture":e.i&&e.i.isLinear()||e.fd()}};t("pause",a),t("play",a),t("seekbackward",a),t("seekforward",a),t("seekto",a),t("stop",a),("documentPictureInPicture"in oe||document.pictureInPictureEnabled)&&t("enterpictureinpicture",a),t=function(){e.B.V()||e.B.Aa().start!=0?(n(),e.h.o(e.u,"timeupdate",n)):i()},e.B.Z&&t(),e.h.o(e.B,"loaded",t),e.h.o(e.B,"unloading",function(){e.h.Ea(e.u,"timeupdate",n)}),e.h.o(e.B,"metadata",function(l){if(l=l.payload){var f;l.key=="TIT2"&&l.data&&(f=l.data);var d;l.key=="APIC"&&l.mimeType=="-->"&&(d=l.data),f&&(l={title:f,artwork:[]},navigator.mediaSession.metadata&&(l=navigator.mediaSession.metadata,l.title=f),navigator.mediaSession.metadata=new MediaMetadata(l)),d&&(f=e.m,d!=f.poster&&(f.poster=d),f={title:"",artwork:[{src:d}]},navigator.mediaSession.metadata&&(f=navigator.mediaSession.metadata,f.artwork=[{src:d}]),navigator.mediaSession.metadata=new MediaMetadata(f))}})}}function sI(e){if(e.g.setupMediaSession&&navigator.mediaSession){try{navigator.mediaSession.setPositionState()}catch{}e=function(t){try{navigator.mediaSession.setActionHandler(t,null)}catch{}},e("pause"),e("play"),e("seekbackward"),e("seekforward"),e("seekto"),e("stop"),e("enterpictureinpicture")}}function cI(e){return q(function(t){return e.u&&e.u.readyState!=0&&!e.D.Qa()&&e.g.enableFullscreenOnRotation&&e.Xd()?screen.orientation.type.includes("landscape")&&!e.Ac()?O(t,sM(e),0):screen.orientation.type.includes("portrait")&&e.Ac()?O(t,mA(e),0):t.A(0):t.return()})}function N1(e,t){t.type=="mousemove"&&(e.j.classList.remove("shaka-keyboard-navigation"),Th(e)),t.type=="touchstart"||t.type=="touchmove"||t.type=="touchend"||t.type=="keyup"?e.P=Date.now():e.P+1e3<Date.now()&&(e.P=null),e.P&&t.type=="mousemove"||(e.l.classList.remove("no-cursor"),e.La=!0,e.N.stop(),e.Ca()||(vA(e),Th(e),wx(e)),e.K.stop(),t.type!="touchend"&&t.type!="wheel"&&t.type!="keyup"&&e.P||e.K.$(3))}function fI(e){return oe.matchMedia("hover: hover").matches?e.Sa.some(function(t){return t.matches(":hover")}):!1}function Th(e){var t=e.i?e.i.isPaused():!1,n=e.u.paused&&!e.U,i=e.j.classList.contains("shaka-keyboard-navigation");t||(!e.i||!e.i.isLinear())&&n||e.La||i||fI(e)?(vA(e),e.j.setAttribute("shown","true"),e.ea.stop()):e.ea.$(e.g.fadeDelay)}function Ax(e){e.Z&&!e.Nb()&&(e.Id()?e.N.Ia():e.g.singleClickForPlayAndPause&&IE(e))}function xx(e){var t=e.D.Qa();e.dispatchEvent(new Te("caststatuschanged",new Map().set("newStatus",t))),t?e.j.setAttribute("casting","true"):e.j.removeAttribute("casting"),wx(e)}function yA(e){e.Z&&(e.i&&e.i.isClientRendering()&&e.i.isLinear()?ht(e.L,!1):ht(e.L,e.B.Ye()))}w.Ca=function(){return this.Z?this.j.getAttribute("shown")!=null||this.j.getAttribute("casting")!=null:!1};function wx(e){e.Ca()?e.dispatchEvent(new Te("showingui")):e.dispatchEvent(new Te("hidingui"))}function H0(e,t){e.u.currentTime=t,vA(e)}function vA(e){if(e.s)if(e.s.setValue(e.u.currentTime),e.s.update(),e.s.isShowing())for(var t=b(e.J),n=t.next();!n.done;n=t.next())n.value.classList.remove("shaka-low-position");else for(t=b(e.J),n=t.next();!n.done;n=t.next())n.value.classList.add("shaka-low-position");e.dispatchEvent(new Te("timeandseekrangeupdated"))}function dI(e,t){e.oa.add(t.key);var n=e.Id();t.key=="Tab"&&(e.j.classList.add("shaka-keyboard-navigation"),Th(e),e.h.o(oe,"mousedown",function(){e.h.Ea(oe,"mousedown")})),t.key=="Escape"&&e.N.Ia(),n&&e.oa.has("Tab")&&hI(e,t)}function hI(e,t){var n=e.J.filter(function(l){return!l.classList.contains("shaka-hidden")});if(n.length){var i=n[0];if(i.childNodes.length){for(n=i.firstElementChild;n&&n.classList.contains("shaka-hidden");)n=n.nextElementSibling;for(i=i.lastElementChild;i&&i.classList.contains("shaka-hidden");)i=i.previousElementSibling;var a=document.activeElement;e.oa.has("Shift")?a==n&&(t.preventDefault(),i.focus()):a==i&&(t.preventDefault(),n.focus())}}}w.zl=function(){var e=new Event("mousemove",{bubbles:!1,cancelable:!1});N1(this,e)},w.xk=function(){this.K.Ia()},w.cg=function(){return this.C.cg()},w.Nb=function(){return this.C.Nb()},w.nk=function(){var e=this.C;if(e.g){e=e.g,px(e.h,e.D);var t=e.h;e=t[0];var n=t[1],i=t[2];t=t[3];var a=i*i,l=t*t,f=e*e+n*n+a+l,d=e*t-n*i;d>.499995*f?(f=Math.PI/2,e=2*Math.atan2(n,e)):d<-.499995*f?(f=-Math.PI/2,e=2*Math.atan2(n,e)):(f=Math.asin(2*(e*i-t*n)),e=Math.atan2(2*(e*t+n*i),1-2*(a+l))),e=180*Math.acos(Math.cos(e)*Math.cos(f))/Math.PI}else st("Not playing VR content"),e=null;return e},w.lk=function(){var e=this.C;return e.g?e=e.g.j:(st("Not playing VR content"),e=null),e},w.yl=function(e){var t=this.C;t.g?(0>e?(st("Field of view should be greater than 0"),e=0):100<e&&(st("Field of view should be less than 100"),e=100),t=t.g,t.j=e,Fc(t,!1)):st("Not playing VR content")},w.Gd=function(){this.C.Gd()},w.Ng=function(e){this.C.Ng(e)},w.Lg=function(e){this.C.Lg(e)},w.Mg=function(e){this.C.Mg(e)};function pI(){var e=new Qi("en");return e.Ua("ar",new Map([["AD_DURATION","مدة الإعلان"],["AD_PROGRESS","الإعلان [AD_ON] من [NUM_ADS]"],["AD_STATISTICS","إحصاءات الإعلانات"],["AD_TIME","الإعلان: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","تلقائي"],["BACK","رجوع"],["CAPTIONS","الترجمة والشرح"],["CAST","إرسال..."],["CHAPTERS","الفصول"],["DOWNLOAD_VIDEO_FRAME","حفظ إطار الفيديو"],["ENTER_LOOP_MODE","تكرار الفيديو الحالي"],["ENTER_PICTURE_IN_PICTURE",'الدخول في وضع "نافذة ضمن نافذة"'],["EXIT_FULL_SCREEN","إنهاء وضع ملء الشاشة"],["EXIT_LOOP_MODE","إيقاف تكرار الفيديو الحالي"],["EXIT_PICTURE_IN_PICTURE",'الخروج من وضع "نافذة ضمن نافذة"'],["FAST_FORWARD","تقديم سريع"],["FULL_SCREEN","ملء الشاشة"],["LANGUAGE","اللغة"],["LIVE","مباشر"],["LOOP","تكرار"],["MORE_SETTINGS","مزيد من الإعدادات"],["MULTIPLE_LANGUAGES","لغات متعددة"],["MUTE","كتم الصوت"],["NOT_APPLICABLE","غير سارٍ"],["OFF","إيقاف"],["ON","تشغيل"],["PAUSE","إيقاف مؤقت"],["PICTURE_IN_PICTURE","نافذة ضمن النافذة"],["PLAY","التشغيل"],["PLAYBACK_RATE","سرعة التشغيل"],["QUALITY","الجودة"],["RECENTER_VR","إعادة التوسيط"],["REPLAY","إعادة التشغيل"],["RESOLUTION","درجة الدقة"],["REWIND","ترجيع"],["SEEK","البحث بالتمرير"],["SKIP_AD","تخطّي الإعلان"],["SKIP_TO_LIVE","الانتقال إلى بث مباشر"],["STATISTICS","الإحصاءات"],["SUBTITLE_FORCED","عرض إجباري"],["SURROUND","صوت محيطي"],["TOGGLE_STEREOSCOPIC","إيقاف العرض المجسّم أو تفعيله"],["UNDETERMINED_LANGUAGE","غير محدد"],["UNMUTE","إعادة الصوت"],["UNRECOGNIZED_LANGUAGE","غير معروف"],["VOLUME","مستوى الصوت"]])),e.Ua("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung [AD_ON] von [NUM_ADS]"],["AD_STATISTICS","Anzeigenstatistiken"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatisch"],["BACK","Zurück"],["CAPTIONS","Untertitel"],["CAST","Streamen..."],["CHAPTERS","Kapitel"],["DOWNLOAD_VIDEO_FRAME","Videoframe speichern"],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild im Bild aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild im Bild beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["QUALITY","Qualität"],["RECENTER_VR","Zentrieren"],["REPLAY","Noch einmal wiedergeben"],["RESOLUTION","Auflösung"],["REWIND","Zurückspulen"],["SEEK","Suche"],["SKIP_AD","Überspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["STATISTICS","Statistiken"],["SUBTITLE_FORCED","Erzwungen"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Einstellung „stereoskopisch“ ein‑/ausschalten"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautstärke"]])),e.Ua("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["CHAPTERS","Chapters"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recenter"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]])),e.Ua("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["CHAPTERS","Chapters"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recentre"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]])),e.Ua("es",new Map([["AD_DURATION","Duración del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estadísticas del anuncio"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automático"],["BACK","Atrás"],["CAPTIONS","Subtítulos"],["CAST","Enviar..."],["CHAPTERS","Capítulos"],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["ENTER_LOOP_MODE","Reproducir en bucle el vídeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el vídeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar rápidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","Más ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducción"],["QUALITY","Calidad"],["RECENTER_VR","Volver a centrar"],["REPLAY","Volver a reproducir"],["RESOLUTION","Resolución"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al vídeo en directo"],["STATISTICS","Estadísticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Activar/Desactivar estereoscópica"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]])),e.Ua("es-419",new Map([["AD_DURATION","Duración del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estadísticas de anuncios"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automático"],["BACK","Atrás"],["CAPTIONS","Subtítulos"],["CAST","Transmitir..."],["CHAPTERS","Capítulos"],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetición indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","Más opciones de configuración"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducción"],["QUALITY","Calidad"],["RECENTER_VR","Volver a centrar"],["REPLAY","Volver a reproducir"],["RESOLUTION","Resolución"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisión en vivo"],["STATISTICS","Estadísticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Sonido envolvente"],["TOGGLE_STEREOSCOPIC","Activar o desactivar el modo estereoscópico"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]])),e.Ua("fr",new Map([["AD_DURATION","Durée de l'annonce"],["AD_PROGRESS","Annonce [AD_ON] sur [NUM_ADS]"],["AD_STATISTICS","Statistiques sur les annonces"],["AD_TIME","Annonce : [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster…"],["CHAPTERS","Chapitres"],["DOWNLOAD_VIDEO_FRAME","Télécharger l'image de la vidéo"],["ENTER_LOOP_MODE","Lire en boucle la vidéo en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein écran"],["EXIT_LOOP_MODE","Arrêter la lecture en boucle de la vidéo en cours"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode PIP (Picture-in-picture)"],["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein écran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","Répéter"],["MORE_SETTINGS","Plus de paramètres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","Désactivée"],["ON","Activée"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["QUALITY","Qualité"],["RECENTER_VR","Recentrer"],["REPLAY","Revoir"],["RESOLUTION","Résolution"],["REWIND","Retour arrière"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Accéder à la partie la plus récente du direct"],["STATISTICS","Statistiques"],["SUBTITLE_FORCED","Forcé"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Activer/Désactiver le mode stéréoscopique"],["UNDETERMINED_LANGUAGE","Langue indéterminée"],["UNMUTE","Réactiver le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]])),e.Ua("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_STATISTICS","Statistiche sugli annunci"],["AD_TIME","Annuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["CHAPTERS","Capitoli"],["DOWNLOAD_VIDEO_FRAME","Salva fotogramma"],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Più lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocità di riproduzione"],["QUALITY","Qualità"],["RECENTER_VR","Ricentra"],["REPLAY","Riproduci di nuovo"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["STATISTICS","Statistiche"],["SUBTITLE_FORCED","Forzata"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Pulsante di attivazione/disattivazione stereoscopico"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]])),e.Ua("ja",new Map([["AD_DURATION","広告再生時間"],["AD_PROGRESS","[AD_ON] 番目の広告(全 [NUM_ADS] 個)"],["AD_STATISTICS","広告の統計情報"],["AD_TIME","広告: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","自動"],["BACK","戻る"],["CAPTIONS","字幕"],["CAST","キャスト..."],["CHAPTERS","章"],["DOWNLOAD_VIDEO_FRAME","動画フレームを保存"],["ENTER_LOOP_MODE","現在の動画をループ再生"],["ENTER_PICTURE_IN_PICTURE","ピクチャー イン ピクチャーを開始"],["EXIT_FULL_SCREEN","全画面表示を終了"],["EXIT_LOOP_MODE","現在の動画のループ再生を停止"],["EXIT_PICTURE_IN_PICTURE","ピクチャー イン ピクチャーを終了"],["FAST_FORWARD","早送り"],["FULL_SCREEN","全画面表示"],["LANGUAGE","言語"],["LIVE","ライブ"],["LOOP","ループ"],["MORE_SETTINGS","詳細設定"],["MULTIPLE_LANGUAGES","多言語"],["MUTE","ミュート"],["NOT_APPLICABLE","該当なし"],["OFF","オフ"],["ON","オン"],["PAUSE","一時停止"],["PICTURE_IN_PICTURE","ピクチャー イン ピクチャー"],["PLAY","再生"],["PLAYBACK_RATE","再生速度"],["QUALITY","品質"],["RECENTER_VR","中心を再設定"],["REPLAY","もう一度再生"],["RESOLUTION","解像度"],["REWIND","巻き戻し"],["SEEK","シーク再生"],["SKIP_AD","広告をスキップ"],["SKIP_TO_LIVE","ライブ配信までスキップ"],["STATISTICS","統計情報"],["SUBTITLE_FORCED","強制"],["SURROUND","サラウンド"],["TOGGLE_STEREOSCOPIC","立体画像を切り替える"],["UNDETERMINED_LANGUAGE","不明"],["UNMUTE","ミュートを解除"],["UNRECOGNIZED_LANGUAGE","不明"],["VOLUME","音量"]])),e.Ua("ko",new Map([["AD_DURATION","광고 기간"],["AD_PROGRESS","광고 [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","광고 통계"],["AD_TIME","광고: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","자동"],["BACK","뒤로"],["CAPTIONS","자막"],["CAST","전송..."],["CHAPTERS","장"],["DOWNLOAD_VIDEO_FRAME","동영상 프레임 저장"],["ENTER_LOOP_MODE","현재 동영상 반복 재생"],["ENTER_PICTURE_IN_PICTURE","PIP 모드 시작"],["EXIT_FULL_SCREEN","전체화면 닫기"],["EXIT_LOOP_MODE","현재 동영상 반복 재생 중지"],["EXIT_PICTURE_IN_PICTURE","PIP 모드 종료"],["FAST_FORWARD","빨리 감기"],["FULL_SCREEN","전체화면"],["LANGUAGE","언어"],["LIVE","실시간"],["LOOP","반복 재생"],["MORE_SETTINGS","설정 더보기"],["MULTIPLE_LANGUAGES","여러 언어"],["MUTE","음소거"],["NOT_APPLICABLE","해당 사항 없음"],["OFF","사용 안함"],["ON","사용"],["PAUSE","일시중지"],["PICTURE_IN_PICTURE","PIP 모드"],["PLAY","재생"],["PLAYBACK_RATE","재생 속도"],["QUALITY","품질"],["RECENTER_VR","중심 재설정"],["REPLAY","다시보기"],["RESOLUTION","해상도"],["REWIND","되감기"],["SEEK","찾기"],["SKIP_AD","광고 건너뛰기"],["SKIP_TO_LIVE","라이브 동영상으로 건너뛰기"],["STATISTICS","통계"],["SUBTITLE_FORCED","강제"],["SURROUND","서라운드"],["TOGGLE_STEREOSCOPIC","입체 보기 전환"],["UNDETERMINED_LANGUAGE","미정"],["UNMUTE","음소거 해제"],["UNRECOGNIZED_LANGUAGE","알 수 없음"],["VOLUME","볼륨"]])),e.Ua("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_STATISTICS","Advertentiestatistieken"],["AD_TIME","Advertentie: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["CHAPTERS","Hoofdstukken"],["DOWNLOAD_VIDEO_FRAME","Videoframe opslaan"],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Geluid uitzetten"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["QUALITY","Kwaliteit"],["RECENTER_VR","Opnieuw centreren"],["REPLAY","Opnieuw afspelen"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],["STATISTICS","Statistieken"],["SUBTITLE_FORCED","Afgedwongen"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Stereoscopisch aan-/uitzetten"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Geluid aanzetten"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]])),e.Ua("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama [AD_ON] z [NUM_ADS]"],["AD_STATISTICS","Statystyki reklam"],["AD_TIME","Reklama: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesyłaj..."],["CHAPTERS","Rozdziały"],["DOWNLOAD_VIDEO_FRAME","Zapisz klatkę filmu"],["ENTER_LOOP_MODE","Odtwarzaj bieżący film w pętli"],["ENTER_PICTURE_IN_PICTURE","Włącz tryb obrazu w obrazie"],["EXIT_FULL_SCREEN","Zamknij pełny ekran"],["EXIT_LOOP_MODE","Wyłącz odtwarzanie bieżącego filmu w pętli"],["EXIT_PICTURE_IN_PICTURE","Wyłącz tryb obrazu w obrazie"],["FAST_FORWARD","Przewiń do przodu"],["FULL_SCREEN","Pełny ekran"],["LANGUAGE","Język"],["LIVE","Na żywo"],["LOOP","Odtwarzaj w pętli"],["MORE_SETTINGS","Więcej ustawień"],["MULTIPLE_LANGUAGES","Wiele języków"],["MUTE","Wycisz"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wyłączone"],["ON","Włączone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w obrazie"],["PLAY","Odtwórz"],["PLAYBACK_RATE","Szybkość odtwarzania"],["QUALITY","Jakość"],["RECENTER_VR","Wyśrodkuj"],["REPLAY","Odtwórz ponownie"],["RESOLUTION","Rozdzielczość"],["REWIND","Przewiń do tyłu"],["SEEK","Szukaj"],["SKIP_AD","Pomiń reklamę"],["SKIP_TO_LIVE","Przejdź do transmisji na żywo"],["STATISTICS","Statystyki"],["SUBTITLE_FORCED","Wymuszone"],["SURROUND","Przestrzenny"],["TOGGLE_STEREOSCOPIC","Przełącz tryb stereoskopowy"],["UNDETERMINED_LANGUAGE","Nie określono"],["UNMUTE","Wyłącz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","Głośność"]])),e.Ua("pt-BR",new Map([["AD_DURATION","Duração do anúncio"],["AD_PROGRESS","Anúncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estatísticas de anúncios"],["AD_TIME","Anúncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automática"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["CHAPTERS","Capítulos"],["DOWNLOAD_VIDEO_FRAME","Salvar frame do vídeo"],["ENTER_LOOP_MODE","Repetir o vídeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE","Parar repetição do vídeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avançar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais definições"],["MULTIPLE_LANGUAGES","Vários idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","Não relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodução"],["QUALITY","Qualidade"],["RECENTER_VR","Centralizar"],["REPLAY","Repetir"],["RESOLUTION","Resolução"],["REWIND","Voltar"],["SEEK","Procurar"],["SKIP_AD","Pular anúncio"],["SKIP_TO_LIVE","Pular para transmissão ao vivo"],["STATISTICS","Estatísticas"],["SUBTITLE_FORCED","Exibição forçada"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Alternar imagem estereoscópica"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","Não reconhecido"],["VOLUME","Volume"]])),e.Ua("ru",new Map([["AD_DURATION","Продолжительность рекламы"],["AD_PROGRESS","Реклама [AD_ON] из [NUM_ADS]"],["AD_STATISTICS","Статистика объявлений"],["AD_TIME","Реклама: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Авто"],["BACK","Назад"],["CAPTIONS","Субтитры"],["CAST","Транслировать..."],["CHAPTERS","Эпизоды"],["DOWNLOAD_VIDEO_FRAME","Сохранить кадр видео"],["ENTER_LOOP_MODE","Зациклить текущее видео"],["ENTER_PICTURE_IN_PICTURE",'Перейти в режим "Картинка в картинке"'],["EXIT_FULL_SCREEN","Обычный режим"],["EXIT_LOOP_MODE","Отменить зацикливание текущего видео"],["EXIT_PICTURE_IN_PICTURE",'Выйти из режима "Картинка в картинке"'],["FAST_FORWARD","Перемотка вперед"],["FULL_SCREEN","Полноэкранный режим"],["LANGUAGE","Язык"],["LIVE","Прямой эфир"],["LOOP","Зациклить"],["MORE_SETTINGS","Дополнительные настройки"],["MULTIPLE_LANGUAGES","Несколько языков"],["MUTE","Отключить звук"],["NOT_APPLICABLE","Неприменимо"],["OFF","Выкл."],["ON","Вкл."],["PAUSE","Пауза"],["PICTURE_IN_PICTURE","Картинка в картинке"],["PLAY","Воспроизвести"],["PLAYBACK_RATE","Скорость воспроизведения"],["QUALITY","Качество"],["RECENTER_VR","Центрировать заново"],["REPLAY","Повторить"],["RESOLUTION","Разрешение"],["REWIND","Перемотать назад"],["SEEK","Перемотка"],["SKIP_AD","Пропустить"],["SKIP_TO_LIVE","Пропустить и перейти к прямой трансляции"],["STATISTICS","Статистика"],["SUBTITLE_FORCED","Субтитры принудительно"],["SURROUND","Объемный звук"],["TOGGLE_STEREOSCOPIC","Включить или отключить стереоскопический режим"],["UNDETERMINED_LANGUAGE","Не указано"],["UNMUTE","Включить звук"],["UNRECOGNIZED_LANGUAGE","Не распознано"],["VOLUME","Громкость"]])),e.Ua("th",new Map([["AD_DURATION","ระยะเวลาโฆษณา"],["AD_PROGRESS","โฆษณา [AD_ON] จาก [NUM_ADS] รายการ"],["AD_STATISTICS","สถิติโฆษณา"],["AD_TIME","โฆษณา: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","อัตโนมัติ"],["BACK","กลับ"],["CAPTIONS","คำบรรยายแทนเสียง"],["CAST","แคสต์..."],["CHAPTERS","บท"],["DOWNLOAD_VIDEO_FRAME","บันทึกเฟรมวิดีโอ"],["ENTER_LOOP_MODE","วนซ้ำวิดีโอปัจจุบัน"],["ENTER_PICTURE_IN_PICTURE","เข้าสู่การแสดงภาพซ้อนภาพ"],["EXIT_FULL_SCREEN","ออกจากการแสดงแบบเต็มหน้าจอ"],["EXIT_LOOP_MODE","หยุดวนซ้ำวิดีโอปัจจุบัน"],["EXIT_PICTURE_IN_PICTURE","ออกจากการแสดงภาพซ้อนภาพ"],["FAST_FORWARD","กรอไปข้างหน้า"],["FULL_SCREEN","เต็มหน้าจอ"],["LANGUAGE","ภาษา"],["LIVE","สด"],["LOOP","ลูป"],["MORE_SETTINGS","การตั้งค่าเพิ่มเติม"],["MULTIPLE_LANGUAGES","หลายภาษา"],["MUTE","ปิดเสียง"],["NOT_APPLICABLE","ไม่เกี่ยวข้อง"],["OFF","ปิด"],["ON","เปิด"],["PAUSE","หยุดชั่วคราว"],["PICTURE_IN_PICTURE","การแสดงภาพซ้อนภาพ"],["PLAY","เล่น"],["PLAYBACK_RATE","ความเร็วในการเล่น"],["QUALITY","คุณภาพ"],["RECENTER_VR","จัดกึ่งกลางใหม่"],["REPLAY","เล่นซ้ำ"],["RESOLUTION","ความละเอียด"],["REWIND","กรอกลับ"],["SEEK","ค้นหา"],["SKIP_AD","ข้ามโฆษณา"],["SKIP_TO_LIVE","ข้ามไปที่การถ่ายทอดสด"],["STATISTICS","สถิติ"],["SUBTITLE_FORCED","บังคับ"],["SURROUND","เซอร์ราวด์"],["TOGGLE_STEREOSCOPIC","เปิด/ปิดฟีเจอร์สามมิติ"],["UNDETERMINED_LANGUAGE","ไม่กำหนด"],["UNMUTE","เปิดเสียง"],["UNRECOGNIZED_LANGUAGE","ที่ไม่รู้จัก"],["VOLUME","ระดับเสียง"]])),e.Ua("tr",new Map([["AD_DURATION","Reklam süresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_STATISTICS","Reklam istatistikleri"],["AD_TIME","Reklam: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyazılar"],["CAST","Yayınla..."],["CHAPTERS","Bölümler"],["DOWNLOAD_VIDEO_FRAME","Video karesini kaydet"],["ENTER_LOOP_MODE","Mevcut videoyu döngüye al"],["ENTER_PICTURE_IN_PICTURE","Pencere içinde Pencere moduna gir"],["EXIT_FULL_SCREEN","Tam ekrandan çık"],["EXIT_LOOP_MODE","Mevcut videonun döngüsünü durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere İçinde Pencereden Çık"],["FAST_FORWARD","İleri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canlı"],["LOOP","Döngü"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden çok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Geçerli değil"],["OFF","Kapalı"],["ON","Açık"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere İçinde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","Çalma hızı"],["QUALITY","Kalite"],["RECENTER_VR","Ortala"],["REPLAY","Tekrar Oynat"],["RESOLUTION","Çözünürlük"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklamı Atla"],["SKIP_TO_LIVE","Canlı yayına atla"],["STATISTICS","İstatistikler"],["SUBTITLE_FORCED","Zorunlu"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Stereoskopik modu aç/kapat"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi aç"],["UNRECOGNIZED_LANGUAGE","Tanınmayan"],["VOLUME","Ses"]])),e.Ua("zh",new Map([["AD_DURATION","广告持续时间"],["AD_PROGRESS","广告 [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","广告统计信息"],["AD_TIME","广告:[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","自动"],["BACK","返回"],["CAPTIONS","字幕"],["CAST","投放…"],["CHAPTERS","章节"],["DOWNLOAD_VIDEO_FRAME","保存视频帧"],["ENTER_LOOP_MODE","循环播放当前视频"],["ENTER_PICTURE_IN_PICTURE","进入“画中画”模式"],["EXIT_FULL_SCREEN","退出全屏模式"],["EXIT_LOOP_MODE","停止循环播放当前视频"],["EXIT_PICTURE_IN_PICTURE","退出“画中画”模式"],["FAST_FORWARD","快进"],["FULL_SCREEN","全屏"],["LANGUAGE","语言"],["LIVE","直播"],["LOOP","循环播放"],["MORE_SETTINGS","更多设置"],["MULTIPLE_LANGUAGES","多种语言"],["MUTE","静音"],["NOT_APPLICABLE","不适用"],["OFF","关闭"],["ON","开启"],["PAUSE","暂停"],["PICTURE_IN_PICTURE","画中画"],["PLAY","播放"],["PLAYBACK_RATE","播放速度"],["QUALITY","画质"],["RECENTER_VR","重新置中"],["REPLAY","重放"],["RESOLUTION","分辨率"],["REWIND","快退"],["SEEK","进度"],["SKIP_AD","跳过广告"],["SKIP_TO_LIVE","跳至当前直播"],["STATISTICS","统计信息"],["SUBTITLE_FORCED","已强制显示"],["SURROUND","环绕声"],["TOGGLE_STEREOSCOPIC","切换立体声"],["UNDETERMINED_LANGUAGE","未确定"],["UNMUTE","取消静音"],["UNRECOGNIZED_LANGUAGE","无法识别"],["VOLUME","音量"]])),e.Ua("zh-TW",new Map([["AD_DURATION","廣告長度"],["AD_PROGRESS","廣告 [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","廣告統計資料"],["AD_TIME","廣告:[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","自動"],["BACK","返回"],["CAPTIONS","字幕"],["CAST","投放..."],["CHAPTERS","章節"],["DOWNLOAD_VIDEO_FRAME","儲存影片影格"],["ENTER_LOOP_MODE","循環播放目前的影片"],["ENTER_PICTURE_IN_PICTURE","進入子母畫面"],["EXIT_FULL_SCREEN","退出全螢幕模式"],["EXIT_LOOP_MODE","停止循環播放目前的影片"],["EXIT_PICTURE_IN_PICTURE","離開子母畫面"],["FAST_FORWARD","快轉"],["FULL_SCREEN","全螢幕"],["LANGUAGE","語言"],["LIVE","直播"],["LOOP","循環播放"],["MORE_SETTINGS","顯示更多設定"],["MULTIPLE_LANGUAGES","多種語言"],["MUTE","靜音"],["NOT_APPLICABLE","不適用"],["OFF","關閉"],["ON","開啟"],["PAUSE","暫停"],["PICTURE_IN_PICTURE","子母畫面"],["PLAY","播放"],["PLAYBACK_RATE","播放速度"],["QUALITY","音質"],["RECENTER_VR","重新置中"],["REPLAY","重播"],["RESOLUTION","解析度"],["REWIND","倒轉"],["SEEK","搜尋"],["SKIP_AD","略過廣告"],["SKIP_TO_LIVE","跳至当前直播"],["STATISTICS","統計資料"],["SUBTITLE_FORCED","強制顯示"],["SURROUND","環場音效"],["TOGGLE_STEREOSCOPIC","切換立體影像"],["UNDETERMINED_LANGUAGE","不明"],["UNMUTE","取消靜音"],["UNRECOGNIZED_LANGUAGE","無法辨識"],["VOLUME","音量"]])),e.Qh(navigator.languages||[]),e}xe("shaka.ui.Controls",Be),Be.prototype.incrementRoll=Be.prototype.Mg,Be.prototype.incrementPitch=Be.prototype.Lg,Be.prototype.incrementYaw=Be.prototype.Ng,Be.prototype.toggleStereoscopicMode=Be.prototype.Gd,Be.prototype.setVRFieldOfView=Be.prototype.yl,Be.prototype.getVRFieldOfView=Be.prototype.lk,Be.prototype.getVRNorth=Be.prototype.nk,Be.prototype.isPlayingVR=Be.prototype.Nb,Be.prototype.canPlayVR=Be.prototype.cg,Be.prototype.hideUI=Be.prototype.xk,Be.prototype.showUI=Be.prototype.zl,Be.prototype.isOpaque=Be.prototype.Ca,Be.prototype.hideAdUI=Be.prototype.ii,Be.prototype.showAdUI=Be.prototype.Ui,Be.prototype.togglePiP=Be.prototype.fd,Be.prototype.isPiPEnabled=Be.prototype.Yd,Be.prototype.isPiPAllowed=Be.prototype.Ze,Be.prototype.toggleFullScreen=Be.prototype.Gf,Be.prototype.isFullScreenEnabled=Be.prototype.Ac,Be.prototype.isFullScreenSupported=Be.prototype.Xd,Be.prototype.hideSettingsMenus=Be.prototype.Sc,Be.prototype.anySettingsMenusAreOpen=Be.prototype.Id,Be.prototype.setLastTouchEventTime=Be.prototype.Qi,Be.prototype.getDisplayTime=Be.prototype.Fg,Be.prototype.isCastAllowed=Be.prototype.yk,Be.prototype.setSeeking=Be.prototype.rh,Be.prototype.isSeeking=Be.prototype.Ek,Be.prototype.getConfig=Be.prototype.Gj,Be.prototype.getClientSideAdContainer=Be.prototype.Fj,Be.prototype.getServerSideAdContainer=Be.prototype.fk,Be.prototype.getControlsContainer=Be.prototype.Jj,Be.prototype.getLocalPlayer=Be.prototype.Sj,Be.prototype.getPlayer=Be.prototype.vc,Be.prototype.getLocalVideo=Be.prototype.Tj,Be.prototype.getVideo=Be.prototype.zc,Be.prototype.getVideoContainer=Be.prototype.qk,Be.prototype.getLocalization=Be.prototype.Uj,Be.prototype.getCastProxy=Be.prototype.Dj,Be.prototype.getAd=Be.prototype.getAd,Be.prototype.setEnabledNativeControls=Be.prototype.Oi,Be.prototype.setEnabledShakaControls=Be.prototype.nh,Be.prototype.configure=Be.prototype.configure,Be.prototype.loadComplete=Be.prototype.Hk,Be.prototype.allowCast=Be.prototype.oj,Be.registerSeekBar=function(e){cM=e},Be.registerElement=ua,Be.prototype.destroy=Be.prototype.destroy;var Cx=new Map,cM=new cx;function LE(e,t){St.call(this,e,t);var n=this;this.l=this.controls.g,this.j=this.controls.j,this.i=[],this.g=zn(),this.g.classList.add("shaka-overflow-menu-button"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),this.g.textContent="more_vert",this.parent.appendChild(this.g),this.h=Ne("div"),this.h.classList.add("shaka-overflow-menu"),this.h.classList.add("shaka-no-propagation"),this.h.classList.add("shaka-show-controls-on-mouse-over"),this.h.classList.add("shaka-hidden"),this.j.appendChild(this.h),gI(this),this.eventManager.o(this.localization,"locale-updated",function(){Mx(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Mx(n)}),this.eventManager.o(this.adManager,"ad-started",function(){n.ad&&n.ad.isLinear()&&ht(n.g,!1)}),this.eventManager.o(this.adManager,"ad-stopped",function(){ht(n.g,!0)}),this.eventManager.o(this.controls,"submenuopen",function(){ht(n.h,!1)}),this.eventManager.o(this.h,"touchstart",function(i){n.controls.Qi(Date.now()),i.stopPropagation()}),this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&mI(n)}),Mx(this),this.ad&&this.ad.isLinear()&&ht(this.g,!1)}Xe(LE,St),LE.prototype.release=function(){this.j=null;for(var e=b(this.i),t=e.next();!t.done;t=e.next())t.value.release();this.i=[],St.prototype.release.call(this)};function To(e,t){bx.set(e,t)}function gI(e){for(var t=b(e.l.overflowMenuButtons),n=t.next();!n.done;n=t.next())n=n.value,bx.get(n)?(n=bx.get(n),e.i.push(n.create(e.h,e.controls))):st("Unrecognized overflow menu element requested:",n)}function mI(e){if(e.controls.Id())e.controls.Sc();else{ht(e.h,!0),Th(e.controls);var t=function(n){return n.classList.contains("shaka-hidden")==0};H1(e.h.childNodes,t)&&ml(e.h.childNodes,t)[0].focus()}}function Mx(e){e.g.ariaLabel=e.localization.resolve("MORE_SETTINGS")}xe("shaka.ui.OverflowMenu",LE),LE.registerElement=To;function fM(){}fM.prototype.create=function(e,t){return new LE(e,t)},ua("overflow_menu",new fM);var bx=new Map;function SA(e,t){function n(a){return i.i[a]}St.call(this,e,t);var i=this;this.h=zn(),this.h.classList.add("shaka-ad-statistics-button"),this.j=Ne("i"),this.j.classList.add("material-icons-round"),this.j.textContent="insert_chart_outlined",this.h.appendChild(this.j),e=Ne("label"),e.classList.add("shaka-overflow-button-label"),this.u=Ne("span"),e.appendChild(this.u),this.m=Ne("span"),this.m.classList.add("shaka-current-selection-span"),e.appendChild(this.m),this.h.appendChild(e),this.parent.appendChild(this.h),this.g=Ne("div"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("shaka-show-controls-on-mouse-over"),this.g.classList.add("shaka-ad-statistics-container"),this.g.classList.add("shaka-hidden"),this.controls.j.appendChild(this.g),this.C=[],this.i=this.adManager.getStats(),ht(this.h,0<this.i.started),this.s=new Map,this.B=new Map().set("loadTimes",function(a){var l=0;a=b(i.i[a]);for(var f=a.next();!f.done;f=a.next())l+=parseFloat(f.value);return l}).set("averageLoadTime",n).set("started",n).set("overlayAds",n).set("playedCompletely",n).set("skipped",n).set("errors",n),this.l=new Ke(function(){i.i=i.adManager.getStats();for(var a=b(i.C),l=a.next();!l.done;l=a.next())l=l.value,i.s.get(l).textContent=i.B.get(l)(l)}),TA(this),vI(this),this.eventManager.o(this.localization,"locale-updated",function(){TA(i)}),this.eventManager.o(this.localization,"locale-changed",function(){TA(i)}),this.eventManager.o(this.h,"click",function(){i.controls.Ca()&&(dM(i),TA(i))}),this.eventManager.o(this.player,"loading",function(){ht(i.h,!1)}),this.eventManager.o(this.adManager,"ad-started",function(){ht(i.h,!0)})}Xe(SA,St);function dM(e){e.g.classList.contains("shaka-hidden")?(e.j.textContent="insert_chart",e.l.xa(.1),ht(e.g,!0)):(e.j.textContent="insert_chart_outlined",e.l.stop(),ht(e.g,!1))}function TA(e){e.u.textContent=e.localization.resolve("AD_STATISTICS"),e.h.ariaLabel=e.localization.resolve("AD_STATISTICS"),e.m.textContent=e.localization.resolve(e.g.classList.contains("shaka-hidden")?"OFF":"ON")}function yI(e,t){var n=Ne("div"),i=Ne("label");return i.textContent=t+":",n.appendChild(i),i=Ne("span"),i.textContent=e.B.get(t)(t),n.appendChild(i),e.s.set(t,i),n}function vI(e){var t=Ne("div");t.classList.add("shaka-no-propagation"),t.classList.add("shaka-statistics-close");var n=Ne("i");for(n.classList.add("material-icons-round"),n.textContent="close",t.appendChild(n),e.g.appendChild(t),e.eventManager.o(n,"click",function(){dM(e)}),t=b(e.controls.g.adStatisticsList),n=t.next();!n.done;n=t.next())n=n.value,n in e.i?(e.g.appendChild(yI(e,n)),e.C.push(n)):st("Unrecognized ad statistic element:",n)}SA.prototype.release=function(){this.l.stop(),this.l=null,St.prototype.release.call(this)},xe("shaka.ui.AdStatisticsButton",SA);function Rx(){}Rx.prototype.create=function(e,t){return new SA(e,t)},To("ad_statistics",new Rx),U1("ad_statistics",new Rx);function Dx(e,t){St.call(this,e,t);var n=this;this.g=zn(),this.g.classList.add("shaka-airplay-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.h=Ne("i"),this.h.classList.add("material-icons-round"),this.h.textContent="airplay",this.g.appendChild(this.h),oe.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden"),e=Ne("label"),e.classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.j=Ne("span"),e.appendChild(this.j),this.i=Ne("span"),this.i.classList.add("shaka-current-selection-span"),e.appendChild(this.i),this.g.appendChild(e),this.parent.appendChild(this.g),Ix(this),hM(this),this.eventManager.o(this.localization,"locale-updated",function(){Ix(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Ix(n)}),this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&n.controls.zc().webkitShowPlaybackTargetPicker()}),e=this.controls.zc(),this.eventManager.o(e,"webkitplaybacktargetavailabilitychanged",function(i){var a=n.player.m==vu;ht(n.g,i.availability=="available"&&a)}),this.eventManager.o(e,"webkitcurrentplaybacktargetiswirelesschanged",function(){hM(n)})}Xe(Dx,St);function hM(e){var t=e.controls.zc();e.g.ariaPressed=t&&t.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Ix(e){e.g.ariaLabel=e.localization.resolve("AIRPLAY"),e.j.textContent=e.localization.resolve("AIRPLAY")}xe("shaka.ui.AirPlayButton",Dx);function Lx(){}Lx.prototype.create=function(e,t){return new Dx(e,t)},To("airplay",new Lx),ua("airplay",new Lx);function Xp(e,t){St.call(this,e,t);var n=this;this.g=document.createElement("canvas"),this.g.style.position="absolute",this.g.style.top="0",this.g.style.left="0",this.g.style.pointerEvents="none",this.parent.appendChild(this.g),EA(this),this.i=this.h=null,oe.ResizeObserver?(this.i=new ResizeObserver(function(){return EA(n)}),this.i.observe(this.parent)):oe.addEventListener("resize",function(){return EA(n)})}Xe(Xp,St);function pM(e){return(e=e.g.getContext("2d"))?e:null}function EA(e){e.g.width=e.parent.offsetWidth,e.g.height=e.parent.offsetHeight}Xp.prototype.Df=function(e,t){if(e={type:"static",text:e,position:"top-right",color:"rgba(255, 255, 255, 0.7)",size:20,alpha:.7,interval:2e3,skip:500,displayDuration:2e3,transitionDuration:.5},t=Object.assign({},e,t||e),t.type==="static"){if(e=pM(this)){e.clearRect(0,0,this.g.width,this.g.height),e.globalAlpha=t.alpha,e.fillStyle=t.color,e.font=t.size+"px Arial";var n=e.measureText(t.text);switch(t.position){case"top-left":n=20;var i=t.size+20;break;case"top-right":n=this.g.width-n.width-20,i=t.size+20;break;case"bottom-left":n=20,i=this.g.height-20;break;case"bottom-right":n=this.g.width-n.width-20,i=this.g.height-20;break;default:n=(this.g.width-n.width)/2,i=(this.g.height+t.size)/2}e.fillText(t.text,n,i)}}else t.type==="dynamic"&&SI(this,t)};function SI(e,t){function n(){if(e.h){switch(a.clearRect(0,0,e.g.width,e.g.height),d){case"fadeIn":f=Math.min(t.alpha,f+m),f>=t.alpha&&(d="display");break;case"display":0>=--g&&(d="fadeOut");break;case"fadeOut":f=Math.max(0,f-m),0>=f&&(d="transition",l=i(),g=Math.round(60*t.displayDuration),d="fadeIn")}0<f&&(a.globalAlpha=f,a.fillStyle=t.color,a.font=t.size+"px Arial",a.fillText(t.text,l.left,l.top)),e.h&&(e.h=requestAnimationFrame(n))}}function i(){a.font=t.size+"px Arial";var T=a.measureText(t.text).width,x=t.size;return T=[{left:20,top:x+20},{left:e.g.width-T-20,top:x+20},{left:20,top:e.g.height-20},{left:e.g.width-T-20,top:e.g.height-20},{left:(e.g.width-T)/2,top:(e.g.height+x)/2}],x=T[S],S=(S+1)%T.length,x}var a=e.g.getContext("2d"),l={left:0,top:0},f=0,d="fadeIn",g=Math.round(60*t.displayDuration),m=1/(Math.round(60*t.transitionDuration)/2),S=0;l=i(),e.h=requestAnimationFrame(n)}Xp.prototype.wf=function(){this.h&&(cancelAnimationFrame(this.h),this.h=null);var e=pM(this);e&&e.clearRect(0,0,this.g.width,this.g.height)},Xp.prototype.release=function(){var e=this;this.g&&this.g.parentNode&&this.g.parentNode.removeChild(this.g),this.i?(this.i.disconnect(),this.i=null):oe.removeEventListener("resize",function(){return EA(e)}),St.prototype.release.call(this)},xe("shaka.ui.Watermark",Xp),Xp.prototype.removeWatermark=Xp.prototype.wf,Xp.prototype.setTextWatermark=Xp.prototype.Df;function Oa(e,t,n,i){i=i===void 0?null:i,this.j=e,this.l=t,this.h=AA(this);var a="",l=!1;t.dataset&&t.dataset.shakaPlayerCastReceiverId?(l=t.dataset,a=l.shakaPlayerCastReceiverId,l=l.shakaPlayerCastAndroidReceiverCompatible==="true"):n.dataset&&n.dataset.shakaPlayerCastReceiverId&&(l=n.dataset,a=l.shakaPlayerCastReceiverId,l=l.shakaPlayerCastAndroidReceiverCompatible==="true"),a.length&&(this.h.castReceiverAppId=a,this.h.castAndroidReceiverCompatible=l),t.dataset.shakaPlayerContainer="",t.ui=this,this.Rg()&&t.classList.add("shaka-mobile"),this.g=new Be(e,t,n,i,this.h),n.controls||e.sh(t),t.ui=this,n.ui=this,this.i=null}w=Oa.prototype,w.destroy=function(){var e=this;return q(function(t){if(t.g==1)return e.g?O(t,e.g.destroy(),2):t.A(2);if(t.g!=4)return e.g=null,e.j?O(t,e.j.destroy(),4):t.A(4);e.j=null,e.i=null,ve(t)})},w.Rg=function(){return navigator.userAgentData?navigator.userAgentData.mobile:wh()||eu()},w.getConfiguration=function(){var e=AA(this);return t0(e,this.h,AA(this),{},""),e},w.configure=function(e,t){arguments.length==2&&typeof e=="string"&&(e=gp(e,t));var n=Object.assign({},this.h);t0(n,e,AA(this),{},""),n.castReceiverAppId&&!n.overflowMenuButtons.includes("cast")&&n.overflowMenuButtons.push("cast");var i=Qo(n,this.h);Object.keys(i).length&&(this.h=n,this.g.configure(this.h),this.g.dispatchEvent(new Te("uiupdated")))},w.Ij=function(){return this.g},w.wl=function(e){this.g.nh(e)},w.Df=function(e,t){e&&!this.i&&this.l&&this.g&&(this.i=new Xp(this.l,this.g)),this.i&&this.i.Df(e,t)},w.wf=function(){this.i&&this.i.wf()};function AA(e){var t={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language chapter picture_in_picture cast playback_rate recenter_vr toggle_stereoscopic".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent manifestSizeBytes bytesDownloaded nonFatalErrorCount manifestPeriodCount manifestGapCount".split(" "),adStatisticsList:"loadTimes averageLoadTime started overlayAds playedCompletely skipped errors".split(" "),contextMenuElements:["loop","picture_in_picture","save_video_frame","statistics","ad_statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},trackLabelFormat:OE,textTrackLabelFormat:OE,fadeDelay:0,closeMenusDelay:2,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:e.l,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:0<navigator.maxTouchPoints,tapSeekDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular",setupMediaSession:!0,preferVideoFullScreenInVisionOS:!1,showAudioCodec:!0,showVideoCodec:!0};return"remote"in HTMLMediaElement.prototype?t.overflowMenuButtons.push("remote"):oe.WebKitPlaybackTargetAvailabilityEvent&&t.overflowMenuButtons.push("airplay"),e.Rg()&&(t.addBigPlayButton=!0,t.controlPanelElements=t.controlPanelElements.filter(function(n){return n!="play_pause"&&n!="volume"})),t.overflowMenuButtons.push("save_video_frame"),t}function gM(){var e,t,n,i,a,l,f,d,g,m,S,T,x,M,R,L,I,U,N,j,B,Y;return q(function(P){switch(P.g){case 1:if(Rw(),!De())return Ox("shaka-ui-load-failed",vM),P.return();if(e=document.querySelectorAll("[data-shaka-player-container]"),t=document.querySelectorAll("[data-shaka-player]"),n=document.querySelectorAll("[data-shaka-player-canvas]"),i=document.querySelectorAll("[data-shaka-player-vr-canvas]"),!t.length&&!e.length){P.A(2);break}if(t.length&&!e.length){for(a=b(t),l=a.next();!l.done;l=a.next())f=l.value,f.ui||(d=document.createElement("div"),g=f.parentElement,g.replaceChild(d,f),d.appendChild(f),m=yM(d,n,i),S=m.oi,T=m.hj,mM(d,f,S,T));P.A(2);break}x=b(e),M=x.next();case 4:if(M.done){P.A(2);break}if(R=M.value,R.ui){P.A(5);break}for(L=null,I=b(t),U=I.next();!U.done;U=I.next())if(N=U.value,N.parentElement==R){L=N;break}return L||(L=document.createElement("video"),L.setAttribute("playsinline",""),R.appendChild(L)),j=yM(R,n,i),B=j.oi,Y=j.hj,Le(P,7),O(P,mM(R,L,B,Y),9);case 9:Ge(P,5);break;case 7:return je(P),Ox("shaka-ui-load-failed",SM),P.return();case 5:M=x.next(),P.A(4);break;case 2:Ox("shaka-ui-loaded"),ve(P)}})}function Ox(e,t){var n=null;t!=null&&(n={reasonCode:t}),e=new CustomEvent(e,{detail:n}),document.dispatchEvent(e)}function mM(e,t,n,i){var a,l,f,d,g,m,S,T,x,M;return q(function(R){switch(R.g){case 1:for(a=new te,l=new Oa(a,e,t,i||null),a.Kh(n),t.controls&&l.g.Oi(!0),f=[],(d=t.getAttribute("src"))&&(f.push(d),t.removeAttribute("src")),g=b(t.getElementsByTagName("source")),m=g.next();!m.done;m=g.next())S=m.value,f.push(S.src),t.removeChild(S);return O(R,a.Wb(t),2);case 2:T=b(f),x=T.next();case 3:if(x.done){R.A(0);break}return M=x.value,Le(R,6),O(R,l.g.vc().load(M),8);case 8:R.A(0);break;case 6:je(R);case 4:x=T.next(),R.A(3)}})}function yM(e,t,n){var i=null;t=b(t);for(var a=t.next();!a.done;a=t.next())if(a=a.value,a.parentElement==e){i=a;break}for(i||(i=document.createElement("canvas"),i.classList.add("shaka-canvas-container"),e.appendChild(i)),t=null,n=b(n),a=n.next();!a.done;a=n.next())if(a=a.value,a.parentElement==e){t=a;break}return{oi:i,hj:t}}xe("shaka.ui.Overlay",Oa),Oa.prototype.removeWatermark=Oa.prototype.wf,Oa.prototype.setTextWatermark=Oa.prototype.Df,Oa.prototype.setEnabled=Oa.prototype.wl,Oa.prototype.getControls=Oa.prototype.Ij,Oa.prototype.configure=Oa.prototype.configure,Oa.prototype.getConfiguration=Oa.prototype.getConfiguration,Oa.prototype.isMobile=Oa.prototype.Rg,Oa.prototype.destroy=Oa.prototype.destroy;var OE=0;Oa.TrackLabelFormat={LANGUAGE:OE,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var vM=0,SM=1;Oa.FailReasonCode={NO_BROWSER_SUPPORT:vM,PLAYER_FAILED_TO_LOAD:SM},document.readyState=="complete"?q(function(e){if(e.g==1)return O(e,Promise.resolve(),2);gM(),ve(e)}):oe.addEventListener("load",gM);function TI(e,t,n,i,a,l,f,d){function g(ee){var Q="";return ee=="aac"?Q="AAC":ee==="ac-3"?Q="Dolby":ee==="ec-3"?Q="DD+":ee==="ac-4"?Q="Dolby AC-4":ee==="opus"?Q="Opus":ee==="flac"&&(Q="fLaC"),Q&&" "+Q}function m(ee){var Q="";return 5<=ee&&(Q=" "+a.resolve("SURROUND")),Q}function S(ee,Q,ne,ie,ue,ce){return Q=[ee,Q,ce],f&&ie!=null&&Q.push(ie),d&&T(ee)&&ue&&Q.push(ue),ne&&l==3&&Q.push(ne),Q.join(": ")}function T(ee){return M.has(ee)&&1<M.get(ee).size}for(var x=e.find(function(ee){return ee.active==1}),M=new Map,R=b(e),L=R.next();!L.done;L=R.next())L=L.value,L.codecs&&(M.has(L.language)||M.set(L.language,new Set),M.get(L.language).add(In(L.codecs)));R=lA(t),Zr(t),t.appendChild(R),R=new Set,x=x?S(x.language,x.roles.join(", "),x.label,x.channelsCount,x.codecs&&In(x.codecs),x.spatialAudio):"",e=b(e);var I=e.next();for(L={};!I.done;L={Vb:void 0},I=e.next()){L.Vb=I.value,I=L.Vb.language;var U=L.Vb.roles.join(", "),N=L.Vb.label,j=L.Vb.channelsCount,B=L.Vb.codecs&&In(L.Vb.codecs),Y=L.Vb.spatialAudio,P=S(I,U,N,j,B,Y);if(!R.has(P)){R.add(P);var V=zn();V.addEventListener("click",function(ee){return function(){n(ee.Vb)}}(L));var F=Ne("span");V.appendChild(F),F.textContent=TM(I,a);var K="";switch(d&&f&&Y&&(B=="ec-3"||B=="ac-4")?K+=" Dolby Atmos":(d&&T(I)&&(K+=g(B)),f&&(K+=m(j))),l){case OE:F.textContent+=K;break;case 1:F.textContent+=K,U?F.textContent=U:(st("Track #"+JSON.stringify(L.Vb)+" does not have a role, but the UI is configured to only show role."),F.textContent="?");break;case 2:F.textContent+=K,U&&(F.textContent+=": "+U);break;case 3:N?F.textContent=N:(st("Track #"+JSON.stringify(L.Vb)+" does not have a label, but the UI is configured to only show labels."),F.textContent="?")}P==x&&(V.appendChild(O1()),F.classList.add("shaka-chosen-item"),V.ariaSelected="true",i.textContent=F.textContent),t.appendChild(V)}}}function EI(e,t,n,i,a,l,f){function d(j,B,Y){return j=[j,B],Y&&f==3&&j.push(Y),j.join(": ")}var g=e.find(function(j){return j.active==1}),m=lA(t);Zr(t),t.appendChild(m),m=new Set,g=g?d(g.language,g.roles.join(", "),g.label):"",e=b(e);for(var S=e.next(),T={};!S.done;T={Gc:void 0},S=e.next()){T.Gc=S.value,S=T.Gc.language;var x=T.Gc.forced,M=l.resolve("SUBTITLE_FORCED"),R=T.Gc.roles.join(", "),L=T.Gc.label,I=d(S,R,L);if(!m.has(I)){m.add(I);var U=zn();U.addEventListener("click",function(j){return function(){n(j.Gc)}}(T));var N=Ne("span");switch(U.appendChild(N),N.textContent=TM(S,l),f){case OE:x&&(N.textContent+=" ("+M+")");break;case 1:R?N.textContent=R:(st("Track #"+T.Gc.id+" does not have a role, but the UI is configured to only show role."),N.textContent="?"),x&&(N.textContent+=" ("+M+")");break;case 2:R&&(N.textContent+=": "+R),x&&(N.textContent+=" ("+M+")");break;case 3:L?N.textContent=L:(st("Track #"+T.Gc.id+" does not have a label, but the UI is configured to only show labels."),N.textContent="?")}i&&I==g&&(U.appendChild(O1()),N.classList.add("shaka-chosen-item"),U.ariaSelected="true",a.textContent=N.textContent),t.appendChild(U)}}}function TM(e,t){if(!e&&!t)return"";switch(e){case"mul":return t.resolve("MULTIPLE_LANGUAGES");case"und":return t.resolve("UNDETERMINED_LANGUAGE");case"zxx":return t.resolve("NOT_APPLICABLE")}var n=Lo(e);return e in L1?L1[e].F:n in L1?L1[n].F+" ("+e+")":t.resolve("UNRECOGNIZED_LANGUAGE")+" ("+e+")"}function cd(e,t,n){St.call(this,e,t);var i=this;AI(this,n),xI(this),wI(this),this.eventManager.o(this.button,"click",function(){i.controls.Ca()&&(i.menu.classList.contains("shaka-hidden")?(i.controls.dispatchEvent(new Te("submenuopen")),ht(i.menu,!0),JS(i.menu)):ht(i.menu,!1))})}Xe(cd,St);function AI(e,t){e.button=zn(),e.button.classList.add("shaka-overflow-button"),e.icon=Ne("i"),e.icon.classList.add("material-icons-round"),e.icon.textContent=t,e.button.appendChild(e.icon),t=Ne("label"),t.classList.add("shaka-overflow-button-label"),t.classList.add("shaka-overflow-menu-only"),e.nameSpan=Ne("span"),t.appendChild(e.nameSpan),e.currentSelection=Ne("span"),e.currentSelection.classList.add("shaka-current-selection-span"),t.appendChild(e.currentSelection),e.button.appendChild(t),e.parent.appendChild(e.button)}function xI(e){e.menu=Ne("div"),e.menu.classList.add("shaka-no-propagation"),e.menu.classList.add("shaka-show-controls-on-mouse-over"),e.menu.classList.add("shaka-settings-menu"),e.menu.classList.add("shaka-hidden"),e.backButton=zn(),e.backButton.classList.add("shaka-back-to-overflow-button"),e.menu.appendChild(e.backButton),e.eventManager.o(e.backButton,"click",function(){e.controls.Sc()});var t=Ne("i");t.classList.add("material-icons-round"),t.textContent="close",e.backButton.appendChild(t),e.backSpan=Ne("span"),e.backButton.appendChild(e.backSpan),e.controls.j.appendChild(e.menu)}function wI(e){e.parent.classList.contains("shaka-overflow-menu")&&(e.backButton.firstChild.textContent="arrow_back",e.eventManager.o(e.menu,"click",function(){function t(n){return n.classList.contains("shaka-hidden")==0}ht(e.menu,!1),ht(e.parent,!0),H1(e.parent.childNodes,t)&&ml(e.parent.childNodes,t)[0].focus(),Th(e.controls)}))}xe("shaka.ui.SettingsMenu",cd);function Ux(e,t){cd.call(this,e,t,"language");var n=this;this.button.classList.add("shaka-language-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-audio-languages"),this.eventManager.o(this.localization,"locale-updated",function(){Nx(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Nx(n)}),this.eventManager.o(this.player,"loading",function(){kx(n)}),this.eventManager.o(this.player,"audiotrackschanged",function(){kx(n)}),Nx(this),kx(this)}Xe(Ux,cd);function kx(e){var t=e.player.getAudioTracks();TI(t,e.menu,function(n){e.player.Ki(n),e.player.configure("preferredAudioLanguage",n.language),n.label&&e.player.configure("preferredAudioLabel",n.label),n.channelsCount&&e.player.configure("preferredAudioChannelCount",n.channelsCount),e.player.configure("preferSpatialAudio",n.spatialAudio)},e.currentSelection,e.localization,e.controls.g.trackLabelFormat,e.controls.g.showAudioChannelCountVariants,e.controls.g.showAudioCodec),JS(e.menu),e.controls.dispatchEvent(new Te("languageselectionupdated")),e.button.setAttribute("shaka-status",e.currentSelection.innerText),ht(e.button,2<e.menu.getElementsByTagName("button").length)}function Nx(e){e.backButton.ariaLabel=e.localization.resolve("BACK"),e.button.ariaLabel=e.localization.resolve("LANGUAGE"),e.nameSpan.textContent=e.localization.resolve("LANGUAGE"),e.backSpan.textContent=e.localization.resolve("LANGUAGE")}xe("shaka.ui.AudioLanguageSelection",Ux);function _x(){}_x.prototype.create=function(e,t){return new Ux(e,t)},To("language",new _x),ua("language",new _x);function jx(e,t){St.call(this,e,t);var n=this;this.h=this.controls.D,this.g=zn(),this.g.classList.add("shaka-cast-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.i=Ne("i"),this.i.classList.add("material-icons-round"),this.i.textContent="cast",this.g.appendChild(this.i),e=Ne("label"),e.classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.l=Ne("span"),e.appendChild(this.l),this.j=Ne("span"),this.j.classList.add("shaka-current-selection-span"),e.appendChild(this.j),this.g.appendChild(e),this.parent.appendChild(this.g),zx(this),EM(this),this.eventManager.o(this.localization,"locale-updated",function(){zx(n)}),this.eventManager.o(this.localization,"locale-changed",function(){zx(n)}),this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&CI(n)}),this.eventManager.o(this.controls,"caststatuschanged",function(){EM(n)})}Xe(jx,St);function CI(e){var t;q(function(n){if(n.g==1)return e.h.Qa()?(e.h.Yi(),n.A(0)):(Le(n,3),e.g.disabled=!0,O(n,e.h.cast(),5));if(n.g!=3)return e.g.disabled=!1,Ge(n,0);t=je(n),e.g.disabled=!1,t.code!=8004&&e.controls.dispatchEvent(new Te("error",new Map().set("detail",t))),ve(n)})}function EM(e){var t=e.h.ag()&&e.controls.ua,n=e.h.Qa();ht(e.g,t),e.i.textContent=n?"cast_connected":"cast",t&&(e.g.ariaPressed=n?"true":"false"),AM(e)}function AM(e){e.j.textContent=e.h.Qa()?e.h.uf():e.localization.resolve("OFF")}function zx(e){e.g.ariaLabel=e.localization.resolve("CAST"),e.l.textContent=e.localization.resolve("CAST"),AM(e)}xe("shaka.ui.CastButton",jx);function Bx(){}Bx.prototype.create=function(e,t){return new jx(e,t)},To("cast",new Bx),ua("cast",new Bx);function Px(e,t){cd.call(this,e,t,"bookmarks");var n=this;this.button.classList.add("shaka-chapter-button"),this.menu.classList.add("shaka-chapters"),this.button.classList.add("shaka-tooltip-status"),this.g=[],this.h="und",this.eventManager.o(this.localization,"locale-updated",function(){Hx(n),xA(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Hx(n),xA(n)}),this.eventManager.o(this.player,"unloading",function(){xM(n),n.h="und",n.g=[]}),this.eventManager.o(this.player,"trackschanged",function(){xA(n)}),Hx(this),xA(this)}Xe(Px,cd);function Hx(e){e.backButton.ariaLabel=e.localization.resolve("BACK"),e.button.ariaLabel=e.localization.resolve("CHAPTERS"),e.nameSpan.textContent=e.localization.resolve("CHAPTERS"),e.backSpan.textContent=e.localization.resolve("CHAPTERS")}function xM(e){var t=lA(e.menu);Zr(e.menu),e.menu.appendChild(t),ht(e.button,!1)}function xA(e){function t(d,g){return!d&&!g||d.id===g.id&&d.title===g.title&&d.startTime===g.startTime&&d.endTime===g.endTime}for(var n="und",i=[],a=b(Array.from(e.localization.g)),l=a.next();!l.done&&(n=l.value,i=e.player.Eg(n)||[],!i.length);l=a.next());if(i.length||(n="und",i=e.player.Eg(n)||[]),a=n!==e.h,l=e.g.length!==i.length||!e.g.some(function(d,g){return g=i.at(g),t(d,g)||i.some(function(m){return t(d,m)})}),e.h=n,e.g=i,!i.length)xM(e);else if(a||l){for(n=b(e.g),l=n.next(),a={};!l.done;a={dg:void 0},l=n.next()){a.dg=l.value,l=zn();var f=Ne("span");f.classList.add("shaka-chapter"),f.textContent=a.dg.title,l.appendChild(f),e.eventManager.o(l,"click",function(d){return function(){e.controls.Ca()&&(e.video.currentTime=d.dg.startTime)}}(a)),e.menu.appendChild(l)}ht(e.button,!0),JS(e.menu)}}xe("shaka.ui.ChapterSelection",Px);function Gx(){}Gx.prototype.create=function(e,t){return new Px(e,t)},To("chapter",new Gx),ua("chapter",new Gx);function Vx(e,t){St.call(this,e,t);var n=this;this.g=zn(),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-fast-forward-button"),this.g.classList.add("shaka-tooltip-status"),this.g.setAttribute("shaka-status","1x"),this.g.textContent="fast_forward",this.parent.appendChild(this.g),qx(this),this.h=this.controls.g.fastForwardRates,this.eventManager.o(this.localization,"locale-updated",function(){qx(n)}),this.eventManager.o(this.localization,"locale-changed",function(){qx(n)}),this.eventManager.o(this.g,"click",function(){if(n.controls.Ca()&&n.video.duration){var i=n.h.indexOf(n.player.Wa())+1;i=i!=n.h.length?n.h[i]:n.h[0],n.video.paused&&n.video.play(),n.player.Ic(i),n.g.setAttribute("shaka-status",i+"x")}}),this.eventManager.o(this.player,"ratechange",function(){n.g.setAttribute("shaka-status",n.player.Wa()+"x")})}Xe(Vx,St);function qx(e){e.g.ariaLabel=e.localization.resolve("FAST_FORWARD")}xe("shaka.ui.FastForwardButton",Vx);function wM(){}wM.prototype.create=function(e,t){return new Vx(e,t)},ua("fast_forward",new wM);function Yx(e,t){St.call(this,e,t);var n=this;this.h=this.controls.m,this.g=zn(),this.g.classList.add("shaka-fullscreen-button"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),UE(this),this.g.textContent="fullscreen",this.parent.appendChild(this.g),wA(this),this.eventManager.o(this.localization,"locale-updated",function(){wA(n)}),this.eventManager.o(this.localization,"locale-changed",function(){wA(n)}),this.eventManager.o(this.g,"click",function(){return q(function(i){return n.controls.Ca()?O(i,n.controls.Gf(),0):i.return()})}),this.eventManager.o(document,"fullscreenchange",function(){n.g.textContent=n.controls.Ac()?"fullscreen_exit":"fullscreen",wA(n)}),this.eventManager.o(this.h,"loadedmetadata",function(){UE(n)}),this.eventManager.o(this.h,"loadeddata",function(){UE(n)}),this.eventManager.o(this.adManager,"ad-started",function(){UE(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){UE(n)})}Xe(Yx,St);function UE(e){e.controls.Xd()?e.g.classList.remove("shaka-hidden"):e.g.classList.add("shaka-hidden")}function wA(e){var t=e.controls.Ac()?"EXIT_FULL_SCREEN":"FULL_SCREEN";e.g.ariaLabel=e.localization.resolve(t)}xe("shaka.ui.FullscreenButton",Yx);function CM(){}CM.prototype.create=function(e,t){return new Yx(e,t)},ua("fullscreen",new CM);function CA(e,t){St.call(this,e,t);var n=this;this.g=zn(),this.g.classList.add("shaka-loop-button"),this.g.classList.add("shaka-tooltip"),this.i=Ne("i"),this.i.classList.add("material-icons-round"),this.i.textContent="repeat",this.g.appendChild(this.i),e=Ne("label"),e.classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.l=Ne("span"),this.l.textContent=this.localization.resolve("LOOP"),e.appendChild(this.l),this.j=Ne("span"),this.j.classList.add("shaka-current-selection-span"),e.appendChild(this.j),this.g.appendChild(e),MA(this),this.parent.appendChild(this.g),this.eventManager.o(this.localization,"locale-updated",function(){MA(n)}),this.eventManager.o(this.localization,"locale-changed",function(){MA(n)}),this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&(n.video.loop=!n.video.loop,n.h.Ia(),n.h.xa(1))}),this.m=this.video.loop,this.h=new Ke(function(){n.m!=n.video.loop&&(MA(n),n.m=n.video.loop)}),this.h.xa(1)}Xe(CA,St),CA.prototype.release=function(){this.h.stop(),this.h=null,St.prototype.release.call(this)};function MA(e){e.l.textContent=e.localization.resolve("LOOP"),e.j.textContent=e.localization.resolve(e.video.loop?"ON":"OFF"),e.i.textContent=e.video.loop?"repeat_on":"repeat",e.g.ariaLabel=e.localization.resolve(e.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}xe("shaka.ui.LoopButton",CA);function bA(){}bA.prototype.create=function(e,t){return new CA(e,t)},To("loop",new bA),ua("loop",new bA),U1("loop",new bA);function Xx(e,t){St.call(this,e,t);var n=this;this.g=zn(),this.g.classList.add("shaka-mute-button"),this.g.classList.add("shaka-tooltip"),this.h=Ne("i"),this.h.classList.add("material-icons-round"),this.h.textContent="volume_up",this.g.appendChild(this.h),e=Ne("label"),e.classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.i=Ne("span"),this.i.textContent=this.localization.resolve("MUTE"),e.appendChild(this.i),this.j=Ne("span"),this.j.classList.add("shaka-current-selection-span"),e.appendChild(this.j),this.g.appendChild(e),this.parent.appendChild(this.g),G0(this),_1(this),this.eventManager.o(this.localization,"locale-updated",function(){G0(n)}),this.eventManager.o(this.localization,"locale-changed",function(){G0(n)}),this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&(n.ad&&n.ad.isLinear()?n.ad.setMuted(!n.ad.isMuted()):n.video.muted||n.video.volume!=0?n.video.muted=!n.video.muted:n.video.volume=1)}),this.eventManager.o(this.video,"volumechange",function(){G0(n),_1(n)}),this.eventManager.o(this.player,"loading",function(){G0(n),_1(n)}),this.eventManager.o(this.controls,"caststatuschanged",function(){G0(n),_1(n)}),this.eventManager.o(this.adManager,"ad-volume-changed",function(){G0(n),_1(n)}),this.eventManager.o(this.adManager,"ad-muted",function(){G0(n),_1(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.ad=null,G0(n),_1(n)})}Xe(Xx,St);function G0(e){var t=e.ad?e.ad.isMuted()?"UNMUTE":"MUTE":e.video.muted||e.video.volume==0?"UNMUTE":"MUTE";e.g.ariaLabel=e.localization.resolve(t),e.i.textContent=e.localization.resolve(t)}function _1(e){var t=e.ad?e.ad.isMuted()?"volume_off":"volume_up":e.video.muted||e.video.volume==0?"volume_off":"volume_up";e.h.textContent=t}xe("shaka.ui.MuteButton",Xx);function RA(){}RA.prototype.create=function(e,t){return new Xx(e,t)},To("mute",new RA),ua("mute",new RA),U1("mute",new RA);function Fx(e,t){St.call(this,e,t);var n=this;this.l=this.controls.m,this.g=zn(),this.g.classList.add("shaka-pip-button"),this.g.classList.add("shaka-tooltip"),this.i=Ne("i"),this.i.classList.add("material-icons-round"),this.i.textContent="picture_in_picture_alt",this.g.appendChild(this.i),e=Ne("label"),e.classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.j=Ne("span"),this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE"),e.appendChild(this.j),this.h=Ne("span"),this.h.classList.add("shaka-current-selection-span"),e.appendChild(this.h),this.g.appendChild(e),Kx(this),this.parent.appendChild(this.g),this.controls.Ze()||ht(this.g,!1),this.eventManager.o(this.localization,"locale-updated",function(){Kx(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Kx(n)}),this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&n.controls.fd()}),this.eventManager.o(this.l,"enterpictureinpicture",function(){MM(n)}),this.eventManager.o(this.l,"leavepictureinpicture",function(){bM(n)}),this.eventManager.o(this.controls,"caststatuschanged",function(){RM(n)}),this.eventManager.o(this.player,"trackschanged",function(){RM(n)}),"documentPictureInPicture"in oe&&this.eventManager.o(oe.documentPictureInPicture,"enter",function(i){MM(n),n.eventManager.wa(i.window,"pagehide",function(){bM(n)})})}Xe(Fx,St);function MM(e){e.i.textContent="branding_watermark",e.g.ariaLabel=e.localization.resolve("EXIT_PICTURE_IN_PICTURE"),e.h.textContent=e.localization.resolve("ON")}function bM(e){e.i.textContent="picture_in_picture_alt",e.g.ariaLabel=e.localization.resolve("ENTER_PICTURE_IN_PICTURE"),e.h.textContent=e.localization.resolve("OFF")}function Kx(e){e.j.textContent=e.localization.resolve("PICTURE_IN_PICTURE");var t=e.controls.Yd();e.g.ariaLabel=e.localization.resolve(t?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE"),e.h.textContent=e.localization.resolve(t?"ON":"OFF")}function RM(e){q(function(t){return e.controls.Ze()&&(!e.player||!e.player.Uc())?(ht(e.g,!0),t.A(0)):(ht(e.g,!1),e.controls.Yd()?O(t,e.controls.fd(),0):t.A(0))})}xe("shaka.ui.PipButton",Fx);function DA(){}DA.prototype.create=function(e,t){return new Fx(e,t)},To("picture_in_picture",new DA),ua("picture_in_picture",new DA),U1("picture_in_picture",new DA);function Qx(e,t){cd.call(this,e,t,"slow_motion_video");var n=this;this.button.classList.add("shaka-playbackrate-button"),this.menu.classList.add("shaka-playback-rates"),this.button.classList.add("shaka-tooltip-status"),this.eventManager.o(this.localization,"locale-updated",function(){Zx(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Zx(n)}),this.eventManager.o(this.player,"loaded",function(){Jx(n)}),this.eventManager.o(this.player,"ratechange",function(){Jx(n)}),Zx(this),MI(this),Jx(this)}Xe(Qx,cd);function Zx(e){e.backButton.ariaLabel=e.localization.resolve("BACK"),e.button.ariaLabel=e.localization.resolve("PLAYBACK_RATE"),e.nameSpan.textContent=e.localization.resolve("PLAYBACK_RATE"),e.backSpan.textContent=e.localization.resolve("PLAYBACK_RATE")}function Jx(e){var t=e.player.Wa(),n=ix(e.menu,"material-icons-round shaka-chosen-item");if(n){var i=n.parentElement;i.removeAttribute("aria-selected"),i.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item"),i.removeChild(n)}(n=Array.from(e.menu.querySelectorAll("span")).find(function(a){return a.textContent==t+"x"}))&&(i=n.parentElement,i.appendChild(O1()),i.ariaSelected="true",n.classList.add("shaka-chosen-item")),e.currentSelection.textContent=t+"x",e.button.setAttribute("shaka-status",t+"x")}function MI(e){for(var t=b(e.controls.g.playbackRates),n=t.next(),i={};!n.done;i={tf:void 0},n=t.next()){i.tf=n.value,n=zn();var a=Ne("span");a.textContent=i.tf+"x",n.appendChild(a),e.eventManager.o(n,"click",function(l){return function(){l.tf==e.video.defaultPlaybackRate?e.player.ld():e.player.Ic(l.tf,!1)}}(i)),e.menu.appendChild(n)}JS(e.menu)}xe("shaka.ui.PlaybackRateSelection",Qx);function Wx(){}Wx.prototype.create=function(e,t){return new Qx(e,t)},To("playback_rate",new Wx),ua("playback_rate",new Wx);function $x(e,t){St.call(this,e,t);var n=this;this.g=zn(),this.g.classList.add("shaka-current-time"),kE(this,"0:00"),this.parent.appendChild(this.g),this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&n.player.V()&&(n.video.currentTime=n.player.Aa().end)}),this.eventManager.o(this.player,"loading",function(){ht(n.g,!0)}),this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var i=n.controls.U,a=n.controls.Fg(),l=n.player.Aa(),f=l.end-l.start;isFinite(f)?n.player.V()?(a=Math.max(0,Math.floor(l.end-a)),f=3600<=f,1<=a||i?(kE(n,"- "+WS(a,f)),n.g.disabled=!1):(kE(n,n.localization.resolve("LIVE")),n.g.disabled=!0)):(i=3600<=f,a=WS(Math.max(0,a-l.start),i),f&&(a+=" / "+WS(f,i)),kE(n,a),n.g.disabled=!0):(kE(n,n.localization.resolve("LIVE")),n.g.disabled=!0)}),this.eventManager.o(this.player,"trackschanged",function(){n.player.V()&&(n.g.ariaLabel=n.localization.resolve("SKIP_TO_LIVE"))}),this.eventManager.o(this.adManager,"ad-started",function(){ht(n.g,!n.ad.isLinear())}),this.eventManager.o(this.adManager,"ad-stopped",function(){ht(n.g,!0)})}Xe($x,St);function kE(e,t){t!=e.g.textContent&&(e.g.textContent=t)}xe("shaka.ui.PresentationTimeTracker",$x);function DM(){}DM.prototype.create=function(e,t){return new $x(e,t)},ua("time_and_duration",new DM);function e3(e,t){St.call(this,e,t);var n=this;this.g=zn(),this.g.classList.add("shaka-recenter-vr-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.h=Ne("i"),this.h.classList.add("material-icons-round"),this.h.textContent="control_camera",this.g.appendChild(this.h),e=Ne("label"),e.classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.j=Ne("span"),e.appendChild(this.j),this.i=Ne("span"),this.i.classList.add("shaka-current-selection-span"),e.appendChild(this.i),this.g.appendChild(e),this.parent.appendChild(this.g),t3(this),this.eventManager.o(this.localization,"locale-updated",function(){t3(n)}),this.eventManager.o(this.localization,"locale-changed",function(){t3(n)});var i=this.controls.C;this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&(i.g?yx(i.g):st("Not playing VR content"))}),this.eventManager.o(i,"vrstatuschanged",function(){ht(n.g,n.controls.Nb())}),ht(this.g,this.controls.Nb())}Xe(e3,St);function t3(e){e.g.ariaLabel=e.localization.resolve("RECENTER_VR"),e.j.textContent=e.localization.resolve("RECENTER_VR")}xe("shaka.ui.RecenterVRButton",e3);function n3(){}n3.prototype.create=function(e,t){return new e3(e,t)},To("recenter_vr",new n3),ua("recenter_vr",new n3);function IA(e,t){St.call(this,e,t);var n=this;this.j=ai(),this.g=zn(),this.g.classList.add("shaka-remote-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.i=Ne("i"),this.i.classList.add("material-icons-round"),this.i.textContent=this.j?"airplay":"cast",this.g.appendChild(this.i),e=Ne("label"),e.classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.m=Ne("span"),e.appendChild(this.m),this.l=Ne("span"),this.l.classList.add("shaka-current-selection-span"),e.appendChild(this.l),this.g.appendChild(e),this.parent.appendChild(this.g),this.h=-1,i3(this),ht(this.g,!1),this.video.remote?(this.eventManager.o(this.localization,"locale-updated",function(){i3(n)}),this.eventManager.o(this.localization,"locale-changed",function(){i3(n)}),this.eventManager.o(this.controls,"caststatuschanged",function(){nT(n)}),this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&n.video.remote.prompt()}),this.eventManager.o(this.video.remote,"connect",function(){nT(n),LA(n)}),this.eventManager.o(this.video.remote,"connecting",function(){nT(n),LA(n)}),this.eventManager.o(this.video.remote,"disconnect",function(){nT(n),LA(n)}),this.eventManager.o(this.player,"loaded",function(){nT(n)}),nT(this,!0),LA(this)):this.g.classList.add("shaka-hidden")}Xe(IA,St),IA.prototype.release=function(){this.video.remote&&this.h!=-1&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){}),St.prototype.release.call(this)};function nT(e,t){t=t===void 0?!1:t;var n,i;q(function(a){switch(a.g){case 1:if(e.controls.D.ag()&&e.controls.ua||!e.video.remote){ht(e.g,!1),e.h!=-1&&(e.video.remote.cancelWatchAvailability(e.h),e.h=-1),a.A(0);break}if(e.video.remote.state=="disconnected"||t){if(n=function(l){if(e.player){var f=e.video.disableRemotePlayback,d=!0;ai()&&e.player.m==ci&&e.player.Ig()!="HLS"&&(d=!1),ht(e.g,d&&l&&!f)}else ht(e.g,!1)},Le(a,7),e.h==-1){a.A(9);break}return O(a,e.video.remote.cancelWatchAvailability(e.h),10)}if(ht(e.g,!0),e.h==-1){a.A(0);break}return O(a,e.video.remote.cancelWatchAvailability(e.h),6);case 6:e.h=-1,a.A(0);break;case 10:e.h=-1;case 9:Ge(a,8);break;case 7:je(a);case 8:return Le(a,11),O(a,e.video.remote.watchAvailability(n),13);case 13:i=a.h,e.h=i,Ge(a,0);break;case 11:je(a),n(!0),ve(a)}})}function i3(e){var t=e.j?e.localization.resolve("AIRPLAY"):e.localization.resolve("CAST");e.g.ariaLabel=t,e.m.textContent=t}function LA(e){e.j||(e.i.textContent=e.video.remote.state=="disconnected"?"cast":"cast_connected")}xe("shaka.ui.RemoteButton",IA);function r3(){}r3.prototype.create=function(e,t){return new IA(e,t)},To("remote",new r3),ua("remote",new r3);function a3(e,t){cd.call(this,e,t,"settings");var n=this;this.button.classList.add("shaka-resolution-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-resolutions"),this.eventManager.o(this.localization,"locale-updated",function(){u3(n)}),this.eventManager.o(this.localization,"locale-changed",function(){u3(n)}),this.eventManager.o(this.player,"loading",function(){iT(n)}),this.eventManager.o(this.player,"variantchanged",function(){iT(n)}),this.eventManager.o(this.player,"trackschanged",function(){iT(n)}),this.eventManager.o(this.player,"abrstatuschanged",function(){iT(n)}),iT(this)}Xe(a3,cd);function iT(e){var t=[];e.player.m!=vu&&(t=e.player.Mb());var n=t.find(function(g){return g.active});n&&(t=t.filter(function(g){if(g.language!=n.language||e.controls.g.showAudioChannelCountVariants&&g.channelsCount&&n.channelsCount&&g.channelsCount!=n.channelsCount)return!1;var m=e.controls.g.trackLabelFormat;return!((m==1||m==2)&&JSON.stringify(g.audioRoles)!=JSON.stringify(n.audioRoles)||m==3&&g.label!=n.label)})),t=e.player.Uc()?t.filter(function(g,m){return t.findIndex(function(S){return S.bandwidth==g.bandwidth})==m}):1<[].concat(Ue(new Set(t.map(function(g){return g.audioId})))).filter(Du).length?t.filter(function(g,m){return t.findIndex(function(S){var T=S.height==g.height&&S.videoBandwidth==g.videoBandwidth&&S.frameRate==g.frameRate&&S.hdr==g.hdr&&S.videoLayout==g.videoLayout;return T&&e.controls.g.showVideoCodec&&S.videoCodec&&g.videoCodec&&(T=In(S.videoCodec)==In(g.videoCodec)),T})==m}):t.filter(function(g,m){return t.findIndex(function(S){var T=S.height==g.height&&S.bandwidth==g.bandwidth&&S.frameRate==g.frameRate&&S.hdr==g.hdr&&S.videoLayout==g.videoLayout;return T&&e.controls.g.showVideoCodec&&S.videoCodec&&g.videoCodec&&(T=In(S.videoCodec)==In(g.videoCodec)),T})==m}),e.player.Uc()?t.sort(function(g,m){return m.bandwidth-g.bandwidth}):t.sort(function(g,m){return m.height==g.height||g.height==null||m.height==null?m.bandwidth-g.bandwidth:m.height-g.height});var i=lA(e.menu);Zr(e.menu),e.menu.appendChild(i),i=e.player.getConfiguration().abr.enabled;for(var a=b(t),l=a.next(),f={};!l.done;f={Hc:void 0},l=a.next()){f.Hc=l.value,l=zn(),l.classList.add("explicit-resolution"),e.eventManager.o(l,"click",function(g){return function(){var m=g.Hc;e.player.configure({abr:{enabled:!1}}),e.player.ke(m,e.controls.g.clearBufferOnQualityChange)}}(f));var d=Ne("span");d.textContent=!e.player.Uc()&&f.Hc.height&&f.Hc.width?bI(e,f.Hc,t):f.Hc.bandwidth?Math.round(f.Hc.bandwidth/1e3)+" kbits/s":"Unknown",l.appendChild(d),i||f.Hc!=n||(l.ariaSelected="true",l.appendChild(O1()),d.classList.add("shaka-chosen-item"),e.currentSelection.textContent=d.textContent),e.menu.appendChild(l)}a=zn(),a.classList.add("shaka-enable-abr-button"),e.eventManager.o(a,"click",function(){e.player.configure({abr:{enabled:!0}}),iT(e)}),e.g=Ne("span"),e.g.classList.add("shaka-auto-span"),e.g.textContent=e.localization.resolve("AUTO_QUALITY"),a.appendChild(e.g),i&&(a.ariaSelected="true",a.appendChild(O1()),e.g.classList.add("shaka-chosen-item"),e.currentSelection.textContent=e.localization.resolve("AUTO_QUALITY")),e.button.setAttribute("shaka-status",e.currentSelection.textContent),e.menu.appendChild(a),JS(e.menu),e.controls.dispatchEvent(new Te("resolutionselectionupdated")),u3(e),ht(e.button,1<t.length)}function bI(e,t,n){function i(m,S){return m!=S&&m.height==S.height&&m.hdr==S.hdr&&Math.round(m.frameRate||0)==Math.round(S.frameRate||0)}var a=t.height||0,l=t.width||0,f=a;l/a>16/9&&(f=Math.round(9*l/16)),l=f+"p",(f==2160||a==2160)&&(l="4K"),a=new Set,f=b(n);for(var d=f.next();!d.done;d=f.next())d=d.value,d.frameRate&&a.add(Math.round(d.frameRate));if(1<a.size&&(a=t.frameRate)&&(50<=a||20>=a)&&(l+=Math.round(t.frameRate)),(t.hdr=="PQ"||t.hdr=="HLG")&&(l+=" (HDR)"),t.videoLayout=="CH-STEREO"&&(l+=" (3D)"),n.some(function(m){return i(t,m)})&&(n.some(function(m){return i(t,m)&&(m.videoBandwidth||m.bandwidth)==(t.videoBandwidth||t.bandwidth)})||(l+=" ("+Math.round((t.videoBandwidth||t.bandwidth)/1e3)+" kbits/s)"),e.controls.g.showVideoCodec)){var g=function(m){var S="";return m&&(m=In(m),S=m.startsWith("dovi-")?"Dolby Vision":m.toUpperCase()),S&&" "+S};n.some(function(m){return i(t,m)&&g(m.videoCodec)!=g(t.videoCodec)})&&(l+=g(t.videoCodec))}return l}function u3(e){var t=e.player.Uc()?"QUALITY":"RESOLUTION";e.button.ariaLabel=e.localization.resolve(t),e.backButton.ariaLabel=e.localization.resolve(t),e.backSpan.textContent=e.localization.resolve(t),e.nameSpan.textContent=e.localization.resolve(t),e.g.textContent=e.localization.resolve("AUTO_QUALITY"),e.player.getConfiguration().abr.enabled&&(e.currentSelection.textContent=e.localization.resolve("AUTO_QUALITY"))}xe("shaka.ui.ResolutionSelection",a3);function o3(){}o3.prototype.create=function(e,t){return new a3(e,t)},To("quality",new o3),ua("quality",new o3);function l3(e,t){St.call(this,e,t);var n=this;this.g=zn(),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-rewind-button"),this.g.classList.add("shaka-tooltip-status"),this.g.setAttribute("shaka-status",this.localization.resolve("OFF")),this.g.textContent="fast_rewind",this.parent.appendChild(this.g),s3(this),this.h=this.controls.g.rewindRates,this.eventManager.o(this.localization,"locale-updated",function(){s3(n)}),this.eventManager.o(this.localization,"locale-changed",function(){s3(n)}),this.eventManager.o(this.g,"click",function(){if(n.controls.Ca()&&n.video.duration){var i=n.h.indexOf(n.player.Wa())+1;i=i!=n.h.length?n.h[i]:n.h[0],n.video.paused&&n.video.play(),n.player.Ic(i),n.g.setAttribute("shaka-status",i+"x")}}),this.eventManager.o(this.player,"ratechange",function(){n.g.setAttribute("shaka-status",n.player.Wa()+"x")})}Xe(l3,St);function s3(e){e.g.ariaLabel=e.localization.resolve("REWIND")}xe("shaka.ui.RewindButton",l3);function IM(){}IM.prototype.create=function(e,t){return new l3(e,t)},ua("rewind",new IM);function c3(e,t){St.call(this,e,t);var n=this;this.l=this.controls.D,this.g=zn(),this.g.classList.add("shaka-save.video-frame-button"),this.g.classList.add("shaka-tooltip"),this.h=Ne("i"),this.h.classList.add("material-icons-round"),this.h.textContent="download",this.g.appendChild(this.h),e=Ne("label"),e.classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.i=Ne("span"),this.i.textContent=this.localization.resolve("DOWNLOAD_VIDEO_FRAME"),e.appendChild(this.i),this.j=Ne("span"),this.j.classList.add("shaka-current-selection-span"),e.appendChild(this.j),this.g.appendChild(e),f3(this),this.parent.appendChild(this.g),this.eventManager.o(this.localization,"locale-updated",function(){f3(n)}),this.eventManager.o(this.localization,"locale-changed",function(){f3(n)}),this.eventManager.o(this.g,"click",function(){var i=document.createElement("canvas"),a=i.getContext("2d"),l=n.controls.m;i.width=l.videoWidth,i.height=l.videoHeight,a.drawImage(l,0,0,i.width,i.height),i=i.toDataURL("image/png"),a=document.createElement("a"),a.href=i,a.download="videoframe_"+l.currentTime.toFixed(3)+".png",a.click()}),this.eventManager.o(this.controls.C,"vrstatuschanged",function(){Eh(n)}),this.eventManager.o(this.adManager,"ad-started",function(){Eh(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){Eh(n)}),this.eventManager.o(this.player,"unloading",function(){Eh(n)}),this.eventManager.o(this.player,"loaded",function(){Eh(n)}),this.eventManager.o(this.player,"loaded",function(){Eh(n)}),this.eventManager.o(this.video,"play",function(){Eh(n)}),this.eventManager.o(this.video,"pause",function(){Eh(n)}),this.eventManager.o(this.video,"seeking",function(){Eh(n)}),this.eventManager.o(this.controls,"caststatuschanged",function(){Eh(n)}),Eh(this)}Xe(c3,St);function Eh(e){var t=!0;e.controls.Nb()&&(t=!1),t&&e.l.Qa()&&(t=!1),t&&(e.player.drmInfo()||e.player.Uc())&&(t=!1),t&&e.ad&&(t=!1),t&&e.video.remote&&e.video.remote.state!="disconnected"&&(t=!1),ht(e.g,t)}function f3(e){e.g.ariaLabel=e.localization.resolve("DOWNLOAD_VIDEO_FRAME"),e.i.textContent=e.localization.resolve("DOWNLOAD_VIDEO_FRAME")}xe("shaka.ui.SaveVideoFrameButton",c3);function d3(){}d3.prototype.create=function(e,t){return new c3(e,t)},To("save_video_frame",new d3),U1("save_video_frame",new d3);function NE(e,t){Yp.call(this,e,t),this.button.classList.add("shaka-small-play-button"),this.button.classList.add("material-icons-round"),this.button.classList.add("shaka-tooltip"),this.h(),this.g()}Xe(NE,Yp),NE.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"},NE.prototype.g=function(){if(this.isEnded())this.button.ariaLabel=this.localization.resolve("REPLAY");else{var e=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(e)}},xe("shaka.ui.SmallPlayButton",NE);function LM(){}LM.prototype.create=function(e,t){return new NE(e,t)},ua("play_pause",new LM);function h3(e,t){St.call(this,e,t),e=Ne("div"),e.classList.add("shaka-spacer"),e.ariaHidden="true",this.parent.appendChild(e)}Xe(h3,St),xe("shaka.ui.Spacer",h3);function OM(){}OM.prototype.create=function(e,t){return new h3(e,t)},ua("spacer",new OM);function OA(e,t){function n(S){return S=parseInt(m.g[S],10),2e9<S?(S/1e9).toFixed(2)+"GB":1e6<S?(S/1e6).toFixed(2)+"MB":1e3<S?(S/1e3).toFixed(2)+"KB":S+"B"}function i(S){return m.g[S]+" (gaps)"}function a(S){return WS(m.g[S],!1)+" (m)"}function l(S){return Math.round(m.g[S]/1e3)+" (kbits/s)"}function f(S){return m.g[S].toFixed(2)+" (s)"}function d(S){return m.g[S]+" (frames)"}function g(S){return m.g[S]+" (px)"}St.call(this,e,t);var m=this;this.i=zn(),this.i.classList.add("shaka-statistics-button"),this.j=Ne("i"),this.j.classList.add("material-icons-round"),this.j.textContent="insert_chart_outlined",this.i.appendChild(this.j),e=Ne("label"),e.classList.add("shaka-overflow-button-label"),this.u=Ne("span"),e.appendChild(this.u),this.m=Ne("span"),this.m.classList.add("shaka-current-selection-span"),e.appendChild(this.m),this.i.appendChild(e),this.parent.appendChild(this.i),this.h=Ne("div"),this.h.classList.add("shaka-no-propagation"),this.h.classList.add("shaka-show-controls-on-mouse-over"),this.h.classList.add("shaka-statistics-container"),this.h.classList.add("shaka-hidden"),this.controls.j.appendChild(this.h),this.C=[],this.D=["stateHistory","switchHistory"],this.g=this.player.getStats(),this.s=new Map,this.B=new Map().set("width",g).set("height",g).set("completionPercent",function(S){return m.g[S]+" (%)"}).set("bufferingTime",f).set("drmTimeSeconds",f).set("licenseTime",f).set("liveLatency",f).set("loadLatency",f).set("manifestTimeSeconds",f).set("estimatedBandwidth",l).set("streamBandwidth",l).set("maxSegmentDuration",f).set("pauseTime",a).set("playTime",a).set("corruptedFrames",d).set("decodedFrames",d).set("droppedFrames",d).set("stallsDetected",function(S){return m.g[S]+" (stalls)"}).set("gapsJumped",i).set("manifestSizeBytes",n).set("bytesDownloaded",n).set("nonFatalErrorCount",function(S){return m.g[S]+" (errors)"}).set("manifestPeriodCount",function(S){return m.g[S]+" (periods)"}).set("manifestGapCount",i),this.l=new Ke(function(){m.g=m.player.getStats();for(var S=b(m.C),T=S.next();!T.done;T=S.next()){T=T.value;var x=m.s.get(T);x.textContent=m.B.get(T)(T),x&&x.parentElement&&ht(x.parentElement,!isNaN(m.g[T]))}}),UA(this),DI(this),this.eventManager.o(this.localization,"locale-updated",function(){UA(m)}),this.eventManager.o(this.localization,"locale-changed",function(){UA(m)}),this.eventManager.o(this.i,"click",function(){UM(m),UA(m)})}Xe(OA,St);function UM(e){e.h.classList.contains("shaka-hidden")?(e.j.textContent="insert_chart",e.l.xa(.1),ht(e.h,!0)):(e.j.textContent="insert_chart_outlined",e.l.stop(),ht(e.h,!1))}function UA(e){e.u.textContent=e.localization.resolve("STATISTICS"),e.i.ariaLabel=e.localization.resolve("STATISTICS"),e.m.textContent=e.localization.resolve(e.h.classList.contains("shaka-hidden")?"OFF":"ON")}function RI(e,t){var n=Ne("div"),i=Ne("label");return i.textContent=t+":",n.appendChild(i),i=Ne("span"),i.textContent=e.B.get(t)(t),n.appendChild(i),e.s.set(t,i),n}function DI(e){var t=Ne("div");t.classList.add("shaka-no-propagation"),t.classList.add("shaka-statistics-close");var n=Ne("i");for(n.classList.add("material-icons-round"),n.textContent="close",t.appendChild(n),e.h.appendChild(t),e.eventManager.o(n,"click",function(){UM(e)}),t=b(e.controls.g.statisticsList),n=t.next();!n.done;n=t.next())if(n=n.value,n in e.g&&!e.D.includes(n)){var i=RI(e,n);e.h.appendChild(i),e.C.push(n)}else st("Unrecognized statistic element:",n)}OA.prototype.release=function(){this.l.stop(),this.l=null,St.prototype.release.call(this)},xe("shaka.ui.StatisticsButton",OA);function p3(){}p3.prototype.create=function(e,t){return new OA(e,t)},To("statistics",new p3),U1("statistics",new p3);function g3(e,t){cd.call(this,e,t,"closed_caption");var n=this;this.button.classList.add("shaka-caption-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-text-languages"),this.player&&this.player.Wc()?this.button.ariaPressed="true":this.button.ariaPressed="false",II(this),this.eventManager.o(this.localization,"locale-updated",function(){m3(n),j1(n)}),this.eventManager.o(this.localization,"locale-changed",function(){m3(n),j1(n)}),this.eventManager.o(this.player,"loading",function(){y3(n)}),this.eventManager.o(this.player,"texttrackvisibility",function(){kM(n),j1(n)}),this.eventManager.o(this.player,"textchanged",function(){j1(n)}),this.eventManager.o(this.player,"trackschanged",function(){y3(n)}),kM(this),m3(this),j1(this),y3(this)}Xe(g3,cd);function II(e){var t=zn();t.ariaSelected="true",e.menu.appendChild(t),t.appendChild(O1()),e.g=Ne("span"),e.g.classList.add("shaka-auto-span"),t.appendChild(e.g)}function kM(e){e.player.Wc()?(e.icon.textContent="closed_caption",e.button.ariaPressed="true"):(e.icon.textContent="closed_caption_disabled",e.button.ariaPressed="false"),e.controls.dispatchEvent(new Te("captionselectionupdated"))}function j1(e){var t=e.player.ec();EI(t,e.menu,function(n){return LI(e,n)},e.player.Wc(),e.currentSelection,e.localization,e.controls.g.textTrackLabelFormat),t=zn(),t.classList.add("shaka-turn-captions-off-button"),e.eventManager.o(t,"click",function(){e.player.Cf(!1),j1(e)}),t.appendChild(e.g),e.menu.appendChild(t),e.player.Wc()||(t.ariaSelected="true",t.appendChild(O1()),e.g.classList.add("shaka-chosen-item"),e.currentSelection.textContent=e.localization.resolve("OFF")),e.button.setAttribute("shaka-status",e.currentSelection.textContent),JS(e.menu),e.controls.dispatchEvent(new Te("captionselectionupdated"))}function LI(e,t){return q(function(n){if(n.g==1)return e.player.kh(t),O(n,e.player.Cf(!0),2);e.player.configure("preferredTextLanguage",t.language),e.player.configure("preferForcedSubs",t.forced),ve(n)})}function m3(e){e.button.ariaLabel=e.localization.resolve("CAPTIONS"),e.backButton.ariaLabel=e.localization.resolve("BACK"),e.nameSpan.textContent=e.localization.resolve("CAPTIONS"),e.backSpan.textContent=e.localization.resolve("CAPTIONS"),e.g.textContent=e.localization.resolve("OFF")}function y3(e){var t=0<e.player.ec().length;ht(e.button,t),j1(e)}xe("shaka.ui.TextSelection",g3);function v3(){}v3.prototype.create=function(e,t){return new g3(e,t)},To("captions",new v3),ua("captions",new v3);function S3(e,t){St.call(this,e,t);var n=this;this.g=zn(),this.g.classList.add("shaka-toggle-stereoscopic-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.h=Ne("i"),this.h.classList.add("material-icons-round"),this.h.textContent="3d_rotation",this.g.appendChild(this.h),e=Ne("label"),e.classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.j=Ne("span"),e.appendChild(this.j),this.i=Ne("span"),this.i.classList.add("shaka-current-selection-span"),e.appendChild(this.i),this.g.appendChild(e),this.parent.appendChild(this.g),T3(this),this.eventManager.o(this.localization,"locale-updated",function(){T3(n)}),this.eventManager.o(this.localization,"locale-changed",function(){T3(n)});var i=this.controls.C;this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&i.Gd()}),this.eventManager.o(i,"vrstatuschanged",function(){ht(n.g,n.controls.Nb())}),ht(this.g,this.controls.Nb())}Xe(S3,St);function T3(e){e.g.ariaLabel=e.localization.resolve("TOGGLE_STEREOSCOPIC"),e.j.textContent=e.localization.resolve("TOGGLE_STEREOSCOPIC")}xe("shaka.ui.ToggleStereoscopicButton",S3);function E3(){}E3.prototype.create=function(e,t){return new S3(e,t)},To("toggle_stereoscopic",new E3),ua("toggle_stereoscopic",new E3);function kA(e,t){aa.call(this,e,t,["shaka-volume-bar-container"],["shaka-volume-bar"]);var n=this;this.g=this.controls.g,this.setRange(0,100),this.eventManager.o(this.video,"volumechange",function(){return _E(n)}),this.eventManager.o(this.player,"loading",function(){return _E(n)}),this.eventManager.o(this.controls,"caststatuschanged",function(){return _E(n)}),this.eventManager.o(this.adManager,"ad-volume-changed",function(){return NM(n)}),this.eventManager.o(this.adManager,"ad-muted",function(){return NM(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){return _E(n)}),this.eventManager.o(this.localization,"locale-updated",function(){return A3(n)}),this.eventManager.o(this.localization,"locale-changed",function(){return A3(n)}),_E(this),A3(this),this.ad&&this.onChange()}Xe(kA,aa),kA.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,0<this.video.volume&&(this.video.muted=!1))};function _E(e){e.video.muted?e.setValue(0):e.setValue(100*e.video.volume),_M(e)}function NM(e){var t=e.ad.getVolume();e.setValue(100*t),_M(e)}function _M(e){var t=e.g.volumeBarColors,n=["to right"];n.push(t.level+e.getValue()+"%"),n.push(t.base+e.getValue()+"%"),n.push(t.base+"100%"),e.container.style.background="linear-gradient("+n.join(",")+")"}function A3(e){e.bar.ariaLabel=e.localization.resolve("VOLUME")}xe("shaka.ui.VolumeBar",kA);function jM(){}jM.prototype.create=function(e,t){return new kA(e,t)},ua("volume",new jM)}).call(Hn,Xn,Xn,void 0);for(var Ce in Hn.shaka)He[Ce]=Hn.shaka[Ce]})()}(B3)),B3}var cb=qI();const VA=xi.getDefaultExportFromCjs(cb),fb=He=>{var Xn=lb.__rest(He,[]);return xi.React.createElement("source",Object.assign({},Xn))},YI=7e3,XI=11,tb={addBigPlayButton:!1,addSeekBar:!0,controlPanelElements:["play_pause","time_and_duration","spacer","mute","report","captions","fullscreen"]};var qA={exports:{}},PE={},YA={exports:{}},P3={};/**
137
- * @license React
138
- * scheduler.production.js
139
- *
140
- * Copyright (c) Meta Platforms, Inc. and affiliates.
141
- *
142
- * This source code is licensed under the MIT license found in the
143
- * LICENSE file in the root directory of this source tree.
144
- */var nb;function FI(){return nb||(nb=1,function(He){function Xn(re,Re){var ze=re.length;re.push(Re);e:for(;0<ze;){var Nt=ze-1>>>1,jt=re[Nt];if(0<oe(jt,Re))re[Nt]=Re,re[ze]=jt,ze=Nt;else break e}}function Hn(re){return re.length===0?null:re[0]}function Ce(re){if(re.length===0)return null;var Re=re[0],ze=re.pop();if(ze!==Re){re[0]=ze;e:for(var Nt=0,jt=re.length,Jn=jt>>>1;Nt<Jn;){var It=2*(Nt+1)-1,Cn=re[It],q=It+1,xt=re[q];if(0>oe(Cn,ze))q<jt&&0>oe(xt,Cn)?(re[Nt]=xt,re[q]=ze,Nt=q):(re[Nt]=Cn,re[It]=ze,Nt=It);else if(q<jt&&0>oe(xt,ze))re[Nt]=xt,re[q]=ze,Nt=q;else break e}}return Re}function oe(re,Re){var ze=re.sortIndex-Re.sortIndex;return ze!==0?ze:re.id-Re.id}if(He.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var pr=performance;He.unstable_now=function(){return pr.now()}}else{var la=Date,w=la.now();He.unstable_now=function(){return la.now()-w}}var et=[],Ni=[],Fn=1,Nn=null,Je=3,Yi=!1,b=!1,Ue=!1,Ii=!1,ni=typeof setTimeout=="function"?setTimeout:null,Eu=typeof clearTimeout=="function"?clearTimeout:null,rr=typeof setImmediate<"u"?setImmediate:null;function qr(re){for(var Re=Hn(Ni);Re!==null;){if(Re.callback===null)Ce(Ni);else if(Re.startTime<=re)Ce(Ni),Re.sortIndex=Re.expirationTime,Xn(et,Re);else break;Re=Hn(Ni)}}function sa(re){if(Ue=!1,qr(re),!b)if(Hn(et)!==null)b=!0,Xe||(Xe=!0,Le());else{var Re=Hn(Ni);Re!==null&&je(sa,Re.startTime-re)}}var Xe=!1,bn=-1,gr=5,At=-1;function O(){return Ii?!0:!(He.unstable_now()-At<gr)}function ve(){if(Ii=!1,Xe){var re=He.unstable_now();At=re;var Re=!0;try{e:{b=!1,Ue&&(Ue=!1,Eu(bn),bn=-1),Yi=!0;var ze=Je;try{t:{for(qr(re),Nn=Hn(et);Nn!==null&&!(Nn.expirationTime>re&&O());){var Nt=Nn.callback;if(typeof Nt=="function"){Nn.callback=null,Je=Nn.priorityLevel;var jt=Nt(Nn.expirationTime<=re);if(re=He.unstable_now(),typeof jt=="function"){Nn.callback=jt,qr(re),Re=!0;break t}Nn===Hn(et)&&Ce(et),qr(re)}else Ce(et);Nn=Hn(et)}if(Nn!==null)Re=!0;else{var Jn=Hn(Ni);Jn!==null&&je(sa,Jn.startTime-re),Re=!1}}break e}finally{Nn=null,Je=ze,Yi=!1}Re=void 0}}finally{Re?Le():Xe=!1}}}var Le;if(typeof rr=="function")Le=function(){rr(ve)};else if(typeof MessageChannel<"u"){var _n=new MessageChannel,Ge=_n.port2;_n.port1.onmessage=ve,Le=function(){Ge.postMessage(null)}}else Le=function(){ni(ve,0)};function je(re,Re){bn=ni(function(){re(He.unstable_now())},Re)}He.unstable_IdlePriority=5,He.unstable_ImmediatePriority=1,He.unstable_LowPriority=4,He.unstable_NormalPriority=3,He.unstable_Profiling=null,He.unstable_UserBlockingPriority=2,He.unstable_cancelCallback=function(re){re.callback=null},He.unstable_forceFrameRate=function(re){0>re||125<re?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):gr=0<re?Math.floor(1e3/re):5},He.unstable_getCurrentPriorityLevel=function(){return Je},He.unstable_next=function(re){switch(Je){case 1:case 2:case 3:var Re=3;break;default:Re=Je}var ze=Je;Je=Re;try{return re()}finally{Je=ze}},He.unstable_requestPaint=function(){Ii=!0},He.unstable_runWithPriority=function(re,Re){switch(re){case 1:case 2:case 3:case 4:case 5:break;default:re=3}var ze=Je;Je=re;try{return Re()}finally{Je=ze}},He.unstable_scheduleCallback=function(re,Re,ze){var Nt=He.unstable_now();switch(typeof ze=="object"&&ze!==null?(ze=ze.delay,ze=typeof ze=="number"&&0<ze?Nt+ze:Nt):ze=Nt,re){case 1:var jt=-1;break;case 2:jt=250;break;case 5:jt=1073741823;break;case 4:jt=1e4;break;default:jt=5e3}return jt=ze+jt,re={id:Fn++,callback:Re,priorityLevel:re,startTime:ze,expirationTime:jt,sortIndex:-1},ze>Nt?(re.sortIndex=ze,Xn(Ni,re),Hn(et)===null&&re===Hn(Ni)&&(Ue?(Eu(bn),bn=-1):Ue=!0,je(sa,ze-Nt))):(re.sortIndex=jt,Xn(et,re),b||Yi||(b=!0,Xe||(Xe=!0,Le()))),re},He.unstable_shouldYield=O,He.unstable_wrapCallback=function(re){var Re=Je;return function(){var ze=Je;Je=Re;try{return re.apply(this,arguments)}finally{Je=ze}}}}(P3)),P3}var H3={};/**
145
- * @license React
146
- * scheduler.development.js
147
- *
148
- * Copyright (c) Meta Platforms, Inc. and affiliates.
149
- *
150
- * This source code is licensed under the MIT license found in the
151
- * LICENSE file in the root directory of this source tree.
152
- */var ib;function KI(){return ib||(ib=1,function(He){process.env.NODE_ENV!=="production"&&function(){function Xn(){if(sa=!1,At){var re=He.unstable_now();Le=re;var Re=!0;try{e:{rr=!1,qr&&(qr=!1,bn(O),O=-1),Eu=!0;var ze=ni;try{t:{for(la(re),Ii=Ce(Yi);Ii!==null&&!(Ii.expirationTime>re&&et());){var Nt=Ii.callback;if(typeof Nt=="function"){Ii.callback=null,ni=Ii.priorityLevel;var jt=Nt(Ii.expirationTime<=re);if(re=He.unstable_now(),typeof jt=="function"){Ii.callback=jt,la(re),Re=!0;break t}Ii===Ce(Yi)&&oe(Yi),la(re)}else oe(Yi);Ii=Ce(Yi)}if(Ii!==null)Re=!0;else{var Jn=Ce(b);Jn!==null&&Ni(w,Jn.startTime-re),Re=!1}}break e}finally{Ii=null,ni=ze,Eu=!1}Re=void 0}}finally{Re?_n():At=!1}}}function Hn(re,Re){var ze=re.length;re.push(Re);e:for(;0<ze;){var Nt=ze-1>>>1,jt=re[Nt];if(0<pr(jt,Re))re[Nt]=Re,re[ze]=jt,ze=Nt;else break e}}function Ce(re){return re.length===0?null:re[0]}function oe(re){if(re.length===0)return null;var Re=re[0],ze=re.pop();if(ze!==Re){re[0]=ze;e:for(var Nt=0,jt=re.length,Jn=jt>>>1;Nt<Jn;){var It=2*(Nt+1)-1,Cn=re[It],q=It+1,xt=re[q];if(0>pr(Cn,ze))q<jt&&0>pr(xt,Cn)?(re[Nt]=xt,re[q]=ze,Nt=q):(re[Nt]=Cn,re[It]=ze,Nt=It);else if(q<jt&&0>pr(xt,ze))re[Nt]=xt,re[q]=ze,Nt=q;else break e}}return Re}function pr(re,Re){var ze=re.sortIndex-Re.sortIndex;return ze!==0?ze:re.id-Re.id}function la(re){for(var Re=Ce(b);Re!==null;){if(Re.callback===null)oe(b);else if(Re.startTime<=re)oe(b),Re.sortIndex=Re.expirationTime,Hn(Yi,Re);else break;Re=Ce(b)}}function w(re){if(qr=!1,la(re),!rr)if(Ce(Yi)!==null)rr=!0,At||(At=!0,_n());else{var Re=Ce(b);Re!==null&&Ni(w,Re.startTime-re)}}function et(){return sa?!0:!(He.unstable_now()-Le<ve)}function Ni(re,Re){O=Xe(function(){re(He.unstable_now())},Re)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),He.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Fn=performance;He.unstable_now=function(){return Fn.now()}}else{var Nn=Date,Je=Nn.now();He.unstable_now=function(){return Nn.now()-Je}}var Yi=[],b=[],Ue=1,Ii=null,ni=3,Eu=!1,rr=!1,qr=!1,sa=!1,Xe=typeof setTimeout=="function"?setTimeout:null,bn=typeof clearTimeout=="function"?clearTimeout:null,gr=typeof setImmediate<"u"?setImmediate:null,At=!1,O=-1,ve=5,Le=-1;if(typeof gr=="function")var _n=function(){gr(Xn)};else if(typeof MessageChannel<"u"){var Ge=new MessageChannel,je=Ge.port2;Ge.port1.onmessage=Xn,_n=function(){je.postMessage(null)}}else _n=function(){Xe(Xn,0)};He.unstable_IdlePriority=5,He.unstable_ImmediatePriority=1,He.unstable_LowPriority=4,He.unstable_NormalPriority=3,He.unstable_Profiling=null,He.unstable_UserBlockingPriority=2,He.unstable_cancelCallback=function(re){re.callback=null},He.unstable_forceFrameRate=function(re){0>re||125<re?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ve=0<re?Math.floor(1e3/re):5},He.unstable_getCurrentPriorityLevel=function(){return ni},He.unstable_next=function(re){switch(ni){case 1:case 2:case 3:var Re=3;break;default:Re=ni}var ze=ni;ni=Re;try{return re()}finally{ni=ze}},He.unstable_requestPaint=function(){sa=!0},He.unstable_runWithPriority=function(re,Re){switch(re){case 1:case 2:case 3:case 4:case 5:break;default:re=3}var ze=ni;ni=re;try{return Re()}finally{ni=ze}},He.unstable_scheduleCallback=function(re,Re,ze){var Nt=He.unstable_now();switch(typeof ze=="object"&&ze!==null?(ze=ze.delay,ze=typeof ze=="number"&&0<ze?Nt+ze:Nt):ze=Nt,re){case 1:var jt=-1;break;case 2:jt=250;break;case 5:jt=1073741823;break;case 4:jt=1e4;break;default:jt=5e3}return jt=ze+jt,re={id:Ue++,callback:Re,priorityLevel:re,startTime:ze,expirationTime:jt,sortIndex:-1},ze>Nt?(re.sortIndex=ze,Hn(b,re),Ce(Yi)===null&&re===Ce(b)&&(qr?(bn(O),O=-1):qr=!0,Ni(w,ze-Nt))):(re.sortIndex=jt,Hn(Yi,re),rr||Eu||(rr=!0,At||(At=!0,_n()))),re},He.unstable_shouldYield=et,He.unstable_wrapCallback=function(re){var Re=ni;return function(){var ze=ni;ni=Re;try{return re.apply(this,arguments)}finally{ni=ze}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(H3)),H3}var rb;function db(){return rb||(rb=1,process.env.NODE_ENV==="production"?YA.exports=FI():YA.exports=KI()),YA.exports}/**
153
- * @license React
154
- * react-dom-client.production.js
155
- *
156
- * Copyright (c) Meta Platforms, Inc. and affiliates.
157
- *
158
- * This source code is licensed under the MIT license found in the
159
- * LICENSE file in the root directory of this source tree.
160
- */var ab;function QI(){if(ab)return PE;ab=1;var He=db(),Xn=xi.requireReact(),Hn=sb.requireReactDom();function Ce(o){var c="https://react.dev/errors/"+o;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)c+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+o+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function oe(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function pr(o){var c=o,h=o;if(o.alternate)for(;c.return;)c=c.return;else{o=c;do c=o,(c.flags&4098)!==0&&(h=c.return),o=c.return;while(o)}return c.tag===3?h:null}function la(o){if(o.tag===13){var c=o.memoizedState;if(c===null&&(o=o.alternate,o!==null&&(c=o.memoizedState)),c!==null)return c.dehydrated}return null}function w(o){if(pr(o)!==o)throw Error(Ce(188))}function et(o){var c=o.alternate;if(!c){if(c=pr(o),c===null)throw Error(Ce(188));return c!==o?null:o}for(var h=o,y=c;;){var A=h.return;if(A===null)break;var C=A.alternate;if(C===null){if(y=A.return,y!==null){h=y;continue}break}if(A.child===C.child){for(C=A.child;C;){if(C===h)return w(A),o;if(C===y)return w(A),c;C=C.sibling}throw Error(Ce(188))}if(h.return!==y.return)h=A,y=C;else{for(var _=!1,z=A.child;z;){if(z===h){_=!0,h=A,y=C;break}if(z===y){_=!0,y=A,h=C;break}z=z.sibling}if(!_){for(z=C.child;z;){if(z===h){_=!0,h=C,y=A;break}if(z===y){_=!0,y=C,h=A;break}z=z.sibling}if(!_)throw Error(Ce(189))}}if(h.alternate!==y)throw Error(Ce(190))}if(h.tag!==3)throw Error(Ce(188));return h.stateNode.current===h?o:c}function Ni(o){var c=o.tag;if(c===5||c===26||c===27||c===6)return o;for(o=o.child;o!==null;){if(c=Ni(o),c!==null)return c;o=o.sibling}return null}var Fn=Object.assign,Nn=Symbol.for("react.element"),Je=Symbol.for("react.transitional.element"),Yi=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),Ue=Symbol.for("react.strict_mode"),Ii=Symbol.for("react.profiler"),ni=Symbol.for("react.provider"),Eu=Symbol.for("react.consumer"),rr=Symbol.for("react.context"),qr=Symbol.for("react.forward_ref"),sa=Symbol.for("react.suspense"),Xe=Symbol.for("react.suspense_list"),bn=Symbol.for("react.memo"),gr=Symbol.for("react.lazy"),At=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),ve=Symbol.iterator;function Le(o){return o===null||typeof o!="object"?null:(o=ve&&o[ve]||o["@@iterator"],typeof o=="function"?o:null)}var _n=Symbol.for("react.client.reference");function Ge(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===_n?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case Ii:return"Profiler";case Ue:return"StrictMode";case sa:return"Suspense";case Xe:return"SuspenseList";case At:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case Yi:return"Portal";case rr:return(o.displayName||"Context")+".Provider";case Eu:return(o._context.displayName||"Context")+".Consumer";case qr:var c=o.render;return o=o.displayName,o||(o=c.displayName||c.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case bn:return c=o.displayName||null,c!==null?c:Ge(o.type)||"Memo";case gr:c=o._payload,o=o._init;try{return Ge(o(c))}catch{}}return null}var je=Array.isArray,re=Xn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Re=Hn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ze={pending:!1,data:null,method:null,action:null},Nt=[],jt=-1;function Jn(o){return{current:o}}function It(o){0>jt||(o.current=Nt[jt],Nt[jt]=null,jt--)}function Cn(o,c){jt++,Nt[jt]=o.current,o.current=c}var q=Jn(null),xt=Jn(null),Ot=Jn(null),Au=Jn(null);function pl(o,c){switch(Cn(Ot,c),Cn(xt,o),Cn(q,null),c.nodeType){case 9:case 11:o=(o=c.documentElement)&&(o=o.namespaceURI)?Pl(o):0;break;default:if(o=c.tagName,c=c.namespaceURI)c=Pl(c),o=Rc(c,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}It(q),Cn(q,o)}function gl(){It(q),It(xt),It(Ot)}function Qc(o){o.memoizedState!==null&&Cn(Au,o);var c=q.current,h=Rc(c,o.type);c!==h&&(Cn(xt,o),Cn(q,h))}function fd(o){xt.current===o&&(It(q),It(xt)),Au.current===o&&(It(Au),mu._currentValue=ze)}var Ao=Object.prototype.hasOwnProperty,dd=He.unstable_scheduleCallback,xe=He.unstable_cancelCallback,lT=He.unstable_shouldYield,hd=He.unstable_requestPaint,Te=He.unstable_now,Ah=He.unstable_getCurrentPriorityLevel,Kp=He.unstable_ImmediatePriority,_y=He.unstable_UserBlockingPriority,xu=He.unstable_NormalPriority,st=He.unstable_LowPriority,xo=He.unstable_IdlePriority,sT=He.log,cT=He.unstable_setDisableYieldValue,Qp=null,Ua=null;function wo(o){if(typeof sT=="function"&&cT(o),Ua&&typeof Ua.setStrictMode=="function")try{Ua.setStrictMode(Qp,o)}catch{}}var Tt=Math.clz32?Math.clz32:H1,Zp=Math.log,P1=Math.LN2;function H1(o){return o>>>=0,o===0?32:31-(Zp(o)/P1|0)|0}var ml=256,Qs=4194304;function un(o){var c=o&42;if(c!==0)return c;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function yl(o,c,h){var y=o.pendingLanes;if(y===0)return 0;var A=0,C=o.suspendedLanes,_=o.pingedLanes;o=o.warmLanes;var z=y&134217727;return z!==0?(y=z&~C,y!==0?A=un(y):(_&=z,_!==0?A=un(_):h||(h=z&~o,h!==0&&(A=un(h))))):(z=y&~C,z!==0?A=un(z):_!==0?A=un(_):h||(h=y&~o,h!==0&&(A=un(h)))),A===0?0:c!==0&&c!==A&&(c&C)===0&&(C=A&-A,h=c&-c,C>=h||C===32&&(h&4194048)!==0)?c:A}function Qu(o,c){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&c)===0}function mr(o,c){switch(o){case 1:case 2:case 4:case 8:case 64:return c+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wu(){var o=ml;return ml<<=1,(ml&4194048)===0&&(ml=256),o}function Co(){var o=Qs;return Qs<<=1,(Qs&62914560)===0&&(Qs=4194304),o}function Mo(o){for(var c=[],h=0;31>h;h++)c.push(o);return c}function pd(o,c){o.pendingLanes|=c,c!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function jy(o,c,h,y,A,C){var _=o.pendingLanes;o.pendingLanes=h,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=h,o.entangledLanes&=h,o.errorRecoveryDisabledLanes&=h,o.shellSuspendCounter=0;var z=o.entanglements,Z=o.expirationTimes,de=o.hiddenUpdates;for(h=_&~h;0<h;){var be=31-Tt(h),Ie=1<<be;z[be]=0,Z[be]=-1;var pe=de[be];if(pe!==null)for(de[be]=null,be=0;be<pe.length;be++){var me=pe[be];me!==null&&(me.lane&=-536870913)}h&=~Ie}y!==0&&Jp(o,y,0),C!==0&&A===0&&o.tag!==0&&(o.suspendedLanes|=C&~(_&~c))}function Jp(o,c,h){o.pendingLanes|=c,o.suspendedLanes&=~c;var y=31-Tt(c);o.entangledLanes|=c,o.entanglements[y]=o.entanglements[y]|1073741824|h&4194090}function Wp(o,c){var h=o.entangledLanes|=c;for(o=o.entanglements;h;){var y=31-Tt(h),A=1<<y;A&c|o[y]&c&&(o[y]|=c),h&=~A}}function vl(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function Y0(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function gd(){var o=Re.p;return o!==0?o:(o=window.event,o===void 0?32:Iv(o.type))}function X0(o,c){var h=Re.p;try{return Re.p=o,c()}finally{Re.p=h}}var yr=Math.random().toString(36).slice(2),_i="__reactFiber$"+yr,ji="__reactProps$"+yr,Yr="__reactContainer$"+yr,at="__reactEvents$"+yr,zy="__reactListeners$"+yr,br="__reactHandles$"+yr,F0="__reactResources$"+yr,G="__reactMarker$"+yr;function Zs(o){delete o[_i],delete o[ji],delete o[at],delete o[zy],delete o[br]}function Xr(o){var c=o[_i];if(c)return c;for(var h=o.parentNode;h;){if(c=h[Yr]||h[_i]){if(h=c.alternate,c.child!==null||h!==null&&h.child!==null)for(o=ba(o);o!==null;){if(h=o[_i])return h;o=ba(o)}return c}o=h,h=o.parentNode}return null}function Js(o){if(o=o[_i]||o[Yr]){var c=o.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return o}return null}function md(o){var c=o.tag;if(c===5||c===26||c===27||c===6)return o.stateNode;throw Error(Ce(33))}function bo(o){var c=o[F0];return c||(c=o[F0]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Xi(o){o[G]=!0}var ts=new Set,ca={};function Ke(o,c){fa(o,c),fa(o+"Capture",c)}function fa(o,c){for(ca[o]=c,o=0;o<c.length;o++)ts.add(c[o])}var xh=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ws={},Zu={};function Sl(o){return Ao.call(Zu,o)?!0:Ao.call(Ws,o)?!1:xh.test(o)?Zu[o]=!0:(Ws[o]=!0,!1)}function da(o,c,h){if(Sl(c))if(h===null)o.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":o.removeAttribute(c);return;case"boolean":var y=c.toLowerCase().slice(0,5);if(y!=="data-"&&y!=="aria-"){o.removeAttribute(c);return}}o.setAttribute(c,""+h)}}function Ju(o,c,h){if(h===null)o.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(c);return}o.setAttribute(c,""+h)}}function Wu(o,c,h,y){if(y===null)o.removeAttribute(h);else{switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(h);return}o.setAttributeNS(c,h,""+y)}}var $a,K0;function ai(o){if($a===void 0)try{throw Error()}catch(h){var c=h.stack.trim().match(/\n( *(at )?)/);$a=c&&c[1]||"",K0=-1<h.stack.indexOf(`
161
- at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
162
- `+$a+o+K0}var vr=!1;function Fr(o,c){if(!o||vr)return"";vr=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var y={DetermineComponentFrameRoot:function(){try{if(c){var Ie=function(){throw Error()};if(Object.defineProperty(Ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ie,[])}catch(me){var pe=me}Reflect.construct(o,[],Ie)}else{try{Ie.call()}catch(me){pe=me}o.call(Ie.prototype)}}else{try{throw Error()}catch(me){pe=me}(Ie=o())&&typeof Ie.catch=="function"&&Ie.catch(function(){})}}catch(me){if(me&&pe&&typeof me.stack=="string")return[me.stack,pe.stack]}return[null,null]}};y.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var A=Object.getOwnPropertyDescriptor(y.DetermineComponentFrameRoot,"name");A&&A.configurable&&Object.defineProperty(y.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=y.DetermineComponentFrameRoot(),_=C[0],z=C[1];if(_&&z){var Z=_.split(`
163
- `),de=z.split(`
164
- `);for(A=y=0;y<Z.length&&!Z[y].includes("DetermineComponentFrameRoot");)y++;for(;A<de.length&&!de[A].includes("DetermineComponentFrameRoot");)A++;if(y===Z.length||A===de.length)for(y=Z.length-1,A=de.length-1;1<=y&&0<=A&&Z[y]!==de[A];)A--;for(;1<=y&&0<=A;y--,A--)if(Z[y]!==de[A]){if(y!==1||A!==1)do if(y--,A--,0>A||Z[y]!==de[A]){var be=`
165
- `+Z[y].replace(" at new "," at ");return o.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",o.displayName)),be}while(1<=y&&0<=A);break}}}finally{vr=!1,Error.prepareStackTrace=h}return(h=o?o.displayName||o.name:"")?ai(h):""}function ns(o){switch(o.tag){case 26:case 27:case 5:return ai(o.type);case 16:return ai("Lazy");case 13:return ai("Suspense");case 19:return ai("SuspenseList");case 0:case 15:return Fr(o.type,!1);case 11:return Fr(o.type.render,!1);case 1:return Fr(o.type,!0);case 31:return ai("Activity");default:return""}}function $p(o){try{var c="";do c+=ns(o),o=o.return;while(o);return c}catch(h){return`
166
- Error generating stack: `+h.message+`
167
- `+h.stack}}function ha(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function wh(o){var c=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Q0(o){var c=wh(o)?"checked":"value",h=Object.getOwnPropertyDescriptor(o.constructor.prototype,c),y=""+o[c];if(!o.hasOwnProperty(c)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var A=h.get,C=h.set;return Object.defineProperty(o,c,{configurable:!0,get:function(){return A.call(this)},set:function(_){y=""+_,C.call(this,_)}}),Object.defineProperty(o,c,{enumerable:h.enumerable}),{getValue:function(){return y},setValue:function(_){y=""+_},stopTracking:function(){o._valueTracker=null,delete o[c]}}}}function Tl(o){o._valueTracker||(o._valueTracker=Q0(o))}function eu(o){if(!o)return!1;var c=o._valueTracker;if(!c)return!0;var h=c.getValue(),y="";return o&&(y=wh(o)?o.checked?"true":"false":o.value),o=y,o!==h?(c.setValue(o),!0):!1}function Zc(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var Z0=/[\n"\\]/g;function Tn(o){return o.replace(Z0,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function $s(o,c,h,y,A,C,_,z){o.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?o.type=_:o.removeAttribute("type"),c!=null?_==="number"?(c===0&&o.value===""||o.value!=c)&&(o.value=""+ha(c)):o.value!==""+ha(c)&&(o.value=""+ha(c)):_!=="submit"&&_!=="reset"||o.removeAttribute("value"),c!=null?tg(o,_,ha(c)):h!=null?tg(o,_,ha(h)):y!=null&&o.removeAttribute("value"),A==null&&C!=null&&(o.defaultChecked=!!C),A!=null&&(o.checked=A&&typeof A!="function"&&typeof A!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?o.name=""+ha(z):o.removeAttribute("name")}function eg(o,c,h,y,A,C,_,z){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(o.type=C),c!=null||h!=null){if(!(C!=="submit"&&C!=="reset"||c!=null))return;h=h!=null?""+ha(h):"",c=c!=null?""+ha(c):h,z||c===o.value||(o.value=c),o.defaultValue=c}y=y??A,y=typeof y!="function"&&typeof y!="symbol"&&!!y,o.checked=z?o.checked:!!y,o.defaultChecked=!!y,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(o.name=_)}function tg(o,c,h){c==="number"&&Zc(o.ownerDocument)===o||o.defaultValue===""+h||(o.defaultValue=""+h)}function Jc(o,c,h,y){if(o=o.options,c){c={};for(var A=0;A<h.length;A++)c["$"+h[A]]=!0;for(h=0;h<o.length;h++)A=c.hasOwnProperty("$"+o[h].value),o[h].selected!==A&&(o[h].selected=A),A&&y&&(o[h].defaultSelected=!0)}else{for(h=""+ha(h),c=null,A=0;A<o.length;A++){if(o[A].value===h){o[A].selected=!0,y&&(o[A].defaultSelected=!0);return}c!==null||o[A].disabled||(c=o[A])}c!==null&&(c.selected=!0)}}function J0(o,c,h){if(c!=null&&(c=""+ha(c),c!==o.value&&(o.value=c),h==null)){o.defaultValue!==c&&(o.defaultValue=c);return}o.defaultValue=h!=null?""+ha(h):""}function ng(o,c,h,y){if(c==null){if(y!=null){if(h!=null)throw Error(Ce(92));if(je(y)){if(1<y.length)throw Error(Ce(93));y=y[0]}h=y}h==null&&(h=""),c=h}h=ha(c),o.defaultValue=h,y=o.textContent,y===h&&y!==""&&y!==null&&(o.value=y)}function El(o,c){if(c){var h=o.firstChild;if(h&&h===o.lastChild&&h.nodeType===3){h.nodeValue=c;return}}o.textContent=c}var Wc=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Rn(o,c,h){var y=c.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?y?o.setProperty(c,""):c==="float"?o.cssFloat="":o[c]="":y?o.setProperty(c,h):typeof h!="number"||h===0||Wc.has(c)?c==="float"?o.cssFloat=h:o[c]=(""+h).trim():o[c]=h+"px"}function Ro(o,c,h){if(c!=null&&typeof c!="object")throw Error(Ce(62));if(o=o.style,h!=null){for(var y in h)!h.hasOwnProperty(y)||c!=null&&c.hasOwnProperty(y)||(y.indexOf("--")===0?o.setProperty(y,""):y==="float"?o.cssFloat="":o[y]="");for(var A in c)y=c[A],c.hasOwnProperty(A)&&h[A]!==y&&Rn(o,A,y)}else for(var C in c)c.hasOwnProperty(C)&&Rn(o,C,c[C])}function ka(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Do=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),W0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function yd(o){return W0.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}var Fi=null;function ig(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Li=null,ec=null;function is(o){var c=Js(o);if(c&&(o=c.stateNode)){var h=o[ji]||null;e:switch(o=c.stateNode,c.type){case"input":if($s(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),c=h.name,h.type==="radio"&&c!=null){for(h=o;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+Tn(""+c)+'"][type="radio"]'),c=0;c<h.length;c++){var y=h[c];if(y!==o&&y.form===o.form){var A=y[ji]||null;if(!A)throw Error(Ce(90));$s(y,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(c=0;c<h.length;c++)y=h[c],y.form===o.form&&eu(y)}break e;case"textarea":J0(o,h.value,h.defaultValue);break e;case"select":c=h.value,c!=null&&Jc(o,!!h.multiple,c,!1)}}}var tu=!1;function Io(o,c,h){if(tu)return o(c,h);tu=!0;try{var y=o(c);return y}finally{if(tu=!1,(Li!==null||ec!==null)&&(If(),Li&&(c=Li,o=ec,ec=Li=null,is(c),o)))for(c=0;c<o.length;c++)is(o[c])}}function nu(o,c){var h=o.stateNode;if(h===null)return null;var y=h[ji]||null;if(y===null)return null;h=y[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(o=o.type,y=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!y;break e;default:o=!1}if(o)return null;if(h&&typeof h!="function")throw Error(Ce(231,c,typeof h));return h}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wi=!1;if(gn)try{var Na={};Object.defineProperty(Na,"passive",{get:function(){wi=!0}}),window.addEventListener("test",Na,Na),window.removeEventListener("test",Na,Na)}catch{wi=!1}var rs=null,Al=null,Ki=null;function rg(){if(Ki)return Ki;var o,c=Al,h=c.length,y,A="value"in rs?rs.value:rs.textContent,C=A.length;for(o=0;o<h&&c[o]===A[o];o++);var _=h-o;for(y=1;y<=_&&c[h-y]===A[C-y];y++);return Ki=A.slice(o,1<y?1-y:void 0)}function lt(o){var c=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&c===13&&(o=13)):o=c,o===10&&(o=13),32<=o||o===13?o:0}function ui(){return!0}function $0(){return!1}function _a(o){function c(h,y,A,C,_){this._reactName=h,this._targetInst=A,this.type=y,this.nativeEvent=C,this.target=_,this.currentTarget=null;for(var z in o)o.hasOwnProperty(z)&&(h=o[z],this[z]=h?h(C):C[z]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?ui:$0,this.isPropagationStopped=$0,this}return Fn(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=ui)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=ui)},persist:function(){},isPersistent:ui}),c}var Rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tc=_a(Rr),nc=Fn({},Rr,{view:0,detail:0}),em=_a(nc),Wt,ag,xl,Lo=Fn({},nc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wl,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==xl&&(xl&&o.type==="mousemove"?(Wt=o.screenX-xl.screenX,ag=o.screenY-xl.screenY):ag=Wt=0,xl=o),Wt)},movementY:function(o){return"movementY"in o?o.movementY:ag}}),ug=_a(Lo),og=Fn({},Lo,{dataTransfer:0}),By=_a(og),Qi=Fn({},nc,{relatedTarget:0}),tm=_a(Qi),fT=Fn({},Rr,{animationName:0,elapsedTime:0,pseudoElement:0}),Py=_a(fT),Ch=Fn({},Rr,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),$c=_a(Ch),Mh=Fn({},Rr,{data:0}),Ft=_a(Mh),Hy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},G1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Gy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vy(o){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(o):(o=Gy[o])?!!c[o]:!1}function wl(){return Vy}var Gt=Fn({},nc,{key:function(o){if(o.key){var c=Hy[o.key]||o.key;if(c!=="Unidentified")return c}return o.type==="keypress"?(o=lt(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?G1[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wl,charCode:function(o){return o.type==="keypress"?lt(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?lt(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),Cl=_a(Gt),$u=Fn({},Lo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bh=_a($u),ef=Fn({},nc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wl}),lg=_a(ef),iu=Fn({},Rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),qy=_a(iu),zi=Fn({},Lo,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),eo=_a(zi),nm=Fn({},Rr,{newState:0,oldState:0}),im=_a(nm),Rh=[9,13,27,32],vd=gn&&"CompositionEvent"in window,ic=null;gn&&"documentMode"in document&&(ic=document.documentMode);var ja=gn&&"TextEvent"in window&&!ic,Oo=gn&&(!vd||ic&&8<ic&&11>=ic),rm=" ",Dh=!1;function as(o,c){switch(o){case"keyup":return Rh.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cu(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Zi=!1;function am(o,c){switch(o){case"compositionend":return Cu(c);case"keypress":return c.which!==32?null:(Dh=!0,rm);case"textInput":return o=c.data,o===rm&&Dh?null:o;default:return null}}function tf(o,c){if(Zi)return o==="compositionend"||!vd&&as(o,c)?(o=rg(),Ki=Al=rs=null,Zi=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Oo&&c.locale!=="ko"?null:c.data;default:return null}}var to={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ih(o){var c=o&&o.nodeName&&o.nodeName.toLowerCase();return c==="input"?!!to[o.type]:c==="textarea"}function rc(o,c,h,y){Li?ec?ec.push(y):ec=[y]:Li=y,c=hp(c,"onChange"),0<c.length&&(h=new tc("onChange","change",null,h,y),o.push({event:h,listeners:c}))}var za=null,Ba=null;function ac(o){Ms(o,0)}function Pa(o){var c=md(o);if(eu(c))return o}function Sd(o,c){if(o==="change")return c}var nf=!1;if(gn){var Td;if(gn){var pa="oninput"in document;if(!pa){var uc=document.createElement("div");uc.setAttribute("oninput","return;"),pa=typeof uc.oninput=="function"}Td=pa}else Td=!1;nf=Td&&(!document.documentMode||9<document.documentMode)}function rf(){za&&(za.detachEvent("onpropertychange",Ed),Ba=za=null)}function Ed(o){if(o.propertyName==="value"&&Pa(Ba)){var c=[];rc(c,Ba,o,ig(o)),Io(ac,c)}}function us(o,c,h){o==="focusin"?(rf(),za=c,Ba=h,za.attachEvent("onpropertychange",Ed)):o==="focusout"&&rf()}function os(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Pa(Ba)}function oc(o,c){if(o==="click")return Pa(c)}function Lh(o,c){if(o==="input"||o==="change")return Pa(c)}function um(o,c){return o===c&&(o!==0||1/o===1/c)||o!==o&&c!==c}var wt=typeof Object.is=="function"?Object.is:um;function Gn(o,c){if(wt(o,c))return!0;if(typeof o!="object"||o===null||typeof c!="object"||c===null)return!1;var h=Object.keys(o),y=Object.keys(c);if(h.length!==y.length)return!1;for(y=0;y<h.length;y++){var A=h[y];if(!Ao.call(c,A)||!wt(o[A],c[A]))return!1}return!0}function ar(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Dn(o,c){var h=ar(o);o=0;for(var y;h;){if(h.nodeType===3){if(y=o+h.textContent.length,o<=c&&y>=c)return{node:h,offset:c-o};o=y}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=ar(h)}}function Wn(o,c){return o&&c?o===c?!0:o&&o.nodeType===3?!1:c&&c.nodeType===3?Wn(o,c.parentNode):"contains"in o?o.contains(c):o.compareDocumentPosition?!!(o.compareDocumentPosition(c)&16):!1:!1}function Mu(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var c=Zc(o.document);c instanceof o.HTMLIFrameElement;){try{var h=typeof c.contentWindow.location.href=="string"}catch{h=!1}if(h)o=c.contentWindow;else break;c=Zc(o.document)}return c}function ct(o){var c=o&&o.nodeName&&o.nodeName.toLowerCase();return c&&(c==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||c==="textarea"||o.contentEditable==="true")}var ru=gn&&"documentMode"in document&&11>=document.documentMode,Ml=null,Sr=null,au=null,Ha=!1;function Ad(o,c,h){var y=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;Ha||Ml==null||Ml!==Zc(y)||(y=Ml,"selectionStart"in y&&ct(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),au&&Gn(au,y)||(au=y,y=hp(Sr,"onSelect"),0<y.length&&(c=new tc("onSelect","select",null,c,h),o.push({event:c,listeners:y}),c.target=Ml)))}function Ci(o,c){var h={};return h[o.toLowerCase()]=c.toLowerCase(),h["Webkit"+o]="webkit"+c,h["Moz"+o]="moz"+c,h}var uu={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionrun:Ci("Transition","TransitionRun"),transitionstart:Ci("Transition","TransitionStart"),transitioncancel:Ci("Transition","TransitionCancel"),transitionend:Ci("Transition","TransitionEnd")},ii={},ou={};gn&&(ou=document.createElement("div").style,"AnimationEvent"in window||(delete uu.animationend.animation,delete uu.animationiteration.animation,delete uu.animationstart.animation),"TransitionEvent"in window||delete uu.transitionend.transition);function no(o){if(ii[o])return ii[o];if(!uu[o])return o;var c=uu[o],h;for(h in c)if(c.hasOwnProperty(h)&&h in ou)return ii[o]=c[h];return o}var V1=no("animationend"),Oh=no("animationiteration"),Yy=no("animationstart"),om=no("transitionrun"),sg=no("transitionstart"),Xy=no("transitioncancel"),cg=no("transitionend"),fg=new Map,af="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");af.push("scrollEnd");function Kt(o,c){fg.set(o,c),Ke(c,[o])}var lm=new WeakMap;function Ga(o,c){if(typeof o=="object"&&o!==null){var h=lm.get(o);return h!==void 0?h:(c={value:o,source:c,stack:$p(c)},lm.set(o,c),c)}return{value:o,source:c,stack:$p(c)}}var ga=[],lc=0,ls=0;function Uo(){for(var o=lc,c=ls=lc=0;c<o;){var h=ga[c];ga[c++]=null;var y=ga[c];ga[c++]=null;var A=ga[c];ga[c++]=null;var C=ga[c];if(ga[c++]=null,y!==null&&A!==null){var _=y.pending;_===null?A.next=A:(A.next=_.next,_.next=A),y.pending=A}C!==0&&uf(h,A,C)}}function ko(o,c,h,y){ga[lc++]=o,ga[lc++]=c,ga[lc++]=h,ga[lc++]=y,ls|=y,o.lanes|=y,o=o.alternate,o!==null&&(o.lanes|=y)}function sc(o,c,h,y){return ko(o,c,h,y),cc(o)}function Dr(o,c){return ko(o,null,null,c),cc(o)}function uf(o,c,h){o.lanes|=h;var y=o.alternate;y!==null&&(y.lanes|=h);for(var A=!1,C=o.return;C!==null;)C.childLanes|=h,y=C.alternate,y!==null&&(y.childLanes|=h),C.tag===22&&(o=C.stateNode,o===null||o._visibility&1||(A=!0)),o=C,C=C.return;return o.tag===3?(C=o.stateNode,A&&c!==null&&(A=31-Tt(h),o=C.hiddenUpdates,y=o[A],y===null?o[A]=[c]:y.push(c),c.lane=h|536870912),C):null}function cc(o){if(50<op)throw op=0,zm=null,Error(Ce(185));for(var c=o.return;c!==null;)o=c,c=o.return;return o.tag===3?o.stateNode:null}var xd={};function Uh(o,c,h,y){this.tag=o,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tr(o,c,h,y){return new Uh(o,c,h,y)}function fc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function ma(o,c){var h=o.alternate;return h===null?(h=Tr(o.tag,c,o.key,o.mode),h.elementType=o.elementType,h.type=o.type,h.stateNode=o.stateNode,h.alternate=o,o.alternate=h):(h.pendingProps=c,h.type=o.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=o.flags&65011712,h.childLanes=o.childLanes,h.lanes=o.lanes,h.child=o.child,h.memoizedProps=o.memoizedProps,h.memoizedState=o.memoizedState,h.updateQueue=o.updateQueue,c=o.dependencies,h.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},h.sibling=o.sibling,h.index=o.index,h.ref=o.ref,h.refCleanup=o.refCleanup,h}function on(o,c){o.flags&=65011714;var h=o.alternate;return h===null?(o.childLanes=0,o.lanes=c,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=h.childLanes,o.lanes=h.lanes,o.child=h.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=h.memoizedProps,o.memoizedState=h.memoizedState,o.updateQueue=h.updateQueue,o.type=h.type,c=h.dependencies,o.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),o}function _e(o,c,h,y,A,C){var _=0;if(y=o,typeof o=="function")fc(o)&&(_=1);else if(typeof o=="string")_=Qm(o,h,q.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case At:return o=Tr(31,h,c,A),o.elementType=At,o.lanes=C,o;case b:return io(h.children,A,C,c);case Ue:_=8,A|=24;break;case Ii:return o=Tr(12,h,c,A|2),o.elementType=Ii,o.lanes=C,o;case sa:return o=Tr(13,h,c,A),o.elementType=sa,o.lanes=C,o;case Xe:return o=Tr(19,h,c,A),o.elementType=Xe,o.lanes=C,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case ni:case rr:_=10;break e;case Eu:_=9;break e;case qr:_=11;break e;case bn:_=14;break e;case gr:_=16,y=null;break e}_=29,h=Error(Ce(130,o===null?"null":typeof o,"")),y=null}return c=Tr(_,h,c,A),c.elementType=o,c.type=y,c.lanes=C,c}function io(o,c,h,y){return o=Tr(7,o,y,c),o.lanes=h,o}function wd(o,c,h){return o=Tr(6,o,null,c),o.lanes=h,o}function oi(o,c,h){return c=Tr(4,o.children!==null?o.children:[],o.key,c),c.lanes=h,c.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},c}var ss=[],ro=0,kh=null,bu=0,No=[],ur=0,ya=null,Kr=1,Oi="";function tn(o,c){ss[ro++]=bu,ss[ro++]=kh,kh=o,bu=c}function Nh(o,c,h){No[ur++]=Kr,No[ur++]=Oi,No[ur++]=ya,ya=o;var y=Kr;o=Oi;var A=32-Tt(y)-1;y&=~(1<<A),h+=1;var C=32-Tt(c)+A;if(30<C){var _=A-A%5;C=(y&(1<<_)-1).toString(32),y>>=_,A-=_,Kr=1<<32-Tt(c)+A|h<<A|y,Oi=C+o}else Kr=1<<C|h<<A|y,Oi=o}function dc(o){o.return!==null&&(tn(o,1),Nh(o,1,0))}function bl(o){for(;o===kh;)kh=ss[--ro],ss[ro]=null,bu=ss[--ro],ss[ro]=null;for(;o===ya;)ya=No[--ur],No[ur]=null,Oi=No[--ur],No[ur]=null,Kr=No[--ur],No[ur]=null}var Bi=null,Et=null,mn=!1,Ru=null,_o=!1,cs=Error(Ce(519));function In(o){var c=Error(Ce(418,""));throw _h(Ga(c,o)),cs}function jo(o){var c=o.stateNode,h=o.type,y=o.memoizedProps;switch(c[_i]=o,c[ji]=y,h){case"dialog":nn("cancel",c),nn("close",c);break;case"iframe":case"object":case"embed":nn("load",c);break;case"video":case"audio":for(h=0;h<Cs.length;h++)nn(Cs[h],c);break;case"source":nn("error",c);break;case"img":case"image":case"link":nn("error",c),nn("load",c);break;case"details":nn("toggle",c);break;case"input":nn("invalid",c),eg(c,y.value,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name,!0),Tl(c);break;case"select":nn("invalid",c);break;case"textarea":nn("invalid",c),ng(c,y.value,y.defaultValue,y.children),Tl(c)}h=y.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||c.textContent===""+h||y.suppressHydrationWarning===!0||e0(c.textContent,h)?(y.popover!=null&&(nn("beforetoggle",c),nn("toggle",c)),y.onScroll!=null&&nn("scroll",c),y.onScrollEnd!=null&&nn("scrollend",c),y.onClick!=null&&(c.onclick=pp),c=!0):c=!1,c||In(o)}function va(o){for(Bi=o.return;Bi;)switch(Bi.tag){case 5:case 13:_o=!1;return;case 27:case 3:_o=!0;return;default:Bi=Bi.return}}function Er(o){if(o!==Bi)return!1;if(!mn)return va(o),mn=!0,!1;var c=o.tag,h;if((h=c!==3&&c!==27)&&((h=c===5)&&(h=o.type,h=!(h!=="form"&&h!=="button")||Rs(o.type,o.memoizedProps)),h=!h),h&&Et&&In(o),va(o),c===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Ce(317));e:{for(o=o.nextSibling,c=0;o;){if(o.nodeType===8)if(h=o.data,h==="/$"){if(c===0){Et=Hl(o.nextSibling);break e}c--}else h!=="$"&&h!=="$!"&&h!=="$?"||c++;o=o.nextSibling}Et=null}}else c===27?(c=Et,Vi(o.type)?(o=Bf,Bf=null,Et=o):Et=c):Et=Bi?Hl(o.stateNode.nextSibling):null;return!0}function of(){Et=Bi=null,mn=!1}function sm(){var o=Ru;return o!==null&&(zu===null?zu=o:zu.push.apply(zu,o),Ru=null),o}function _h(o){Ru===null?Ru=[o]:Ru.push(o)}var ao=Jn(null),Sa=null,$n=null;function uo(o,c,h){Cn(ao,c._currentValue),c._currentValue=h}function lu(o){o._currentValue=ao.current,It(ao)}function cm(o,c,h){for(;o!==null;){var y=o.alternate;if((o.childLanes&c)!==c?(o.childLanes|=c,y!==null&&(y.childLanes|=c)):y!==null&&(y.childLanes&c)!==c&&(y.childLanes|=c),o===h)break;o=o.return}}function Fy(o,c,h,y){var A=o.child;for(A!==null&&(A.return=o);A!==null;){var C=A.dependencies;if(C!==null){var _=A.child;C=C.firstContext;e:for(;C!==null;){var z=C;C=A;for(var Z=0;Z<c.length;Z++)if(z.context===c[Z]){C.lanes|=h,z=C.alternate,z!==null&&(z.lanes|=h),cm(C.return,h,o),y||(_=null);break e}C=z.next}}else if(A.tag===18){if(_=A.return,_===null)throw Error(Ce(341));_.lanes|=h,C=_.alternate,C!==null&&(C.lanes|=h),cm(_,h,o),_=null}else _=A.child;if(_!==null)_.return=A;else for(_=A;_!==null;){if(_===o){_=null;break}if(A=_.sibling,A!==null){A.return=_.return,_=A;break}_=_.return}A=_}}function Cd(o,c,h,y){o=null;for(var A=c,C=!1;A!==null;){if(!C){if((A.flags&524288)!==0)C=!0;else if((A.flags&262144)!==0)break}if(A.tag===10){var _=A.alternate;if(_===null)throw Error(Ce(387));if(_=_.memoizedProps,_!==null){var z=A.type;wt(A.pendingProps.value,_.value)||(o!==null?o.push(z):o=[z])}}else if(A===Au.current){if(_=A.alternate,_===null)throw Error(Ce(387));_.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(o!==null?o.push(mu):o=[mu])}A=A.return}o!==null&&Fy(c,o,h,y),c.flags|=262144}function jh(o){for(o=o.firstContext;o!==null;){if(!wt(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function lf(o){Sa=o,$n=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Ji(o){return Ky(Sa,o)}function dg(o,c){return Sa===null&&lf(o),Ky(o,c)}function Ky(o,c){var h=c._currentValue;if(c={context:c,memoizedValue:h,next:null},$n===null){if(o===null)throw Error(Ce(308));$n=c,o.dependencies={lanes:0,firstContext:c},o.flags|=524288}else $n=$n.next=c;return h}var Du=typeof AbortController<"u"?AbortController:function(){var o=[],c=this.signal={aborted:!1,addEventListener:function(h,y){o.push(y)}};this.abort=function(){c.aborted=!0,o.forEach(function(h){return h()})}},sf=He.unstable_scheduleCallback,Qy=He.unstable_NormalPriority,Ar={$$typeof:rr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zh(){return{controller:new Du,data:new Map,refCount:0}}function fs(o){o.refCount--,o.refCount===0&&sf(Qy,function(){o.controller.abort()})}var Rl=null,hg=0,oo=0,Ir=null;function fm(o,c){if(Rl===null){var h=Rl=[];hg=0,oo=eh(),Ir={status:"pending",value:void 0,then:function(y){h.push(y)}}}return hg++,c.then(pg,pg),c}function pg(){if(--hg===0&&Rl!==null){Ir!==null&&(Ir.status="fulfilled");var o=Rl;Rl=null,oo=0,Ir=null;for(var c=0;c<o.length;c++)(0,o[c])()}}function q1(o,c){var h=[],y={status:"pending",value:null,reason:null,then:function(A){h.push(A)}};return o.then(function(){y.status="fulfilled",y.value=c;for(var A=0;A<h.length;A++)(0,h[A])(c)},function(A){for(y.status="rejected",y.reason=A,A=0;A<h.length;A++)(0,h[A])(void 0)}),y}var gg=re.S;re.S=function(o,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&fm(o,c),gg!==null&&gg(o,c)};var Dl=Jn(null);function hc(){var o=Dl.current;return o!==null?o:hi.pooledCache}function pc(o,c){c===null?Cn(Dl,Dl.current):Cn(Dl,c.pool)}function dm(){var o=hc();return o===null?null:{parent:Ar._currentValue,pool:o}}var cf=Error(Ce(460)),hm=Error(Ce(474)),Il=Error(Ce(542)),ds={then:function(){}};function Bh(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Md(){}function mg(o,c,h){switch(h=o[h],h===void 0?o.push(c):h!==c&&(c.then(Md,Md),c=h),c.status){case"fulfilled":return c.value;case"rejected":throw o=c.reason,Ph(o),o;default:if(typeof c.status=="string")c.then(Md,Md);else{if(o=hi,o!==null&&100<o.shellSuspendCounter)throw Error(Ce(482));o=c,o.status="pending",o.then(function(y){if(c.status==="pending"){var A=c;A.status="fulfilled",A.value=y}},function(y){if(c.status==="pending"){var A=c;A.status="rejected",A.reason=y}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw o=c.reason,Ph(o),o}throw ff=c,cf}}var ff=null;function bd(){if(ff===null)throw Error(Ce(459));var o=ff;return ff=null,o}function Ph(o){if(o===cf||o===Il)throw Error(Ce(483))}var su=!1;function yg(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vg(o,c){o=o.updateQueue,c.updateQueue===o&&(c.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function cu(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Ll(o,c,h){var y=o.updateQueue;if(y===null)return null;if(y=y.shared,(Un&2)!==0){var A=y.pending;return A===null?c.next=c:(c.next=A.next,A.next=c),y.pending=c,c=cc(o),uf(o,null,h),c}return ko(o,y,c,h),cc(o)}function hs(o,c,h){if(c=c.updateQueue,c!==null&&(c=c.shared,(h&4194048)!==0)){var y=c.lanes;y&=o.pendingLanes,h|=y,c.lanes=h,Wp(o,h)}}function Zy(o,c){var h=o.updateQueue,y=o.alternate;if(y!==null&&(y=y.updateQueue,h===y)){var A=null,C=null;if(h=h.firstBaseUpdate,h!==null){do{var _={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};C===null?A=C=_:C=C.next=_,h=h.next}while(h!==null);C===null?A=C=c:C=C.next=c}else A=C=c;h={baseState:y.baseState,firstBaseUpdate:A,lastBaseUpdate:C,shared:y.shared,callbacks:y.callbacks},o.updateQueue=h;return}o=h.lastBaseUpdate,o===null?h.firstBaseUpdate=c:o.next=c,h.lastBaseUpdate=c}var Hh=!1;function Gh(){if(Hh){var o=Ir;if(o!==null)throw o}}function dn(o,c,h,y){Hh=!1;var A=o.updateQueue;su=!1;var C=A.firstBaseUpdate,_=A.lastBaseUpdate,z=A.shared.pending;if(z!==null){A.shared.pending=null;var Z=z,de=Z.next;Z.next=null,_===null?C=de:_.next=de,_=Z;var be=o.alternate;be!==null&&(be=be.updateQueue,z=be.lastBaseUpdate,z!==_&&(z===null?be.firstBaseUpdate=de:z.next=de,be.lastBaseUpdate=Z))}if(C!==null){var Ie=A.baseState;_=0,be=de=Z=null,z=C;do{var pe=z.lane&-536870913,me=pe!==z.lane;if(me?(vn&pe)===pe:(y&pe)===pe){pe!==0&&pe===oo&&(Hh=!0),be!==null&&(be=be.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var bt=o,te=z;pe=c;var Ln=h;switch(te.tag){case 1:if(bt=te.payload,typeof bt=="function"){Ie=bt.call(Ln,Ie,pe);break e}Ie=bt;break e;case 3:bt.flags=bt.flags&-65537|128;case 0:if(bt=te.payload,pe=typeof bt=="function"?bt.call(Ln,Ie,pe):bt,pe==null)break e;Ie=Fn({},Ie,pe);break e;case 2:su=!0}}pe=z.callback,pe!==null&&(o.flags|=64,me&&(o.flags|=8192),me=A.callbacks,me===null?A.callbacks=[pe]:me.push(pe))}else me={lane:pe,tag:z.tag,payload:z.payload,callback:z.callback,next:null},be===null?(de=be=me,Z=Ie):be=be.next=me,_|=pe;if(z=z.next,z===null){if(z=A.shared.pending,z===null)break;me=z,z=me.next,me.next=null,A.lastBaseUpdate=me,A.shared.pending=null}}while(!0);be===null&&(Z=Ie),A.baseState=Z,A.firstBaseUpdate=de,A.lastBaseUpdate=be,C===null&&(A.shared.lanes=0),Ma|=_,o.lanes=_,o.memoizedState=Ie}}function Sg(o,c){if(typeof o!="function")throw Error(Ce(191,o));o.call(c)}function Rd(o,c){var h=o.callbacks;if(h!==null)for(o.callbacks=null,o=0;o<h.length;o++)Sg(h[o],c)}var Dd=Jn(null),Tg=Jn(0);function Lr(o,c){o=Nu,Cn(Tg,o),Cn(Dd,c),Nu=o|c.baseLanes}function Id(){Cn(Tg,Nu),Cn(Dd,Dd.current)}function Va(){Nu=Tg.current,It(Dd),It(Tg)}var Bt=0,ft=null,En=null,Mi=null,ps=!1,Iu=!1,gc=!1,Ol=0,Qr=0,fu=null,yn=0;function Kn(){throw Error(Ce(321))}function Eg(o,c){if(c===null)return!1;for(var h=0;h<c.length&&h<o.length;h++)if(!wt(o[h],c[h]))return!1;return!0}function yi(o,c,h,y,A,C){return Bt=C,ft=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,re.H=o===null||o.memoizedState===null?Tm:Og,gc=!1,C=h(y,A),gc=!1,Iu&&(C=pm(c,h,y,A)),df(o),C}function df(o){re.H=Lg;var c=En!==null&&En.next!==null;if(Bt=0,Mi=En=ft=null,ps=!1,Qr=0,fu=null,c)throw Error(Ce(300));o===null||xr||(o=o.dependencies,o!==null&&jh(o)&&(xr=!0))}function pm(o,c,h,y){ft=o;var A=0;do{if(Iu&&(fu=null),Qr=0,Iu=!1,25<=A)throw Error(Ce(301));if(A+=1,Mi=En=null,o.updateQueue!=null){var C=o.updateQueue;C.lastEffect=null,C.events=null,C.stores=null,C.memoCache!=null&&(C.memoCache.index=0)}re.H=vc,C=c(h,y)}while(Iu);return C}function Y1(){var o=re.H,c=o.useState()[0];return c=typeof c.then=="function"?gs(c):c,o=o.useState()[0],(En!==null?En.memoizedState:null)!==o&&(ft.flags|=1024),c}function Ag(){var o=Ol!==0;return Ol=0,o}function Ld(o,c,h){c.updateQueue=o.updateQueue,c.flags&=-2053,o.lanes&=~h}function Od(o){if(ps){for(o=o.memoizedState;o!==null;){var c=o.queue;c!==null&&(c.pending=null),o=o.next}ps=!1}Bt=0,Mi=En=ft=null,Iu=!1,Qr=Ol=0,fu=null}function li(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mi===null?ft.memoizedState=Mi=o:Mi=Mi.next=o,Mi}function Pi(){if(En===null){var o=ft.alternate;o=o!==null?o.memoizedState:null}else o=En.next;var c=Mi===null?ft.memoizedState:Mi.next;if(c!==null)Mi=c,En=o;else{if(o===null)throw ft.alternate===null?Error(Ce(467)):Error(Ce(310));En=o,o={memoizedState:En.memoizedState,baseState:En.baseState,baseQueue:En.baseQueue,queue:En.queue,next:null},Mi===null?ft.memoizedState=Mi=o:Mi=Mi.next=o}return Mi}function hf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gs(o){var c=Qr;return Qr+=1,fu===null&&(fu=[]),o=mg(fu,o,c),c=ft,(Mi===null?c.memoizedState:Mi.next)===null&&(c=c.alternate,re.H=c===null||c.memoizedState===null?Tm:Og),o}function Mt(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return gs(o);if(o.$$typeof===rr)return Ji(o)}throw Error(Ce(438,String(o)))}function ms(o){var c=null,h=ft.updateQueue;if(h!==null&&(c=h.memoCache),c==null){var y=ft.alternate;y!==null&&(y=y.updateQueue,y!==null&&(y=y.memoCache,y!=null&&(c={data:y.data.map(function(A){return A.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),h===null&&(h=hf(),ft.updateQueue=h),h.memoCache=c,h=c.data[c.index],h===void 0)for(h=c.data[c.index]=Array(o),y=0;y<o;y++)h[y]=O;return c.index++,h}function zo(o,c){return typeof c=="function"?c(o):c}function hn(o){var c=Pi();return Bo(c,En,o)}function Bo(o,c,h){var y=o.queue;if(y===null)throw Error(Ce(311));y.lastRenderedReducer=h;var A=o.baseQueue,C=y.pending;if(C!==null){if(A!==null){var _=A.next;A.next=C.next,C.next=_}c.baseQueue=A=C,y.pending=null}if(C=o.baseState,A===null)o.memoizedState=C;else{c=A.next;var z=_=null,Z=null,de=c,be=!1;do{var Ie=de.lane&-536870913;if(Ie!==de.lane?(vn&Ie)===Ie:(Bt&Ie)===Ie){var pe=de.revertLane;if(pe===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),Ie===oo&&(be=!0);else if((Bt&pe)===pe){de=de.next,pe===oo&&(be=!0);continue}else Ie={lane:0,revertLane:de.revertLane,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},Z===null?(z=Z=Ie,_=C):Z=Z.next=Ie,ft.lanes|=pe,Ma|=pe;Ie=de.action,gc&&h(C,Ie),C=de.hasEagerState?de.eagerState:h(C,Ie)}else pe={lane:Ie,revertLane:de.revertLane,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},Z===null?(z=Z=pe,_=C):Z=Z.next=pe,ft.lanes|=Ie,Ma|=Ie;de=de.next}while(de!==null&&de!==c);if(Z===null?_=C:Z.next=z,!wt(C,o.memoizedState)&&(xr=!0,be&&(h=Ir,h!==null)))throw h;o.memoizedState=C,o.baseState=_,o.baseQueue=Z,y.lastRenderedState=C}return A===null&&(y.lanes=0),[o.memoizedState,y.dispatch]}function xg(o){var c=Pi(),h=c.queue;if(h===null)throw Error(Ce(311));h.lastRenderedReducer=o;var y=h.dispatch,A=h.pending,C=c.memoizedState;if(A!==null){h.pending=null;var _=A=A.next;do C=o(C,_.action),_=_.next;while(_!==A);wt(C,c.memoizedState)||(xr=!0),c.memoizedState=C,c.baseQueue===null&&(c.baseState=C),h.lastRenderedState=C}return[C,y]}function Zt(o,c,h){var y=ft,A=Pi(),C=mn;if(C){if(h===void 0)throw Error(Ce(407));h=h()}else h=c();var _=!wt((En||A).memoizedState,h);_&&(A.memoizedState=h,xr=!0),A=A.queue;var z=Ta.bind(null,y,A,o);if(Vn(2048,8,z,[o]),A.getSnapshot!==c||_||Mi!==null&&Mi.memoizedState.tag&1){if(y.flags|=2048,Lu(9,Cg(),Ul.bind(null,y,A,h,c),null),hi===null)throw Error(Ce(349));C||(Bt&124)!==0||mt(y,c,h)}return h}function mt(o,c,h){o.flags|=16384,o={getSnapshot:c,value:h},c=ft.updateQueue,c===null?(c=hf(),ft.updateQueue=c,c.stores=[o]):(h=c.stores,h===null?c.stores=[o]:h.push(o))}function Ul(o,c,h,y){c.value=h,c.getSnapshot=y,Vh(c)&&ys(o)}function Ta(o,c,h){return h(function(){Vh(c)&&ys(o)})}function Vh(o){var c=o.getSnapshot;o=o.value;try{var h=c();return!wt(o,h)}catch{return!0}}function ys(o){var c=Dr(o,2);c!==null&&Bu(c,o,2)}function qh(o){var c=li();if(typeof o=="function"){var h=o;if(o=h(),gc){wo(!0);try{h()}finally{wo(!1)}}}return c.memoizedState=c.baseState=o,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:o},c}function Ud(o,c,h,y){return o.baseState=h,Bo(o,En,typeof y=="function"?y:zo)}function mc(o,c,h,y,A){if(Bd(o))throw Error(Ce(485));if(o=c.action,o!==null){var C={payload:A,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){C.listeners.push(_)}};re.T!==null?h(!0):C.isTransition=!1,y(C),h=c.pending,h===null?(C.next=c.pending=C,gm(c,C)):(C.next=h.next,c.pending=h.next=C)}}function gm(o,c){var h=c.action,y=c.payload,A=o.state;if(c.isTransition){var C=re.T,_={};re.T=_;try{var z=h(A,y),Z=re.S;Z!==null&&Z(_,z),Yh(o,c,z)}catch(de){kd(o,c,de)}finally{re.T=C}}else try{C=h(A,y),Yh(o,c,C)}catch(de){kd(o,c,de)}}function Yh(o,c,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(y){Xh(o,c,y)},function(y){return kd(o,c,y)}):Xh(o,c,h)}function Xh(o,c,h){c.status="fulfilled",c.value=h,Fh(c),o.state=h,c=o.pending,c!==null&&(h=c.next,h===c?o.pending=null:(h=h.next,c.next=h,gm(o,h)))}function kd(o,c,h){var y=o.pending;if(o.pending=null,y!==null){y=y.next;do c.status="rejected",c.reason=h,Fh(c),c=c.next;while(c!==y)}o.action=null}function Fh(o){o=o.listeners;for(var c=0;c<o.length;c++)(0,o[c])()}function mm(o,c){return c}function Jy(o,c){if(mn){var h=hi.formState;if(h!==null){e:{var y=ft;if(mn){if(Et){t:{for(var A=Et,C=_o;A.nodeType!==8;){if(!C){A=null;break t}if(A=Hl(A.nextSibling),A===null){A=null;break t}}C=A.data,A=C==="F!"||C==="F"?A:null}if(A){Et=Hl(A.nextSibling),y=A.data==="F!";break e}}In(y)}y=!1}y&&(c=h[0])}}return h=li(),h.memoizedState=h.baseState=c,y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mm,lastRenderedState:c},h.queue=y,h=nv.bind(null,ft,y),y.dispatch=h,y=qh(!1),C=Ig.bind(null,ft,!1,y.queue),y=li(),A={state:c,dispatch:null,action:o,pending:null},y.queue=A,h=mc.bind(null,ft,A,C,h),A.dispatch=h,y.memoizedState=o,[c,h,!1]}function kl(o){var c=Pi();return ym(c,En,o)}function ym(o,c,h){if(c=Bo(o,c,mm)[0],o=hn(zo)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var y=gs(c)}catch(_){throw _===cf?Il:_}else y=c;c=Pi();var A=c.queue,C=A.dispatch;return h!==c.memoizedState&&(ft.flags|=2048,Lu(9,Cg(),X1.bind(null,A,h),null)),[y,C,o]}function X1(o,c){o.action=c}function wg(o){var c=Pi(),h=En;if(h!==null)return ym(c,h,o);Pi(),c=c.memoizedState,h=Pi();var y=h.queue.dispatch;return h.memoizedState=o,[c,y,!1]}function Lu(o,c,h,y){return o={tag:o,create:h,deps:y,inst:c,next:null},c=ft.updateQueue,c===null&&(c=hf(),ft.updateQueue=c),h=c.lastEffect,h===null?c.lastEffect=o.next=o:(y=h.next,h.next=o,o.next=y,c.lastEffect=o),o}function Cg(){return{destroy:void 0,resource:void 0}}function Mg(){return Pi().memoizedState}function yc(o,c,h,y){var A=li();y=y===void 0?null:y,ft.flags|=o,A.memoizedState=Lu(1|c,Cg(),h,y)}function Vn(o,c,h,y){var A=Pi();y=y===void 0?null:y;var C=A.memoizedState.inst;En!==null&&y!==null&&Eg(y,En.memoizedState.deps)?A.memoizedState=Lu(c,C,h,y):(ft.flags|=o,A.memoizedState=Lu(1|c,C,h,y))}function Wy(o,c){yc(8390656,8,o,c)}function $y(o,c){Vn(2048,8,o,c)}function ev(o,c){return Vn(4,2,o,c)}function Nl(o,c){return Vn(4,4,o,c)}function bg(o,c){if(typeof c=="function"){o=o();var h=c(o);return function(){typeof h=="function"?h():c(null)}}if(c!=null)return o=o(),c.current=o,function(){c.current=null}}function Rg(o,c,h){h=h!=null?h.concat([o]):null,Vn(4,4,bg.bind(null,c,o),h)}function pf(){}function Nd(o,c){var h=Pi();c=c===void 0?null:c;var y=h.memoizedState;return c!==null&&Eg(c,y[1])?y[0]:(h.memoizedState=[o,c],o)}function tv(o,c){var h=Pi();c=c===void 0?null:c;var y=h.memoizedState;if(c!==null&&Eg(c,y[1]))return y[0];if(y=o(),gc){wo(!0);try{o()}finally{wo(!1)}}return h.memoizedState=[y,c],y}function _d(o,c,h){return h===void 0||(Bt&1073741824)!==0?o.memoizedState=c:(o.memoizedState=h,o=hv(),ft.lanes|=o,Ma|=o,h)}function vm(o,c,h,y){return wt(h,c)?h:Dd.current!==null?(o=_d(o,h,y),wt(o,c)||(xr=!0),o):(Bt&42)===0?(xr=!0,o.memoizedState=h):(o=hv(),ft.lanes|=o,Ma|=o,c)}function F1(o,c,h,y,A){var C=Re.p;Re.p=C!==0&&8>C?C:8;var _=re.T,z={};re.T=z,Ig(o,!1,c,h);try{var Z=A(),de=re.S;if(de!==null&&de(z,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var be=q1(Z,y);gf(o,c,be,Nr(o))}else gf(o,c,y,Nr(o))}catch(Ie){gf(o,c,{then:function(){},status:"rejected",reason:Ie},Nr())}finally{Re.p=C,re.T=_}}function dT(){}function Dg(o,c,h,y){if(o.tag!==5)throw Error(Ce(476));var A=Kh(o).queue;F1(o,A,c,ze,h===null?dT:function(){return jd(o),h(y)})}function Kh(o){var c=o.memoizedState;if(c!==null)return c;c={memoizedState:ze,baseState:ze,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:ze},next:null};var h={};return c.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:h},next:null},o.memoizedState=c,o=o.alternate,o!==null&&(o.memoizedState=c),c}function jd(o){var c=Kh(o).next.queue;gf(o,c,{},Nr())}function Po(){return Ji(mu)}function zd(){return Pi().memoizedState}function K1(){return Pi().memoizedState}function Q1(o){for(var c=o.return;c!==null;){switch(c.tag){case 24:case 3:var h=Nr();o=cu(h);var y=Ll(c,o,h);y!==null&&(Bu(y,c,h),hs(y,c,h)),c={cache:zh()},o.payload=c;return}c=c.return}}function Sm(o,c,h){var y=Nr();h={lane:y,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null},Bd(o)?Z1(c,h):(h=sc(o,c,h,y),h!==null&&(Bu(h,o,y),Qh(h,c,y)))}function nv(o,c,h){var y=Nr();gf(o,c,h,y)}function gf(o,c,h,y){var A={lane:y,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null};if(Bd(o))Z1(c,A);else{var C=o.alternate;if(o.lanes===0&&(C===null||C.lanes===0)&&(C=c.lastRenderedReducer,C!==null))try{var _=c.lastRenderedState,z=C(_,h);if(A.hasEagerState=!0,A.eagerState=z,wt(z,_))return ko(o,c,A,0),hi===null&&Uo(),!1}catch{}finally{}if(h=sc(o,c,A,y),h!==null)return Bu(h,o,y),Qh(h,c,y),!0}return!1}function Ig(o,c,h,y){if(y={lane:2,revertLane:eh(),action:y,hasEagerState:!1,eagerState:null,next:null},Bd(o)){if(c)throw Error(Ce(479))}else c=sc(o,h,y,2),c!==null&&Bu(c,o,2)}function Bd(o){var c=o.alternate;return o===ft||c!==null&&c===ft}function Z1(o,c){Iu=ps=!0;var h=o.pending;h===null?c.next=c:(c.next=h.next,h.next=c),o.pending=c}function Qh(o,c,h){if((h&4194048)!==0){var y=c.lanes;y&=o.pendingLanes,h|=y,c.lanes=h,Wp(o,h)}}var Lg={readContext:Ji,use:Mt,useCallback:Kn,useContext:Kn,useEffect:Kn,useImperativeHandle:Kn,useLayoutEffect:Kn,useInsertionEffect:Kn,useMemo:Kn,useReducer:Kn,useRef:Kn,useState:Kn,useDebugValue:Kn,useDeferredValue:Kn,useTransition:Kn,useSyncExternalStore:Kn,useId:Kn,useHostTransitionStatus:Kn,useFormState:Kn,useActionState:Kn,useOptimistic:Kn,useMemoCache:Kn,useCacheRefresh:Kn},Tm={readContext:Ji,use:Mt,useCallback:function(o,c){return li().memoizedState=[o,c===void 0?null:c],o},useContext:Ji,useEffect:Wy,useImperativeHandle:function(o,c,h){h=h!=null?h.concat([o]):null,yc(4194308,4,bg.bind(null,c,o),h)},useLayoutEffect:function(o,c){return yc(4194308,4,o,c)},useInsertionEffect:function(o,c){yc(4,2,o,c)},useMemo:function(o,c){var h=li();c=c===void 0?null:c;var y=o();if(gc){wo(!0);try{o()}finally{wo(!1)}}return h.memoizedState=[y,c],y},useReducer:function(o,c,h){var y=li();if(h!==void 0){var A=h(c);if(gc){wo(!0);try{h(c)}finally{wo(!1)}}}else A=c;return y.memoizedState=y.baseState=A,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:A},y.queue=o,o=o.dispatch=Sm.bind(null,ft,o),[y.memoizedState,o]},useRef:function(o){var c=li();return o={current:o},c.memoizedState=o},useState:function(o){o=qh(o);var c=o.queue,h=nv.bind(null,ft,c);return c.dispatch=h,[o.memoizedState,h]},useDebugValue:pf,useDeferredValue:function(o,c){var h=li();return _d(h,o,c)},useTransition:function(){var o=qh(!1);return o=F1.bind(null,ft,o.queue,!0,!1),li().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,c,h){var y=ft,A=li();if(mn){if(h===void 0)throw Error(Ce(407));h=h()}else{if(h=c(),hi===null)throw Error(Ce(349));(vn&124)!==0||mt(y,c,h)}A.memoizedState=h;var C={value:h,getSnapshot:c};return A.queue=C,Wy(Ta.bind(null,y,C,o),[o]),y.flags|=2048,Lu(9,Cg(),Ul.bind(null,y,C,h,c),null),h},useId:function(){var o=li(),c=hi.identifierPrefix;if(mn){var h=Oi,y=Kr;h=(y&~(1<<32-Tt(y)-1)).toString(32)+h,c="«"+c+"R"+h,h=Ol++,0<h&&(c+="H"+h.toString(32)),c+="»"}else h=yn++,c="«"+c+"r"+h.toString(32)+"»";return o.memoizedState=c},useHostTransitionStatus:Po,useFormState:Jy,useActionState:Jy,useOptimistic:function(o){var c=li();c.memoizedState=c.baseState=o;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=h,c=Ig.bind(null,ft,!0,h),h.dispatch=c,[o,c]},useMemoCache:ms,useCacheRefresh:function(){return li().memoizedState=Q1.bind(null,ft)}},Og={readContext:Ji,use:Mt,useCallback:Nd,useContext:Ji,useEffect:$y,useImperativeHandle:Rg,useInsertionEffect:ev,useLayoutEffect:Nl,useMemo:tv,useReducer:hn,useRef:Mg,useState:function(){return hn(zo)},useDebugValue:pf,useDeferredValue:function(o,c){var h=Pi();return vm(h,En.memoizedState,o,c)},useTransition:function(){var o=hn(zo)[0],c=Pi().memoizedState;return[typeof o=="boolean"?o:gs(o),c]},useSyncExternalStore:Zt,useId:zd,useHostTransitionStatus:Po,useFormState:kl,useActionState:kl,useOptimistic:function(o,c){var h=Pi();return Ud(h,En,o,c)},useMemoCache:ms,useCacheRefresh:K1},vc={readContext:Ji,use:Mt,useCallback:Nd,useContext:Ji,useEffect:$y,useImperativeHandle:Rg,useInsertionEffect:ev,useLayoutEffect:Nl,useMemo:tv,useReducer:xg,useRef:Mg,useState:function(){return xg(zo)},useDebugValue:pf,useDeferredValue:function(o,c){var h=Pi();return En===null?_d(h,o,c):vm(h,En.memoizedState,o,c)},useTransition:function(){var o=xg(zo)[0],c=Pi().memoizedState;return[typeof o=="boolean"?o:gs(o),c]},useSyncExternalStore:Zt,useId:zd,useHostTransitionStatus:Po,useFormState:wg,useActionState:wg,useOptimistic:function(o,c){var h=Pi();return En!==null?Ud(h,En,o,c):(h.baseState=o,[o,h.queue.dispatch])},useMemoCache:ms,useCacheRefresh:K1},Ho=null,vs=0;function Zh(o){var c=vs;return vs+=1,Ho===null&&(Ho=[]),mg(Ho,o,c)}function mf(o,c){c=c.props.ref,o.ref=c!==void 0?c:null}function Ea(o,c){throw c.$$typeof===Nn?Error(Ce(525)):(o=Object.prototype.toString.call(c),Error(Ce(31,o==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":o)))}function Em(o){var c=o._init;return c(o._payload)}function du(o){function c(se,J){if(o){var fe=se.deletions;fe===null?(se.deletions=[J],se.flags|=16):fe.push(J)}}function h(se,J){if(!o)return null;for(;J!==null;)c(se,J),J=J.sibling;return null}function y(se){for(var J=new Map;se!==null;)se.key!==null?J.set(se.key,se):J.set(se.index,se),se=se.sibling;return J}function A(se,J){return se=ma(se,J),se.index=0,se.sibling=null,se}function C(se,J,fe){return se.index=fe,o?(fe=se.alternate,fe!==null?(fe=fe.index,fe<J?(se.flags|=67108866,J):fe):(se.flags|=67108866,J)):(se.flags|=1048576,J)}function _(se){return o&&se.alternate===null&&(se.flags|=67108866),se}function z(se,J,fe,De){return J===null||J.tag!==6?(J=wd(fe,se.mode,De),J.return=se,J):(J=A(J,fe),J.return=se,J)}function Z(se,J,fe,De){var ut=fe.type;return ut===b?be(se,J,fe.props.children,De,fe.key):J!==null&&(J.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===gr&&Em(ut)===J.type)?(J=A(J,fe.props),mf(J,fe),J.return=se,J):(J=_e(fe.type,fe.key,fe.props,null,se.mode,De),mf(J,fe),J.return=se,J)}function de(se,J,fe,De){return J===null||J.tag!==4||J.stateNode.containerInfo!==fe.containerInfo||J.stateNode.implementation!==fe.implementation?(J=oi(fe,se.mode,De),J.return=se,J):(J=A(J,fe.children||[]),J.return=se,J)}function be(se,J,fe,De,ut){return J===null||J.tag!==7?(J=io(fe,se.mode,De,ut),J.return=se,J):(J=A(J,fe),J.return=se,J)}function Ie(se,J,fe){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return J=wd(""+J,se.mode,fe),J.return=se,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case Je:return fe=_e(J.type,J.key,J.props,null,se.mode,fe),mf(fe,J),fe.return=se,fe;case Yi:return J=oi(J,se.mode,fe),J.return=se,J;case gr:var De=J._init;return J=De(J._payload),Ie(se,J,fe)}if(je(J)||Le(J))return J=io(J,se.mode,fe,null),J.return=se,J;if(typeof J.then=="function")return Ie(se,Zh(J),fe);if(J.$$typeof===rr)return Ie(se,dg(se,J),fe);Ea(se,J)}return null}function pe(se,J,fe,De){var ut=J!==null?J.key:null;if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return ut!==null?null:z(se,J,""+fe,De);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case Je:return fe.key===ut?Z(se,J,fe,De):null;case Yi:return fe.key===ut?de(se,J,fe,De):null;case gr:return ut=fe._init,fe=ut(fe._payload),pe(se,J,fe,De)}if(je(fe)||Le(fe))return ut!==null?null:be(se,J,fe,De,null);if(typeof fe.then=="function")return pe(se,J,Zh(fe),De);if(fe.$$typeof===rr)return pe(se,J,dg(se,fe),De);Ea(se,fe)}return null}function me(se,J,fe,De,ut){if(typeof De=="string"&&De!==""||typeof De=="number"||typeof De=="bigint")return se=se.get(fe)||null,z(J,se,""+De,ut);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case Je:return se=se.get(De.key===null?fe:De.key)||null,Z(J,se,De,ut);case Yi:return se=se.get(De.key===null?fe:De.key)||null,de(J,se,De,ut);case gr:var ln=De._init;return De=ln(De._payload),me(se,J,fe,De,ut)}if(je(De)||Le(De))return se=se.get(fe)||null,be(J,se,De,ut,null);if(typeof De.then=="function")return me(se,J,fe,Zh(De),ut);if(De.$$typeof===rr)return me(se,J,fe,dg(J,De),ut);Ea(J,De)}return null}function bt(se,J,fe,De){for(var ut=null,ln=null,Ct=J,zt=J=0,_r=null;Ct!==null&&zt<fe.length;zt++){Ct.index>zt?(_r=Ct,Ct=null):_r=Ct.sibling;var On=pe(se,Ct,fe[zt],De);if(On===null){Ct===null&&(Ct=_r);break}o&&Ct&&On.alternate===null&&c(se,Ct),J=C(On,J,zt),ln===null?ut=On:ln.sibling=On,ln=On,Ct=_r}if(zt===fe.length)return h(se,Ct),mn&&tn(se,zt),ut;if(Ct===null){for(;zt<fe.length;zt++)Ct=Ie(se,fe[zt],De),Ct!==null&&(J=C(Ct,J,zt),ln===null?ut=Ct:ln.sibling=Ct,ln=Ct);return mn&&tn(se,zt),ut}for(Ct=y(Ct);zt<fe.length;zt++)_r=me(Ct,se,zt,fe[zt],De),_r!==null&&(o&&_r.alternate!==null&&Ct.delete(_r.key===null?zt:_r.key),J=C(_r,J,zt),ln===null?ut=_r:ln.sibling=_r,ln=_r);return o&&Ct.forEach(function(Nc){return c(se,Nc)}),mn&&tn(se,zt),ut}function te(se,J,fe,De){if(fe==null)throw Error(Ce(151));for(var ut=null,ln=null,Ct=J,zt=J=0,_r=null,On=fe.next();Ct!==null&&!On.done;zt++,On=fe.next()){Ct.index>zt?(_r=Ct,Ct=null):_r=Ct.sibling;var Nc=pe(se,Ct,On.value,De);if(Nc===null){Ct===null&&(Ct=_r);break}o&&Ct&&Nc.alternate===null&&c(se,Ct),J=C(Nc,J,zt),ln===null?ut=Nc:ln.sibling=Nc,ln=Nc,Ct=_r}if(On.done)return h(se,Ct),mn&&tn(se,zt),ut;if(Ct===null){for(;!On.done;zt++,On=fe.next())On=Ie(se,On.value,De),On!==null&&(J=C(On,J,zt),ln===null?ut=On:ln.sibling=On,ln=On);return mn&&tn(se,zt),ut}for(Ct=y(Ct);!On.done;zt++,On=fe.next())On=me(Ct,se,zt,On.value,De),On!==null&&(o&&On.alternate!==null&&Ct.delete(On.key===null?zt:On.key),J=C(On,J,zt),ln===null?ut=On:ln.sibling=On,ln=On);return o&&Ct.forEach(function(pT){return c(se,pT)}),mn&&tn(se,zt),ut}function Ln(se,J,fe,De){if(typeof fe=="object"&&fe!==null&&fe.type===b&&fe.key===null&&(fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case Je:e:{for(var ut=fe.key;J!==null;){if(J.key===ut){if(ut=fe.type,ut===b){if(J.tag===7){h(se,J.sibling),De=A(J,fe.props.children),De.return=se,se=De;break e}}else if(J.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===gr&&Em(ut)===J.type){h(se,J.sibling),De=A(J,fe.props),mf(De,fe),De.return=se,se=De;break e}h(se,J);break}else c(se,J);J=J.sibling}fe.type===b?(De=io(fe.props.children,se.mode,De,fe.key),De.return=se,se=De):(De=_e(fe.type,fe.key,fe.props,null,se.mode,De),mf(De,fe),De.return=se,se=De)}return _(se);case Yi:e:{for(ut=fe.key;J!==null;){if(J.key===ut)if(J.tag===4&&J.stateNode.containerInfo===fe.containerInfo&&J.stateNode.implementation===fe.implementation){h(se,J.sibling),De=A(J,fe.children||[]),De.return=se,se=De;break e}else{h(se,J);break}else c(se,J);J=J.sibling}De=oi(fe,se.mode,De),De.return=se,se=De}return _(se);case gr:return ut=fe._init,fe=ut(fe._payload),Ln(se,J,fe,De)}if(je(fe))return bt(se,J,fe,De);if(Le(fe)){if(ut=Le(fe),typeof ut!="function")throw Error(Ce(150));return fe=ut.call(fe),te(se,J,fe,De)}if(typeof fe.then=="function")return Ln(se,J,Zh(fe),De);if(fe.$$typeof===rr)return Ln(se,J,dg(se,fe),De);Ea(se,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint"?(fe=""+fe,J!==null&&J.tag===6?(h(se,J.sibling),De=A(J,fe),De.return=se,se=De):(h(se,J),De=wd(fe,se.mode,De),De.return=se,se=De),_(se)):h(se,J)}return function(se,J,fe,De){try{vs=0;var ut=Ln(se,J,fe,De);return Ho=null,ut}catch(Ct){if(Ct===cf||Ct===Il)throw Ct;var ln=Tr(29,Ct,null,se.mode);return ln.lanes=De,ln.return=se,ln}finally{}}}var yf=du(!0),Go=du(!1),Aa=Jn(null),Wi=null;function Sc(o){var c=o.alternate;Cn(Qn,Qn.current&1),Cn(Aa,o),Wi===null&&(c===null||Dd.current!==null||c.memoizedState!==null)&&(Wi=o)}function _l(o){if(o.tag===22){if(Cn(Qn,Qn.current),Cn(Aa,o),Wi===null){var c=o.alternate;c!==null&&c.memoizedState!==null&&(Wi=o)}}else hu()}function hu(){Cn(Qn,Qn.current),Cn(Aa,Aa.current)}function Ou(o){It(Aa),Wi===o&&(Wi=null),It(Qn)}var Qn=Jn(0);function vf(o){for(var c=o;c!==null;){if(c.tag===13){var h=c.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||nh(h)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===o)break;for(;c.sibling===null;){if(c.return===null||c.return===o)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function jl(o,c,h,y){c=o.memoizedState,h=h(y,c),h=h==null?c:Fn({},c,h),o.memoizedState=h,o.lanes===0&&(o.updateQueue.baseState=h)}var Ug={enqueueSetState:function(o,c,h){o=o._reactInternals;var y=Nr(),A=cu(y);A.payload=c,h!=null&&(A.callback=h),c=Ll(o,A,y),c!==null&&(Bu(c,o,y),hs(c,o,y))},enqueueReplaceState:function(o,c,h){o=o._reactInternals;var y=Nr(),A=cu(y);A.tag=1,A.payload=c,h!=null&&(A.callback=h),c=Ll(o,A,y),c!==null&&(Bu(c,o,y),hs(c,o,y))},enqueueForceUpdate:function(o,c){o=o._reactInternals;var h=Nr(),y=cu(h);y.tag=2,c!=null&&(y.callback=c),c=Ll(o,y,h),c!==null&&(Bu(c,o,h),hs(c,o,h))}};function Sf(o,c,h,y,A,C,_){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(y,C,_):c.prototype&&c.prototype.isPureReactComponent?!Gn(h,y)||!Gn(A,C):!0}function Pd(o,c,h,y){o=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(h,y),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(h,y),c.state!==o&&Ug.enqueueReplaceState(c,c.state,null)}function Vo(o,c){var h=c;if("ref"in c){h={};for(var y in c)y!=="ref"&&(h[y]=c[y])}if(o=o.defaultProps){h===c&&(h=Fn({},h));for(var A in o)h[A]===void 0&&(h[A]=o[A])}return h}var Or=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function qo(o){Or(o)}function Tf(o){console.error(o)}function Jh(o){Or(o)}function Wh(o,c){try{var h=o.onUncaughtError;h(c.value,{componentStack:c.stack})}catch(y){setTimeout(function(){throw y})}}function Hd(o,c,h){try{var y=o.onCaughtError;y(h.value,{componentStack:h.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function Tc(o,c,h){return h=cu(h),h.tag=3,h.payload={element:null},h.callback=function(){Wh(o,c)},h}function Gd(o){return o=cu(o),o.tag=3,o}function Uu(o,c,h,y){var A=h.type.getDerivedStateFromError;if(typeof A=="function"){var C=y.value;o.payload=function(){return A(C)},o.callback=function(){Hd(c,h,y)}}var _=h.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(o.callback=function(){Hd(c,h,y),typeof A!="function"&&(bf===null?bf=new Set([this]):bf.add(this));var z=y.stack;this.componentDidCatch(y.value,{componentStack:z!==null?z:""})})}function jn(o,c,h,y,A){if(h.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){if(c=h.alternate,c!==null&&Cd(c,h,A,!0),h=Aa.current,h!==null){switch(h.tag){case 13:return Wi===null?Of():h.alternate===null&&pi===0&&(pi=3),h.flags&=-257,h.flags|=65536,h.lanes=A,y===ds?h.flags|=16384:(c=h.updateQueue,c===null?h.updateQueue=new Set([y]):c.add(y),Wd(o,y,A)),!1;case 22:return h.flags|=65536,y===ds?h.flags|=16384:(c=h.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([y])},h.updateQueue=c):(h=c.retryQueue,h===null?c.retryQueue=new Set([y]):h.add(y)),Wd(o,y,A)),!1}throw Error(Ce(435,h.tag))}return Wd(o,y,A),Of(),!1}if(mn)return c=Aa.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=A,y!==cs&&(o=Error(Ce(422),{cause:y}),_h(Ga(o,h)))):(y!==cs&&(c=Error(Ce(423),{cause:y}),_h(Ga(c,h))),o=o.current.alternate,o.flags|=65536,A&=-A,o.lanes|=A,y=Ga(y,h),A=Tc(o.stateNode,y,A),Zy(o,A),pi!==4&&(pi=2)),!1;var C=Error(Ce(520),{cause:y});if(C=Ga(C,h),ap===null?ap=[C]:ap.push(C),pi!==4&&(pi=2),c===null)return!0;y=Ga(y,h),h=c;do{switch(h.tag){case 3:return h.flags|=65536,o=A&-A,h.lanes|=o,o=Tc(h.stateNode,y,o),Zy(h,o),!1;case 1:if(c=h.type,C=h.stateNode,(h.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(bf===null||!bf.has(C))))return h.flags|=65536,A&=-A,h.lanes|=A,A=Gd(A),Uu(A,o,h,y),Zy(h,A),!1}h=h.return}while(h!==null);return!1}var Hi=Error(Ce(461)),xr=!1;function dt(o,c,h,y){c.child=o===null?Go(c,null,h,y):yf(c,o.child,h,y)}function iv(o,c,h,y,A){h=h.render;var C=c.ref;if("ref"in y){var _={};for(var z in y)z!=="ref"&&(_[z]=y[z])}else _=y;return lf(c),y=yi(o,c,h,_,C,A),z=Ag(),o!==null&&!xr?(Ld(o,c,A),lo(o,c,A)):(mn&&z&&dc(c),c.flags|=1,dt(o,c,y,A),c.child)}function qa(o,c,h,y,A){if(o===null){var C=h.type;return typeof C=="function"&&!fc(C)&&C.defaultProps===void 0&&h.compare===null?(c.tag=15,c.type=C,Ef(o,c,C,y,A)):(o=_e(h.type,null,y,c,c.mode,A),o.ref=c.ref,o.return=c,c.child=o)}if(C=o.child,!Im(o,A)){var _=C.memoizedProps;if(h=h.compare,h=h!==null?h:Gn,h(_,y)&&o.ref===c.ref)return lo(o,c,A)}return c.flags|=1,o=ma(C,y),o.ref=c.ref,o.return=c,c.child=o}function Ef(o,c,h,y,A){if(o!==null){var C=o.memoizedProps;if(Gn(C,y)&&o.ref===c.ref)if(xr=!1,c.pendingProps=y=C,Im(o,A))(o.flags&131072)!==0&&(xr=!0);else return c.lanes=o.lanes,lo(o,c,A)}return xm(o,c,h,y,A)}function Am(o,c,h){var y=c.pendingProps,A=y.children,C=o!==null?o.memoizedState:null;if(y.mode==="hidden"){if((c.flags&128)!==0){if(y=C!==null?C.baseLanes|h:h,o!==null){for(A=c.child=o.child,C=0;A!==null;)C=C|A.lanes|A.childLanes,A=A.sibling;c.childLanes=C&~y}else c.childLanes=0,c.child=null;return Vd(o,c,y,h)}if((h&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},o!==null&&pc(c,C!==null?C.cachePool:null),C!==null?Lr(c,C):Id(),_l(c);else return c.lanes=c.childLanes=536870912,Vd(o,c,C!==null?C.baseLanes|h:h,h)}else C!==null?(pc(c,C.cachePool),Lr(c,C),hu(),c.memoizedState=null):(o!==null&&pc(c,null),Id(),hu());return dt(o,c,A,h),c.child}function Vd(o,c,h,y){var A=hc();return A=A===null?null:{parent:Ar._currentValue,pool:A},c.memoizedState={baseLanes:h,cachePool:A},o!==null&&pc(c,null),Id(),_l(c),o!==null&&Cd(o,c,y,!0),null}function kg(o,c){var h=c.ref;if(h===null)o!==null&&o.ref!==null&&(c.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(Ce(284));(o===null||o.ref!==h)&&(c.flags|=4194816)}}function xm(o,c,h,y,A){return lf(c),h=yi(o,c,h,y,void 0,A),y=Ag(),o!==null&&!xr?(Ld(o,c,A),lo(o,c,A)):(mn&&y&&dc(c),c.flags|=1,dt(o,c,h,A),c.child)}function rv(o,c,h,y,A,C){return lf(c),c.updateQueue=null,h=pm(c,y,h,A),df(o),y=Ag(),o!==null&&!xr?(Ld(o,c,C),lo(o,c,C)):(mn&&y&&dc(c),c.flags|=1,dt(o,c,h,C),c.child)}function wm(o,c,h,y,A){if(lf(c),c.stateNode===null){var C=xd,_=h.contextType;typeof _=="object"&&_!==null&&(C=Ji(_)),C=new h(y,C),c.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=Ug,c.stateNode=C,C._reactInternals=c,C=c.stateNode,C.props=y,C.state=c.memoizedState,C.refs={},yg(c),_=h.contextType,C.context=typeof _=="object"&&_!==null?Ji(_):xd,C.state=c.memoizedState,_=h.getDerivedStateFromProps,typeof _=="function"&&(jl(c,h,_,y),C.state=c.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(_=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),_!==C.state&&Ug.enqueueReplaceState(C,C.state,null),dn(c,y,C,A),Gh(),C.state=c.memoizedState),typeof C.componentDidMount=="function"&&(c.flags|=4194308),y=!0}else if(o===null){C=c.stateNode;var z=c.memoizedProps,Z=Vo(h,z);C.props=Z;var de=C.context,be=h.contextType;_=xd,typeof be=="object"&&be!==null&&(_=Ji(be));var Ie=h.getDerivedStateFromProps;be=typeof Ie=="function"||typeof C.getSnapshotBeforeUpdate=="function",z=c.pendingProps!==z,be||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(z||de!==_)&&Pd(c,C,y,_),su=!1;var pe=c.memoizedState;C.state=pe,dn(c,y,C,A),Gh(),de=c.memoizedState,z||pe!==de||su?(typeof Ie=="function"&&(jl(c,h,Ie,y),de=c.memoizedState),(Z=su||Sf(c,h,Z,y,pe,de,_))?(be||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(c.flags|=4194308)):(typeof C.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=y,c.memoizedState=de),C.props=y,C.state=de,C.context=_,y=Z):(typeof C.componentDidMount=="function"&&(c.flags|=4194308),y=!1)}else{C=c.stateNode,vg(o,c),_=c.memoizedProps,be=Vo(h,_),C.props=be,Ie=c.pendingProps,pe=C.context,de=h.contextType,Z=xd,typeof de=="object"&&de!==null&&(Z=Ji(de)),z=h.getDerivedStateFromProps,(de=typeof z=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(_!==Ie||pe!==Z)&&Pd(c,C,y,Z),su=!1,pe=c.memoizedState,C.state=pe,dn(c,y,C,A),Gh();var me=c.memoizedState;_!==Ie||pe!==me||su||o!==null&&o.dependencies!==null&&jh(o.dependencies)?(typeof z=="function"&&(jl(c,h,z,y),me=c.memoizedState),(be=su||Sf(c,h,be,y,pe,me,Z)||o!==null&&o.dependencies!==null&&jh(o.dependencies))?(de||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(y,me,Z),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(y,me,Z)),typeof C.componentDidUpdate=="function"&&(c.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof C.componentDidUpdate!="function"||_===o.memoizedProps&&pe===o.memoizedState||(c.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||_===o.memoizedProps&&pe===o.memoizedState||(c.flags|=1024),c.memoizedProps=y,c.memoizedState=me),C.props=y,C.state=me,C.context=Z,y=be):(typeof C.componentDidUpdate!="function"||_===o.memoizedProps&&pe===o.memoizedState||(c.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||_===o.memoizedProps&&pe===o.memoizedState||(c.flags|=1024),y=!1)}return C=y,kg(o,c),y=(c.flags&128)!==0,C||y?(C=c.stateNode,h=y&&typeof h.getDerivedStateFromError!="function"?null:C.render(),c.flags|=1,o!==null&&y?(c.child=yf(c,o.child,null,A),c.child=yf(c,null,h,A)):dt(o,c,h,A),c.memoizedState=C.state,o=c.child):o=lo(o,c,A),o}function Cm(o,c,h,y){return of(),c.flags|=256,dt(o,c,h,y),c.child}var Mm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function av(o){return{baseLanes:o,cachePool:dm()}}function $h(o,c,h){return o=o!==null?o.childLanes&~h:0,c&&(o|=ju),o}function uv(o,c,h){var y=c.pendingProps,A=!1,C=(c.flags&128)!==0,_;if((_=C)||(_=o!==null&&o.memoizedState===null?!1:(Qn.current&2)!==0),_&&(A=!0,c.flags&=-129),_=(c.flags&32)!==0,c.flags&=-33,o===null){if(mn){if(A?Sc(c):hu(),mn){var z=Et,Z;if(Z=z){e:{for(Z=z,z=_o;Z.nodeType!==8;){if(!z){z=null;break e}if(Z=Hl(Z.nextSibling),Z===null){z=null;break e}}z=Z}z!==null?(c.memoizedState={dehydrated:z,treeContext:ya!==null?{id:Kr,overflow:Oi}:null,retryLane:536870912,hydrationErrors:null},Z=Tr(18,null,null,0),Z.stateNode=z,Z.return=c,c.child=Z,Bi=c,Et=null,Z=!0):Z=!1}Z||In(c)}if(z=c.memoizedState,z!==null&&(z=z.dehydrated,z!==null))return nh(z)?c.lanes=32:c.lanes=536870912,null;Ou(c)}return z=y.children,y=y.fallback,A?(hu(),A=c.mode,z=bm({mode:"hidden",children:z},A),y=io(y,A,h,null),z.return=c,y.return=c,z.sibling=y,c.child=z,A=c.child,A.memoizedState=av(h),A.childLanes=$h(o,_,h),c.memoizedState=Mm,y):(Sc(c),ep(c,z))}if(Z=o.memoizedState,Z!==null&&(z=Z.dehydrated,z!==null)){if(C)c.flags&256?(Sc(c),c.flags&=-257,c=Af(o,c,h)):c.memoizedState!==null?(hu(),c.child=o.child,c.flags|=128,c=null):(hu(),A=y.fallback,z=c.mode,y=bm({mode:"visible",children:y.children},z),A=io(A,z,h,null),A.flags|=2,y.return=c,A.return=c,y.sibling=A,c.child=y,yf(c,o.child,null,h),y=c.child,y.memoizedState=av(h),y.childLanes=$h(o,_,h),c.memoizedState=Mm,c=A);else if(Sc(c),nh(z)){if(_=z.nextSibling&&z.nextSibling.dataset,_)var de=_.dgst;_=de,y=Error(Ce(419)),y.stack="",y.digest=_,_h({value:y,source:null,stack:null}),c=Af(o,c,h)}else if(xr||Cd(o,c,h,!1),_=(h&o.childLanes)!==0,xr||_){if(_=hi,_!==null&&(y=h&-h,y=(y&42)!==0?1:vl(y),y=(y&(_.suspendedLanes|h))!==0?0:y,y!==0&&y!==Z.retryLane))throw Z.retryLane=y,Dr(o,y),Bu(_,o,y),Hi;z.data==="$?"||Of(),c=Af(o,c,h)}else z.data==="$?"?(c.flags|=192,c.child=o.child,c=null):(o=Z.treeContext,Et=Hl(z.nextSibling),Bi=c,mn=!0,Ru=null,_o=!1,o!==null&&(No[ur++]=Kr,No[ur++]=Oi,No[ur++]=ya,Kr=o.id,Oi=o.overflow,ya=c),c=ep(c,y.children),c.flags|=4096);return c}return A?(hu(),A=y.fallback,z=c.mode,Z=o.child,de=Z.sibling,y=ma(Z,{mode:"hidden",children:y.children}),y.subtreeFlags=Z.subtreeFlags&65011712,de!==null?A=ma(de,A):(A=io(A,z,h,null),A.flags|=2),A.return=c,y.return=c,y.sibling=A,c.child=y,y=A,A=c.child,z=o.child.memoizedState,z===null?z=av(h):(Z=z.cachePool,Z!==null?(de=Ar._currentValue,Z=Z.parent!==de?{parent:de,pool:de}:Z):Z=dm(),z={baseLanes:z.baseLanes|h,cachePool:Z}),A.memoizedState=z,A.childLanes=$h(o,_,h),c.memoizedState=Mm,y):(Sc(c),h=o.child,o=h.sibling,h=ma(h,{mode:"visible",children:y.children}),h.return=c,h.sibling=null,o!==null&&(_=c.deletions,_===null?(c.deletions=[o],c.flags|=16):_.push(o)),c.child=h,c.memoizedState=null,h)}function ep(o,c){return c=bm({mode:"visible",children:c},o.mode),c.return=o,o.child=c}function bm(o,c){return o=Tr(22,o,null,c),o.lanes=0,o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},o}function Af(o,c,h){return yf(c,o.child,null,h),o=ep(c,c.pendingProps.children),o.flags|=2,c.memoizedState=null,o}function Ng(o,c,h){o.lanes|=c;var y=o.alternate;y!==null&&(y.lanes|=c),cm(o.return,c,h)}function Rm(o,c,h,y,A){var C=o.memoizedState;C===null?o.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:y,tail:h,tailMode:A}:(C.isBackwards=c,C.rendering=null,C.renderingStartTime=0,C.last=y,C.tail=h,C.tailMode=A)}function Dm(o,c,h){var y=c.pendingProps,A=y.revealOrder,C=y.tail;if(dt(o,c,y.children,h),y=Qn.current,(y&2)!==0)y=y&1|2,c.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=c.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Ng(o,h,c);else if(o.tag===19)Ng(o,h,c);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===c)break e;for(;o.sibling===null;){if(o.return===null||o.return===c)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}y&=1}switch(Cn(Qn,y),A){case"forwards":for(h=c.child,A=null;h!==null;)o=h.alternate,o!==null&&vf(o)===null&&(A=h),h=h.sibling;h=A,h===null?(A=c.child,c.child=null):(A=h.sibling,h.sibling=null),Rm(c,!1,A,h,C);break;case"backwards":for(h=null,A=c.child,c.child=null;A!==null;){if(o=A.alternate,o!==null&&vf(o)===null){c.child=A;break}o=A.sibling,A.sibling=h,h=A,A=o}Rm(c,!0,h,null,C);break;case"together":Rm(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function lo(o,c,h){if(o!==null&&(c.dependencies=o.dependencies),Ma|=c.lanes,(h&c.childLanes)===0)if(o!==null){if(Cd(o,c,h,!1),(h&c.childLanes)===0)return null}else return null;if(o!==null&&c.child!==o.child)throw Error(Ce(153));if(c.child!==null){for(o=c.child,h=ma(o,o.pendingProps),c.child=h,h.return=c;o.sibling!==null;)o=o.sibling,h=h.sibling=ma(o,o.pendingProps),h.return=c;h.sibling=null}return c.child}function Im(o,c){return(o.lanes&c)!==0?!0:(o=o.dependencies,!!(o!==null&&jh(o)))}function xa(o,c,h){switch(c.tag){case 3:pl(c,c.stateNode.containerInfo),uo(c,Ar,o.memoizedState.cache),of();break;case 27:case 5:Qc(c);break;case 4:pl(c,c.stateNode.containerInfo);break;case 10:uo(c,c.type,c.memoizedProps.value);break;case 13:var y=c.memoizedState;if(y!==null)return y.dehydrated!==null?(Sc(c),c.flags|=128,null):(h&c.child.childLanes)!==0?uv(o,c,h):(Sc(c),o=lo(o,c,h),o!==null?o.sibling:null);Sc(c);break;case 19:var A=(o.flags&128)!==0;if(y=(h&c.childLanes)!==0,y||(Cd(o,c,h,!1),y=(h&c.childLanes)!==0),A){if(y)return Dm(o,c,h);c.flags|=128}if(A=c.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Cn(Qn,Qn.current),y)break;return null;case 22:case 23:return c.lanes=0,Am(o,c,h);case 24:uo(c,Ar,o.memoizedState.cache)}return lo(o,c,h)}function _g(o,c,h){if(o!==null)if(o.memoizedProps!==c.pendingProps)xr=!0;else{if(!Im(o,h)&&(c.flags&128)===0)return xr=!1,xa(o,c,h);xr=(o.flags&131072)!==0}else xr=!1,mn&&(c.flags&1048576)!==0&&Nh(c,bu,c.index);switch(c.lanes=0,c.tag){case 16:e:{o=c.pendingProps;var y=c.elementType,A=y._init;if(y=A(y._payload),c.type=y,typeof y=="function")fc(y)?(o=Vo(y,o),c.tag=1,c=wm(null,c,y,o,h)):(c.tag=0,c=xm(null,c,y,o,h));else{if(y!=null){if(A=y.$$typeof,A===qr){c.tag=11,c=iv(null,c,y,o,h);break e}else if(A===bn){c.tag=14,c=qa(null,c,y,o,h);break e}}throw c=Ge(y)||y,Error(Ce(306,c,""))}}return c;case 0:return xm(o,c,c.type,c.pendingProps,h);case 1:return y=c.type,A=Vo(y,c.pendingProps),wm(o,c,y,A,h);case 3:e:{if(pl(c,c.stateNode.containerInfo),o===null)throw Error(Ce(387));y=c.pendingProps;var C=c.memoizedState;A=C.element,vg(o,c),dn(c,y,null,h);var _=c.memoizedState;if(y=_.cache,uo(c,Ar,y),y!==C.cache&&Fy(c,[Ar],h,!0),Gh(),y=_.element,C.isDehydrated)if(C={element:y,isDehydrated:!1,cache:_.cache},c.updateQueue.baseState=C,c.memoizedState=C,c.flags&256){c=Cm(o,c,y,h);break e}else if(y!==A){A=Ga(Error(Ce(424)),c),_h(A),c=Cm(o,c,y,h);break e}else{switch(o=c.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(Et=Hl(o.firstChild),Bi=c,mn=!0,Ru=null,_o=!0,h=Go(c,null,y,h),c.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(of(),y===A){c=lo(o,c,h);break e}dt(o,c,y,h)}c=c.child}return c;case 26:return kg(o,c),o===null?(h=a0(c.type,null,c.pendingProps,null))?c.memoizedState=h:mn||(h=c.type,o=c.pendingProps,y=Qa(Ot.current).createElement(h),y[_i]=c,y[ji]=o,Pt(y,h,o),Xi(y),c.stateNode=y):c.memoizedState=a0(c.type,o.memoizedProps,c.pendingProps,o.memoizedState),null;case 27:return Qc(c),o===null&&mn&&(y=c.stateNode=it(c.type,c.pendingProps,Ot.current),Bi=c,_o=!0,A=Et,Vi(c.type)?(Bf=A,Et=Hl(y.firstChild)):Et=A),dt(o,c,c.pendingProps.children,h),kg(o,c),o===null&&(c.flags|=4194304),c.child;case 5:return o===null&&mn&&((A=y=Et)&&(y=zf(y,c.type,c.pendingProps,_o),y!==null?(c.stateNode=y,Bi=c,Et=Hl(y.firstChild),_o=!1,A=!0):A=!1),A||In(c)),Qc(c),A=c.type,C=c.pendingProps,_=o!==null?o.memoizedProps:null,y=C.children,Rs(A,C)?y=null:_!==null&&Rs(A,_)&&(c.flags|=32),c.memoizedState!==null&&(A=yi(o,c,Y1,null,null,h),mu._currentValue=A),kg(o,c),dt(o,c,y,h),c.child;case 6:return o===null&&mn&&((o=h=Et)&&(h=Ym(h,c.pendingProps,_o),h!==null?(c.stateNode=h,Bi=c,Et=null,o=!0):o=!1),o||In(c)),null;case 13:return uv(o,c,h);case 4:return pl(c,c.stateNode.containerInfo),y=c.pendingProps,o===null?c.child=yf(c,null,y,h):dt(o,c,y,h),c.child;case 11:return iv(o,c,c.type,c.pendingProps,h);case 7:return dt(o,c,c.pendingProps,h),c.child;case 8:return dt(o,c,c.pendingProps.children,h),c.child;case 12:return dt(o,c,c.pendingProps.children,h),c.child;case 10:return y=c.pendingProps,uo(c,c.type,y.value),dt(o,c,y.children,h),c.child;case 9:return A=c.type._context,y=c.pendingProps.children,lf(c),A=Ji(A),y=y(A),c.flags|=1,dt(o,c,y,h),c.child;case 14:return qa(o,c,c.type,c.pendingProps,h);case 15:return Ef(o,c,c.type,c.pendingProps,h);case 19:return Dm(o,c,h);case 31:return y=c.pendingProps,h=c.mode,y={mode:y.mode,children:y.children},o===null?(h=bm(y,h),h.ref=c.ref,c.child=h,h.return=c,c=h):(h=ma(o.child,y),h.ref=c.ref,c.child=h,h.return=c,c=h),c;case 22:return Am(o,c,h);case 24:return lf(c),y=Ji(Ar),o===null?(A=hc(),A===null&&(A=hi,C=zh(),A.pooledCache=C,C.refCount++,C!==null&&(A.pooledCacheLanes|=h),A=C),c.memoizedState={parent:y,cache:A},yg(c),uo(c,Ar,A)):((o.lanes&h)!==0&&(vg(o,c),dn(c,null,null,h),Gh()),A=o.memoizedState,C=c.memoizedState,A.parent!==y?(A={parent:y,cache:y},c.memoizedState=A,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=A),uo(c,Ar,y)):(y=C.cache,uo(c,Ar,y),y!==A.cache&&Fy(c,[Ar],h,!0))),dt(o,c,c.pendingProps.children,h),c.child;case 29:throw c.pendingProps}throw Error(Ce(156,c.tag))}function Ye(o){o.flags|=4}function qd(o,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Mv(c)){if(c=Aa.current,c!==null&&((vn&4194048)===vn?Wi!==null:(vn&62914560)!==vn&&(vn&536870912)===0||c!==Wi))throw ff=ds,hm;o.flags|=8192}}function so(o,c){c!==null&&(o.flags|=4),o.flags&16384&&(c=o.tag!==22?Co():536870912,o.lanes|=c,Fd|=c)}function Yd(o,c){if(!mn)switch(o.tailMode){case"hidden":c=o.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?o.tail=null:h.sibling=null;break;case"collapsed":h=o.tail;for(var y=null;h!==null;)h.alternate!==null&&(y=h),h=h.sibling;y===null?c||o.tail===null?o.tail=null:o.tail.sibling=null:y.sibling=null}}function Ut(o){var c=o.alternate!==null&&o.alternate.child===o.child,h=0,y=0;if(c)for(var A=o.child;A!==null;)h|=A.lanes|A.childLanes,y|=A.subtreeFlags&65011712,y|=A.flags&65011712,A.return=o,A=A.sibling;else for(A=o.child;A!==null;)h|=A.lanes|A.childLanes,y|=A.subtreeFlags,y|=A.flags,A.return=o,A=A.sibling;return o.subtreeFlags|=y,o.childLanes=h,c}function jg(o,c,h){var y=c.pendingProps;switch(bl(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(c),null;case 1:return Ut(c),null;case 3:return h=c.stateNode,y=null,o!==null&&(y=o.memoizedState.cache),c.memoizedState.cache!==y&&(c.flags|=2048),lu(Ar),gl(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(o===null||o.child===null)&&(Er(c)?Ye(c):o===null||o.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,sm())),Ut(c),null;case 26:return h=c.memoizedState,o===null?(Ye(c),h!==null?(Ut(c),qd(c,h)):(Ut(c),c.flags&=-16777217)):h?h!==o.memoizedState?(Ye(c),Ut(c),qd(c,h)):(Ut(c),c.flags&=-16777217):(o.memoizedProps!==y&&Ye(c),Ut(c),c.flags&=-16777217),null;case 27:fd(c),h=Ot.current;var A=c.type;if(o!==null&&c.stateNode!=null)o.memoizedProps!==y&&Ye(c);else{if(!y){if(c.stateNode===null)throw Error(Ce(166));return Ut(c),null}o=q.current,Er(c)?jo(c):(o=it(A,y,h),c.stateNode=o,Ye(c))}return Ut(c),null;case 5:if(fd(c),h=c.type,o!==null&&c.stateNode!=null)o.memoizedProps!==y&&Ye(c);else{if(!y){if(c.stateNode===null)throw Error(Ce(166));return Ut(c),null}if(o=q.current,Er(c))jo(c);else{switch(A=Qa(Ot.current),o){case 1:o=A.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:o=A.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":o=A.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":o=A.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":o=A.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof y.is=="string"?A.createElement("select",{is:y.is}):A.createElement("select"),y.multiple?o.multiple=!0:y.size&&(o.size=y.size);break;default:o=typeof y.is=="string"?A.createElement(h,{is:y.is}):A.createElement(h)}}o[_i]=c,o[ji]=y;e:for(A=c.child;A!==null;){if(A.tag===5||A.tag===6)o.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===c)break e;for(;A.sibling===null;){if(A.return===null||A.return===c)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}c.stateNode=o;e:switch(Pt(o,h,y),h){case"button":case"input":case"select":case"textarea":o=!!y.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Ye(c)}}return Ut(c),c.flags&=-16777217,null;case 6:if(o&&c.stateNode!=null)o.memoizedProps!==y&&Ye(c);else{if(typeof y!="string"&&c.stateNode===null)throw Error(Ce(166));if(o=Ot.current,Er(c)){if(o=c.stateNode,h=c.memoizedProps,y=null,A=Bi,A!==null)switch(A.tag){case 27:case 5:y=A.memoizedProps}o[_i]=c,o=!!(o.nodeValue===h||y!==null&&y.suppressHydrationWarning===!0||e0(o.nodeValue,h)),o||In(c)}else o=Qa(o).createTextNode(y),o[_i]=c,c.stateNode=o}return Ut(c),null;case 13:if(y=c.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(A=Er(c),y!==null&&y.dehydrated!==null){if(o===null){if(!A)throw Error(Ce(318));if(A=c.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(Ce(317));A[_i]=c}else of(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Ut(c),A=!1}else A=sm(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=A),A=!0;if(!A)return c.flags&256?(Ou(c),c):(Ou(c),null)}if(Ou(c),(c.flags&128)!==0)return c.lanes=h,c;if(h=y!==null,o=o!==null&&o.memoizedState!==null,h){y=c.child,A=null,y.alternate!==null&&y.alternate.memoizedState!==null&&y.alternate.memoizedState.cachePool!==null&&(A=y.alternate.memoizedState.cachePool.pool);var C=null;y.memoizedState!==null&&y.memoizedState.cachePool!==null&&(C=y.memoizedState.cachePool.pool),C!==A&&(y.flags|=2048)}return h!==o&&h&&(c.child.flags|=8192),so(c,c.updateQueue),Ut(c),null;case 4:return gl(),o===null&&Tv(c.stateNode.containerInfo),Ut(c),null;case 10:return lu(c.type),Ut(c),null;case 19:if(It(Qn),A=c.memoizedState,A===null)return Ut(c),null;if(y=(c.flags&128)!==0,C=A.rendering,C===null)if(y)Yd(A,!1);else{if(pi!==0||o!==null&&(o.flags&128)!==0)for(o=c.child;o!==null;){if(C=vf(o),C!==null){for(c.flags|=128,Yd(A,!1),o=C.updateQueue,c.updateQueue=o,so(c,o),c.subtreeFlags=0,o=h,h=c.child;h!==null;)on(h,o),h=h.sibling;return Cn(Qn,Qn.current&1|2),c.child}o=o.sibling}A.tail!==null&&Te()>qg&&(c.flags|=128,y=!0,Yd(A,!1),c.lanes=4194304)}else{if(!y)if(o=vf(C),o!==null){if(c.flags|=128,y=!0,o=o.updateQueue,c.updateQueue=o,so(c,o),Yd(A,!0),A.tail===null&&A.tailMode==="hidden"&&!C.alternate&&!mn)return Ut(c),null}else 2*Te()-A.renderingStartTime>qg&&h!==536870912&&(c.flags|=128,y=!0,Yd(A,!1),c.lanes=4194304);A.isBackwards?(C.sibling=c.child,c.child=C):(o=A.last,o!==null?o.sibling=C:c.child=C,A.last=C)}return A.tail!==null?(c=A.tail,A.rendering=c,A.tail=c.sibling,A.renderingStartTime=Te(),c.sibling=null,o=Qn.current,Cn(Qn,y?o&1|2:o&1),c):(Ut(c),null);case 22:case 23:return Ou(c),Va(),y=c.memoizedState!==null,o!==null?o.memoizedState!==null!==y&&(c.flags|=8192):y&&(c.flags|=8192),y?(h&536870912)!==0&&(c.flags&128)===0&&(Ut(c),c.subtreeFlags&6&&(c.flags|=8192)):Ut(c),h=c.updateQueue,h!==null&&so(c,h.retryQueue),h=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),y=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==h&&(c.flags|=2048),o!==null&&It(Dl),null;case 24:return h=null,o!==null&&(h=o.memoizedState.cache),c.memoizedState.cache!==h&&(c.flags|=2048),lu(Ar),Ut(c),null;case 25:return null;case 30:return null}throw Error(Ce(156,c.tag))}function ov(o,c){switch(bl(c),c.tag){case 1:return o=c.flags,o&65536?(c.flags=o&-65537|128,c):null;case 3:return lu(Ar),gl(),o=c.flags,(o&65536)!==0&&(o&128)===0?(c.flags=o&-65537|128,c):null;case 26:case 27:case 5:return fd(c),null;case 13:if(Ou(c),o=c.memoizedState,o!==null&&o.dehydrated!==null){if(c.alternate===null)throw Error(Ce(340));of()}return o=c.flags,o&65536?(c.flags=o&-65537|128,c):null;case 19:return It(Qn),null;case 4:return gl(),null;case 10:return lu(c.type),null;case 22:case 23:return Ou(c),Va(),o!==null&&It(Dl),o=c.flags,o&65536?(c.flags=o&-65537|128,c):null;case 24:return lu(Ar),null;case 25:return null;default:return null}}function Lm(o,c){switch(bl(c),c.tag){case 3:lu(Ar),gl();break;case 26:case 27:case 5:fd(c);break;case 4:gl();break;case 13:Ou(c);break;case 19:It(Qn);break;case 10:lu(c.type);break;case 22:case 23:Ou(c),Va(),o!==null&&It(Dl);break;case 24:lu(Ar)}}function zg(o,c){try{var h=c.updateQueue,y=h!==null?h.lastEffect:null;if(y!==null){var A=y.next;h=A;do{if((h.tag&o)===o){y=void 0;var C=h.create,_=h.inst;y=C(),_.destroy=y}h=h.next}while(h!==A)}}catch(z){ri(c,c.return,z)}}function Ya(o,c,h){try{var y=c.updateQueue,A=y!==null?y.lastEffect:null;if(A!==null){var C=A.next;y=C;do{if((y.tag&o)===o){var _=y.inst,z=_.destroy;if(z!==void 0){_.destroy=void 0,A=c;var Z=h,de=z;try{de()}catch(be){ri(A,Z,be)}}}y=y.next}while(y!==C)}}catch(be){ri(c,c.return,be)}}function Bg(o){var c=o.updateQueue;if(c!==null){var h=o.stateNode;try{Rd(c,h)}catch(y){ri(o,o.return,y)}}}function Ne(o,c,h){h.props=Vo(o.type,o.memoizedProps),h.state=o.memoizedState;try{h.componentWillUnmount()}catch(y){ri(o,c,y)}}function zn(o,c){try{var h=o.ref;if(h!==null){switch(o.tag){case 26:case 27:case 5:var y=o.stateNode;break;case 30:y=o.stateNode;break;default:y=o.stateNode}typeof h=="function"?o.refCleanup=h(y):h.current=y}}catch(A){ri(o,c,A)}}function Yo(o,c){var h=o.ref,y=o.refCleanup;if(h!==null)if(typeof y=="function")try{y()}catch(A){ri(o,c,A)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(A){ri(o,c,A)}else h.current=null}function Zr(o){var c=o.type,h=o.memoizedProps,y=o.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":h.autoFocus&&y.focus();break e;case"img":h.src?y.src=h.src:h.srcSet&&(y.srcset=h.srcSet)}}catch(A){ri(o,o.return,A)}}function lv(o,c,h){try{var y=o.stateNode;xv(y,o.type,h,c),y[ji]=c}catch(A){ri(o,o.return,A)}}function Om(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Vi(o.type)||o.tag===4}function co(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Om(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Vi(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function xf(o,c,h){var y=o.tag;if(y===5||y===6)o=o.stateNode,c?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(o,c):(c=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,c.appendChild(o),h=h._reactRootContainer,h!=null||c.onclick!==null||(c.onclick=pp));else if(y!==4&&(y===27&&Vi(o.type)&&(h=o.stateNode,c=null),o=o.child,o!==null))for(xf(o,c,h),o=o.sibling;o!==null;)xf(o,c,h),o=o.sibling}function tp(o,c,h){var y=o.tag;if(y===5||y===6)o=o.stateNode,c?h.insertBefore(o,c):h.appendChild(o);else if(y!==4&&(y===27&&Vi(o.type)&&(h=o.stateNode),o=o.child,o!==null))for(tp(o,c,h),o=o.sibling;o!==null;)tp(o,c,h),o=o.sibling}function Um(o){var c=o.stateNode,h=o.memoizedProps;try{for(var y=o.type,A=c.attributes;A.length;)c.removeAttributeNode(A[0]);Pt(c,y,h),c[_i]=o,c[ji]=h}catch(C){ri(o,o.return,C)}}var Xa=!1,di=!1,Xo=!1,np=typeof WeakSet=="function"?WeakSet:Set,Bn=null;function kt(o,c){if(o=o.containerInfo,lr=qi,o=Mu(o),ct(o)){if("selectionStart"in o)var h={start:o.selectionStart,end:o.selectionEnd};else e:{h=(h=o.ownerDocument)&&h.defaultView||window;var y=h.getSelection&&h.getSelection();if(y&&y.rangeCount!==0){h=y.anchorNode;var A=y.anchorOffset,C=y.focusNode;y=y.focusOffset;try{h.nodeType,C.nodeType}catch{h=null;break e}var _=0,z=-1,Z=-1,de=0,be=0,Ie=o,pe=null;t:for(;;){for(var me;Ie!==h||A!==0&&Ie.nodeType!==3||(z=_+A),Ie!==C||y!==0&&Ie.nodeType!==3||(Z=_+y),Ie.nodeType===3&&(_+=Ie.nodeValue.length),(me=Ie.firstChild)!==null;)pe=Ie,Ie=me;for(;;){if(Ie===o)break t;if(pe===h&&++de===A&&(z=_),pe===C&&++be===y&&(Z=_),(me=Ie.nextSibling)!==null)break;Ie=pe,pe=Ie.parentNode}Ie=me}h=z===-1||Z===-1?null:{start:z,end:Z}}else h=null}h=h||{start:0,end:0}}else h=null;for(bs={focusedElem:o,selectionRange:h},qi=!1,Bn=c;Bn!==null;)if(c=Bn,o=c.child,(c.subtreeFlags&1024)!==0&&o!==null)o.return=c,Bn=o;else for(;Bn!==null;){switch(c=Bn,C=c.alternate,o=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((o&1024)!==0&&C!==null){o=void 0,h=c,A=C.memoizedProps,C=C.memoizedState,y=h.stateNode;try{var bt=Vo(h.type,A,h.elementType===h.type);o=y.getSnapshotBeforeUpdate(bt,C),y.__reactInternalSnapshotBeforeUpdate=o}catch(te){ri(h,h.return,te)}}break;case 3:if((o&1024)!==0){if(o=c.stateNode.containerInfo,h=o.nodeType,h===9)Ic(o);else if(h===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":Ic(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(Ce(163))}if(o=c.sibling,o!==null){o.return=c.return,Bn=o;break}Bn=c.return}}function Pg(o,c,h){var y=h.flags;switch(h.tag){case 0:case 11:case 15:pu(o,h),y&4&&zg(5,h);break;case 1:if(pu(o,h),y&4)if(o=h.stateNode,c===null)try{o.componentDidMount()}catch(_){ri(h,h.return,_)}else{var A=Vo(h.type,c.memoizedProps);c=c.memoizedState;try{o.componentDidUpdate(A,c,o.__reactInternalSnapshotBeforeUpdate)}catch(_){ri(h,h.return,_)}}y&64&&Bg(h),y&512&&zn(h,h.return);break;case 3:if(pu(o,h),y&64&&(o=h.updateQueue,o!==null)){if(c=null,h.child!==null)switch(h.child.tag){case 27:case 5:c=h.child.stateNode;break;case 1:c=h.child.stateNode}try{Rd(o,c)}catch(_){ri(h,h.return,_)}}break;case 27:c===null&&y&4&&Um(h);case 26:case 5:pu(o,h),c===null&&y&4&&Zr(h),y&512&&zn(h,h.return);break;case 12:pu(o,h);break;case 13:pu(o,h),y&4&&Xd(o,h),y&64&&(o=h.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(h=eS.bind(null,h),hT(o,h))));break;case 22:if(y=h.memoizedState!==null||Xa,!y){c=c!==null&&c.memoizedState!==null||di,A=Xa;var C=di;Xa=y,(di=c)&&!C?wf(o,h,(h.subtreeFlags&8772)!==0):pu(o,h),Xa=A,di=C}break;case 30:break;default:pu(o,h)}}function Jr(o){var c=o.alternate;c!==null&&(o.alternate=null,Jr(c)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(c=o.stateNode,c!==null&&Zs(c)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Oe=null,$i=!1;function Ve(o,c,h){for(h=h.child;h!==null;)Qe(o,c,h),h=h.sibling}function Qe(o,c,h){if(Ua&&typeof Ua.onCommitFiberUnmount=="function")try{Ua.onCommitFiberUnmount(Qp,h)}catch{}switch(h.tag){case 26:di||Yo(h,c),Ve(o,c,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:di||Yo(h,c);var y=Oe,A=$i;Vi(h.type)&&(Oe=h.stateNode,$i=!1),Ve(o,c,h),Hu(h.stateNode),Oe=y,$i=A;break;case 5:di||Yo(h,c);case 6:if(y=Oe,A=$i,Oe=null,Ve(o,c,h),Oe=y,$i=A,Oe!==null)if($i)try{(Oe.nodeType===9?Oe.body:Oe.nodeName==="HTML"?Oe.ownerDocument.body:Oe).removeChild(h.stateNode)}catch(C){ri(h,c,C)}else try{Oe.removeChild(h.stateNode)}catch(C){ri(h,c,C)}break;case 18:Oe!==null&&($i?(o=Oe,n0(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,h.stateNode),tl(o)):n0(Oe,h.stateNode));break;case 4:y=Oe,A=$i,Oe=h.stateNode.containerInfo,$i=!0,Ve(o,c,h),Oe=y,$i=A;break;case 0:case 11:case 14:case 15:di||Ya(2,h,c),di||Ya(4,h,c),Ve(o,c,h);break;case 1:di||(Yo(h,c),y=h.stateNode,typeof y.componentWillUnmount=="function"&&Ne(h,c,y)),Ve(o,c,h);break;case 21:Ve(o,c,h);break;case 22:di=(y=di)||h.memoizedState!==null,Ve(o,c,h),di=y;break;default:Ve(o,c,h)}}function Xd(o,c){if(c.memoizedState===null&&(o=c.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{tl(o)}catch(h){ri(c,c.return,h)}}function sv(o){switch(o.tag){case 13:case 19:var c=o.stateNode;return c===null&&(c=o.stateNode=new np),c;case 22:return o=o.stateNode,c=o._retryCache,c===null&&(c=o._retryCache=new np),c;default:throw Error(Ce(435,o.tag))}}function An(o,c){var h=sv(o);c.forEach(function(y){var A=tS.bind(null,o,y);h.has(y)||(h.add(y),y.then(A,A))})}function wa(o,c){var h=c.deletions;if(h!==null)for(var y=0;y<h.length;y++){var A=h[y],C=o,_=c,z=_;e:for(;z!==null;){switch(z.tag){case 27:if(Vi(z.type)){Oe=z.stateNode,$i=!1;break e}break;case 5:Oe=z.stateNode,$i=!1;break e;case 3:case 4:Oe=z.stateNode.containerInfo,$i=!0;break e}z=z.return}if(Oe===null)throw Error(Ce(160));Qe(C,_,A),Oe=null,$i=!1,C=A.alternate,C!==null&&(C.return=null),A.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)Hg(c,o),c=c.sibling}var Fa=null;function Hg(o,c){var h=o.alternate,y=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:wa(c,o),Wr(o),y&4&&(Ya(3,o,o.return),zg(3,o),Ya(5,o,o.return));break;case 1:wa(c,o),Wr(o),y&512&&(di||h===null||Yo(h,h.return)),y&64&&Xa&&(o=o.updateQueue,o!==null&&(y=o.callbacks,y!==null&&(h=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=h===null?y:h.concat(y))));break;case 26:var A=Fa;if(wa(c,o),Wr(o),y&512&&(di||h===null||Yo(h,h.return)),y&4){var C=h!==null?h.memoizedState:null;if(y=o.memoizedState,h===null)if(y===null)if(o.stateNode===null){e:{y=o.type,h=o.memoizedProps,A=A.ownerDocument||A;t:switch(y){case"title":C=A.getElementsByTagName("title")[0],(!C||C[G]||C[_i]||C.namespaceURI==="http://www.w3.org/2000/svg"||C.hasAttribute("itemprop"))&&(C=A.createElement(y),A.head.insertBefore(C,A.querySelector("head > title"))),Pt(C,y,h),C[_i]=o,Xi(C),y=C;break e;case"link":var _=Km("link","href",A).get(y+(h.href||""));if(_){for(var z=0;z<_.length;z++)if(C=_[z],C.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&C.getAttribute("rel")===(h.rel==null?null:h.rel)&&C.getAttribute("title")===(h.title==null?null:h.title)&&C.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){_.splice(z,1);break t}}C=A.createElement(y),Pt(C,y,h),A.head.appendChild(C);break;case"meta":if(_=Km("meta","content",A).get(y+(h.content||""))){for(z=0;z<_.length;z++)if(C=_[z],C.getAttribute("content")===(h.content==null?null:""+h.content)&&C.getAttribute("name")===(h.name==null?null:h.name)&&C.getAttribute("property")===(h.property==null?null:h.property)&&C.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&C.getAttribute("charset")===(h.charSet==null?null:h.charSet)){_.splice(z,1);break t}}C=A.createElement(y),Pt(C,y,h),A.head.appendChild(C);break;default:throw Error(Ce(468,y))}C[_i]=o,Xi(C),y=C}o.stateNode=y}else Cv(A,o.type,o.stateNode);else o.stateNode=iS(A,y,o.memoizedProps);else C!==y?(C===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):C.count--,y===null?Cv(A,o.type,o.stateNode):iS(A,y,o.memoizedProps)):y===null&&o.stateNode!==null&&lv(o,o.memoizedProps,h.memoizedProps)}break;case 27:wa(c,o),Wr(o),y&512&&(di||h===null||Yo(h,h.return)),h!==null&&y&4&&lv(o,o.memoizedProps,h.memoizedProps);break;case 5:if(wa(c,o),Wr(o),y&512&&(di||h===null||Yo(h,h.return)),o.flags&32){A=o.stateNode;try{El(A,"")}catch(me){ri(o,o.return,me)}}y&4&&o.stateNode!=null&&(A=o.memoizedProps,lv(o,A,h!==null?h.memoizedProps:A)),y&1024&&(Xo=!0);break;case 6:if(wa(c,o),Wr(o),y&4){if(o.stateNode===null)throw Error(Ce(162));y=o.memoizedProps,h=o.stateNode;try{h.nodeValue=y}catch(me){ri(o,o.return,me)}}break;case 3:if(Gf=null,A=Fa,Fa=Xm(c.containerInfo),wa(c,o),Fa=A,Wr(o),y&4&&h!==null&&h.memoizedState.isDehydrated)try{tl(c.containerInfo)}catch(me){ri(o,o.return,me)}Xo&&(Xo=!1,km(o));break;case 4:y=Fa,Fa=Xm(o.stateNode.containerInfo),wa(c,o),Wr(o),Fa=y;break;case 12:wa(c,o),Wr(o);break;case 13:wa(c,o),Wr(o),o.child.flags&8192&&o.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(Nm=Te()),y&4&&(y=o.updateQueue,y!==null&&(o.updateQueue=null,An(o,y)));break;case 22:A=o.memoizedState!==null;var Z=h!==null&&h.memoizedState!==null,de=Xa,be=di;if(Xa=de||A,di=be||Z,wa(c,o),di=be,Xa=de,Wr(o),y&8192)e:for(c=o.stateNode,c._visibility=A?c._visibility&-2:c._visibility|1,A&&(h===null||Z||Xa||di||vi(o)),h=null,c=o;;){if(c.tag===5||c.tag===26){if(h===null){Z=h=c;try{if(C=Z.stateNode,A)_=C.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{z=Z.stateNode;var Ie=Z.memoizedProps.style,pe=Ie!=null&&Ie.hasOwnProperty("display")?Ie.display:null;z.style.display=pe==null||typeof pe=="boolean"?"":(""+pe).trim()}}catch(me){ri(Z,Z.return,me)}}}else if(c.tag===6){if(h===null){Z=c;try{Z.stateNode.nodeValue=A?"":Z.memoizedProps}catch(me){ri(Z,Z.return,me)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===o)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===o)break e;for(;c.sibling===null;){if(c.return===null||c.return===o)break e;h===c&&(h=null),c=c.return}h===c&&(h=null),c.sibling.return=c.return,c=c.sibling}y&4&&(y=o.updateQueue,y!==null&&(h=y.retryQueue,h!==null&&(y.retryQueue=null,An(o,h))));break;case 19:wa(c,o),Wr(o),y&4&&(y=o.updateQueue,y!==null&&(o.updateQueue=null,An(o,y)));break;case 30:break;case 21:break;default:wa(c,o),Wr(o)}}function Wr(o){var c=o.flags;if(c&2){try{for(var h,y=o.return;y!==null;){if(Om(y)){h=y;break}y=y.return}if(h==null)throw Error(Ce(160));switch(h.tag){case 27:var A=h.stateNode,C=co(o);tp(o,C,A);break;case 5:var _=h.stateNode;h.flags&32&&(El(_,""),h.flags&=-33);var z=co(o);tp(o,z,_);break;case 3:case 4:var Z=h.stateNode.containerInfo,de=co(o);xf(o,de,Z);break;default:throw Error(Ce(161))}}catch(be){ri(o,o.return,be)}o.flags&=-3}c&4096&&(o.flags&=-4097)}function km(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var c=o;km(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),o=o.sibling}}function pu(o,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)Pg(o,c.alternate,c),c=c.sibling}function vi(o){for(o=o.child;o!==null;){var c=o;switch(c.tag){case 0:case 11:case 14:case 15:Ya(4,c,c.return),vi(c);break;case 1:Yo(c,c.return);var h=c.stateNode;typeof h.componentWillUnmount=="function"&&Ne(c,c.return,h),vi(c);break;case 27:Hu(c.stateNode);case 26:case 5:Yo(c,c.return),vi(c);break;case 22:c.memoizedState===null&&vi(c);break;case 30:vi(c);break;default:vi(c)}o=o.sibling}}function wf(o,c,h){for(h=h&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var y=c.alternate,A=o,C=c,_=C.flags;switch(C.tag){case 0:case 11:case 15:wf(A,C,h),zg(4,C);break;case 1:if(wf(A,C,h),y=C,A=y.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(de){ri(y,y.return,de)}if(y=C,A=y.updateQueue,A!==null){var z=y.stateNode;try{var Z=A.shared.hiddenCallbacks;if(Z!==null)for(A.shared.hiddenCallbacks=null,A=0;A<Z.length;A++)Sg(Z[A],z)}catch(de){ri(y,y.return,de)}}h&&_&64&&Bg(C),zn(C,C.return);break;case 27:Um(C);case 26:case 5:wf(A,C,h),h&&y===null&&_&4&&Zr(C),zn(C,C.return);break;case 12:wf(A,C,h);break;case 13:wf(A,C,h),h&&_&4&&Xd(A,C);break;case 22:C.memoizedState===null&&wf(A,C,h),zn(C,C.return);break;case 30:break;default:wf(A,C,h)}c=c.sibling}}function fo(o,c){var h=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),o=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(o=c.memoizedState.cachePool.pool),o!==h&&(o!=null&&o.refCount++,h!=null&&fs(h))}function ip(o,c){o=null,c.alternate!==null&&(o=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==o&&(c.refCount++,o!=null&&fs(o))}function Ca(o,c,h,y){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)cv(o,c,h,y),c=c.sibling}function cv(o,c,h,y){var A=c.flags;switch(c.tag){case 0:case 11:case 15:Ca(o,c,h,y),A&2048&&zg(9,c);break;case 1:Ca(o,c,h,y);break;case 3:Ca(o,c,h,y),A&2048&&(o=null,c.alternate!==null&&(o=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==o&&(c.refCount++,o!=null&&fs(o)));break;case 12:if(A&2048){Ca(o,c,h,y),o=c.stateNode;try{var C=c.memoizedProps,_=C.id,z=C.onPostCommit;typeof z=="function"&&z(_,c.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(Z){ri(c,c.return,Z)}}else Ca(o,c,h,y);break;case 13:Ca(o,c,h,y);break;case 23:break;case 22:C=c.stateNode,_=c.alternate,c.memoizedState!==null?C._visibility&2?Ca(o,c,h,y):qn(o,c):C._visibility&2?Ca(o,c,h,y):(C._visibility|=2,Ec(o,c,h,y,(c.subtreeFlags&10256)!==0)),A&2048&&fo(_,c);break;case 24:Ca(o,c,h,y),A&2048&&ip(c.alternate,c);break;default:Ca(o,c,h,y)}}function Ec(o,c,h,y,A){for(A=A&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var C=o,_=c,z=h,Z=y,de=_.flags;switch(_.tag){case 0:case 11:case 15:Ec(C,_,z,Z,A),zg(8,_);break;case 23:break;case 22:var be=_.stateNode;_.memoizedState!==null?be._visibility&2?Ec(C,_,z,Z,A):qn(C,_):(be._visibility|=2,Ec(C,_,z,Z,A)),A&&de&2048&&fo(_.alternate,_);break;case 24:Ec(C,_,z,Z,A),A&&de&2048&&ip(_.alternate,_);break;default:Ec(C,_,z,Z,A)}c=c.sibling}}function qn(o,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var h=o,y=c,A=y.flags;switch(y.tag){case 22:qn(h,y),A&2048&&fo(y.alternate,y);break;case 24:qn(h,y),A&2048&&ip(y.alternate,y);break;default:qn(h,y)}c=c.sibling}}var Ss=8192;function Gi(o){if(o.subtreeFlags&Ss)for(o=o.child;o!==null;)Gg(o),o=o.sibling}function Gg(o){switch(o.tag){case 26:Gi(o),o.flags&Ss&&o.memoizedState!==null&&Sp(Fa,o.memoizedState,o.memoizedProps);break;case 5:Gi(o);break;case 3:case 4:var c=Fa;Fa=Xm(o.stateNode.containerInfo),Gi(o),Fa=c;break;case 22:o.memoizedState===null&&(c=o.alternate,c!==null&&c.memoizedState!==null?(c=Ss,Ss=16777216,Gi(o),Ss=c):Gi(o));break;default:Gi(o)}}function Ac(o){var c=o.alternate;if(c!==null&&(o=c.child,o!==null)){c.child=null;do c=o.sibling,o.sibling=null,o=c;while(o!==null)}}function Fo(o){var c=o.deletions;if((o.flags&16)!==0){if(c!==null)for(var h=0;h<c.length;h++){var y=c[h];Bn=y,fv(y,o)}Ac(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Vg(o),o=o.sibling}function Vg(o){switch(o.tag){case 0:case 11:case 15:Fo(o),o.flags&2048&&Ya(9,o,o.return);break;case 3:Fo(o);break;case 12:Fo(o);break;case 22:var c=o.stateNode;o.memoizedState!==null&&c._visibility&2&&(o.return===null||o.return.tag!==13)?(c._visibility&=-3,or(o)):Fo(o);break;default:Fo(o)}}function or(o){var c=o.deletions;if((o.flags&16)!==0){if(c!==null)for(var h=0;h<c.length;h++){var y=c[h];Bn=y,fv(y,o)}Ac(o)}for(o=o.child;o!==null;){switch(c=o,c.tag){case 0:case 11:case 15:Ya(8,c,c.return),or(c);break;case 22:h=c.stateNode,h._visibility&2&&(h._visibility&=-3,or(c));break;default:or(c)}o=o.sibling}}function fv(o,c){for(;Bn!==null;){var h=Bn;switch(h.tag){case 0:case 11:case 15:Ya(8,h,c);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var y=h.memoizedState.cachePool.pool;y!=null&&y.refCount++}break;case 24:fs(h.memoizedState.cache)}if(y=h.child,y!==null)y.return=h,Bn=y;else e:for(h=o;Bn!==null;){y=Bn;var A=y.sibling,C=y.return;if(Jr(y),y===h){Bn=null;break e}if(A!==null){A.return=C,Bn=A;break e}Bn=C}}}var Cf={getCacheForType:function(o){var c=Ji(Ar),h=c.data.get(o);return h===void 0&&(h=o(),c.data.set(o,h)),h}},J1=typeof WeakMap=="function"?WeakMap:Map,Un=0,hi=null,xn=null,vn=0,ei=0,ku=null,Ts=!1,Mf=!1,rp=!1,Nu=0,pi=0,Ma=0,si=0,_u=0,ju=0,Fd=0,ap=null,zu=null,dv=!1,Nm=0,qg=1/0,up=null,bf=null,Ur=0,Es=null,We=null,kr=0,Rf=0,_m=null,jm=null,op=0,zm=null;function Nr(){if((Un&2)!==0&&vn!==0)return vn&-vn;if(re.T!==null){var o=oo;return o!==0?o:eh()}return gd()}function hv(){ju===0&&(ju=(vn&536870912)===0||mn?wu():536870912);var o=Aa.current;return o!==null&&(o.flags|=32),ju}function Bu(o,c,h){(o===hi&&(ei===2||ei===9)||o.cancelPendingCommit!==null)&&(zl(o,0),As(o,vn,ju,!1)),pd(o,h),((Un&2)===0||o!==hi)&&(o===hi&&((Un&2)===0&&(si|=h),pi===4&&As(o,vn,ju,!1)),Ka(o))}function Df(o,c,h){if((Un&6)!==0)throw Error(Ce(327));var y=!h&&(c&124)===0&&(c&o.expiredLanes)===0||Qu(o,c),A=y?sp(o,c):Vt(o,c,!0),C=y;do{if(A===0){Mf&&!y&&As(o,c,0,!1);break}else{if(h=o.current.alternate,C&&!pv(h)){A=Vt(o,c,!1),C=!1;continue}if(A===2){if(C=c,o.errorRecoveryDisabledLanes&C)var _=0;else _=o.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){c=_;e:{var z=o;A=ap;var Z=z.current.memoizedState.isDehydrated;if(Z&&(zl(z,_).flags|=256),_=Vt(z,_,!1),_!==2){if(rp&&!Z){z.errorRecoveryDisabledLanes|=C,si|=C,A=4;break e}C=zu,zu=A,C!==null&&(zu===null?zu=C:zu.push.apply(zu,C))}A=_}if(C=!1,A!==2)continue}}if(A===1){zl(o,0),As(o,c,0,!0);break}e:{switch(y=o,C=A,C){case 0:case 1:throw Error(Ce(345));case 4:if((c&4194048)!==c)break;case 6:As(y,c,ju,!Ts);break e;case 2:zu=null;break;case 3:case 5:break;default:throw Error(Ce(329))}if((c&62914560)===c&&(A=Nm+300-Te(),10<A)){if(As(y,c,ju,!Ts),yl(y,0,!0)!==0)break e;y.timeoutHandle=th(lp.bind(null,y,h,zu,up,dv,c,ju,si,Fd,Ts,C,2,-0,0),A);break e}lp(y,h,zu,up,dv,c,ju,si,Fd,Ts,C,0,-0,0)}}break}while(!0);Ka(o)}function lp(o,c,h,y,A,C,_,z,Z,de,be,Ie,pe,me){if(o.timeoutHandle=-1,Ie=c.subtreeFlags,(Ie&8192||(Ie&16785408)===16785408)&&($o={stylesheets:null,count:0,unsuspend:Ls},Gg(c),Ie=Vf(),Ie!==null)){o.cancelPendingCommit=Ie(Yg.bind(null,o,c,C,h,y,A,_,z,Z,be,1,pe,me)),As(o,C,_,!de);return}Yg(o,c,C,h,y,A,_,z,Z)}function pv(o){for(var c=o;;){var h=c.tag;if((h===0||h===11||h===15)&&c.flags&16384&&(h=c.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var y=0;y<h.length;y++){var A=h[y],C=A.getSnapshot;A=A.value;try{if(!wt(C(),A))return!1}catch{return!1}}if(h=c.child,c.subtreeFlags&16384&&h!==null)h.return=c,c=h;else{if(c===o)break;for(;c.sibling===null;){if(c.return===null||c.return===o)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function As(o,c,h,y){c&=~_u,c&=~si,o.suspendedLanes|=c,o.pingedLanes&=~c,y&&(o.warmLanes|=c),y=o.expirationTimes;for(var A=c;0<A;){var C=31-Tt(A),_=1<<C;y[C]=-1,A&=~_}h!==0&&Jp(o,h,c)}function If(){return(Un&6)===0?(Zg(0),!1):!0}function xc(){if(xn!==null){if(ei===0)var o=xn.return;else o=xn,$n=Sa=null,Od(o),Ho=null,vs=0,o=xn;for(;o!==null;)Lm(o.alternate,o),o=o.return;xn=null}}function zl(o,c){var h=o.timeoutHandle;h!==-1&&(o.timeoutHandle=-1,t0(h)),h=o.cancelPendingCommit,h!==null&&(o.cancelPendingCommit=null,h()),xc(),hi=o,xn=h=ma(o.current,null),vn=c,ei=0,ku=null,Ts=!1,Mf=Qu(o,c),rp=!1,Fd=ju=_u=si=Ma=pi=0,zu=ap=null,dv=!1,(c&8)!==0&&(c|=c&32);var y=o.entangledLanes;if(y!==0)for(o=o.entanglements,y&=c;0<y;){var A=31-Tt(y),C=1<<A;c|=o[A],y&=~C}return Nu=c,Uo(),h}function Bm(o,c){ft=null,re.H=Lg,c===cf||c===Il?(c=bd(),ei=3):c===hm?(c=bd(),ei=4):ei=c===Hi?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,ku=c,xn===null&&(pi=1,Wh(o,Ga(c,o.current)))}function gv(){var o=re.H;return re.H=Lg,o===null?Lg:o}function Lf(){var o=re.A;return re.A=Cf,o}function Of(){pi=4,Ts||(vn&4194048)!==vn&&Aa.current!==null||(Mf=!0),(Ma&134217727)===0&&(si&134217727)===0||hi===null||As(hi,vn,ju,!1)}function Vt(o,c,h){var y=Un;Un|=2;var A=gv(),C=Lf();(hi!==o||vn!==c)&&(up=null,zl(o,c)),c=!1;var _=pi;e:do try{if(ei!==0&&xn!==null){var z=xn,Z=ku;switch(ei){case 8:xc(),_=6;break e;case 3:case 2:case 9:case 6:Aa.current===null&&(c=!0);var de=ei;if(ei=0,ku=null,Uf(o,z,Z,de),h&&Mf){_=0;break e}break;default:de=ei,ei=0,ku=null,Uf(o,z,Z,de)}}Pu(),_=pi;break}catch(be){Bm(o,be)}while(!0);return c&&o.shellSuspendCounter++,$n=Sa=null,Un=y,re.H=A,re.A=C,xn===null&&(hi=null,vn=0,Uo()),_}function Pu(){for(;xn!==null;)Yn(xn)}function sp(o,c){var h=Un;Un|=2;var y=gv(),A=Lf();hi!==o||vn!==c?(up=null,qg=Te()+500,zl(o,c)):Mf=Qu(o,c);e:do try{if(ei!==0&&xn!==null){c=xn;var C=ku;t:switch(ei){case 1:ei=0,ku=null,Uf(o,c,C,1);break;case 2:case 9:if(Bh(C)){ei=0,ku=null,Kd(c);break}c=function(){ei!==2&&ei!==9||hi!==o||(ei=7),Ka(o)},C.then(c,c);break e;case 3:ei=7;break e;case 4:ei=5;break e;case 7:Bh(C)?(ei=0,ku=null,Kd(c)):(ei=0,ku=null,Uf(o,c,C,7));break;case 5:var _=null;switch(xn.tag){case 26:_=xn.memoizedState;case 5:case 27:var z=xn;if(!_||Mv(_)){ei=0,ku=null;var Z=z.sibling;if(Z!==null)xn=Z;else{var de=z.return;de!==null?(xn=de,Qd(de)):xn=null}break t}}ei=0,ku=null,Uf(o,c,C,5);break;case 6:ei=0,ku=null,Uf(o,c,C,6);break;case 8:xc(),pi=6;break e;default:throw Error(Ce(462))}}gu();break}catch(be){Bm(o,be)}while(!0);return $n=Sa=null,re.H=y,re.A=A,Un=h,xn!==null?0:(hi=null,vn=0,Uo(),pi)}function gu(){for(;xn!==null&&!lT();)Yn(xn)}function Yn(o){var c=_g(o.alternate,o,Nu);o.memoizedProps=o.pendingProps,c===null?Qd(o):xn=c}function Kd(o){var c=o,h=c.alternate;switch(c.tag){case 15:case 0:c=rv(h,c,c.pendingProps,c.type,void 0,vn);break;case 11:c=rv(h,c,c.pendingProps,c.type.render,c.ref,vn);break;case 5:Od(c);default:Lm(h,c),c=xn=on(c,Nu),c=_g(h,c,Nu)}o.memoizedProps=o.pendingProps,c===null?Qd(o):xn=c}function Uf(o,c,h,y){$n=Sa=null,Od(c),Ho=null,vs=0;var A=c.return;try{if(jn(o,A,c,h,vn)){pi=1,Wh(o,Ga(h,o.current)),xn=null;return}}catch(C){if(A!==null)throw xn=A,C;pi=1,Wh(o,Ga(h,o.current)),xn=null;return}c.flags&32768?(mn||y===1?o=!0:Mf||(vn&536870912)!==0?o=!1:(Ts=o=!0,(y===2||y===9||y===3||y===6)&&(y=Aa.current,y!==null&&y.tag===13&&(y.flags|=16384))),mv(c,o)):Qd(c)}function Qd(o){var c=o;do{if((c.flags&32768)!==0){mv(c,Ts);return}o=c.return;var h=jg(c.alternate,c,Nu);if(h!==null){xn=h;return}if(c=c.sibling,c!==null){xn=c;return}xn=c=o}while(c!==null);pi===0&&(pi=5)}function mv(o,c){do{var h=ov(o.alternate,o);if(h!==null){h.flags&=32767,xn=h;return}if(h=o.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!c&&(o=o.sibling,o!==null)){xn=o;return}xn=o=h}while(o!==null);pi=6,xn=null}function Yg(o,c,h,y,A,C,_,z,Z){o.cancelPendingCommit=null;do Zd();while(Ur!==0);if((Un&6)!==0)throw Error(Ce(327));if(c!==null){if(c===o.current)throw Error(Ce(177));if(C=c.lanes|c.childLanes,C|=ls,jy(o,h,C,_,z,Z),o===hi&&(xn=hi=null,vn=0),We=c,Es=o,kr=h,Rf=C,_m=A,jm=y,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,Bl(xu,function(){return Jd(),null})):(o.callbackNode=null,o.callbackPriority=0),y=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||y){y=re.T,re.T=null,A=Re.p,Re.p=2,_=Un,Un|=4;try{kt(o,c,h)}finally{Un=_,Re.p=A,re.T=y}}Ur=1,W1(),Xg(),Fg()}}function W1(){if(Ur===1){Ur=0;var o=Es,c=We,h=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||h){h=re.T,re.T=null;var y=Re.p;Re.p=2;var A=Un;Un|=4;try{Hg(c,o);var C=bs,_=Mu(o.containerInfo),z=C.focusedElem,Z=C.selectionRange;if(_!==z&&z&&z.ownerDocument&&Wn(z.ownerDocument.documentElement,z)){if(Z!==null&&ct(z)){var de=Z.start,be=Z.end;if(be===void 0&&(be=de),"selectionStart"in z)z.selectionStart=de,z.selectionEnd=Math.min(be,z.value.length);else{var Ie=z.ownerDocument||document,pe=Ie&&Ie.defaultView||window;if(pe.getSelection){var me=pe.getSelection(),bt=z.textContent.length,te=Math.min(Z.start,bt),Ln=Z.end===void 0?te:Math.min(Z.end,bt);!me.extend&&te>Ln&&(_=Ln,Ln=te,te=_);var se=Dn(z,te),J=Dn(z,Ln);if(se&&J&&(me.rangeCount!==1||me.anchorNode!==se.node||me.anchorOffset!==se.offset||me.focusNode!==J.node||me.focusOffset!==J.offset)){var fe=Ie.createRange();fe.setStart(se.node,se.offset),me.removeAllRanges(),te>Ln?(me.addRange(fe),me.extend(J.node,J.offset)):(fe.setEnd(J.node,J.offset),me.addRange(fe))}}}}for(Ie=[],me=z;me=me.parentNode;)me.nodeType===1&&Ie.push({element:me,left:me.scrollLeft,top:me.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<Ie.length;z++){var De=Ie[z];De.element.scrollLeft=De.left,De.element.scrollTop=De.top}}qi=!!lr,bs=lr=null}finally{Un=A,Re.p=y,re.T=h}}o.current=c,Ur=2}}function Xg(){if(Ur===2){Ur=0;var o=Es,c=We,h=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||h){h=re.T,re.T=null;var y=Re.p;Re.p=2;var A=Un;Un|=4;try{Pg(o,c.alternate,c)}finally{Un=A,Re.p=y,re.T=h}}Ur=3}}function Fg(){if(Ur===4||Ur===3){Ur=0,hd();var o=Es,c=We,h=kr,y=jm;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?Ur=5:(Ur=0,We=Es=null,$1(o,o.pendingLanes));var A=o.pendingLanes;if(A===0&&(bf=null),Y0(h),c=c.stateNode,Ua&&typeof Ua.onCommitFiberRoot=="function")try{Ua.onCommitFiberRoot(Qp,c,void 0,(c.current.flags&128)===128)}catch{}if(y!==null){c=re.T,A=Re.p,Re.p=2,re.T=null;try{for(var C=o.onRecoverableError,_=0;_<y.length;_++){var z=y[_];C(z.value,{componentStack:z.stack})}}finally{re.T=c,Re.p=A}}(kr&3)!==0&&Zd(),Ka(o),A=o.pendingLanes,(h&4194090)!==0&&(A&42)!==0?o===zm?op++:(op=0,zm=o):op=0,Zg(0)}}function $1(o,c){(o.pooledCacheLanes&=c)===0&&(c=o.pooledCache,c!=null&&(o.pooledCache=null,fs(c)))}function Zd(o){return W1(),Xg(),Fg(),Jd()}function Jd(){if(Ur!==5)return!1;var o=Es,c=Rf;Rf=0;var h=Y0(kr),y=re.T,A=Re.p;try{Re.p=32>h?32:h,re.T=null,h=_m,_m=null;var C=Es,_=kr;if(Ur=0,We=Es=null,kr=0,(Un&6)!==0)throw Error(Ce(331));var z=Un;if(Un|=4,Vg(C.current),cv(C,C.current,_,h),Un=z,Zg(0,!1),Ua&&typeof Ua.onPostCommitFiberRoot=="function")try{Ua.onPostCommitFiberRoot(Qp,C)}catch{}return!0}finally{Re.p=A,re.T=y,$1(o,c)}}function Kg(o,c,h){c=Ga(h,c),c=Tc(o.stateNode,c,2),o=Ll(o,c,2),o!==null&&(pd(o,2),Ka(o))}function ri(o,c,h){if(o.tag===3)Kg(o,o,h);else for(;c!==null;){if(c.tag===3){Kg(c,o,h);break}else if(c.tag===1){var y=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(bf===null||!bf.has(y))){o=Ga(h,o),h=Gd(2),y=Ll(c,h,2),y!==null&&(Uu(h,y,c,o),pd(y,2),Ka(y));break}}c=c.return}}function Wd(o,c,h){var y=o.pingCache;if(y===null){y=o.pingCache=new J1;var A=new Set;y.set(c,A)}else A=y.get(c),A===void 0&&(A=new Set,y.set(c,A));A.has(h)||(rp=!0,A.add(h),o=yv.bind(null,o,c,h),c.then(o,o))}function yv(o,c,h){var y=o.pingCache;y!==null&&y.delete(c),o.pingedLanes|=o.suspendedLanes&h,o.warmLanes&=~h,hi===o&&(vn&h)===h&&(pi===4||pi===3&&(vn&62914560)===vn&&300>Te()-Nm?(Un&2)===0&&zl(o,0):_u|=h,Fd===vn&&(Fd=0)),Ka(o)}function $d(o,c){c===0&&(c=Co()),o=Dr(o,c),o!==null&&(pd(o,c),Ka(o))}function eS(o){var c=o.memoizedState,h=0;c!==null&&(h=c.retryLane),$d(o,h)}function tS(o,c){var h=0;switch(o.tag){case 13:var y=o.stateNode,A=o.memoizedState;A!==null&&(h=A.retryLane);break;case 19:y=o.stateNode;break;case 22:y=o.stateNode._retryCache;break;default:throw Error(Ce(314))}y!==null&&y.delete(c),$d(o,h)}function Bl(o,c){return dd(o,c)}var cp=null,wc=null,Qg=!1,xs=!1,fp=!1,Cc=0;function Ka(o){o!==wc&&o.next===null&&(wc===null?cp=wc=o:wc=wc.next=o),xs=!0,Qg||(Qg=!0,Sv())}function Zg(o,c){if(!fp&&xs){fp=!0;do for(var h=!1,y=cp;y!==null;){if(o!==0){var A=y.pendingLanes;if(A===0)var C=0;else{var _=y.suspendedLanes,z=y.pingedLanes;C=(1<<31-Tt(42|o)+1)-1,C&=A&~(_&~z),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(h=!0,ws(y,C))}else C=vn,C=yl(y,y===hi?C:0,y.cancelPendingCommit!==null||y.timeoutHandle!==-1),(C&3)===0||Qu(y,C)||(h=!0,ws(y,C));y=y.next}while(h);fp=!1}}function Pm(){Jg()}function Jg(){xs=Qg=!1;var o=0;Cc!==0&&(Dc()&&(o=Cc),Cc=0);for(var c=Te(),h=null,y=cp;y!==null;){var A=y.next,C=vv(y,c);C===0?(y.next=null,h===null?cp=A:h.next=A,A===null&&(wc=h)):(h=y,(o!==0||(C&3)!==0)&&(xs=!0)),y=A}Zg(o)}function vv(o,c){for(var h=o.suspendedLanes,y=o.pingedLanes,A=o.expirationTimes,C=o.pendingLanes&-62914561;0<C;){var _=31-Tt(C),z=1<<_,Z=A[_];Z===-1?((z&h)===0||(z&y)!==0)&&(A[_]=mr(z,c)):Z<=c&&(o.expiredLanes|=z),C&=~z}if(c=hi,h=vn,h=yl(o,o===c?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),y=o.callbackNode,h===0||o===c&&(ei===2||ei===9)||o.cancelPendingCommit!==null)return y!==null&&y!==null&&xe(y),o.callbackNode=null,o.callbackPriority=0;if((h&3)===0||Qu(o,h)){if(c=h&-h,c===o.callbackPriority)return c;switch(y!==null&&xe(y),Y0(h)){case 2:case 8:h=_y;break;case 32:h=xu;break;case 268435456:h=xo;break;default:h=xu}return y=Hm.bind(null,o),h=dd(h,y),o.callbackPriority=c,o.callbackNode=h,c}return y!==null&&y!==null&&xe(y),o.callbackPriority=2,o.callbackNode=null,2}function Hm(o,c){if(Ur!==0&&Ur!==5)return o.callbackNode=null,o.callbackPriority=0,null;var h=o.callbackNode;if(Zd()&&o.callbackNode!==h)return null;var y=vn;return y=yl(o,o===hi?y:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),y===0?null:(Df(o,y,c),vv(o,Te()),o.callbackNode!=null&&o.callbackNode===h?Hm.bind(null,o):null)}function ws(o,c){if(Zd())return null;Df(o,c,!0)}function Sv(){mp(function(){(Un&6)!==0?dd(Kp,Pm):Jg()})}function eh(){return Cc===0&&(Cc=wu()),Cc}function Gm(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:yd(""+o)}function Wg(o,c){var h=c.ownerDocument.createElement("input");return h.name=c.name,h.value=c.value,o.id&&h.setAttribute("form",o.id),c.parentNode.insertBefore(h,c),o=new FormData(o),h.parentNode.removeChild(h),o}function nS(o,c,h,y,A){if(c==="submit"&&h&&h.stateNode===A){var C=Gm((A[ji]||null).action),_=y.submitter;_&&(c=(c=_[ji]||null)?Gm(c.formAction):_.getAttribute("formAction"),c!==null&&(C=c,_=null));var z=new tc("action","action",null,y,A);o.push({event:z,listeners:[{instance:null,listener:function(){if(y.defaultPrevented){if(Cc!==0){var Z=_?Wg(A,_):new FormData(A);Dg(h,{pending:!0,data:Z,method:A.method,action:C},null,Z)}}else typeof C=="function"&&(z.preventDefault(),Z=_?Wg(A,_):new FormData(A),Dg(h,{pending:!0,data:Z,method:A.method,action:C},C,Z))},currentTarget:A}]})}}for(var Ui=0;Ui<af.length;Ui++){var dp=af[Ui],Vm=dp.toLowerCase(),cn=dp[0].toUpperCase()+dp.slice(1);Kt(Vm,"on"+cn)}Kt(V1,"onAnimationEnd"),Kt(Oh,"onAnimationIteration"),Kt(Yy,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(om,"onTransitionRun"),Kt(sg,"onTransitionStart"),Kt(Xy,"onTransitionCancel"),Kt(cg,"onTransitionEnd"),fa("onMouseEnter",["mouseout","mouseover"]),fa("onMouseLeave",["mouseout","mouseover"]),fa("onPointerEnter",["pointerout","pointerover"]),fa("onPointerLeave",["pointerout","pointerover"]),Ke("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ke("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ke("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ke("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ke("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ke("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kf=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cs));function Ms(o,c){c=(c&4)!==0;for(var h=0;h<o.length;h++){var y=o[h],A=y.event;y=y.listeners;e:{var C=void 0;if(c)for(var _=y.length-1;0<=_;_--){var z=y[_],Z=z.instance,de=z.currentTarget;if(z=z.listener,Z!==C&&A.isPropagationStopped())break e;C=z,A.currentTarget=de;try{C(A)}catch(be){Or(be)}A.currentTarget=null,C=Z}else for(_=0;_<y.length;_++){if(z=y[_],Z=z.instance,de=z.currentTarget,z=z.listener,Z!==C&&A.isPropagationStopped())break e;C=z,A.currentTarget=de;try{C(A)}catch(be){Or(be)}A.currentTarget=null,C=Z}}}}function nn(o,c){var h=c[at];h===void 0&&(h=c[at]=new Set);var y=o+"__bubble";h.has(y)||(qm(c,o,2,!1),h.add(y))}function Mc(o,c,h){var y=0;c&&(y|=4),qm(h,o,y,c)}var Nf="_reactListening"+Math.random().toString(36).slice(2);function Tv(o){if(!o[Nf]){o[Nf]=!0,ts.forEach(function(h){h!=="selectionchange"&&(kf.has(h)||Mc(h,!1,o),Mc(h,!0,o))});var c=o.nodeType===9?o:o.ownerDocument;c===null||c[Nf]||(c[Nf]=!0,Mc("selectionchange",!1,c))}}function qm(o,c,h,y){switch(Iv(c)){case 2:var A=Tp;break;case 8:A=rS;break;default:A=Wm}h=A.bind(null,c,h,o),A=void 0,!wi||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(A=!0),y?A!==void 0?o.addEventListener(c,h,{capture:!0,passive:A}):o.addEventListener(c,h,!0):A!==void 0?o.addEventListener(c,h,{passive:A}):o.addEventListener(c,h,!1)}function Ko(o,c,h,y,A){var C=y;if((c&1)===0&&(c&2)===0&&y!==null)e:for(;;){if(y===null)return;var _=y.tag;if(_===3||_===4){var z=y.stateNode.containerInfo;if(z===A)break;if(_===4)for(_=y.return;_!==null;){var Z=_.tag;if((Z===3||Z===4)&&_.stateNode.containerInfo===A)return;_=_.return}for(;z!==null;){if(_=Xr(z),_===null)return;if(Z=_.tag,Z===5||Z===6||Z===26||Z===27){y=C=_;continue e}z=z.parentNode}}y=y.return}Io(function(){var de=C,be=ig(h),Ie=[];e:{var pe=fg.get(o);if(pe!==void 0){var me=tc,bt=o;switch(o){case"keypress":if(lt(h)===0)break e;case"keydown":case"keyup":me=Cl;break;case"focusin":bt="focus",me=tm;break;case"focusout":bt="blur",me=tm;break;case"beforeblur":case"afterblur":me=tm;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":me=ug;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":me=By;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":me=lg;break;case V1:case Oh:case Yy:me=Py;break;case cg:me=qy;break;case"scroll":case"scrollend":me=em;break;case"wheel":me=eo;break;case"copy":case"cut":case"paste":me=$c;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":me=bh;break;case"toggle":case"beforetoggle":me=im}var te=(c&4)!==0,Ln=!te&&(o==="scroll"||o==="scrollend"),se=te?pe!==null?pe+"Capture":null:pe;te=[];for(var J=de,fe;J!==null;){var De=J;if(fe=De.stateNode,De=De.tag,De!==5&&De!==26&&De!==27||fe===null||se===null||(De=nu(J,se),De!=null&&te.push(bc(J,De,fe))),Ln)break;J=J.return}0<te.length&&(pe=new me(pe,bt,null,h,be),Ie.push({event:pe,listeners:te}))}}if((c&7)===0){e:{if(pe=o==="mouseover"||o==="pointerover",me=o==="mouseout"||o==="pointerout",pe&&h!==Fi&&(bt=h.relatedTarget||h.fromElement)&&(Xr(bt)||bt[Yr]))break e;if((me||pe)&&(pe=be.window===be?be:(pe=be.ownerDocument)?pe.defaultView||pe.parentWindow:window,me?(bt=h.relatedTarget||h.toElement,me=de,bt=bt?Xr(bt):null,bt!==null&&(Ln=pr(bt),te=bt.tag,bt!==Ln||te!==5&&te!==27&&te!==6)&&(bt=null)):(me=null,bt=de),me!==bt)){if(te=ug,De="onMouseLeave",se="onMouseEnter",J="mouse",(o==="pointerout"||o==="pointerover")&&(te=bh,De="onPointerLeave",se="onPointerEnter",J="pointer"),Ln=me==null?pe:md(me),fe=bt==null?pe:md(bt),pe=new te(De,J+"leave",me,h,be),pe.target=Ln,pe.relatedTarget=fe,De=null,Xr(be)===de&&(te=new te(se,J+"enter",bt,h,be),te.target=fe,te.relatedTarget=Ln,De=te),Ln=De,me&&bt)t:{for(te=me,se=bt,J=0,fe=te;fe;fe=_f(fe))J++;for(fe=0,De=se;De;De=_f(De))fe++;for(;0<J-fe;)te=_f(te),J--;for(;0<fe-J;)se=_f(se),fe--;for(;J--;){if(te===se||se!==null&&te===se.alternate)break t;te=_f(te),se=_f(se)}te=null}else te=null;me!==null&&$g(Ie,pe,me,te,!1),bt!==null&&Ln!==null&&$g(Ie,Ln,bt,te,!0)}}e:{if(pe=de?md(de):window,me=pe.nodeName&&pe.nodeName.toLowerCase(),me==="select"||me==="input"&&pe.type==="file")var ut=Sd;else if(Ih(pe))if(nf)ut=Lh;else{ut=os;var ln=us}else me=pe.nodeName,!me||me.toLowerCase()!=="input"||pe.type!=="checkbox"&&pe.type!=="radio"?de&&ka(de.elementType)&&(ut=Sd):ut=oc;if(ut&&(ut=ut(o,de))){rc(Ie,ut,h,be);break e}ln&&ln(o,pe,de),o==="focusout"&&de&&pe.type==="number"&&de.memoizedProps.value!=null&&tg(pe,"number",pe.value)}switch(ln=de?md(de):window,o){case"focusin":(Ih(ln)||ln.contentEditable==="true")&&(Ml=ln,Sr=de,au=null);break;case"focusout":au=Sr=Ml=null;break;case"mousedown":Ha=!0;break;case"contextmenu":case"mouseup":case"dragend":Ha=!1,Ad(Ie,h,be);break;case"selectionchange":if(ru)break;case"keydown":case"keyup":Ad(Ie,h,be)}var Ct;if(vd)e:{switch(o){case"compositionstart":var zt="onCompositionStart";break e;case"compositionend":zt="onCompositionEnd";break e;case"compositionupdate":zt="onCompositionUpdate";break e}zt=void 0}else Zi?as(o,h)&&(zt="onCompositionEnd"):o==="keydown"&&h.keyCode===229&&(zt="onCompositionStart");zt&&(Oo&&h.locale!=="ko"&&(Zi||zt!=="onCompositionStart"?zt==="onCompositionEnd"&&Zi&&(Ct=rg()):(rs=be,Al="value"in rs?rs.value:rs.textContent,Zi=!0)),ln=hp(de,zt),0<ln.length&&(zt=new Ft(zt,o,null,h,be),Ie.push({event:zt,listeners:ln}),Ct?zt.data=Ct:(Ct=Cu(h),Ct!==null&&(zt.data=Ct)))),(Ct=ja?am(o,h):tf(o,h))&&(zt=hp(de,"onBeforeInput"),0<zt.length&&(ln=new Ft("onBeforeInput","beforeinput",null,h,be),Ie.push({event:ln,listeners:zt}),ln.data=Ct)),nS(Ie,o,de,h,be)}Ms(Ie,c)})}function bc(o,c,h){return{instance:o,listener:c,currentTarget:h}}function hp(o,c){for(var h=c+"Capture",y=[];o!==null;){var A=o,C=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||C===null||(A=nu(o,h),A!=null&&y.unshift(bc(o,A,C)),A=nu(o,c),A!=null&&y.push(bc(o,A,C))),o.tag===3)return y;o=o.return}return[]}function _f(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function $g(o,c,h,y,A){for(var C=c._reactName,_=[];h!==null&&h!==y;){var z=h,Z=z.alternate,de=z.stateNode;if(z=z.tag,Z!==null&&Z===y)break;z!==5&&z!==26&&z!==27||de===null||(Z=de,A?(de=nu(h,C),de!=null&&_.unshift(bc(h,de,Z))):A||(de=nu(h,C),de!=null&&_.push(bc(h,de,Z)))),h=h.return}_.length!==0&&o.push({event:c,listeners:_})}var ho=/\r\n?/g,Ev=/\u0000|\uFFFD/g;function Av(o){return(typeof o=="string"?o:""+o).replace(ho,`
168
- `).replace(Ev,"")}function e0(o,c){return c=Av(c),Av(o)===c}function pp(){}function Qt(o,c,h,y,A,C){switch(h){case"children":typeof y=="string"?c==="body"||c==="textarea"&&y===""||El(o,y):(typeof y=="number"||typeof y=="bigint")&&c!=="body"&&El(o,""+y);break;case"className":Ju(o,"class",y);break;case"tabIndex":Ju(o,"tabindex",y);break;case"dir":case"role":case"viewBox":case"width":case"height":Ju(o,h,y);break;case"style":Ro(o,y,C);break;case"data":if(c!=="object"){Ju(o,"data",y);break}case"src":case"href":if(y===""&&(c!=="a"||h!=="href")){o.removeAttribute(h);break}if(y==null||typeof y=="function"||typeof y=="symbol"||typeof y=="boolean"){o.removeAttribute(h);break}y=yd(""+y),o.setAttribute(h,y);break;case"action":case"formAction":if(typeof y=="function"){o.setAttribute(h,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(h==="formAction"?(c!=="input"&&Qt(o,c,"name",A.name,A,null),Qt(o,c,"formEncType",A.formEncType,A,null),Qt(o,c,"formMethod",A.formMethod,A,null),Qt(o,c,"formTarget",A.formTarget,A,null)):(Qt(o,c,"encType",A.encType,A,null),Qt(o,c,"method",A.method,A,null),Qt(o,c,"target",A.target,A,null)));if(y==null||typeof y=="symbol"||typeof y=="boolean"){o.removeAttribute(h);break}y=yd(""+y),o.setAttribute(h,y);break;case"onClick":y!=null&&(o.onclick=pp);break;case"onScroll":y!=null&&nn("scroll",o);break;case"onScrollEnd":y!=null&&nn("scrollend",o);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(Ce(61));if(h=y.__html,h!=null){if(A.children!=null)throw Error(Ce(60));o.innerHTML=h}}break;case"multiple":o.multiple=y&&typeof y!="function"&&typeof y!="symbol";break;case"muted":o.muted=y&&typeof y!="function"&&typeof y!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(y==null||typeof y=="function"||typeof y=="boolean"||typeof y=="symbol"){o.removeAttribute("xlink:href");break}h=yd(""+y),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":y!=null&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(h,""+y):o.removeAttribute(h);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":y&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(h,""):o.removeAttribute(h);break;case"capture":case"download":y===!0?o.setAttribute(h,""):y!==!1&&y!=null&&typeof y!="function"&&typeof y!="symbol"?o.setAttribute(h,y):o.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":y!=null&&typeof y!="function"&&typeof y!="symbol"&&!isNaN(y)&&1<=y?o.setAttribute(h,y):o.removeAttribute(h);break;case"rowSpan":case"start":y==null||typeof y=="function"||typeof y=="symbol"||isNaN(y)?o.removeAttribute(h):o.setAttribute(h,y);break;case"popover":nn("beforetoggle",o),nn("toggle",o),da(o,"popover",y);break;case"xlinkActuate":Wu(o,"http://www.w3.org/1999/xlink","xlink:actuate",y);break;case"xlinkArcrole":Wu(o,"http://www.w3.org/1999/xlink","xlink:arcrole",y);break;case"xlinkRole":Wu(o,"http://www.w3.org/1999/xlink","xlink:role",y);break;case"xlinkShow":Wu(o,"http://www.w3.org/1999/xlink","xlink:show",y);break;case"xlinkTitle":Wu(o,"http://www.w3.org/1999/xlink","xlink:title",y);break;case"xlinkType":Wu(o,"http://www.w3.org/1999/xlink","xlink:type",y);break;case"xmlBase":Wu(o,"http://www.w3.org/XML/1998/namespace","xml:base",y);break;case"xmlLang":Wu(o,"http://www.w3.org/XML/1998/namespace","xml:lang",y);break;case"xmlSpace":Wu(o,"http://www.w3.org/XML/1998/namespace","xml:space",y);break;case"is":da(o,"is",y);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=Do.get(h)||h,da(o,h,y))}}function ye(o,c,h,y,A,C){switch(h){case"style":Ro(o,y,C);break;case"dangerouslySetInnerHTML":if(y!=null){if(typeof y!="object"||!("__html"in y))throw Error(Ce(61));if(h=y.__html,h!=null){if(A.children!=null)throw Error(Ce(60));o.innerHTML=h}}break;case"children":typeof y=="string"?El(o,y):(typeof y=="number"||typeof y=="bigint")&&El(o,""+y);break;case"onScroll":y!=null&&nn("scroll",o);break;case"onScrollEnd":y!=null&&nn("scrollend",o);break;case"onClick":y!=null&&(o.onclick=pp);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ca.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(A=h.endsWith("Capture"),c=h.slice(2,A?h.length-7:void 0),C=o[ji]||null,C=C!=null?C[h]:null,typeof C=="function"&&o.removeEventListener(c,C,A),typeof y=="function")){typeof C!="function"&&C!==null&&(h in o?o[h]=null:o.hasAttribute(h)&&o.removeAttribute(h)),o.addEventListener(c,y,A);break e}h in o?o[h]=y:y===!0?o.setAttribute(h,""):da(o,h,y)}}}function Pt(o,c,h){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nn("error",o),nn("load",o);var y=!1,A=!1,C;for(C in h)if(h.hasOwnProperty(C)){var _=h[C];if(_!=null)switch(C){case"src":y=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Ce(137,c));default:Qt(o,c,C,_,h,null)}}A&&Qt(o,c,"srcSet",h.srcSet,h,null),y&&Qt(o,c,"src",h.src,h,null);return;case"input":nn("invalid",o);var z=C=_=A=null,Z=null,de=null;for(y in h)if(h.hasOwnProperty(y)){var be=h[y];if(be!=null)switch(y){case"name":A=be;break;case"type":_=be;break;case"checked":Z=be;break;case"defaultChecked":de=be;break;case"value":C=be;break;case"defaultValue":z=be;break;case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(Ce(137,c));break;default:Qt(o,c,y,be,h,null)}}eg(o,C,z,Z,de,_,A,!1),Tl(o);return;case"select":nn("invalid",o),y=_=C=null;for(A in h)if(h.hasOwnProperty(A)&&(z=h[A],z!=null))switch(A){case"value":C=z;break;case"defaultValue":_=z;break;case"multiple":y=z;default:Qt(o,c,A,z,h,null)}c=C,h=_,o.multiple=!!y,c!=null?Jc(o,!!y,c,!1):h!=null&&Jc(o,!!y,h,!0);return;case"textarea":nn("invalid",o),C=A=y=null;for(_ in h)if(h.hasOwnProperty(_)&&(z=h[_],z!=null))switch(_){case"value":y=z;break;case"defaultValue":A=z;break;case"children":C=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(Ce(91));break;default:Qt(o,c,_,z,h,null)}ng(o,y,A,C),Tl(o);return;case"option":for(Z in h)if(h.hasOwnProperty(Z)&&(y=h[Z],y!=null))switch(Z){case"selected":o.selected=y&&typeof y!="function"&&typeof y!="symbol";break;default:Qt(o,c,Z,y,h,null)}return;case"dialog":nn("beforetoggle",o),nn("toggle",o),nn("cancel",o),nn("close",o);break;case"iframe":case"object":nn("load",o);break;case"video":case"audio":for(y=0;y<Cs.length;y++)nn(Cs[y],o);break;case"image":nn("error",o),nn("load",o);break;case"details":nn("toggle",o);break;case"embed":case"source":case"link":nn("error",o),nn("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in h)if(h.hasOwnProperty(de)&&(y=h[de],y!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(Ce(137,c));default:Qt(o,c,de,y,h,null)}return;default:if(ka(c)){for(be in h)h.hasOwnProperty(be)&&(y=h[be],y!==void 0&&ye(o,c,be,y,h,void 0));return}}for(z in h)h.hasOwnProperty(z)&&(y=h[z],y!=null&&Qt(o,c,z,y,h,null))}function xv(o,c,h,y){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var A=null,C=null,_=null,z=null,Z=null,de=null,be=null;for(me in h){var Ie=h[me];if(h.hasOwnProperty(me)&&Ie!=null)switch(me){case"checked":break;case"value":break;case"defaultValue":Z=Ie;default:y.hasOwnProperty(me)||Qt(o,c,me,null,y,Ie)}}for(var pe in y){var me=y[pe];if(Ie=h[pe],y.hasOwnProperty(pe)&&(me!=null||Ie!=null))switch(pe){case"type":C=me;break;case"name":A=me;break;case"checked":de=me;break;case"defaultChecked":be=me;break;case"value":_=me;break;case"defaultValue":z=me;break;case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(Ce(137,c));break;default:me!==Ie&&Qt(o,c,pe,me,y,Ie)}}$s(o,_,z,Z,de,be,C,A);return;case"select":me=_=z=pe=null;for(C in h)if(Z=h[C],h.hasOwnProperty(C)&&Z!=null)switch(C){case"value":break;case"multiple":me=Z;default:y.hasOwnProperty(C)||Qt(o,c,C,null,y,Z)}for(A in y)if(C=y[A],Z=h[A],y.hasOwnProperty(A)&&(C!=null||Z!=null))switch(A){case"value":pe=C;break;case"defaultValue":z=C;break;case"multiple":_=C;default:C!==Z&&Qt(o,c,A,C,y,Z)}c=z,h=_,y=me,pe!=null?Jc(o,!!h,pe,!1):!!y!=!!h&&(c!=null?Jc(o,!!h,c,!0):Jc(o,!!h,h?[]:"",!1));return;case"textarea":me=pe=null;for(z in h)if(A=h[z],h.hasOwnProperty(z)&&A!=null&&!y.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:Qt(o,c,z,null,y,A)}for(_ in y)if(A=y[_],C=h[_],y.hasOwnProperty(_)&&(A!=null||C!=null))switch(_){case"value":pe=A;break;case"defaultValue":me=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(Ce(91));break;default:A!==C&&Qt(o,c,_,A,y,C)}J0(o,pe,me);return;case"option":for(var bt in h)if(pe=h[bt],h.hasOwnProperty(bt)&&pe!=null&&!y.hasOwnProperty(bt))switch(bt){case"selected":o.selected=!1;break;default:Qt(o,c,bt,null,y,pe)}for(Z in y)if(pe=y[Z],me=h[Z],y.hasOwnProperty(Z)&&pe!==me&&(pe!=null||me!=null))switch(Z){case"selected":o.selected=pe&&typeof pe!="function"&&typeof pe!="symbol";break;default:Qt(o,c,Z,pe,y,me)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var te in h)pe=h[te],h.hasOwnProperty(te)&&pe!=null&&!y.hasOwnProperty(te)&&Qt(o,c,te,null,y,pe);for(de in y)if(pe=y[de],me=h[de],y.hasOwnProperty(de)&&pe!==me&&(pe!=null||me!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(Ce(137,c));break;default:Qt(o,c,de,pe,y,me)}return;default:if(ka(c)){for(var Ln in h)pe=h[Ln],h.hasOwnProperty(Ln)&&pe!==void 0&&!y.hasOwnProperty(Ln)&&ye(o,c,Ln,void 0,y,pe);for(be in y)pe=y[be],me=h[be],!y.hasOwnProperty(be)||pe===me||pe===void 0&&me===void 0||ye(o,c,be,pe,y,me);return}}for(var se in h)pe=h[se],h.hasOwnProperty(se)&&pe!=null&&!y.hasOwnProperty(se)&&Qt(o,c,se,null,y,pe);for(Ie in y)pe=y[Ie],me=h[Ie],!y.hasOwnProperty(Ie)||pe===me||pe==null&&me==null||Qt(o,c,Ie,pe,y,me)}var lr=null,bs=null;function Qa(o){return o.nodeType===9?o:o.ownerDocument}function Pl(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Rc(o,c){if(o===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&c==="foreignObject"?0:o}function Rs(o,c){return o==="textarea"||o==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var jf=null;function Dc(){var o=window.event;return o&&o.type==="popstate"?o===jf?!1:(jf=o,!0):(jf=null,!1)}var th=typeof setTimeout=="function"?setTimeout:void 0,t0=typeof clearTimeout=="function"?clearTimeout:void 0,gp=typeof Promise=="function"?Promise:void 0,mp=typeof queueMicrotask=="function"?queueMicrotask:typeof gp<"u"?function(o){return gp.resolve(null).then(o).catch(Qo)}:th;function Qo(o){setTimeout(function(){throw o})}function Vi(o){return o==="head"}function n0(o,c){var h=c,y=0,A=0;do{var C=h.nextSibling;if(o.removeChild(h),C&&C.nodeType===8)if(h=C.data,h==="/$"){if(0<y&&8>y){h=y;var _=o.ownerDocument;if(h&1&&Hu(_.documentElement),h&2&&Hu(_.body),h&4)for(h=_.head,Hu(h),_=h.firstChild;_;){var z=_.nextSibling,Z=_.nodeName;_[G]||Z==="SCRIPT"||Z==="STYLE"||Z==="LINK"&&_.rel.toLowerCase()==="stylesheet"||h.removeChild(_),_=z}}if(A===0){o.removeChild(C),tl(c);return}A--}else h==="$"||h==="$?"||h==="$!"?A++:y=h.charCodeAt(0)-48;else y=0;h=C}while(h);tl(c)}function Ic(o){var c=o.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var h=c;switch(c=c.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":Ic(h),Zs(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}o.removeChild(h)}}function zf(o,c,h,y){for(;o.nodeType===1;){var A=h;if(o.nodeName.toLowerCase()!==c.toLowerCase()){if(!y&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(y){if(!o[G])switch(c){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(C=o.getAttribute("rel"),C==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(C!==A.rel||o.getAttribute("href")!==(A.href==null||A.href===""?null:A.href)||o.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin)||o.getAttribute("title")!==(A.title==null?null:A.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(C=o.getAttribute("src"),(C!==(A.src==null?null:A.src)||o.getAttribute("type")!==(A.type==null?null:A.type)||o.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin))&&C&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(c==="input"&&o.type==="hidden"){var C=A.name==null?null:""+A.name;if(A.type==="hidden"&&o.getAttribute("name")===C)return o}else return o;if(o=Hl(o.nextSibling),o===null)break}return null}function Ym(o,c,h){if(c==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!h||(o=Hl(o.nextSibling),o===null))return null;return o}function nh(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState==="complete"}function hT(o,c){var h=o.ownerDocument;if(o.data!=="$?"||h.readyState==="complete")c();else{var y=function(){c(),h.removeEventListener("DOMContentLoaded",y)};h.addEventListener("DOMContentLoaded",y),o._reactRetry=y}}function Hl(o){for(;o!=null;o=o.nextSibling){var c=o.nodeType;if(c===1||c===3)break;if(c===8){if(c=o.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return o}var Bf=null;function ba(o){o=o.previousSibling;for(var c=0;o;){if(o.nodeType===8){var h=o.data;if(h==="$"||h==="$!"||h==="$?"){if(c===0)return o;c--}else h==="/$"&&c++}o=o.previousSibling}return null}function it(o,c,h){switch(c=Qa(h),o){case"html":if(o=c.documentElement,!o)throw Error(Ce(452));return o;case"head":if(o=c.head,!o)throw Error(Ce(453));return o;case"body":if(o=c.body,!o)throw Error(Ce(454));return o;default:throw Error(Ce(451))}}function Hu(o){for(var c=o.attributes;c.length;)o.removeAttributeNode(c[0]);Zs(o)}var er=new Map,Za=new Set;function Xm(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Zo=Re.d;Re.d={f:Lc,r:i0,D:Jo,C:ih,L:Pf,m:$r,X:Hf,S:Gu,M:r0};function Lc(){var o=Zo.f(),c=If();return o||c}function i0(o){var c=Js(o);c!==null&&c.tag===5&&c.type==="form"?jd(c):Zo.r(o)}var ki=typeof document>"u"?null:document;function Gl(o,c,h){var y=ki;if(y&&typeof c=="string"&&c){var A=Tn(c);A='link[rel="'+o+'"][href="'+A+'"]',typeof h=="string"&&(A+='[crossorigin="'+h+'"]'),Za.has(A)||(Za.add(A),o={rel:o,crossOrigin:h,href:c},y.querySelector(A)===null&&(c=y.createElement("link"),Pt(c,"link",o),Xi(c),y.head.appendChild(c)))}}function Jo(o){Zo.D(o),Gl("dns-prefetch",o,null)}function ih(o,c){Zo.C(o,c),Gl("preconnect",o,c)}function Pf(o,c,h){Zo.L(o,c,h);var y=ki;if(y&&o&&c){var A='link[rel="preload"][as="'+Tn(c)+'"]';c==="image"&&h&&h.imageSrcSet?(A+='[imagesrcset="'+Tn(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(A+='[imagesizes="'+Tn(h.imageSizes)+'"]')):A+='[href="'+Tn(o)+'"]';var C=A;switch(c){case"style":C=ea(o);break;case"script":C=Wo(o)}er.has(C)||(o=Fn({rel:"preload",href:c==="image"&&h&&h.imageSrcSet?void 0:o,as:c},h),er.set(C,o),y.querySelector(A)!==null||c==="style"&&y.querySelector(Ds(C))||c==="script"&&y.querySelector(rh(C))||(c=y.createElement("link"),Pt(c,"link",o),Xi(c),y.head.appendChild(c)))}}function $r(o,c){Zo.m(o,c);var h=ki;if(h&&o){var y=c&&typeof c.as=="string"?c.as:"script",A='link[rel="modulepreload"][as="'+Tn(y)+'"][href="'+Tn(o)+'"]',C=A;switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=Wo(o)}if(!er.has(C)&&(o=Fn({rel:"modulepreload",href:o},c),er.set(C,o),h.querySelector(A)===null)){switch(y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(rh(C)))return}y=h.createElement("link"),Pt(y,"link",o),Xi(y),h.head.appendChild(y)}}}function Gu(o,c,h){Zo.S(o,c,h);var y=ki;if(y&&o){var A=bo(y).hoistableStyles,C=ea(o);c=c||"default";var _=A.get(C);if(!_){var z={loading:0,preload:null};if(_=y.querySelector(Ds(C)))z.loading=5;else{o=Fn({rel:"stylesheet",href:o,"data-precedence":c},h),(h=er.get(C))&&Is(o,h);var Z=_=y.createElement("link");Xi(Z),Pt(Z,"link",o),Z._p=new Promise(function(de,be){Z.onload=de,Z.onerror=be}),Z.addEventListener("load",function(){z.loading|=1}),Z.addEventListener("error",function(){z.loading|=2}),z.loading|=4,Fm(_,c,y)}_={type:"stylesheet",instance:_,count:1,state:z},A.set(C,_)}}}function Hf(o,c){Zo.X(o,c);var h=ki;if(h&&o){var y=bo(h).hoistableScripts,A=Wo(o),C=y.get(A);C||(C=h.querySelector(rh(A)),C||(o=Fn({src:o,async:!0},c),(c=er.get(A))&&vp(o,c),C=h.createElement("script"),Xi(C),Pt(C,"link",o),h.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},y.set(A,C))}}function r0(o,c){Zo.M(o,c);var h=ki;if(h&&o){var y=bo(h).hoistableScripts,A=Wo(o),C=y.get(A);C||(C=h.querySelector(rh(A)),C||(o=Fn({src:o,async:!0,type:"module"},c),(c=er.get(A))&&vp(o,c),C=h.createElement("script"),Xi(C),Pt(C,"link",o),h.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},y.set(A,C))}}function a0(o,c,h,y){var A=(A=Ot.current)?Xm(A):null;if(!A)throw Error(Ce(446));switch(o){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(c=ea(h.href),h=bo(A).hoistableStyles,y=h.get(c),y||(y={type:"style",instance:null,count:0,state:null},h.set(c,y)),y):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){o=ea(h.href);var C=bo(A).hoistableStyles,_=C.get(o);if(_||(A=A.ownerDocument||A,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},C.set(o,_),(C=A.querySelector(Ds(o)))&&!C._p&&(_.instance=C,_.state.loading=5),er.has(o)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},er.set(o,h),C||wv(A,o,h,_.state))),c&&y===null)throw Error(Ce(528,""));return _}if(c&&y!==null)throw Error(Ce(529,""));return null;case"script":return c=h.async,h=h.src,typeof h=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=Wo(h),h=bo(A).hoistableScripts,y=h.get(c),y||(y={type:"script",instance:null,count:0,state:null},h.set(c,y)),y):{type:"void",instance:null,count:0,state:null};default:throw Error(Ce(444,o))}}function ea(o){return'href="'+Tn(o)+'"'}function Ds(o){return'link[rel="stylesheet"]['+o+"]"}function yp(o){return Fn({},o,{"data-precedence":o.precedence,precedence:null})}function wv(o,c,h,y){o.querySelector('link[rel="preload"][as="style"]['+c+"]")?y.loading=1:(c=o.createElement("link"),y.preload=c,c.addEventListener("load",function(){return y.loading|=1}),c.addEventListener("error",function(){return y.loading|=2}),Pt(c,"link",h),Xi(c),o.head.appendChild(c))}function Wo(o){return'[src="'+Tn(o)+'"]'}function rh(o){return"script[async]"+o}function iS(o,c,h){if(c.count++,c.instance===null)switch(c.type){case"style":var y=o.querySelector('style[data-href~="'+Tn(h.href)+'"]');if(y)return c.instance=y,Xi(y),y;var A=Fn({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return y=(o.ownerDocument||o).createElement("style"),Xi(y),Pt(y,"style",A),Fm(y,h.precedence,o),c.instance=y;case"stylesheet":A=ea(h.href);var C=o.querySelector(Ds(A));if(C)return c.state.loading|=4,c.instance=C,Xi(C),C;y=yp(h),(A=er.get(A))&&Is(y,A),C=(o.ownerDocument||o).createElement("link"),Xi(C);var _=C;return _._p=new Promise(function(z,Z){_.onload=z,_.onerror=Z}),Pt(C,"link",y),c.state.loading|=4,Fm(C,h.precedence,o),c.instance=C;case"script":return C=Wo(h.src),(A=o.querySelector(rh(C)))?(c.instance=A,Xi(A),A):(y=h,(A=er.get(C))&&(y=Fn({},h),vp(y,A)),o=o.ownerDocument||o,A=o.createElement("script"),Xi(A),Pt(A,"link",y),o.head.appendChild(A),c.instance=A);case"void":return null;default:throw Error(Ce(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(y=c.instance,c.state.loading|=4,Fm(y,h.precedence,o));return c.instance}function Fm(o,c,h){for(var y=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=y.length?y[y.length-1]:null,C=A,_=0;_<y.length;_++){var z=y[_];if(z.dataset.precedence===c)C=z;else if(C!==A)break}C?C.parentNode.insertBefore(o,C.nextSibling):(c=h.nodeType===9?h.head:h,c.insertBefore(o,c.firstChild))}function Is(o,c){o.crossOrigin==null&&(o.crossOrigin=c.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=c.referrerPolicy),o.title==null&&(o.title=c.title)}function vp(o,c){o.crossOrigin==null&&(o.crossOrigin=c.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=c.referrerPolicy),o.integrity==null&&(o.integrity=c.integrity)}var Gf=null;function Km(o,c,h){if(Gf===null){var y=new Map,A=Gf=new Map;A.set(h,y)}else A=Gf,y=A.get(h),y||(y=new Map,A.set(h,y));if(y.has(o))return y;for(y.set(o,null),h=h.getElementsByTagName(o),A=0;A<h.length;A++){var C=h[A];if(!(C[G]||C[_i]||o==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!=="http://www.w3.org/2000/svg"){var _=C.getAttribute(c)||"";_=o+_;var z=y.get(_);z?z.push(C):y.set(_,[C])}}return y}function Cv(o,c,h){o=o.ownerDocument||o,o.head.insertBefore(h,c==="title"?o.querySelector("head > title"):null)}function Qm(o,c,h){if(h===1||c.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return o=c.disabled,typeof c.precedence=="string"&&o==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function Mv(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}var $o=null;function Ls(){}function Sp(o,c,h){if($o===null)throw Error(Ce(475));var y=$o;if(c.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var A=ea(h.href),C=o.querySelector(Ds(A));if(C){o=C._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(y.count++,y=Oc.bind(y),o.then(y,y)),c.state.loading|=4,c.instance=C,Xi(C);return}C=o.ownerDocument||o,h=yp(h),(A=er.get(A))&&Is(h,A),C=C.createElement("link"),Xi(C);var _=C;_._p=new Promise(function(z,Z){_.onload=z,_.onerror=Z}),Pt(C,"link",h),c.instance=C}y.stylesheets===null&&(y.stylesheets=new Map),y.stylesheets.set(c,o),(o=c.state.preload)&&(c.state.loading&3)===0&&(y.count++,c=Oc.bind(y),o.addEventListener("load",c),o.addEventListener("error",c))}}function Vf(){if($o===null)throw Error(Ce(475));var o=$o;return o.stylesheets&&o.count===0&&u0(o,o.stylesheets),0<o.count?function(c){var h=setTimeout(function(){if(o.stylesheets&&u0(o,o.stylesheets),o.unsuspend){var y=o.unsuspend;o.unsuspend=null,y()}},6e4);return o.unsuspend=c,function(){o.unsuspend=null,clearTimeout(h)}}:null}function Oc(){if(this.count--,this.count===0){if(this.stylesheets)u0(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var el=null;function u0(o,c){o.stylesheets=null,o.unsuspend!==null&&(o.count++,el=new Map,c.forEach(Vu,o),el=null,Oc.call(o))}function Vu(o,c){if(!(c.state.loading&4)){var h=el.get(o);if(h)var y=h.get(null);else{h=new Map,el.set(o,h);for(var A=o.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<A.length;C++){var _=A[C];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(h.set(_.dataset.precedence,_),y=_)}y&&h.set(null,y)}A=c.instance,_=A.getAttribute("data-precedence"),C=h.get(_)||y,C===y&&h.set(null,A),h.set(_,A),this.count++,y=Oc.bind(this),A.addEventListener("load",y),A.addEventListener("error",y),C?C.parentNode.insertBefore(A,C.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(A,o.firstChild)),c.state.loading|=4}}var mu={$$typeof:rr,Provider:null,Consumer:null,_currentValue:ze,_currentValue2:ze,_threadCount:0};function bv(o,c,h,y,A,C,_,z){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Mo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mo(0),this.hiddenUpdates=Mo(null),this.identifierPrefix=y,this.onUncaughtError=A,this.onCaughtError=C,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function Zm(o,c,h,y,A,C,_,z,Z,de,be,Ie){return o=new bv(o,c,h,_,z,Z,de,Ie),c=1,C===!0&&(c|=24),C=Tr(3,null,null,c),o.current=C,C.stateNode=o,c=zh(),c.refCount++,o.pooledCache=c,c.refCount++,C.memoizedState={element:y,isDehydrated:h,cache:c},yg(C),o}function Rv(o){return o?(o=xd,o):xd}function sr(o,c,h,y,A,C){A=Rv(A),y.context===null?y.context=A:y.pendingContext=A,y=cu(c),y.payload={element:h},C=C===void 0?null:C,C!==null&&(y.callback=C),h=Ll(o,y,c),h!==null&&(Bu(h,o,c),hs(h,o,c))}function Jm(o,c){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var h=o.retryLane;o.retryLane=h!==0&&h<c?h:c}}function o0(o,c){Jm(o,c),(o=o.alternate)&&Jm(o,c)}function cr(o){if(o.tag===13){var c=Dr(o,67108864);c!==null&&Bu(c,o,67108864),o0(o,67108864)}}var qi=!0;function Tp(o,c,h,y){var A=re.T;re.T=null;var C=Re.p;try{Re.p=2,Wm(o,c,h,y)}finally{Re.p=C,re.T=A}}function rS(o,c,h,y){var A=re.T;re.T=null;var C=Re.p;try{Re.p=8,Wm(o,c,h,y)}finally{Re.p=C,re.T=A}}function Wm(o,c,h,y){if(qi){var A=Vl(y);if(A===null)Ko(o,c,y,$m,h),ah(o,y);else if(uh(A,o,c,h,y))y.stopPropagation();else if(ah(o,y),c&4&&-1<aS.indexOf(o)){for(;A!==null;){var C=Js(A);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var _=un(C.pendingLanes);if(_!==0){var z=C;for(z.pendingLanes|=2,z.entangledLanes|=2;_;){var Z=1<<31-Tt(_);z.entanglements[1]|=Z,_&=~Z}Ka(C),(Un&6)===0&&(qg=Te()+500,Zg(0))}}break;case 13:z=Dr(C,2),z!==null&&Bu(z,C,2),If(),o0(C,2)}if(C=Vl(y),C===null&&Ko(o,c,y,$m,h),C===A)break;A=C}A!==null&&y.stopPropagation()}else Ko(o,c,y,null,h)}}function Vl(o){return o=ig(o),Dv(o)}var $m=null;function Dv(o){if($m=null,o=Xr(o),o!==null){var c=pr(o);if(c===null)o=null;else{var h=c.tag;if(h===13){if(o=la(c),o!==null)return o;o=null}else if(h===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;o=null}else c!==o&&(o=null)}}return $m=o,null}function Iv(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ah()){case Kp:return 2;case _y:return 8;case xu:case st:return 32;case xo:return 268435456;default:return 32}default:return 32}}var qf=!1,Os=null,Uc=null,ql=null,l0=new Map,s0=new Map,Yf=[],aS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function ah(o,c){switch(o){case"focusin":case"focusout":Os=null;break;case"dragenter":case"dragleave":Uc=null;break;case"mouseover":case"mouseout":ql=null;break;case"pointerover":case"pointerout":l0.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":s0.delete(c.pointerId)}}function kc(o,c,h,y,A,C){return o===null||o.nativeEvent!==C?(o={blockedOn:c,domEventName:h,eventSystemFlags:y,nativeEvent:C,targetContainers:[A]},c!==null&&(c=Js(c),c!==null&&cr(c)),o):(o.eventSystemFlags|=y,c=o.targetContainers,A!==null&&c.indexOf(A)===-1&&c.push(A),o)}function uh(o,c,h,y,A){switch(c){case"focusin":return Os=kc(Os,o,c,h,y,A),!0;case"dragenter":return Uc=kc(Uc,o,c,h,y,A),!0;case"mouseover":return ql=kc(ql,o,c,h,y,A),!0;case"pointerover":var C=A.pointerId;return l0.set(C,kc(l0.get(C)||null,o,c,h,y,A)),!0;case"gotpointercapture":return C=A.pointerId,s0.set(C,kc(s0.get(C)||null,o,c,h,y,A)),!0}return!1}function Lv(o){var c=Xr(o.target);if(c!==null){var h=pr(c);if(h!==null){if(c=h.tag,c===13){if(c=la(h),c!==null){o.blockedOn=c,X0(o.priority,function(){if(h.tag===13){var y=Nr();y=vl(y);var A=Dr(h,y);A!==null&&Bu(A,h,y),o0(h,y)}});return}}else if(c===3&&h.stateNode.current.memoizedState.isDehydrated){o.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}o.blockedOn=null}function c0(o){if(o.blockedOn!==null)return!1;for(var c=o.targetContainers;0<c.length;){var h=Vl(o.nativeEvent);if(h===null){h=o.nativeEvent;var y=new h.constructor(h.type,h);Fi=y,h.target.dispatchEvent(y),Fi=null}else return c=Js(h),c!==null&&cr(c),o.blockedOn=h,!1;c.shift()}return!0}function f0(o,c,h){c0(o)&&h.delete(c)}function oh(){qf=!1,Os!==null&&c0(Os)&&(Os=null),Uc!==null&&c0(Uc)&&(Uc=null),ql!==null&&c0(ql)&&(ql=null),l0.forEach(f0),s0.forEach(f0)}function ey(o,c){o.blockedOn===c&&(o.blockedOn=null,qf||(qf=!0,He.unstable_scheduleCallback(He.unstable_NormalPriority,oh)))}var Us=null;function Ov(o){Us!==o&&(Us=o,He.unstable_scheduleCallback(He.unstable_NormalPriority,function(){Us===o&&(Us=null);for(var c=0;c<o.length;c+=3){var h=o[c],y=o[c+1],A=o[c+2];if(typeof y!="function"){if(Dv(y||h)===null)continue;break}var C=Js(h);C!==null&&(o.splice(c,3),c-=3,Dg(C,{pending:!0,data:A,method:h.method,action:y},y,A))}}))}function tl(o){function c(Z){return ey(Z,o)}Os!==null&&ey(Os,o),Uc!==null&&ey(Uc,o),ql!==null&&ey(ql,o),l0.forEach(c),s0.forEach(c);for(var h=0;h<Yf.length;h++){var y=Yf[h];y.blockedOn===o&&(y.blockedOn=null)}for(;0<Yf.length&&(h=Yf[0],h.blockedOn===null);)Lv(h),h.blockedOn===null&&Yf.shift();if(h=(o.ownerDocument||o).$$reactFormReplay,h!=null)for(y=0;y<h.length;y+=3){var A=h[y],C=h[y+1],_=A[ji]||null;if(typeof C=="function")_||Ov(h);else if(_){var z=null;if(C&&C.hasAttribute("formAction")){if(A=C,_=C[ji]||null)z=_.formAction;else if(Dv(A)!==null)continue}else z=_.action;typeof z=="function"?h[y+1]=z:(h.splice(y,3),y-=3),Ov(h)}}}function ty(o){this._internalRoot=o}lh.prototype.render=ty.prototype.render=function(o){var c=this._internalRoot;if(c===null)throw Error(Ce(409));var h=c.current,y=Nr();sr(h,y,o,c,null,null)},lh.prototype.unmount=ty.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var c=o.containerInfo;sr(o.current,2,null,o,null,null),If(),c[Yr]=null}};function lh(o){this._internalRoot=o}lh.prototype.unstable_scheduleHydration=function(o){if(o){var c=gd();o={blockedOn:null,target:o,priority:c};for(var h=0;h<Yf.length&&c!==0&&c<Yf[h].priority;h++);Yf.splice(h,0,o),h===0&&Lv(o)}};var Ep=Xn.version;if(Ep!=="19.1.0")throw Error(Ce(527,Ep,"19.1.0"));Re.findDOMNode=function(o){var c=o._reactInternals;if(c===void 0)throw typeof o.render=="function"?Error(Ce(188)):(o=Object.keys(o).join(","),Error(Ce(268,o)));return o=et(c),o=o!==null?Ni(o):null,o=o===null?null:o.stateNode,o};var ta={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:re,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var d0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!d0.isDisabled&&d0.supportsFiber)try{Qp=d0.inject(ta),Ua=d0}catch{}}return PE.createRoot=function(o,c){if(!oe(o))throw Error(Ce(299));var h=!1,y="",A=qo,C=Tf,_=Jh,z=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onUncaughtError!==void 0&&(A=c.onUncaughtError),c.onCaughtError!==void 0&&(C=c.onCaughtError),c.onRecoverableError!==void 0&&(_=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(z=c.unstable_transitionCallbacks)),c=Zm(o,1,!1,null,null,h,y,A,C,_,z,null),o[Yr]=c.current,Tv(o),new ty(c)},PE.hydrateRoot=function(o,c,h){if(!oe(o))throw Error(Ce(299));var y=!1,A="",C=qo,_=Tf,z=Jh,Z=null,de=null;return h!=null&&(h.unstable_strictMode===!0&&(y=!0),h.identifierPrefix!==void 0&&(A=h.identifierPrefix),h.onUncaughtError!==void 0&&(C=h.onUncaughtError),h.onCaughtError!==void 0&&(_=h.onCaughtError),h.onRecoverableError!==void 0&&(z=h.onRecoverableError),h.unstable_transitionCallbacks!==void 0&&(Z=h.unstable_transitionCallbacks),h.formState!==void 0&&(de=h.formState)),c=Zm(o,1,!0,c,h??null,y,A,C,_,z,Z,de),c.context=Rv(null),h=c.current,y=Nr(),y=vl(y),A=cu(y),A.callback=null,Ll(h,A,y),h=y,c.current.lanes=h,pd(c,h),Ka(c),o[Yr]=c.current,Tv(o),new lh(c)},PE.version="19.1.0",PE}var HE={};/**
169
- * @license React
170
- * react-dom-client.development.js
171
- *
172
- * Copyright (c) Meta Platforms, Inc. and affiliates.
173
- *
174
- * This source code is licensed under the MIT license found in the
175
- * LICENSE file in the root directory of this source tree.
176
- */var ub;function ZI(){return ub||(ub=1,process.env.NODE_ENV!=="production"&&function(){function He(r,u){for(r=r.memoizedState;r!==null&&0<u;)r=r.next,u--;return r}function Xn(r,u,s,p){if(s>=u.length)return p;var v=u[s],E=Qt(r)?r.slice():cn({},r);return E[v]=Xn(r[v],u,s+1,p),E}function Hn(r,u,s){if(u.length!==s.length)console.warn("copyWithRename() expects paths of the same length");else{for(var p=0;p<s.length-1;p++)if(u[p]!==s[p]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return Ce(r,u,s,0)}}function Ce(r,u,s,p){var v=u[p],E=Qt(r)?r.slice():cn({},r);return p+1===u.length?(E[s[p]]=E[v],Qt(E)?E.splice(v,1):delete E[v]):E[v]=Ce(r[v],u,s,p+1),E}function oe(r,u,s){var p=u[s],v=Qt(r)?r.slice():cn({},r);return s+1===u.length?(Qt(v)?v.splice(p,1):delete v[p],v):(v[p]=oe(r[p],u,s+1),v)}function pr(){return!1}function la(){return null}function w(){}function et(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function Ni(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function Fn(){}function Nn(r){var u=[];return r.forEach(function(s){u.push(s)}),u.sort().join(", ")}function Je(r,u,s,p){return new ic(r,u,s,p)}function Yi(r,u){r.context===Kf&&(ri(r.current,2,u,r,null,null),Ef())}function b(r,u){if(nl!==null){var s=u.staleFamilies;u=u.updatedFamilies,qd(),vd(r.current,u,s),Ef()}}function Ue(r){nl=r}function Ii(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function ni(r){var u=r,s=r;if(r.alternate)for(;u.return;)u=u.return;else{r=u;do u=r,(u.flags&4098)!==0&&(s=u.return),r=u.return;while(r)}return u.tag===3?s:null}function Eu(r){if(r.tag===13){var u=r.memoizedState;if(u===null&&(r=r.alternate,r!==null&&(u=r.memoizedState)),u!==null)return u.dehydrated}return null}function rr(r){if(ni(r)!==r)throw Error("Unable to find node on an unmounted component.")}function qr(r){var u=r.alternate;if(!u){if(u=ni(r),u===null)throw Error("Unable to find node on an unmounted component.");return u!==r?null:r}for(var s=r,p=u;;){var v=s.return;if(v===null)break;var E=v.alternate;if(E===null){if(p=v.return,p!==null){s=p;continue}break}if(v.child===E.child){for(E=v.child;E;){if(E===s)return rr(v),r;if(E===p)return rr(v),u;E=E.sibling}throw Error("Unable to find node on an unmounted component.")}if(s.return!==p.return)s=v,p=E;else{for(var D=!1,k=v.child;k;){if(k===s){D=!0,s=v,p=E;break}if(k===p){D=!0,p=v,s=E;break}k=k.sibling}if(!D){for(k=E.child;k;){if(k===s){D=!0,s=E,p=v;break}if(k===p){D=!0,p=E,s=v;break}k=k.sibling}if(!D)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(s.alternate!==p)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(s.tag!==3)throw Error("Unable to find node on an unmounted component.");return s.stateNode.current===s?r:u}function sa(r){var u=r.tag;if(u===5||u===26||u===27||u===6)return r;for(r=r.child;r!==null;){if(u=sa(r),u!==null)return u;r=r.sibling}return null}function Xe(r){return r===null||typeof r!="object"?null:(r=e0&&r[e0]||r["@@iterator"],typeof r=="function"?r:null)}function bn(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===pp?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case nn:return"Fragment";case Nf:return"Profiler";case Mc:return"StrictMode";case hp:return"Suspense";case _f:return"SuspenseList";case Ev:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case Ms:return"Portal";case Ko:return(r.displayName||"Context")+".Provider";case qm:return(r._context.displayName||"Context")+".Consumer";case bc:var u=r.render;return r=r.displayName,r||(r=u.displayName||u.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case $g:return u=r.displayName||null,u!==null?u:bn(r.type)||"Memo";case ho:u=r._payload,r=r._init;try{return bn(r(u))}catch{}}return null}function gr(r){return typeof r.tag=="number"?At(r):typeof r.name=="string"?r.name:null}function At(r){var u=r.type;switch(r.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(u._context.displayName||"Context")+".Consumer";case 10:return(u.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=u.render,r=r.displayName||r.name||"",u.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bn(u);case 8:return u===Mc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;break;case 29:if(u=r._debugInfo,u!=null){for(var s=u.length-1;0<=s;s--)if(typeof u[s].name=="string")return u[s].name}if(r.return!==null)return At(r.return)}return null}function O(r){return{current:r}}function ve(r,u){0>Qa?console.error("Unexpected pop."):(u!==bs[Qa]&&console.error("Unexpected Fiber popped."),r.current=lr[Qa],lr[Qa]=null,bs[Qa]=null,Qa--)}function Le(r,u,s){Qa++,lr[Qa]=r.current,bs[Qa]=s,r.current=u}function _n(r){return r===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),r}function Ge(r,u){Le(Rs,u,r),Le(Rc,r,r),Le(Pl,null,r);var s=u.nodeType;switch(s){case 9:case 11:s=s===9?"#document":"#fragment",u=(u=u.documentElement)&&(u=u.namespaceURI)?ei(u):Sh;break;default:if(s=u.tagName,u=u.namespaceURI)u=ei(u),u=ku(u,s);else switch(s){case"svg":u=_0;break;case"math":u=PS;break;default:u=Sh}}s=s.toLowerCase(),s=J0(null,s),s={context:u,ancestorInfo:s},ve(Pl,r),Le(Pl,s,r)}function je(r){ve(Pl,r),ve(Rc,r),ve(Rs,r)}function re(){return _n(Pl.current)}function Re(r){r.memoizedState!==null&&Le(jf,r,r);var u=_n(Pl.current),s=r.type,p=ku(u.context,s);s=J0(u.ancestorInfo,s),p={context:p,ancestorInfo:s},u!==p&&(Le(Rc,r,r),Le(Pl,p,r))}function ze(r){Rc.current===r&&(ve(Pl,r),ve(Rc,r)),jf.current===r&&(ve(jf,r),x1._currentValue=Hp)}function Nt(r){return typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object"}function jt(r){try{return Jn(r),!1}catch{return!0}}function Jn(r){return""+r}function It(r,u){if(jt(r))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",u,Nt(r)),Jn(r)}function Cn(r,u){if(jt(r))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",u,Nt(r)),Jn(r)}function q(r){if(jt(r))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Nt(r)),Jn(r)}function xt(r){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(u.isDisabled)return!0;if(!u.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Bf=u.inject(r),ba=u}catch(s){console.error("React instrumentation encountered an error: %s.",s)}return!!u.checkDCE}function Ot(r){if(typeof hT=="function"&&Hl(r),ba&&typeof ba.setStrictMode=="function")try{ba.setStrictMode(Bf,r)}catch(u){Hu||(Hu=!0,console.error("React instrumentation encountered an error: %s",u))}}function Au(r){it=r}function pl(){it!==null&&typeof it.markCommitStopped=="function"&&it.markCommitStopped()}function gl(r){it!==null&&typeof it.markComponentRenderStarted=="function"&&it.markComponentRenderStarted(r)}function Qc(){it!==null&&typeof it.markComponentRenderStopped=="function"&&it.markComponentRenderStopped()}function fd(r){it!==null&&typeof it.markRenderStarted=="function"&&it.markRenderStarted(r)}function Ao(){it!==null&&typeof it.markRenderStopped=="function"&&it.markRenderStopped()}function dd(r,u){it!==null&&typeof it.markStateUpdateScheduled=="function"&&it.markStateUpdateScheduled(r,u)}function xe(r){return r>>>=0,r===0?32:31-(Xm(r)/Zo|0)|0}function lT(r){if(r&1)return"SyncHydrationLane";if(r&2)return"Sync";if(r&4)return"InputContinuousHydration";if(r&8)return"InputContinuous";if(r&16)return"DefaultHydration";if(r&32)return"Default";if(r&128)return"TransitionHydration";if(r&4194048)return"Transition";if(r&62914560)return"Retry";if(r&67108864)return"SelectiveHydration";if(r&134217728)return"IdleHydration";if(r&268435456)return"Idle";if(r&536870912)return"Offscreen";if(r&1073741824)return"Deferred"}function hd(r){var u=r&42;if(u!==0)return u;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),r}}function Te(r,u,s){var p=r.pendingLanes;if(p===0)return 0;var v=0,E=r.suspendedLanes,D=r.pingedLanes;r=r.warmLanes;var k=p&134217727;return k!==0?(p=k&~E,p!==0?v=hd(p):(D&=k,D!==0?v=hd(D):s||(s=k&~r,s!==0&&(v=hd(s))))):(k=p&~E,k!==0?v=hd(k):D!==0?v=hd(D):s||(s=p&~r,s!==0&&(v=hd(s)))),v===0?0:u!==0&&u!==v&&(u&E)===0&&(E=v&-v,s=u&-u,E>=s||E===32&&(s&4194048)!==0)?u:v}function Ah(r,u){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&u)===0}function Kp(r,u){switch(r){case 1:case 2:case 4:case 8:case 64:return u+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function _y(){var r=Lc;return Lc<<=1,(Lc&4194048)===0&&(Lc=256),r}function xu(){var r=i0;return i0<<=1,(i0&62914560)===0&&(i0=4194304),r}function st(r){for(var u=[],s=0;31>s;s++)u.push(r);return u}function xo(r,u){r.pendingLanes|=u,u!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function sT(r,u,s,p,v,E){var D=r.pendingLanes;r.pendingLanes=s,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=s,r.entangledLanes&=s,r.errorRecoveryDisabledLanes&=s,r.shellSuspendCounter=0;var k=r.entanglements,H=r.expirationTimes,X=r.hiddenUpdates;for(s=D&~s;0<s;){var ge=31-Za(s),Ae=1<<ge;k[ge]=0,H[ge]=-1;var he=X[ge];if(he!==null)for(X[ge]=null,ge=0;ge<he.length;ge++){var we=he[ge];we!==null&&(we.lane&=-536870913)}s&=~Ae}p!==0&&cT(r,p,0),E!==0&&v===0&&r.tag!==0&&(r.suspendedLanes|=E&~(D&~u))}function cT(r,u,s){r.pendingLanes|=u,r.suspendedLanes&=~u;var p=31-Za(u);r.entangledLanes|=u,r.entanglements[p]=r.entanglements[p]|1073741824|s&4194090}function Qp(r,u){var s=r.entangledLanes|=u;for(r=r.entanglements;s;){var p=31-Za(s),v=1<<p;v&u|r[p]&u&&(r[p]|=u),s&=~v}}function Ua(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function wo(r,u,s){if(er)for(r=r.pendingUpdatersLaneMap;0<s;){var p=31-Za(s),v=1<<p;r[p].add(u),s&=~v}}function Tt(r,u){if(er)for(var s=r.pendingUpdatersLaneMap,p=r.memoizedUpdaters;0<u;){var v=31-Za(u);r=1<<v,v=s[v],0<v.size&&(v.forEach(function(E){var D=E.alternate;D!==null&&p.has(D)||p.add(E)}),v.clear()),u&=~r}}function Zp(r){return r&=-r,ki<r?Gl<r?(r&134217727)!==0?Jo:ih:Gl:ki}function P1(){var r=Pt.p;return r!==0?r:(r=window.event,r===void 0?Jo:fp(r.type))}function H1(r,u){var s=Pt.p;try{return Pt.p=r,u()}finally{Pt.p=s}}function ml(r){delete r[$r],delete r[Gu],delete r[r0],delete r[a0],delete r[ea]}function Qs(r){var u=r[$r];if(u)return u;for(var s=r.parentNode;s;){if(u=s[Hf]||s[$r]){if(s=u.alternate,u.child!==null||s!==null&&s.child!==null)for(r=op(r);r!==null;){if(s=r[$r])return s;r=op(r)}return u}r=s,s=r.parentNode}return null}function un(r){if(r=r[$r]||r[Hf]){var u=r.tag;if(u===5||u===6||u===13||u===26||u===27||u===3)return r}return null}function yl(r){var u=r.tag;if(u===5||u===26||u===27||u===6)return r.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Qu(r){var u=r[Ds];return u||(u=r[Ds]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function mr(r){r[yp]=!0}function wu(r,u){Co(r,u),Co(r+"Capture",u)}function Co(r,u){Wo[r]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),Wo[r]=u;var s=r.toLowerCase();for(rh[s]=r,r==="onDoubleClick"&&(rh.ondblclick=r),r=0;r<u.length;r++)wv.add(u[r])}function Mo(r,u){iS[u.type]||u.onChange||u.onInput||u.readOnly||u.disabled||u.value==null||console.error(r==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),u.onChange||u.readOnly||u.disabled||u.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function pd(r){return Dc.call(vp,r)?!0:Dc.call(Is,r)?!1:Fm.test(r)?vp[r]=!0:(Is[r]=!0,console.error("Invalid attribute name: `%s`",r),!1)}function jy(r,u,s){if(pd(u)){if(!r.hasAttribute(u)){switch(typeof s){case"symbol":case"object":return s;case"function":return s;case"boolean":if(s===!1)return s}return s===void 0?void 0:null}return r=r.getAttribute(u),r===""&&s===!0?!0:(It(s,u),r===""+s?s:r)}}function Jp(r,u,s){if(pd(u))if(s===null)r.removeAttribute(u);else{switch(typeof s){case"undefined":case"function":case"symbol":r.removeAttribute(u);return;case"boolean":var p=u.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){r.removeAttribute(u);return}}It(s,u),r.setAttribute(u,""+s)}}function Wp(r,u,s){if(s===null)r.removeAttribute(u);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(u);return}It(s,u),r.setAttribute(u,""+s)}}function vl(r,u,s,p){if(p===null)r.removeAttribute(s);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}It(p,s),r.setAttributeNS(u,s,""+p)}}function Y0(){}function gd(){if(Gf===0){Km=console.log,Cv=console.info,Qm=console.warn,Mv=console.error,$o=console.group,Ls=console.groupCollapsed,Sp=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Y0,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}Gf++}function X0(){if(Gf--,Gf===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:cn({},r,{value:Km}),info:cn({},r,{value:Cv}),warn:cn({},r,{value:Qm}),error:cn({},r,{value:Mv}),group:cn({},r,{value:$o}),groupCollapsed:cn({},r,{value:Ls}),groupEnd:cn({},r,{value:Sp})})}0>Gf&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function yr(r){if(Vf===void 0)try{throw Error()}catch(s){var u=s.stack.trim().match(/\n( *(at )?)/);Vf=u&&u[1]||"",Oc=-1<s.stack.indexOf(`
177
- at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
178
- `+Vf+r+Oc}function _i(r,u){if(!r||el)return"";var s=u0.get(r);if(s!==void 0)return s;el=!0,s=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var p=null;p=ye.H,ye.H=null,gd();try{var v={DetermineComponentFrameRoot:function(){try{if(u){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(yt){var we=yt}Reflect.construct(r,[],he)}else{try{he.call()}catch(yt){we=yt}r.call(he.prototype)}}else{try{throw Error()}catch(yt){we=yt}(he=r())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(yt){if(yt&&we&&typeof yt.stack=="string")return[yt.stack,we.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var D=v.DetermineComponentFrameRoot(),k=D[0],H=D[1];if(k&&H){var X=k.split(`
179
- `),ge=H.split(`
180
- `);for(D=E=0;E<X.length&&!X[E].includes("DetermineComponentFrameRoot");)E++;for(;D<ge.length&&!ge[D].includes("DetermineComponentFrameRoot");)D++;if(E===X.length||D===ge.length)for(E=X.length-1,D=ge.length-1;1<=E&&0<=D&&X[E]!==ge[D];)D--;for(;1<=E&&0<=D;E--,D--)if(X[E]!==ge[D]){if(E!==1||D!==1)do if(E--,D--,0>D||X[E]!==ge[D]){var Ae=`
181
- `+X[E].replace(" at new "," at ");return r.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",r.displayName)),typeof r=="function"&&u0.set(r,Ae),Ae}while(1<=E&&0<=D);break}}}finally{el=!1,ye.H=p,X0(),Error.prepareStackTrace=s}return X=(X=r?r.displayName||r.name:"")?yr(X):"",typeof r=="function"&&u0.set(r,X),X}function ji(r){var u=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,r=r.stack,Error.prepareStackTrace=u,r.startsWith(`Error: react-stack-top-frame
182
- `)&&(r=r.slice(29)),u=r.indexOf(`
183
- `),u!==-1&&(r=r.slice(u+1)),u=r.indexOf("react-stack-bottom-frame"),u!==-1&&(u=r.lastIndexOf(`
184
- `,u)),u!==-1)r=r.slice(0,u);else return"";return r}function Yr(r){switch(r.tag){case 26:case 27:case 5:return yr(r.type);case 16:return yr("Lazy");case 13:return yr("Suspense");case 19:return yr("SuspenseList");case 0:case 15:return _i(r.type,!1);case 11:return _i(r.type.render,!1);case 1:return _i(r.type,!0);case 31:return yr("Activity");default:return""}}function at(r){try{var u="";do{u+=Yr(r);var s=r._debugInfo;if(s)for(var p=s.length-1;0<=p;p--){var v=s[p];if(typeof v.name=="string"){var E=u,D=v.env,k=yr(v.name+(D?" ["+D+"]":""));u=E+k}}r=r.return}while(r);return u}catch(H){return`
185
- Error generating stack: `+H.message+`
186
- `+H.stack}}function zy(r){return(r=r?r.displayName||r.name:"")?yr(r):""}function br(){if(Vu===null)return null;var r=Vu._debugOwner;return r!=null?gr(r):null}function F0(){if(Vu===null)return"";var r=Vu;try{var u="";switch(r.tag===6&&(r=r.return),r.tag){case 26:case 27:case 5:u+=yr(r.type);break;case 13:u+=yr("Suspense");break;case 19:u+=yr("SuspenseList");break;case 31:u+=yr("Activity");break;case 30:case 0:case 15:case 1:r._debugOwner||u!==""||(u+=zy(r.type));break;case 11:r._debugOwner||u!==""||(u+=zy(r.type.render))}for(;r;)if(typeof r.tag=="number"){var s=r;r=s._debugOwner;var p=s._debugStack;r&&p&&(typeof p!="string"&&(s._debugStack=p=ji(p)),p!==""&&(u+=`
187
- `+p))}else if(r.debugStack!=null){var v=r.debugStack;(r=r.owner)&&v&&(u+=`
188
- `+ji(v))}else break;var E=u}catch(D){E=`
189
- Error generating stack: `+D.message+`
190
- `+D.stack}return E}function G(r,u,s,p,v,E,D){var k=Vu;Zs(r);try{return r!==null&&r._debugTask?r._debugTask.run(u.bind(null,s,p,v,E,D)):u(s,p,v,E,D)}finally{Zs(k)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Zs(r){ye.getCurrentStack=r===null?null:F0,mu=!1,Vu=r}function Xr(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return q(r),r;default:return""}}function Js(r){var u=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function md(r){var u=Js(r)?"checked":"value",s=Object.getOwnPropertyDescriptor(r.constructor.prototype,u);q(r[u]);var p=""+r[u];if(!r.hasOwnProperty(u)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var v=s.get,E=s.set;return Object.defineProperty(r,u,{configurable:!0,get:function(){return v.call(this)},set:function(D){q(D),p=""+D,E.call(this,D)}}),Object.defineProperty(r,u,{enumerable:s.enumerable}),{getValue:function(){return p},setValue:function(D){q(D),p=""+D},stopTracking:function(){r._valueTracker=null,delete r[u]}}}}function bo(r){r._valueTracker||(r._valueTracker=md(r))}function Xi(r){if(!r)return!1;var u=r._valueTracker;if(!u)return!0;var s=u.getValue(),p="";return r&&(p=Js(r)?r.checked?"true":"false":r.value),r=p,r!==s?(u.setValue(r),!0):!1}function ts(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function ca(r){return r.replace(bv,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function Ke(r,u){u.checked===void 0||u.defaultChecked===void 0||Rv||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",br()||"A component",u.type),Rv=!0),u.value===void 0||u.defaultValue===void 0||Zm||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",br()||"A component",u.type),Zm=!0)}function fa(r,u,s,p,v,E,D,k){r.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?(It(D,"type"),r.type=D):r.removeAttribute("type"),u!=null?D==="number"?(u===0&&r.value===""||r.value!=u)&&(r.value=""+Xr(u)):r.value!==""+Xr(u)&&(r.value=""+Xr(u)):D!=="submit"&&D!=="reset"||r.removeAttribute("value"),u!=null?Ws(r,D,Xr(u)):s!=null?Ws(r,D,Xr(s)):p!=null&&r.removeAttribute("value"),v==null&&E!=null&&(r.defaultChecked=!!E),v!=null&&(r.checked=v&&typeof v!="function"&&typeof v!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?(It(k,"name"),r.name=""+Xr(k)):r.removeAttribute("name")}function xh(r,u,s,p,v,E,D,k){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(It(E,"type"),r.type=E),u!=null||s!=null){if(!(E!=="submit"&&E!=="reset"||u!=null))return;s=s!=null?""+Xr(s):"",u=u!=null?""+Xr(u):s,k||u===r.value||(r.value=u),r.defaultValue=u}p=p??v,p=typeof p!="function"&&typeof p!="symbol"&&!!p,r.checked=k?r.checked:!!p,r.defaultChecked=!!p,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(It(D,"name"),r.name=D)}function Ws(r,u,s){u==="number"&&ts(r.ownerDocument)===r||r.defaultValue===""+s||(r.defaultValue=""+s)}function Zu(r,u){u.value==null&&(typeof u.children=="object"&&u.children!==null?dp.Children.forEach(u.children,function(s){s==null||typeof s=="string"||typeof s=="number"||typeof s=="bigint"||Jm||(Jm=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):u.dangerouslySetInnerHTML==null||o0||(o0=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),u.selected==null||sr||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),sr=!0)}function Sl(){var r=br();return r?`
191
-
192
- Check the render method of \``+r+"`.":""}function da(r,u,s,p){if(r=r.options,u){u={};for(var v=0;v<s.length;v++)u["$"+s[v]]=!0;for(s=0;s<r.length;s++)v=u.hasOwnProperty("$"+r[s].value),r[s].selected!==v&&(r[s].selected=v),v&&p&&(r[s].defaultSelected=!0)}else{for(s=""+Xr(s),u=null,v=0;v<r.length;v++){if(r[v].value===s){r[v].selected=!0,p&&(r[v].defaultSelected=!0);return}u!==null||r[v].disabled||(u=r[v])}u!==null&&(u.selected=!0)}}function Ju(r,u){for(r=0;r<qi.length;r++){var s=qi[r];if(u[s]!=null){var p=Qt(u[s]);u.multiple&&!p?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,Sl()):!u.multiple&&p&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,Sl())}}u.value===void 0||u.defaultValue===void 0||cr||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),cr=!0)}function Wu(r,u){u.value===void 0||u.defaultValue===void 0||Tp||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",br()||"A component"),Tp=!0),u.children!=null&&u.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function $a(r,u,s){if(u!=null&&(u=""+Xr(u),u!==r.value&&(r.value=u),s==null)){r.defaultValue!==u&&(r.defaultValue=u);return}r.defaultValue=s!=null?""+Xr(s):""}function K0(r,u,s,p){if(u==null){if(p!=null){if(s!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Qt(p)){if(1<p.length)throw Error("<textarea> can only have at most one child.");p=p[0]}s=p}s==null&&(s=""),u=s}s=Xr(u),r.defaultValue=s,p=r.textContent,p===s&&p!==""&&p!==null&&(r.value=p)}function ai(r,u){return r.serverProps===void 0&&r.serverTail.length===0&&r.children.length===1&&3<r.distanceFromLeaf&&r.distanceFromLeaf>15-u?ai(r.children[0],u):r}function vr(r){return" "+" ".repeat(r)}function Fr(r){return"+ "+" ".repeat(r)}function ns(r){return"- "+" ".repeat(r)}function $p(r){switch(r.tag){case 26:case 27:case 5:return r.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return r=r.type,r.displayName||r.name||null;case 11:return r=r.type.render,r.displayName||r.name||null;case 1:return r=r.type,r.displayName||r.name||null;default:return null}}function ha(r,u){return rS.test(r)?(r=JSON.stringify(r),r.length>u-2?8>u?'{"..."}':"{"+r.slice(0,u-7)+'..."}':"{"+r+"}"):r.length>u?5>u?'{"..."}':r.slice(0,u-3)+"...":r}function wh(r,u,s){var p=120-2*s;if(u===null)return Fr(s)+ha(r,p)+`
193
- `;if(typeof u=="string"){for(var v=0;v<u.length&&v<r.length&&u.charCodeAt(v)===r.charCodeAt(v);v++);return v>p-8&&10<v&&(r="..."+r.slice(v-8),u="..."+u.slice(v-8)),Fr(s)+ha(r,p)+`
194
- `+ns(s)+ha(u,p)+`
195
- `}return vr(s)+ha(r,p)+`
196
- `}function Q0(r){return Object.prototype.toString.call(r).replace(/^\[object (.*)\]$/,function(u,s){return s})}function Tl(r,u){switch(typeof r){case"string":return r=JSON.stringify(r),r.length>u?5>u?'"..."':r.slice(0,u-4)+'..."':r;case"object":if(r===null)return"null";if(Qt(r))return"[...]";if(r.$$typeof===kf)return(u=bn(r.type))?"<"+u+">":"<...>";var s=Q0(r);if(s==="Object"){s="",u-=2;for(var p in r)if(r.hasOwnProperty(p)){var v=JSON.stringify(p);if(v!=='"'+p+'"'&&(p=v),u-=p.length-2,v=Tl(r[p],15>u?u:15),u-=v.length,0>u){s+=s===""?"...":", ...";break}s+=(s===""?"":",")+p+":"+v}return"{"+s+"}"}return s;case"function":return(u=r.displayName||r.name)?"function "+u:"function";default:return String(r)}}function eu(r,u){return typeof r!="string"||rS.test(r)?"{"+Tl(r,u-2)+"}":r.length>u-2?5>u?'"..."':'"'+r.slice(0,u-5)+'..."':'"'+r+'"'}function Zc(r,u,s){var p=120-s.length-r.length,v=[],E;for(E in u)if(u.hasOwnProperty(E)&&E!=="children"){var D=eu(u[E],120-s.length-E.length-1);p-=E.length+D.length+2,v.push(E+"="+D)}return v.length===0?s+"<"+r+`>
197
- `:0<p?s+"<"+r+" "+v.join(" ")+`>
198
- `:s+"<"+r+`
199
- `+s+" "+v.join(`
200
- `+s+" ")+`
201
- `+s+`>
202
- `}function Z0(r,u,s){var p="",v=cn({},u),E;for(E in r)if(r.hasOwnProperty(E)){delete v[E];var D=120-2*s-E.length-2,k=Tl(r[E],D);u.hasOwnProperty(E)?(D=Tl(u[E],D),p+=Fr(s)+E+": "+k+`
203
- `,p+=ns(s)+E+": "+D+`
204
- `):p+=Fr(s)+E+": "+k+`
205
- `}for(var H in v)v.hasOwnProperty(H)&&(r=Tl(v[H],120-2*s-H.length-2),p+=ns(s)+H+": "+r+`
206
- `);return p}function Tn(r,u,s,p){var v="",E=new Map;for(X in s)s.hasOwnProperty(X)&&E.set(X.toLowerCase(),X);if(E.size===1&&E.has("children"))v+=Zc(r,u,vr(p));else{for(var D in u)if(u.hasOwnProperty(D)&&D!=="children"){var k=120-2*(p+1)-D.length-1,H=E.get(D.toLowerCase());if(H!==void 0){E.delete(D.toLowerCase());var X=u[D];H=s[H];var ge=eu(X,k);k=eu(H,k),typeof X=="object"&&X!==null&&typeof H=="object"&&H!==null&&Q0(X)==="Object"&&Q0(H)==="Object"&&(2<Object.keys(X).length||2<Object.keys(H).length||-1<ge.indexOf("...")||-1<k.indexOf("..."))?v+=vr(p+1)+D+`={{
207
- `+Z0(X,H,p+2)+vr(p+1)+`}}
208
- `:(v+=Fr(p+1)+D+"="+ge+`
209
- `,v+=ns(p+1)+D+"="+k+`
210
- `)}else v+=vr(p+1)+D+"="+eu(u[D],k)+`
211
- `}E.forEach(function(Ae){if(Ae!=="children"){var he=120-2*(p+1)-Ae.length-1;v+=ns(p+1)+Ae+"="+eu(s[Ae],he)+`
212
- `}}),v=v===""?vr(p)+"<"+r+`>
213
- `:vr(p)+"<"+r+`
214
- `+v+vr(p)+`>
215
- `}return r=s.children,u=u.children,typeof r=="string"||typeof r=="number"||typeof r=="bigint"?(E="",(typeof u=="string"||typeof u=="number"||typeof u=="bigint")&&(E=""+u),v+=wh(E,""+r,p+1)):(typeof u=="string"||typeof u=="number"||typeof u=="bigint")&&(v=r==null?v+wh(""+u,null,p+1):v+wh(""+u,void 0,p+1)),v}function $s(r,u){var s=$p(r);if(s===null){for(s="",r=r.child;r;)s+=$s(r,u),r=r.sibling;return s}return vr(u)+"<"+s+`>
216
- `}function eg(r,u){var s=ai(r,u);if(s!==r&&(r.children.length!==1||r.children[0]!==s))return vr(u)+`...
217
- `+eg(s,u+1);s="";var p=r.fiber._debugInfo;if(p)for(var v=0;v<p.length;v++){var E=p[v].name;typeof E=="string"&&(s+=vr(u)+"<"+E+`>
218
- `,u++)}if(p="",v=r.fiber.pendingProps,r.fiber.tag===6)p=wh(v,r.serverProps,u),u++;else if(E=$p(r.fiber),E!==null)if(r.serverProps===void 0){p=u;var D=120-2*p-E.length-2,k="";for(X in v)if(v.hasOwnProperty(X)&&X!=="children"){var H=eu(v[X],15);if(D-=X.length+H.length+2,0>D){k+=" ...";break}k+=" "+X+"="+H}p=vr(p)+"<"+E+k+`>
219
- `,u++}else r.serverProps===null?(p=Zc(E,v,Fr(u)),u++):typeof r.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(p=Tn(E,v,r.serverProps,u),u++);var X="";for(v=r.fiber.child,E=0;v&&E<r.children.length;)D=r.children[E],D.fiber===v?(X+=eg(D,u),E++):X+=$s(v,u),v=v.sibling;for(v&&0<r.children.length&&(X+=vr(u)+`...
220
- `),v=r.serverTail,r.serverProps===null&&u--,r=0;r<v.length;r++)E=v[r],X=typeof E=="string"?X+(ns(u)+ha(E,120-2*u)+`
221
- `):X+Zc(E.type,E.props,ns(u));return s+p+X}function tg(r){try{return`
222
-
223
- `+eg(r,0)}catch{return""}}function Jc(r,u,s){for(var p=u,v=null,E=0;p;)p===r&&(E=0),v={fiber:p,children:v!==null?[v]:[],serverProps:p===u?s:p===r?null:void 0,serverTail:[],distanceFromLeaf:E},E++,p=p.return;return v!==null?tg(v).replaceAll(/^[+-]/gm,">"):""}function J0(r,u){var s=cn({},r||Iv),p={tag:u};return Vl.indexOf(u)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),$m.indexOf(u)!==-1&&(s.pTagInButtonScope=null),Wm.indexOf(u)!==-1&&u!=="address"&&u!=="div"&&u!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=p,u==="form"&&(s.formTag=p),u==="a"&&(s.aTagInScope=p),u==="button"&&(s.buttonTagInScope=p),u==="nobr"&&(s.nobrTagInScope=p),u==="p"&&(s.pTagInButtonScope=p),u==="li"&&(s.listItemTagAutoclosing=p),(u==="dd"||u==="dt")&&(s.dlItemTagAutoclosing=p),u==="#document"||u==="html"?s.containerTagInScope=null:s.containerTagInScope||(s.containerTagInScope=p),r!==null||u!=="#document"&&u!=="html"&&u!=="body"?s.implicitRootScope===!0&&(s.implicitRootScope=!1):s.implicitRootScope=!0,s}function ng(r,u,s){switch(u){case"select":return r==="hr"||r==="option"||r==="optgroup"||r==="script"||r==="template"||r==="#text";case"optgroup":return r==="option"||r==="#text";case"option":return r==="#text";case"tr":return r==="th"||r==="td"||r==="style"||r==="script"||r==="template";case"tbody":case"thead":case"tfoot":return r==="tr"||r==="style"||r==="script"||r==="template";case"colgroup":return r==="col"||r==="template";case"table":return r==="caption"||r==="colgroup"||r==="tbody"||r==="tfoot"||r==="thead"||r==="style"||r==="script"||r==="template";case"head":return r==="base"||r==="basefont"||r==="bgsound"||r==="link"||r==="meta"||r==="title"||r==="noscript"||r==="noframes"||r==="style"||r==="script"||r==="template";case"html":if(s)break;return r==="head"||r==="body"||r==="frameset";case"frameset":return r==="frame";case"#document":if(!s)return r==="html"}switch(r){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return u!=="h1"&&u!=="h2"&&u!=="h3"&&u!=="h4"&&u!=="h5"&&u!=="h6";case"rp":case"rt":return Dv.indexOf(u)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return u==null;case"head":return s||u===null;case"html":return s&&u==="#document"||u===null;case"body":return s&&(u==="#document"||u==="html")||u===null}return!0}function El(r,u){switch(r){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return u.pTagInButtonScope;case"form":return u.formTag||u.pTagInButtonScope;case"li":return u.listItemTagAutoclosing;case"dd":case"dt":return u.dlItemTagAutoclosing;case"button":return u.buttonTagInScope;case"a":return u.aTagInScope;case"nobr":return u.nobrTagInScope}return null}function Wc(r,u){for(;r;){switch(r.tag){case 5:case 26:case 27:if(r.type===u)return r}r=r.return}return null}function Rn(r,u){u=u||Iv;var s=u.current;if(u=(s=ng(r,s&&s.tag,u.implicitRootScope)?null:s)?null:El(r,u),u=s||u,!u)return!0;var p=u.tag;if(u=String(!!s)+"|"+r+"|"+p,qf[u])return!1;qf[u]=!0;var v=(u=Vu)?Wc(u.return,p):null,E=u!==null&&v!==null?Jc(v,u,null):"",D="<"+r+">";return s?(s="",p==="table"&&r==="tr"&&(s+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
224
- This will cause a hydration error.%s`,D,p,s,E)):console.error(`In HTML, %s cannot be a descendant of <%s>.
225
- This will cause a hydration error.%s`,D,p,E),u&&(r=u.return,v===null||r===null||v===r&&r._debugOwner===u._debugOwner||G(v,function(){console.error(`<%s> cannot contain a nested %s.
226
- See this log for the ancestor stack trace.`,p,D)})),!1}function Ro(r,u,s){if(s||ng("#text",u,!1))return!0;if(s="#text|"+u,qf[s])return!1;qf[s]=!0;var p=(s=Vu)?Wc(s,u):null;return s=s!==null&&p!==null?Jc(p,s,s.tag!==6?{children:null}:null):"",/\S/.test(r)?console.error(`In HTML, text nodes cannot be a child of <%s>.
227
- This will cause a hydration error.%s`,u,s):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
228
- This will cause a hydration error.%s`,u,s),!1}function ka(r,u){if(u){var s=r.firstChild;if(s&&s===r.lastChild&&s.nodeType===3){s.nodeValue=u;return}}r.textContent=u}function Do(r){return r.replace(Yf,function(u,s){return s.toUpperCase()})}function W0(r,u,s){var p=u.indexOf("--")===0;p||(-1<u.indexOf("-")?ah.hasOwnProperty(u)&&ah[u]||(ah[u]=!0,console.error("Unsupported style property %s. Did you mean %s?",u,Do(u.replace(s0,"ms-")))):l0.test(u)?ah.hasOwnProperty(u)&&ah[u]||(ah[u]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",u,u.charAt(0).toUpperCase()+u.slice(1))):!aS.test(s)||kc.hasOwnProperty(s)&&kc[s]||(kc[s]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,u,s.replace(aS,""))),typeof s=="number"&&(isNaN(s)?uh||(uh=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",u)):isFinite(s)||Lv||(Lv=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",u)))),s==null||typeof s=="boolean"||s===""?p?r.setProperty(u,""):u==="float"?r.cssFloat="":r[u]="":p?r.setProperty(u,s):typeof s!="number"||s===0||c0.has(u)?u==="float"?r.cssFloat=s:(Cn(s,u),r[u]=(""+s).trim()):r[u]=s+"px"}function yd(r,u,s){if(u!=null&&typeof u!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(u&&Object.freeze(u),r=r.style,s!=null){if(u){var p={};if(s){for(var v in s)if(s.hasOwnProperty(v)&&!u.hasOwnProperty(v))for(var E=Os[v]||[v],D=0;D<E.length;D++)p[E[D]]=v}for(var k in u)if(u.hasOwnProperty(k)&&(!s||s[k]!==u[k]))for(v=Os[k]||[k],E=0;E<v.length;E++)p[v[E]]=k;k={};for(var H in u)for(v=Os[H]||[H],E=0;E<v.length;E++)k[v[E]]=H;H={};for(var X in p)if(v=p[X],(E=k[X])&&v!==E&&(D=v+","+E,!H[D])){H[D]=!0,D=console;var ge=u[v];D.error.call(D,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",ge==null||typeof ge=="boolean"||ge===""?"Removing":"Updating",v,E)}}for(var Ae in s)!s.hasOwnProperty(Ae)||u!=null&&u.hasOwnProperty(Ae)||(Ae.indexOf("--")===0?r.setProperty(Ae,""):Ae==="float"?r.cssFloat="":r[Ae]="");for(var he in u)X=u[he],u.hasOwnProperty(he)&&s[he]!==X&&W0(r,he,X)}else for(p in u)u.hasOwnProperty(p)&&W0(r,p,u[p])}function Fi(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ig(r){return ey.get(r)||r}function Li(r,u){if(Dc.call(tl,u)&&tl[u])return!0;if(lh.test(u)){if(r="aria-"+u.slice(4).toLowerCase(),r=Ov.hasOwnProperty(r)?r:null,r==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",u),tl[u]=!0;if(u!==r)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",u,r),tl[u]=!0}if(ty.test(u)){if(r=u.toLowerCase(),r=Ov.hasOwnProperty(r)?r:null,r==null)return tl[u]=!0,!1;u!==r&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",u,r),tl[u]=!0)}return!0}function ec(r,u){var s=[],p;for(p in u)Li(r,p)||s.push(p);u=s.map(function(v){return"`"+v+"`"}).join(", "),s.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",u,r):1<s.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",u,r)}function is(r,u,s,p){if(Dc.call(ta,u)&&ta[u])return!0;var v=u.toLowerCase();if(v==="onfocusin"||v==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ta[u]=!0;if(typeof s=="function"&&(r==="form"&&u==="action"||r==="input"&&u==="formAction"||r==="button"&&u==="formAction"))return!0;if(p!=null){if(r=p.possibleRegistrationNames,p.registrationNameDependencies.hasOwnProperty(u))return!0;if(p=r.hasOwnProperty(v)?r[v]:null,p!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",u,p),ta[u]=!0;if(d0.test(u))return console.error("Unknown event handler property `%s`. It will be ignored.",u),ta[u]=!0}else if(d0.test(u))return o.test(u)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",u),ta[u]=!0;if(c.test(u)||h.test(u))return!0;if(v==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ta[u]=!0;if(v==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ta[u]=!0;if(v==="is"&&s!==null&&s!==void 0&&typeof s!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),ta[u]=!0;if(typeof s=="number"&&isNaN(s))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",u),ta[u]=!0;if(Us.hasOwnProperty(v)){if(v=Us[v],v!==u)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",u,v),ta[u]=!0}else if(u!==v)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",u,v),ta[u]=!0;switch(u){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof s){case"boolean":switch(u){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return v=u.toLowerCase().slice(0,5),v==="data-"||v==="aria-"?!0:(s?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,u,u,s,u):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,u,u,s,u,u,u),ta[u]=!0)}case"function":case"symbol":return ta[u]=!0,!1;case"string":if(s==="false"||s==="true"){switch(u){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,u,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',u,s),ta[u]=!0}}return!0}function tu(r,u,s){var p=[],v;for(v in u)is(r,v,u[v],s)||p.push(v);u=p.map(function(E){return"`"+E+"`"}).join(", "),p.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",u,r):1<p.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",u,r)}function Io(r){return y.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function nu(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}function gn(r){var u=un(r);if(u&&(r=u.stateNode)){var s=r[Gu]||null;e:switch(r=u.stateNode,u.type){case"input":if(fa(r,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),u=s.name,s.type==="radio"&&u!=null){for(s=r;s.parentNode;)s=s.parentNode;for(It(u,"name"),s=s.querySelectorAll('input[name="'+ca(""+u)+'"][type="radio"]'),u=0;u<s.length;u++){var p=s[u];if(p!==r&&p.form===r.form){var v=p[Gu]||null;if(!v)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");fa(p,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(u=0;u<s.length;u++)p=s[u],p.form===r.form&&Xi(p)}break e;case"textarea":$a(r,s.value,s.defaultValue);break e;case"select":u=s.value,u!=null&&da(r,!!s.multiple,u,!1)}}}function wi(r,u,s){if(z)return r(u,s);z=!0;try{var p=r(u);return p}finally{if(z=!1,(C!==null||_!==null)&&(Ef(),C&&(u=C,r=_,_=C=null,gn(u),r)))for(u=0;u<r.length;u++)gn(r[u])}}function Na(r,u){var s=r.stateNode;if(s===null)return null;var p=s[Gu]||null;if(p===null)return null;s=p[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(r=r.type,p=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!p;break e;default:r=!1}if(r)return null;if(s&&typeof s!="function")throw Error("Expected `"+u+"` listener to be a function, instead got a value of `"+typeof s+"` type.");return s}function rs(){if(me)return me;var r,u=pe,s=u.length,p,v="value"in Ie?Ie.value:Ie.textContent,E=v.length;for(r=0;r<s&&u[r]===v[r];r++);var D=s-r;for(p=1;p<=D&&u[s-p]===v[E-p];p++);return me=v.slice(r,1<p?1-p:void 0)}function Al(r){var u=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&u===13&&(r=13)):r=u,r===10&&(r=13),32<=r||r===13?r:0}function Ki(){return!0}function rg(){return!1}function lt(r){function u(s,p,v,E,D){this._reactName=s,this._targetInst=v,this.type=p,this.nativeEvent=E,this.target=D,this.currentTarget=null;for(var k in r)r.hasOwnProperty(k)&&(s=r[k],this[k]=s?s(E):E[k]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Ki:rg,this.isPropagationStopped=rg,this}return cn(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ki)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ki)},persist:function(){},isPersistent:Ki}),u}function ui(r){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(r):(r=QA[r])?!!u[r]:!1}function $0(){return ui}function _a(r,u){switch(r){case"keyup":return t4.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==ZE;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rr(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}function tc(r,u){switch(r){case"compositionend":return Rr(u);case"keypress":return u.which!==vT?null:(ST=!0,iy);case"textInput":return r=u.data,r===iy&&ST?null:r;default:return null}}function nc(r,u){if(ry)return r==="compositionend"||!uS&&_a(r,u)?(r=rs(),me=pe=Ie=null,ry=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return yT&&u.locale!=="ko"?null:u.data;default:return null}}function em(r){var u=r&&r.nodeName&&r.nodeName.toLowerCase();return u==="input"?!!TT[r.type]:u==="textarea"}function Wt(r){if(!Z)return!1;r="on"+r;var u=r in document;return u||(u=document.createElement("div"),u.setAttribute(r,"return;"),u=typeof u[r]=="function"),u}function ag(r,u,s,p){C?_?_.push(p):_=[p]:C=p,u=Hg(u,"onChange"),0<u.length&&(s=new te("onChange","change",null,s,p),r.push({event:s,listeners:u}))}function xl(r){Ve(r,0)}function Lo(r){var u=yl(r);if(Xi(u))return r}function ug(r,u){if(r==="change")return u}function og(){Uv&&(Uv.detachEvent("onpropertychange",By),Ap=Uv=null)}function By(r){if(r.propertyName==="value"&&Lo(Ap)){var u=[];ag(u,Ap,r,nu(r)),wi(xl,u)}}function Qi(r,u,s){r==="focusin"?(og(),Uv=u,Ap=s,Uv.attachEvent("onpropertychange",By)):r==="focusout"&&og()}function tm(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Lo(Ap)}function fT(r,u){if(r==="click")return Lo(u)}function Py(r,u){if(r==="input"||r==="change")return Lo(u)}function Ch(r,u){return r===u&&(r!==0||1/r===1/u)||r!==r&&u!==u}function $c(r,u){if(fr(r,u))return!0;if(typeof r!="object"||r===null||typeof u!="object"||u===null)return!1;var s=Object.keys(r),p=Object.keys(u);if(s.length!==p.length)return!1;for(p=0;p<s.length;p++){var v=s[p];if(!Dc.call(u,v)||!fr(r[v],u[v]))return!1}return!0}function Mh(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Ft(r,u){var s=Mh(r);r=0;for(var p;s;){if(s.nodeType===3){if(p=r+s.textContent.length,r<=u&&p>=u)return{node:s,offset:u-r};r=p}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Mh(s)}}function Hy(r,u){return r&&u?r===u?!0:r&&r.nodeType===3?!1:u&&u.nodeType===3?Hy(r,u.parentNode):"contains"in r?r.contains(u):r.compareDocumentPosition?!!(r.compareDocumentPosition(u)&16):!1:!1}function G1(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var u=ts(r.document);u instanceof r.HTMLIFrameElement;){try{var s=typeof u.contentWindow.location.href=="string"}catch{s=!1}if(s)r=u.contentWindow;else break;u=ts(r.document)}return u}function Gy(r){var u=r&&r.nodeName&&r.nodeName.toLowerCase();return u&&(u==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||u==="textarea"||r.contentEditable==="true")}function Vy(r,u,s){var p=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;kv||ay==null||ay!==ts(p)||(p=ay,"selectionStart"in p&&Gy(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),oy&&$c(oy,p)||(oy=p,p=Hg(uy,"onSelect"),0<p.length&&(u=new te("onSelect","select",null,u,s),r.push({event:u,listeners:p}),u.target=ay)))}function wl(r,u){var s={};return s[r.toLowerCase()]=u.toLowerCase(),s["Webkit"+r]="webkit"+u,s["Moz"+r]="moz"+u,s}function Gt(r){if(ly[r])return ly[r];if(!h0[r])return r;var u=h0[r],s;for(s in u)if(u.hasOwnProperty(s)&&s in xp)return ly[r]=u[s];return r}function Cl(r,u){Nv.set(r,u),wu(u,[r])}function $u(r,u){if(typeof r=="object"&&r!==null){var s=lS.get(r);return s!==void 0?s:(u={value:r,source:u,stack:at(u)},lS.set(r,u),u)}return{value:r,source:u,stack:at(u)}}function bh(){for(var r=Ff,u=sS=Ff=0;u<r;){var s=yu[u];yu[u++]=null;var p=yu[u];yu[u++]=null;var v=yu[u];yu[u++]=null;var E=yu[u];if(yu[u++]=null,p!==null&&v!==null){var D=p.pending;D===null?v.next=v:(v.next=D.next,D.next=v),p.pending=v}E!==0&&qy(s,v,E)}}function ef(r,u,s,p){yu[Ff++]=r,yu[Ff++]=u,yu[Ff++]=s,yu[Ff++]=p,sS|=p,r.lanes|=p,r=r.alternate,r!==null&&(r.lanes|=p)}function lg(r,u,s,p){return ef(r,u,s,p),zi(r)}function iu(r,u){return ef(r,null,null,u),zi(r)}function qy(r,u,s){r.lanes|=s;var p=r.alternate;p!==null&&(p.lanes|=s);for(var v=!1,E=r.return;E!==null;)E.childLanes|=s,p=E.alternate,p!==null&&(p.childLanes|=s),E.tag===22&&(r=E.stateNode,r===null||r._visibility&g0||(v=!0)),r=E,E=E.return;return r.tag===3?(E=r.stateNode,v&&u!==null&&(v=31-Za(s),r=E.hiddenUpdates,p=r[v],p===null?r[v]=[u]:p.push(u),u.lane=s|536870912),E):null}function zi(r){if(p1>tE)throw L0=p1=0,by=nE=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");L0>l4&&(L0=0,by=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),r.alternate===null&&(r.flags&4098)!==0&&Yo(r);for(var u=r,s=u.return;s!==null;)u.alternate===null&&(u.flags&4098)!==0&&Yo(r),u=s,s=u.return;return u.tag===3?u.stateNode:null}function eo(r){if(nl===null)return r;var u=nl(r);return u===void 0?r:u.current}function nm(r){if(nl===null)return r;var u=nl(r);return u===void 0?r!=null&&typeof r.render=="function"&&(u=eo(r.render),r.render!==u)?(u={$$typeof:bc,render:u},r.displayName!==void 0&&(u.displayName=r.displayName),u):r:u.current}function im(r,u){if(nl===null)return!1;var s=r.elementType;u=u.type;var p=!1,v=typeof u=="object"&&u!==null?u.$$typeof:null;switch(r.tag){case 1:typeof u=="function"&&(p=!0);break;case 0:(typeof u=="function"||v===ho)&&(p=!0);break;case 11:(v===bc||v===ho)&&(p=!0);break;case 14:case 15:(v===$g||v===ho)&&(p=!0);break;default:return!1}return!!(p&&(r=nl(s),r!==void 0&&r===nl(u)))}function Rh(r){nl!==null&&typeof WeakSet=="function"&&(ks===null&&(ks=new WeakSet),ks.add(r))}function vd(r,u,s){var p=r.alternate,v=r.child,E=r.sibling,D=r.tag,k=r.type,H=null;switch(D){case 0:case 15:case 1:H=k;break;case 11:H=k.render}if(nl===null)throw Error("Expected resolveFamily to be set during hot reload.");var X=!1;k=!1,H!==null&&(H=nl(H),H!==void 0&&(s.has(H)?k=!0:u.has(H)&&(D===1?k=!0:X=!0))),ks!==null&&(ks.has(r)||p!==null&&ks.has(p))&&(k=!0),k&&(r._debugNeedsRemount=!0),(k||X)&&(p=iu(r,2),p!==null&&Hi(p,r,2)),v===null||k||vd(v,u,s),E!==null&&vd(E,u,s)}function ic(r,u,s,p){this.tag=r,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,wT||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function ja(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Oo(r,u){var s=r.alternate;switch(s===null?(s=Je(r.tag,u,r.key,r.mode),s.elementType=r.elementType,s.type=r.type,s.stateNode=r.stateNode,s._debugOwner=r._debugOwner,s._debugStack=r._debugStack,s._debugTask=r._debugTask,s._debugHookTypes=r._debugHookTypes,s.alternate=r,r.alternate=s):(s.pendingProps=u,s.type=r.type,s.flags=0,s.subtreeFlags=0,s.deletions=null,s.actualDuration=-0,s.actualStartTime=-1.1),s.flags=r.flags&65011712,s.childLanes=r.childLanes,s.lanes=r.lanes,s.child=r.child,s.memoizedProps=r.memoizedProps,s.memoizedState=r.memoizedState,s.updateQueue=r.updateQueue,u=r.dependencies,s.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext,_debugThenableState:u._debugThenableState},s.sibling=r.sibling,s.index=r.index,s.ref=r.ref,s.refCleanup=r.refCleanup,s.selfBaseDuration=r.selfBaseDuration,s.treeBaseDuration=r.treeBaseDuration,s._debugInfo=r._debugInfo,s._debugNeedsRemount=r._debugNeedsRemount,s.tag){case 0:case 15:s.type=eo(r.type);break;case 1:s.type=eo(r.type);break;case 11:s.type=nm(r.type)}return s}function rm(r,u){r.flags&=65011714;var s=r.alternate;return s===null?(r.childLanes=0,r.lanes=u,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0):(r.childLanes=s.childLanes,r.lanes=s.lanes,r.child=s.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=s.memoizedProps,r.memoizedState=s.memoizedState,r.updateQueue=s.updateQueue,r.type=s.type,u=s.dependencies,r.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext,_debugThenableState:u._debugThenableState},r.selfBaseDuration=s.selfBaseDuration,r.treeBaseDuration=s.treeBaseDuration),r}function Dh(r,u,s,p,v,E){var D=0,k=r;if(typeof r=="function")ja(r)&&(D=1),k=eo(k);else if(typeof r=="string")D=re(),D=Uf(r,s,D)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case Ev:return u=Je(31,s,u,v),u.elementType=Ev,u.lanes=E,u;case nn:return Cu(s.children,v,E,u);case Mc:D=8,v|=Ra,v|=ci;break;case Nf:return r=s,p=v,typeof r.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id),u=Je(12,r,u,p|Si),u.elementType=Nf,u.lanes=E,u.stateNode={effectDuration:0,passiveEffectDuration:0},u;case hp:return u=Je(13,s,u,v),u.elementType=hp,u.lanes=E,u;case _f:return u=Je(19,s,u,v),u.elementType=_f,u.lanes=E,u;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Tv:case Ko:D=10;break e;case qm:D=9;break e;case bc:D=11,k=nm(k);break e;case $g:D=14;break e;case ho:D=16,k=null;break e}k="",(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),r===null?s="null":Qt(r)?s="array":r!==void 0&&r.$$typeof===kf?(s="<"+(bn(r.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):s=typeof r,(D=p?gr(p):null)&&(k+=`
229
-
230
- Check the render method of \``+D+"`."),D=29,s=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(s+"."+k)),k=null}return u=Je(D,s,u,v),u.elementType=r,u.type=k,u.lanes=E,u._debugOwner=p,u}function as(r,u,s){return u=Dh(r.type,r.key,r.props,r._owner,u,s),u._debugOwner=r._owner,u._debugStack=r._debugStack,u._debugTask=r._debugTask,u}function Cu(r,u,s,p){return r=Je(7,r,p,u),r.lanes=s,r}function Zi(r,u,s){return r=Je(6,r,null,u),r.lanes=s,r}function am(r,u,s){return u=Je(4,r.children!==null?r.children:[],r.key,u),u.lanes=s,u.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},u}function tf(r,u){za(),ch[m0++]=ot,ch[m0++]=cS,cS=r,ot=u}function to(r,u,s){za(),$t[Yl++]=Ns,$t[Yl++]=Qf,$t[Yl++]=y0,y0=r;var p=Ns;r=Qf;var v=32-Za(p)-1;p&=~(1<<v),s+=1;var E=32-Za(u)+v;if(30<E){var D=v-v%5;E=(p&(1<<D)-1).toString(32),p>>=D,v-=D,Ns=1<<32-Za(u)+v|s<<v|p,Qf=E+r}else Ns=1<<E|s<<v|p,Qf=r}function Ih(r){za(),r.return!==null&&(tf(r,1),to(r,1,0))}function rc(r){for(;r===cS;)cS=ch[--m0],ch[m0]=null,ot=ch[--m0],ch[m0]=null;for(;r===y0;)y0=$t[--Yl],$t[Yl]=null,Qf=$t[--Yl],$t[Yl]=null,Ns=$t[--Yl],$t[Yl]=null}function za(){Pn||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Ba(r,u){if(r.return===null){if(Fe===null)Fe={fiber:r,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:u};else{if(Fe.fiber!==r)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Fe.distanceFromLeaf>u&&(Fe.distanceFromLeaf=u)}return Fe}var s=Ba(r.return,u+1).children;return 0<s.length&&s[s.length-1].fiber===r?(s=s[s.length-1],s.distanceFromLeaf>u&&(s.distanceFromLeaf=u),s):(u={fiber:r,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:u},s.push(u),u)}function ac(r,u){_s||(r=Ba(r,0),r.serverProps=null,u!==null&&(u=Rf(u),r.serverTail.push(u)))}function Pa(r){var u="",s=Fe;throw s!==null&&(Fe=null,u=tg(s)),rf($u(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
231
-
232
- - A server/client branch \`if (typeof window !== 'undefined')\`.
233
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
234
- - Date formatting in a user's locale which doesn't match the server.
235
- - External changing data without sending a snapshot of it along with the HTML.
236
- - Invalid HTML tag nesting.
237
-
238
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
239
-
240
- https://react.dev/link/hydration-mismatch`+u),r)),MT}function Sd(r){var u=r.stateNode,s=r.type,p=r.memoizedProps;switch(u[$r]=r,u[Gu]=p,pu(s,p),s){case"dialog":Qe("cancel",u),Qe("close",u);break;case"iframe":case"object":case"embed":Qe("load",u);break;case"video":case"audio":for(s=0;s<m1.length;s++)Qe(m1[s],u);break;case"source":Qe("error",u);break;case"img":case"image":case"link":Qe("error",u),Qe("load",u);break;case"details":Qe("toggle",u);break;case"input":Mo("input",p),Qe("invalid",u),Ke(u,p),xh(u,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0),bo(u);break;case"option":Zu(u,p);break;case"select":Mo("select",p),Qe("invalid",u),Ju(u,p);break;case"textarea":Mo("textarea",p),Qe("invalid",u),Wu(u,p),K0(u,p.value,p.defaultValue,p.children),bo(u)}s=p.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||u.textContent===""+s||p.suppressHydrationWarning===!0||cv(u.textContent,s)?(p.popover!=null&&(Qe("beforetoggle",u),Qe("toggle",u)),p.onScroll!=null&&Qe("scroll",u),p.onScrollEnd!=null&&Qe("scrollend",u),p.onClick!=null&&(u.onclick=Ec),u=!0):u=!1,u||Pa(r)}function nf(r){for(po=r.return;po;)switch(po.tag){case 5:case 13:_c=!1;return;case 27:case 3:_c=!0;return;default:po=po.return}}function Td(r){if(r!==po)return!1;if(!Pn)return nf(r),Pn=!0,!1;var u=r.tag,s;if((s=u!==3&&u!==27)&&((s=u===5)&&(s=r.type,s=!(s!=="form"&&s!=="button")||Ts(r.type,r.memoizedProps)),s=!s),s&&wr){for(s=wr;s;){var p=Ba(r,0),v=Rf(s);p.serverTail.push(v),s=v.type==="Suspense"?jm(s):kr(s.nextSibling)}Pa(r)}if(nf(r),u===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");wr=jm(r)}else u===27?(u=wr,_u(r.type)?(r=VS,VS=null,wr=r):wr=u):wr=po?kr(r.stateNode.nextSibling):null;return!0}function pa(){wr=po=null,_s=Pn=!1}function uc(){var r=nt;return r!==null&&(mo===null?mo=r:mo.push.apply(mo,r),nt=null),r}function rf(r){nt===null?nt=[r]:nt.push(r)}function Ed(){var r=Fe;if(r!==null){Fe=null;for(var u=tg(r);0<r.children.length;)r=r.children[0];G(r.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
241
-
242
- - A server/client branch \`if (typeof window !== 'undefined')\`.
243
- - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
244
- - Date formatting in a user's locale which doesn't match the server.
245
- - External changing data without sending a snapshot of it along with the HTML.
246
- - Invalid HTML tag nesting.
247
-
248
- It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
249
-
250
- %s%s`,"https://react.dev/link/hydration-mismatch",u)})}}function us(){cy=dS=null,T0=!1}function os(r,u,s){Le(v0,u._currentValue,r),u._currentValue=s,Le(S0,u._currentRenderer,r),u._currentRenderer!==void 0&&u._currentRenderer!==null&&u._currentRenderer!==_v&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),u._currentRenderer=_v}function oc(r,u){r._currentValue=v0.current;var s=S0.current;ve(S0,u),r._currentRenderer=s,ve(v0,u)}function Lh(r,u,s){for(;r!==null;){var p=r.alternate;if((r.childLanes&u)!==u?(r.childLanes|=u,p!==null&&(p.childLanes|=u)):p!==null&&(p.childLanes&u)!==u&&(p.childLanes|=u),r===s)break;r=r.return}r!==s&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function um(r,u,s,p){var v=r.child;for(v!==null&&(v.return=r);v!==null;){var E=v.dependencies;if(E!==null){var D=v.child;E=E.firstContext;e:for(;E!==null;){var k=E;E=v;for(var H=0;H<u.length;H++)if(k.context===u[H]){E.lanes|=s,k=E.alternate,k!==null&&(k.lanes|=s),Lh(E.return,s,r),p||(D=null);break e}E=k.next}}else if(v.tag===18){if(D=v.return,D===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");D.lanes|=s,E=D.alternate,E!==null&&(E.lanes|=s),Lh(D,s,r),D=null}else D=v.child;if(D!==null)D.return=v;else for(D=v;D!==null;){if(D===r){D=null;break}if(v=D.sibling,v!==null){v.return=D.return,D=v;break}D=D.return}v=D}}function wt(r,u,s,p){r=null;for(var v=u,E=!1;v!==null;){if(!E){if((v.flags&524288)!==0)E=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var D=v.alternate;if(D===null)throw Error("Should have a current fiber. This is a bug in React.");if(D=D.memoizedProps,D!==null){var k=v.type;fr(v.pendingProps.value,D.value)||(r!==null?r.push(k):r=[k])}}else if(v===jf.current){if(D=v.alternate,D===null)throw Error("Should have a current fiber. This is a bug in React.");D.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(r!==null?r.push(x1):r=[x1])}v=v.return}r!==null&&um(u,r,s,p),u.flags|=262144}function Gn(r){for(r=r.firstContext;r!==null;){if(!fr(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ar(r){dS=r,cy=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Dn(r){return T0&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Mu(dS,r)}function Wn(r,u){return dS===null&&ar(r),Mu(r,u)}function Mu(r,u){var s=u._currentValue;if(u={context:u,memoizedValue:s,next:null},cy===null){if(r===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");cy=u,r.dependencies={lanes:0,firstContext:u,_debugThenableState:null},r.flags|=524288}else cy=cy.next=u;return s}function ct(){return{controller:new RT,data:new Map,refCount:0}}function ru(r){r.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),r.refCount++}function Ml(r){r.refCount--,0>r.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),r.refCount===0&&r4(hS,function(){r.controller.abort()})}function Sr(){var r=tt;return tt=0,r}function au(r){var u=tt;return tt=r,u}function Ha(r){var u=tt;return tt+=r,u}function Ad(r){go=wp(),0>r.actualStartTime&&(r.actualStartTime=go)}function Ci(r){if(0<=go){var u=wp()-go;r.actualDuration+=u,r.selfBaseDuration=u,go=-1}}function uu(r){if(0<=go){var u=wp()-go;r.actualDuration+=u,go=-1}}function ii(){if(0<=go){var r=wp()-go;go=-1,tt+=r}}function ou(){go=wp()}function no(r){for(var u=r.child;u;)r.actualDuration+=u.actualDuration,u=u.sibling}function V1(r,u){if(zv===null){var s=zv=[];IT=0,Mp=kt(),fy={status:"pending",value:void 0,then:function(p){s.push(p)}}}return IT++,u.then(Oh,Oh),u}function Oh(){if(--IT===0&&zv!==null){fy!==null&&(fy.status="fulfilled");var r=zv;zv=null,Mp=0,fy=null;for(var u=0;u<r.length;u++)(0,r[u])()}}function Yy(r,u){var s=[],p={status:"pending",value:null,reason:null,then:function(v){s.push(v)}};return r.then(function(){p.status="fulfilled",p.value=u;for(var v=0;v<s.length;v++)(0,s[v])(u)},function(v){for(p.status="rejected",p.reason=v,v=0;v<s.length;v++)(0,s[v])(void 0)}),p}function om(){var r=bp.current;return r!==null?r:Ri.pooledCache}function sg(r,u){u===null?Le(bp,bp.current,r):Le(bp,u.pool,r)}function Xy(){var r=om();return r===null?null:{parent:jr._currentValue,pool:r}}function cg(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function fg(r){return r=r.status,r==="fulfilled"||r==="rejected"}function af(){}function Kt(r,u,s){ye.actQueue!==null&&(ye.didUsePromise=!0);var p=r.thenables;switch(s=p[s],s===void 0?p.push(u):s!==u&&(r.didWarnAboutUncachedPromise||(r.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),u.then(af,af),u=s),u.status){case"fulfilled":return u.value;case"rejected":throw r=u.reason,Ga(r),r;default:if(typeof u.status=="string")u.then(af,af);else{if(r=Ri,r!==null&&100<r.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");r=u,r.status="pending",r.then(function(v){if(u.status==="pending"){var E=u;E.status="fulfilled",E.value=v}},function(v){if(u.status==="pending"){var E=u;E.status="rejected",E.reason=v}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw r=u.reason,Ga(r),r}throw Vv=u,py=!0,Hv}}function lm(){if(Vv===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var r=Vv;return Vv=null,py=!1,r}function Ga(r){if(r===Hv||r===mS)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function ga(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lc(r,u){r=r.updateQueue,u.updateQueue===r&&(u.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ls(r){return{lane:r,tag:n2,payload:null,callback:null,next:null}}function Uo(r,u,s){var p=r.updateQueue;if(p===null)return null;if(p=p.shared,qv===p&&!UT){var v=At(r);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
251
-
252
- Please update the following component: %s`,v),UT=!0}return(ti&Fu)!==ul?(v=p.pending,v===null?u.next=u:(u.next=v.next,v.next=u),p.pending=u,u=zi(r),qy(r,null,s),u):(ef(r,p,u,s),zi(r))}function ko(r,u,s){if(u=u.updateQueue,u!==null&&(u=u.shared,(s&4194048)!==0)){var p=u.lanes;p&=r.pendingLanes,s|=p,u.lanes=s,Qp(r,s)}}function sc(r,u){var s=r.updateQueue,p=r.alternate;if(p!==null&&(p=p.updateQueue,s===p)){var v=null,E=null;if(s=s.firstBaseUpdate,s!==null){do{var D={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};E===null?v=E=D:E=E.next=D,s=s.next}while(s!==null);E===null?v=E=u:E=E.next=u}else v=E=u;s={baseState:p.baseState,firstBaseUpdate:v,lastBaseUpdate:E,shared:p.shared,callbacks:p.callbacks},r.updateQueue=s;return}r=s.lastBaseUpdate,r===null?s.firstBaseUpdate=u:r.next=u,s.lastBaseUpdate=u}function Dr(){if(Yv){var r=fy;if(r!==null)throw r}}function uf(r,u,s,p){Yv=!1;var v=r.updateQueue;fh=!1,qv=v.shared;var E=v.firstBaseUpdate,D=v.lastBaseUpdate,k=v.shared.pending;if(k!==null){v.shared.pending=null;var H=k,X=H.next;H.next=null,D===null?E=X:D.next=X,D=H;var ge=r.alternate;ge!==null&&(ge=ge.updateQueue,k=ge.lastBaseUpdate,k!==D&&(k===null?ge.firstBaseUpdate=X:k.next=X,ge.lastBaseUpdate=H))}if(E!==null){var Ae=v.baseState;D=0,ge=X=H=null,k=E;do{var he=k.lane&-536870913,we=he!==k.lane;if(we?(Sn&he)===he:(p&he)===he){he!==0&&he===Mp&&(Yv=!0),ge!==null&&(ge=ge.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{he=r;var yt=k,Xt=u,Ei=s;switch(yt.tag){case yS:if(yt=yt.payload,typeof yt=="function"){T0=!0;var Mn=yt.call(Ei,Ae,Xt);if(he.mode&Ra){Ot(!0);try{yt.call(Ei,Ae,Xt)}finally{Ot(!1)}}T0=!1,Ae=Mn;break e}Ae=yt;break e;case gy:he.flags=he.flags&-65537|128;case n2:if(Mn=yt.payload,typeof Mn=="function"){if(T0=!0,yt=Mn.call(Ei,Ae,Xt),he.mode&Ra){Ot(!0);try{Mn.call(Ei,Ae,Xt)}finally{Ot(!1)}}T0=!1}else yt=Mn;if(yt==null)break e;Ae=cn({},Ae,yt);break e;case i2:fh=!0}}he=k.callback,he!==null&&(r.flags|=64,we&&(r.flags|=8192),we=v.callbacks,we===null?v.callbacks=[he]:we.push(he))}else we={lane:he,tag:k.tag,payload:k.payload,callback:k.callback,next:null},ge===null?(X=ge=we,H=Ae):ge=ge.next=we,D|=he;if(k=k.next,k===null){if(k=v.shared.pending,k===null)break;we=k,k=we.next,we.next=null,v.lastBaseUpdate=we,v.shared.pending=null}}while(!0);ge===null&&(H=Ae),v.baseState=H,v.firstBaseUpdate=X,v.lastBaseUpdate=ge,E===null&&(v.shared.lanes=0),Np|=D,r.lanes=D,r.memoizedState=Ae}qv=null}function cc(r,u){if(typeof r!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+r);r.call(u)}function xd(r,u){var s=r.shared.hiddenCallbacks;if(s!==null)for(r.shared.hiddenCallbacks=null,r=0;r<s.length;r++)cc(s[r],u)}function Uh(r,u){var s=r.callbacks;if(s!==null)for(r.callbacks=null,r=0;r<s.length;r++)cc(s[r],u)}function Tr(r,u){var s=Bc;Le(vS,s,r),Le(Jf,u,r),Bc=s|u.baseLanes}function fc(r){Le(vS,Bc,r),Le(Jf,Jf.current,r)}function ma(r){Bc=vS.current,ve(Jf,r),ve(vS,r)}function on(){var r=Ee;Kl===null?Kl=[r]:Kl.push(r)}function _e(){var r=Ee;if(Kl!==null&&(rl++,Kl[rl]!==r)){var u=At(Jt);if(!Fl.has(u)&&(Fl.add(u),Kl!==null)){for(var s="",p=0;p<=rl;p++){var v=Kl[p],E=p===rl?r:v;for(v=p+1+". "+v;30>v.length;)v+=" ";v+=E+`
253
- `,s+=v}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
254
-
255
- Previous render Next render
256
- ------------------------------------------------------
257
- %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
258
- `,u,s)}}}function io(r){r==null||Qt(r)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ee,typeof r)}function wd(){var r=At(Jt);kT.has(r)||(kT.add(r),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",r))}function oi(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
259
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
260
- 2. You might be breaking the Rules of Hooks
261
- 3. You might have more than one copy of React in the same app
262
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function ss(r,u){if(Zv)return!1;if(u===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ee),!1;r.length!==u.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
263
-
264
- Previous: %s
265
- Incoming: %s`,Ee,"["+u.join(", ")+"]","["+r.join(", ")+"]");for(var s=0;s<u.length&&s<r.length;s++)if(!fr(r[s],u[s]))return!1;return!0}function ro(r,u,s,p,v,E){Zn=E,Jt=u,Kl=r!==null?r._debugHookTypes:null,rl=-1,Zv=r!==null&&r.type!==u.type,(Object.prototype.toString.call(s)==="[object AsyncFunction]"||Object.prototype.toString.call(s)==="[object AsyncGeneratorFunction]")&&(E=At(Jt),E0.has(E)||(E0.add(E),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",E===null?"An unknown Component":"<"+E+">"))),u.memoizedState=null,u.updateQueue=null,u.lanes=0,ye.H=r!==null&&r.memoizedState!==null?$v:Kl!==null?NT:Wv,Rp=E=(u.mode&Ra)!==bi;var D=_T(s,p,v);if(Rp=!1,A0&&(D=bu(u,s,p,v)),E){Ot(!0);try{D=bu(u,s,p,v)}finally{Ot(!1)}}return kh(r,u),D}function kh(r,u){u._debugHookTypes=Kl,u.dependencies===null?hh!==null&&(u.dependencies={lanes:0,firstContext:null,_debugThenableState:hh}):u.dependencies._debugThenableState=hh,ye.H=Jv;var s=Ti!==null&&Ti.next!==null;if(Zn=0,Kl=Ee=Br=Ti=Jt=null,rl=-1,r!==null&&(r.flags&65011712)!==(u.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Fv=!1,Qv=0,hh=null,s)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");r===null||ia||(r=r.dependencies,r!==null&&Gn(r)&&(ia=!0)),py?(py=!1,r=!0):r=!1,r&&(u=At(u)||"Unknown",Xv.has(u)||E0.has(u)||(Xv.add(u),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function bu(r,u,s,p){Jt=r;var v=0;do{if(A0&&(hh=null),Qv=0,A0=!1,v>=Ia)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(v+=1,Zv=!1,Br=Ti=null,r.updateQueue!=null){var E=r.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}rl=-1,ye.H=a2,E=_T(u,s,p)}while(A0);return E}function No(){var r=ye.H,u=r.useState()[0];return u=typeof u.then=="function"?dc(u):u,r=r.useState()[0],(Ti!==null?Ti.memoizedState:null)!==r&&(Jt.flags|=1024),u}function ur(){var r=Kv!==0;return Kv=0,r}function ya(r,u,s){u.updateQueue=r.updateQueue,u.flags=(u.mode&ci)!==bi?u.flags&-402655237:u.flags&-2053,r.lanes&=~s}function Kr(r){if(Fv){for(r=r.memoizedState;r!==null;){var u=r.queue;u!==null&&(u.pending=null),r=r.next}Fv=!1}Zn=0,Kl=Br=Ti=Jt=null,rl=-1,Ee=null,A0=!1,Qv=Kv=0,hh=null}function Oi(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Br===null?Jt.memoizedState=Br=r:Br=Br.next=r,Br}function tn(){if(Ti===null){var r=Jt.alternate;r=r!==null?r.memoizedState:null}else r=Ti.next;var u=Br===null?Jt.memoizedState:Br.next;if(u!==null)Br=u,Ti=r;else{if(r===null)throw Jt.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Ti=r,r={memoizedState:Ti.memoizedState,baseState:Ti.baseState,baseQueue:Ti.baseQueue,queue:Ti.queue,next:null},Br===null?Jt.memoizedState=Br=r:Br=Br.next=r}return Br}function Nh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dc(r){var u=Qv;return Qv+=1,hh===null&&(hh=cg()),r=Kt(hh,r,u),u=Jt,(Br===null?u.memoizedState:Br.next)===null&&(u=u.alternate,ye.H=u!==null&&u.memoizedState!==null?$v:Wv),r}function bl(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return dc(r);if(r.$$typeof===Ko)return Dn(r)}throw Error("An unsupported type was passed to use(): "+String(r))}function Bi(r){var u=null,s=Jt.updateQueue;if(s!==null&&(u=s.memoCache),u==null){var p=Jt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(u={data:p.data.map(function(v){return v.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),s===null&&(s=Nh(),Jt.updateQueue=s),s.memoCache=u,s=u.data[u.index],s===void 0||Zv)for(s=u.data[u.index]=Array(r),p=0;p<r;p++)s[p]=Av;else s.length!==r&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",s.length,r);return u.index++,s}function Et(r,u){return typeof u=="function"?u(r):u}function mn(r,u,s){var p=Oi();if(s!==void 0){var v=s(u);if(Rp){Ot(!0);try{s(u)}finally{Ot(!1)}}}else v=u;return p.memoizedState=p.baseState=v,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:v},p.queue=r,r=r.dispatch=Hh.bind(null,Jt,r),[p.memoizedState,r]}function Ru(r){var u=tn();return _o(u,Ti,r)}function _o(r,u,s){var p=r.queue;if(p===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");p.lastRenderedReducer=s;var v=r.baseQueue,E=p.pending;if(E!==null){if(v!==null){var D=v.next;v.next=E.next,E.next=D}u.baseQueue!==v&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),u.baseQueue=v=E,p.pending=null}if(E=r.baseState,v===null)r.memoizedState=E;else{u=v.next;var k=D=null,H=null,X=u,ge=!1;do{var Ae=X.lane&-536870913;if(Ae!==X.lane?(Sn&Ae)===Ae:(Zn&Ae)===Ae){var he=X.revertLane;if(he===0)H!==null&&(H=H.next={lane:0,revertLane:0,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),Ae===Mp&&(ge=!0);else if((Zn&he)===he){X=X.next,he===Mp&&(ge=!0);continue}else Ae={lane:0,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},H===null?(k=H=Ae,D=E):H=H.next=Ae,Jt.lanes|=he,Np|=he;Ae=X.action,Rp&&s(E,Ae),E=X.hasEagerState?X.eagerState:s(E,Ae)}else he={lane:Ae,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},H===null?(k=H=he,D=E):H=H.next=he,Jt.lanes|=Ae,Np|=Ae;X=X.next}while(X!==null&&X!==u);if(H===null?D=E:H.next=k,!fr(E,r.memoizedState)&&(ia=!0,ge&&(s=fy,s!==null)))throw s;r.memoizedState=E,r.baseState=D,r.baseQueue=H,p.lastRenderedState=E}return v===null&&(p.lanes=0),[r.memoizedState,p.dispatch]}function cs(r){var u=tn(),s=u.queue;if(s===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");s.lastRenderedReducer=r;var p=s.dispatch,v=s.pending,E=u.memoizedState;if(v!==null){s.pending=null;var D=v=v.next;do E=r(E,D.action),D=D.next;while(D!==v);fr(E,u.memoizedState)||(ia=!0),u.memoizedState=E,u.baseQueue===null&&(u.baseState=E),s.lastRenderedState=E}return[E,p]}function In(r,u,s){var p=Jt,v=Oi();if(Pn){if(s===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var E=s();dh||E===s()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),dh=!0)}else{if(E=u(),dh||(s=u(),fr(E,s)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),dh=!0)),Ri===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Sn&124)!==0||va(p,u,E)}return v.memoizedState=E,s={value:E,getSnapshot:u},v.queue=s,fm(of.bind(null,p,s,r),[r]),p.flags|=2048,fs(Xl|Da,Rl(),Er.bind(null,p,s,E,u),null),E}function jo(r,u,s){var p=Jt,v=tn(),E=Pn;if(E){if(s===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");s=s()}else if(s=u(),!dh){var D=u();fr(s,D)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),dh=!0)}(D=!fr((Ti||v).memoizedState,s))&&(v.memoizedState=s,ia=!0),v=v.queue;var k=of.bind(null,p,v,r);if(Ir(2048,Da,k,[r]),v.getSnapshot!==u||D||Br!==null&&Br.memoizedState.tag&Xl){if(p.flags|=2048,fs(Xl|Da,Rl(),Er.bind(null,p,v,s,u),null),Ri===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");E||(Zn&124)!==0||va(p,u,s)}return s}function va(r,u,s){r.flags|=16384,r={getSnapshot:u,value:s},u=Jt.updateQueue,u===null?(u=Nh(),Jt.updateQueue=u,u.stores=[r]):(s=u.stores,s===null?u.stores=[r]:s.push(r))}function Er(r,u,s,p){u.value=s,u.getSnapshot=p,sm(u)&&_h(r)}function of(r,u,s){return s(function(){sm(u)&&_h(r)})}function sm(r){var u=r.getSnapshot;r=r.value;try{var s=u();return!fr(r,s)}catch{return!0}}function _h(r){var u=iu(r,2);u!==null&&Hi(u,r,2)}function ao(r){var u=Oi();if(typeof r=="function"){var s=r;if(r=s(),Rp){Ot(!0);try{s()}finally{Ot(!1)}}}return u.memoizedState=u.baseState=r,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Et,lastRenderedState:r},u}function Sa(r){r=ao(r);var u=r.queue,s=Gh.bind(null,Jt,u);return u.dispatch=s,[r.memoizedState,s]}function $n(r){var u=Oi();u.memoizedState=u.baseState=r;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=s,u=Sg.bind(null,Jt,!0,s),s.dispatch=u,[r,u]}function uo(r,u){var s=tn();return lu(s,Ti,r,u)}function lu(r,u,s,p){return r.baseState=s,_o(r,Ti,typeof p=="function"?p:Et)}function cm(r,u){var s=tn();return Ti!==null?lu(s,Ti,r,u):(s.baseState=r,[r,s.queue.dispatch])}function Fy(r,u,s,p,v){if(Rd(r))throw Error("Cannot update form state while rendering.");if(r=u.action,r!==null){var E={payload:v,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){E.listeners.push(D)}};ye.T!==null?s(!0):E.isTransition=!1,p(E),s=u.pending,s===null?(E.next=u.pending=E,Cd(u,E)):(E.next=s.next,u.pending=s.next=E)}}function Cd(r,u){var s=u.action,p=u.payload,v=r.state;if(u.isTransition){var E=ye.T,D={};ye.T=D,ye.T._updatedFibers=new Set;try{var k=s(v,p),H=ye.S;H!==null&&H(D,k),jh(r,u,k)}catch(X){Ji(r,u,X)}finally{ye.T=E,E===null&&D._updatedFibers&&(r=D._updatedFibers.size,D._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{D=s(v,p),jh(r,u,D)}catch(X){Ji(r,u,X)}}function jh(r,u,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?(s.then(function(p){lf(r,u,p)},function(p){return Ji(r,u,p)}),u.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):lf(r,u,s)}function lf(r,u,s){u.status="fulfilled",u.value=s,dg(u),r.state=s,u=r.pending,u!==null&&(s=u.next,s===u?r.pending=null:(s=s.next,u.next=s,Cd(r,s)))}function Ji(r,u,s){var p=r.pending;if(r.pending=null,p!==null){p=p.next;do u.status="rejected",u.reason=s,dg(u),u=u.next;while(u!==p)}r.action=null}function dg(r){r=r.listeners;for(var u=0;u<r.length;u++)(0,r[u])()}function Ky(r,u){return u}function Du(r,u){if(Pn){var s=Ri.formState;if(s!==null){e:{var p=Jt;if(Pn){if(wr){t:{for(var v=wr,E=_c;v.nodeType!==8;){if(!E){v=null;break t}if(v=kr(v.nextSibling),v===null){v=null;break t}}E=v.data,v=E===S1||E===BS?v:null}if(v){wr=kr(v.nextSibling),p=v.data===S1;break e}}Pa(p)}p=!1}p&&(u=s[0])}}return s=Oi(),s.memoizedState=s.baseState=u,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ky,lastRenderedState:u},s.queue=p,s=Gh.bind(null,Jt,p),p.dispatch=s,p=ao(!1),E=Sg.bind(null,Jt,!1,p.queue),p=Oi(),v={state:u,dispatch:null,action:r,pending:null},p.queue=v,s=Fy.bind(null,Jt,v,E,s),v.dispatch=s,p.memoizedState=r,[u,s,!1]}function sf(r){var u=tn();return Qy(u,Ti,r)}function Qy(r,u,s){if(u=_o(r,u,Ky)[0],r=Ru(Et)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var p=dc(u)}catch(D){throw D===Hv?mS:D}else p=u;u=tn();var v=u.queue,E=v.dispatch;return s!==u.memoizedState&&(Jt.flags|=2048,fs(Xl|Da,Rl(),Ar.bind(null,v,s),null)),[p,E,r]}function Ar(r,u){r.action=u}function zh(r){var u=tn(),s=Ti;if(s!==null)return Qy(u,s,r);tn(),u=u.memoizedState,s=tn();var p=s.queue.dispatch;return s.memoizedState=r,[u,p,!1]}function fs(r,u,s,p){return r={tag:r,create:s,deps:p,inst:u,next:null},u=Jt.updateQueue,u===null&&(u=Nh(),Jt.updateQueue=u),s=u.lastEffect,s===null?u.lastEffect=r.next=r:(p=s.next,s.next=r,r.next=p,u.lastEffect=r),r}function Rl(){return{destroy:void 0,resource:void 0}}function hg(r){var u=Oi();return r={current:r},u.memoizedState=r}function oo(r,u,s,p){var v=Oi();p=p===void 0?null:p,Jt.flags|=r,v.memoizedState=fs(Xl|u,Rl(),s,p)}function Ir(r,u,s,p){var v=tn();p=p===void 0?null:p;var E=v.memoizedState.inst;Ti!==null&&p!==null&&ss(p,Ti.memoizedState.deps)?v.memoizedState=fs(u,E,s,p):(Jt.flags|=r,v.memoizedState=fs(Xl|u,E,s,p))}function fm(r,u){(Jt.mode&ci)!==bi&&(Jt.mode&vu)===bi?oo(276826112,Da,r,u):oo(8390656,Da,r,u)}function pg(r,u){var s=4194308;return(Jt.mode&ci)!==bi&&(s|=134217728),oo(s,Ja,r,u)}function q1(r,u){if(typeof u=="function"){r=r();var s=u(r);return function(){typeof s=="function"?s():u(null)}}if(u!=null)return u.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(u).join(", ")+"}"),r=r(),u.current=r,function(){u.current=null}}function gg(r,u,s){typeof u!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",u!==null?typeof u:"null"),s=s!=null?s.concat([r]):null;var p=4194308;(Jt.mode&ci)!==bi&&(p|=134217728),oo(p,Ja,q1.bind(null,u,r),s)}function Dl(r,u,s){typeof u!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",u!==null?typeof u:"null"),s=s!=null?s.concat([r]):null,Ir(4,Ja,q1.bind(null,u,r),s)}function hc(r,u){return Oi().memoizedState=[r,u===void 0?null:u],r}function pc(r,u){var s=tn();u=u===void 0?null:u;var p=s.memoizedState;return u!==null&&ss(u,p[1])?p[0]:(s.memoizedState=[r,u],r)}function dm(r,u){var s=Oi();u=u===void 0?null:u;var p=r();if(Rp){Ot(!0);try{r()}finally{Ot(!1)}}return s.memoizedState=[p,u],p}function cf(r,u){var s=tn();u=u===void 0?null:u;var p=s.memoizedState;if(u!==null&&ss(u,p[1]))return p[0];if(p=r(),Rp){Ot(!0);try{r()}finally{Ot(!1)}}return s.memoizedState=[p,u],p}function hm(r,u){var s=Oi();return Bh(s,r,u)}function Il(r,u){var s=tn();return Md(s,Ti.memoizedState,r,u)}function ds(r,u){var s=tn();return Ti===null?Bh(s,r,u):Md(s,Ti.memoizedState,r,u)}function Bh(r,u,s){return s===void 0||(Zn&1073741824)!==0?r.memoizedState=u:(r.memoizedState=s,r=jn(),Jt.lanes|=r,Np|=r,s)}function Md(r,u,s,p){return fr(s,u)?s:Jf.current!==null?(r=Bh(r,s,p),fr(r,u)||(ia=!0),r):(Zn&42)===0?(ia=!0,r.memoizedState=s):(r=jn(),Jt.lanes|=r,Np|=r,u)}function mg(r,u,s,p,v){var E=Pt.p;Pt.p=E!==0&&E<Gl?E:Gl;var D=ye.T,k={};ye.T=k,Sg(r,!1,u,s),k._updatedFibers=new Set;try{var H=v(),X=ye.S;if(X!==null&&X(k,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var ge=Yy(H,p);dn(r,u,ge,Uu(r))}else dn(r,u,p,Uu(r))}catch(Ae){dn(r,u,{then:function(){},status:"rejected",reason:Ae},Uu(r))}finally{Pt.p=E,ye.T=D,D===null&&k._updatedFibers&&(r=k._updatedFibers.size,k._updatedFibers.clear(),10<r&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function ff(r,u,s,p){if(r.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var v=bd(r).queue;mg(r,v,u,Hp,s===null?Fn:function(){return Ph(r),s(p)})}function bd(r){var u=r.memoizedState;if(u!==null)return u;u={memoizedState:Hp,baseState:Hp,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Et,lastRenderedState:Hp},next:null};var s={};return u.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Et,lastRenderedState:s},next:null},r.memoizedState=u,r=r.alternate,r!==null&&(r.memoizedState=u),u}function Ph(r){ye.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var u=bd(r).next.queue;dn(r,u,{},Uu(r))}function su(){var r=ao(!1);return r=mg.bind(null,Jt,r.queue,!0,!1),Oi().memoizedState=r,[!1,r]}function yg(){var r=Ru(Et)[0],u=tn().memoizedState;return[typeof r=="boolean"?r:dc(r),u]}function vg(){var r=cs(Et)[0],u=tn().memoizedState;return[typeof r=="boolean"?r:dc(r),u]}function cu(){return Dn(x1)}function Ll(){var r=Oi(),u=Ri.identifierPrefix;if(Pn){var s=Qf,p=Ns;s=(p&~(1<<32-Za(p)-1)).toString(32)+s,u="«"+u+"R"+s,s=Kv++,0<s&&(u+="H"+s.toString(32)),u+="»"}else s=r2++,u="«"+u+"r"+s.toString(32)+"»";return r.memoizedState=u}function hs(){return Oi().memoizedState=Zy.bind(null,Jt)}function Zy(r,u){for(var s=r.return;s!==null;){switch(s.tag){case 24:case 3:var p=Uu(s);r=ls(p);var v=Uo(s,r,p);v!==null&&(Hi(v,s,p),ko(v,s,p)),s=ct(),u!=null&&v!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:s};return}s=s.return}}function Hh(r,u,s){var p=arguments;typeof p[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),p=Uu(r);var v={lane:p,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};Rd(r)?Dd(u,v):(v=lg(r,u,v,p),v!==null&&(Hi(v,r,p),Tg(v,u,p))),dd(r,p)}function Gh(r,u,s){var p=arguments;typeof p[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),p=Uu(r),dn(r,u,s,p),dd(r,p)}function dn(r,u,s,p){var v={lane:p,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(Rd(r))Dd(u,v);else{var E=r.alternate;if(r.lanes===0&&(E===null||E.lanes===0)&&(E=u.lastRenderedReducer,E!==null)){var D=ye.H;ye.H=js;try{var k=u.lastRenderedState,H=E(k,s);if(v.hasEagerState=!0,v.eagerState=H,fr(H,k))return ef(r,u,v,0),Ri===null&&bh(),!1}catch{}finally{ye.H=D}}if(s=lg(r,u,v,p),s!==null)return Hi(s,r,p),Tg(s,u,p),!0}return!1}function Sg(r,u,s,p){if(ye.T===null&&Mp===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),p={lane:2,revertLane:kt(),action:p,hasEagerState:!1,eagerState:null,next:null},Rd(r)){if(u)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else u=lg(r,s,p,2),u!==null&&Hi(u,r,2);dd(r,2)}function Rd(r){var u=r.alternate;return r===Jt||u!==null&&u===Jt}function Dd(r,u){A0=Fv=!0;var s=r.pending;s===null?u.next=u:(u.next=s.next,s.next=u),r.pending=u}function Tg(r,u,s){if((s&4194048)!==0){var p=u.lanes;p&=r.pendingLanes,s|=p,u.lanes=s,Qp(r,s)}}function Lr(r){var u=pn;return r!=null&&(pn=u===null?r:u.concat(r)),u}function Id(r,u,s){for(var p=Object.keys(r.props),v=0;v<p.length;v++){var E=p[v];if(E!=="children"&&E!=="key"){u===null&&(u=as(r,s.mode,0),u._debugInfo=pn,u.return=s),G(u,function(D){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D)},E);break}}}function Va(r){var u=n1;return n1+=1,my===null&&(my=cg()),Kt(my,r,u)}function Bt(r,u){u=u.props.ref,r.ref=u!==void 0?u:null}function ft(r,u){throw u.$$typeof===Cs?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
266
- - Multiple copies of the "react" package is used.
267
- - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
268
- - A compiler tries to "inline" JSX instead of using the runtime.`):(r=Object.prototype.toString.call(u),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead."))}function En(r,u){var s=At(r)||"Component";PT[s]||(PT[s]=!0,u=u.displayName||u.name||"Component",r.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
269
- root.render(%s)`,u,u,u):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
270
- <%s>{%s}</%s>`,u,u,s,u,s))}function Mi(r,u){var s=At(r)||"Component";HT[s]||(HT[s]=!0,u=String(u),r.tag===3?console.error(`Symbols are not valid as a React child.
271
- root.render(%s)`,u):console.error(`Symbols are not valid as a React child.
272
- <%s>%s</%s>`,s,u,s))}function ps(r){function u(W,$){if(r){var ae=W.deletions;ae===null?(W.deletions=[$],W.flags|=16):ae.push($)}}function s(W,$){if(!r)return null;for(;$!==null;)u(W,$),$=$.sibling;return null}function p(W){for(var $=new Map;W!==null;)W.key!==null?$.set(W.key,W):$.set(W.index,W),W=W.sibling;return $}function v(W,$){return W=Oo(W,$),W.index=0,W.sibling=null,W}function E(W,$,ae){return W.index=ae,r?(ae=W.alternate,ae!==null?(ae=ae.index,ae<$?(W.flags|=67108866,$):ae):(W.flags|=67108866,$)):(W.flags|=1048576,$)}function D(W){return r&&W.alternate===null&&(W.flags|=67108866),W}function k(W,$,ae,Me){return $===null||$.tag!==6?($=Zi(ae,W.mode,Me),$.return=W,$._debugOwner=W,$._debugTask=W._debugTask,$._debugInfo=pn,$):($=v($,ae),$.return=W,$._debugInfo=pn,$)}function H(W,$,ae,Me){var qe=ae.type;return qe===nn?($=ge(W,$,ae.props.children,Me,ae.key),Id(ae,$,W),$):$!==null&&($.elementType===qe||im($,ae)||typeof qe=="object"&&qe!==null&&qe.$$typeof===ho&&ph(qe)===$.type)?($=v($,ae.props),Bt($,ae),$.return=W,$._debugOwner=ae._owner,$._debugInfo=pn,$):($=as(ae,W.mode,Me),Bt($,ae),$.return=W,$._debugInfo=pn,$)}function X(W,$,ae,Me){return $===null||$.tag!==4||$.stateNode.containerInfo!==ae.containerInfo||$.stateNode.implementation!==ae.implementation?($=am(ae,W.mode,Me),$.return=W,$._debugInfo=pn,$):($=v($,ae.children||[]),$.return=W,$._debugInfo=pn,$)}function ge(W,$,ae,Me,qe){return $===null||$.tag!==7?($=Cu(ae,W.mode,Me,qe),$.return=W,$._debugOwner=W,$._debugTask=W._debugTask,$._debugInfo=pn,$):($=v($,ae),$.return=W,$._debugInfo=pn,$)}function Ae(W,$,ae){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=Zi(""+$,W.mode,ae),$.return=W,$._debugOwner=W,$._debugTask=W._debugTask,$._debugInfo=pn,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case kf:return ae=as($,W.mode,ae),Bt(ae,$),ae.return=W,W=Lr($._debugInfo),ae._debugInfo=pn,pn=W,ae;case Ms:return $=am($,W.mode,ae),$.return=W,$._debugInfo=pn,$;case ho:var Me=Lr($._debugInfo);return $=ph($),W=Ae(W,$,ae),pn=Me,W}if(Qt($)||Xe($))return ae=Cu($,W.mode,ae,null),ae.return=W,ae._debugOwner=W,ae._debugTask=W._debugTask,W=Lr($._debugInfo),ae._debugInfo=pn,pn=W,ae;if(typeof $.then=="function")return Me=Lr($._debugInfo),W=Ae(W,Va($),ae),pn=Me,W;if($.$$typeof===Ko)return Ae(W,Wn(W,$),ae);ft(W,$)}return typeof $=="function"&&En(W,$),typeof $=="symbol"&&Mi(W,$),null}function he(W,$,ae,Me){var qe=$!==null?$.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return qe!==null?null:k(W,$,""+ae,Me);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case kf:return ae.key===qe?(qe=Lr(ae._debugInfo),W=H(W,$,ae,Me),pn=qe,W):null;case Ms:return ae.key===qe?X(W,$,ae,Me):null;case ho:return qe=Lr(ae._debugInfo),ae=ph(ae),W=he(W,$,ae,Me),pn=qe,W}if(Qt(ae)||Xe(ae))return qe!==null?null:(qe=Lr(ae._debugInfo),W=ge(W,$,ae,Me,null),pn=qe,W);if(typeof ae.then=="function")return qe=Lr(ae._debugInfo),W=he(W,$,Va(ae),Me),pn=qe,W;if(ae.$$typeof===Ko)return he(W,$,Wn(W,ae),Me);ft(W,ae)}return typeof ae=="function"&&En(W,ae),typeof ae=="symbol"&&Mi(W,ae),null}function we(W,$,ae,Me,qe){if(typeof Me=="string"&&Me!==""||typeof Me=="number"||typeof Me=="bigint")return W=W.get(ae)||null,k($,W,""+Me,qe);if(typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case kf:return ae=W.get(Me.key===null?ae:Me.key)||null,W=Lr(Me._debugInfo),$=H($,ae,Me,qe),pn=W,$;case Ms:return W=W.get(Me.key===null?ae:Me.key)||null,X($,W,Me,qe);case ho:var en=Lr(Me._debugInfo);return Me=ph(Me),$=we(W,$,ae,Me,qe),pn=en,$}if(Qt(Me)||Xe(Me))return ae=W.get(ae)||null,W=Lr(Me._debugInfo),$=ge($,ae,Me,qe,null),pn=W,$;if(typeof Me.then=="function")return en=Lr(Me._debugInfo),$=we(W,$,ae,Va(Me),qe),pn=en,$;if(Me.$$typeof===Ko)return we(W,$,ae,Wn($,Me),qe);ft($,Me)}return typeof Me=="function"&&En($,Me),typeof Me=="symbol"&&Mi($,Me),null}function yt(W,$,ae,Me){if(typeof ae!="object"||ae===null)return Me;switch(ae.$$typeof){case kf:case Ms:w(W,$,ae);var qe=ae.key;if(typeof qe!="string")break;if(Me===null){Me=new Set,Me.add(qe);break}if(!Me.has(qe)){Me.add(qe);break}G($,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",qe)});break;case ho:ae=ph(ae),yt(W,$,ae,Me)}return Me}function Xt(W,$,ae,Me){for(var qe=null,en=null,gt=null,rn=$,sn=$=0,Di=null;rn!==null&&sn<ae.length;sn++){rn.index>sn?(Di=rn,rn=null):Di=rn.sibling;var dr=he(W,rn,ae[sn],Me);if(dr===null){rn===null&&(rn=Di);break}qe=yt(W,dr,ae[sn],qe),r&&rn&&dr.alternate===null&&u(W,rn),$=E(dr,$,sn),gt===null?en=dr:gt.sibling=dr,gt=dr,rn=Di}if(sn===ae.length)return s(W,rn),Pn&&tf(W,sn),en;if(rn===null){for(;sn<ae.length;sn++)rn=Ae(W,ae[sn],Me),rn!==null&&(qe=yt(W,rn,ae[sn],qe),$=E(rn,$,sn),gt===null?en=rn:gt.sibling=rn,gt=rn);return Pn&&tf(W,sn),en}for(rn=p(rn);sn<ae.length;sn++)Di=we(rn,W,sn,ae[sn],Me),Di!==null&&(qe=yt(W,Di,ae[sn],qe),r&&Di.alternate!==null&&rn.delete(Di.key===null?sn:Di.key),$=E(Di,$,sn),gt===null?en=Di:gt.sibling=Di,gt=Di);return r&&rn.forEach(function(sd){return u(W,sd)}),Pn&&tf(W,sn),en}function Ei(W,$,ae,Me){if(ae==null)throw Error("An iterable object provided no iterator.");for(var qe=null,en=null,gt=$,rn=$=0,sn=null,Di=null,dr=ae.next();gt!==null&&!dr.done;rn++,dr=ae.next()){gt.index>rn?(sn=gt,gt=null):sn=gt.sibling;var sd=he(W,gt,dr.value,Me);if(sd===null){gt===null&&(gt=sn);break}Di=yt(W,sd,dr.value,Di),r&&gt&&sd.alternate===null&&u(W,gt),$=E(sd,$,rn),en===null?qe=sd:en.sibling=sd,en=sd,gt=sn}if(dr.done)return s(W,gt),Pn&&tf(W,rn),qe;if(gt===null){for(;!dr.done;rn++,dr=ae.next())gt=Ae(W,dr.value,Me),gt!==null&&(Di=yt(W,gt,dr.value,Di),$=E(gt,$,rn),en===null?qe=gt:en.sibling=gt,en=gt);return Pn&&tf(W,rn),qe}for(gt=p(gt);!dr.done;rn++,dr=ae.next())sn=we(gt,W,rn,dr.value,Me),sn!==null&&(Di=yt(W,sn,dr.value,Di),r&&sn.alternate!==null&&gt.delete(sn.key===null?rn:sn.key),$=E(sn,$,rn),en===null?qe=sn:en.sibling=sn,en=sn);return r&&gt.forEach(function(yE){return u(W,yE)}),Pn&&tf(W,rn),qe}function Mn(W,$,ae,Me){if(typeof ae=="object"&&ae!==null&&ae.type===nn&&ae.key===null&&(Id(ae,null,W),ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case kf:var qe=Lr(ae._debugInfo);e:{for(var en=ae.key;$!==null;){if($.key===en){if(en=ae.type,en===nn){if($.tag===7){s(W,$.sibling),Me=v($,ae.props.children),Me.return=W,Me._debugOwner=ae._owner,Me._debugInfo=pn,Id(ae,Me,W),W=Me;break e}}else if($.elementType===en||im($,ae)||typeof en=="object"&&en!==null&&en.$$typeof===ho&&ph(en)===$.type){s(W,$.sibling),Me=v($,ae.props),Bt(Me,ae),Me.return=W,Me._debugOwner=ae._owner,Me._debugInfo=pn,W=Me;break e}s(W,$);break}else u(W,$);$=$.sibling}ae.type===nn?(Me=Cu(ae.props.children,W.mode,Me,ae.key),Me.return=W,Me._debugOwner=W,Me._debugTask=W._debugTask,Me._debugInfo=pn,Id(ae,Me,W),W=Me):(Me=as(ae,W.mode,Me),Bt(Me,ae),Me.return=W,Me._debugInfo=pn,W=Me)}return W=D(W),pn=qe,W;case Ms:e:{for(qe=ae,ae=qe.key;$!==null;){if($.key===ae)if($.tag===4&&$.stateNode.containerInfo===qe.containerInfo&&$.stateNode.implementation===qe.implementation){s(W,$.sibling),Me=v($,qe.children||[]),Me.return=W,W=Me;break e}else{s(W,$);break}else u(W,$);$=$.sibling}Me=am(qe,W.mode,Me),Me.return=W,W=Me}return D(W);case ho:return qe=Lr(ae._debugInfo),ae=ph(ae),W=Mn(W,$,ae,Me),pn=qe,W}if(Qt(ae))return qe=Lr(ae._debugInfo),W=Xt(W,$,ae,Me),pn=qe,W;if(Xe(ae)){if(qe=Lr(ae._debugInfo),en=Xe(ae),typeof en!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var gt=en.call(ae);return gt===ae?(W.tag!==0||Object.prototype.toString.call(W.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(gt)!=="[object Generator]")&&(i1||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),i1=!0):ae.entries!==en||ES||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ES=!0),W=Ei(W,$,gt,Me),pn=qe,W}if(typeof ae.then=="function")return qe=Lr(ae._debugInfo),W=Mn(W,$,Va(ae),Me),pn=qe,W;if(ae.$$typeof===Ko)return Mn(W,$,Wn(W,ae),Me);ft(W,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint"?(qe=""+ae,$!==null&&$.tag===6?(s(W,$.sibling),Me=v($,qe),Me.return=W,W=Me):(s(W,$),Me=Zi(qe,W.mode,Me),Me.return=W,Me._debugOwner=W,Me._debugTask=W._debugTask,Me._debugInfo=pn,W=Me),D(W)):(typeof ae=="function"&&En(W,ae),typeof ae=="symbol"&&Mi(W,ae),s(W,$))}return function(W,$,ae,Me){var qe=pn;pn=null;try{n1=0;var en=Mn(W,$,ae,Me);return my=null,en}catch(Di){if(Di===Hv||Di===mS)throw Di;var gt=Je(29,Di,null,W.mode);gt.lanes=Me,gt.return=W;var rn=gt._debugInfo=pn;if(gt._debugOwner=W._debugOwner,gt._debugTask=W._debugTask,rn!=null){for(var sn=rn.length-1;0<=sn;sn--)if(typeof rn[sn].stack=="string"){gt._debugOwner=rn[sn],gt._debugTask=rn[sn].debugTask;break}}return gt}finally{pn=qe}}}function Iu(r){var u=r.alternate;Le(na,na.current&Dp,r),Le(al,r,r),Bs===null&&(u===null||Jf.current!==null||u.memoizedState!==null)&&(Bs=r)}function gc(r){if(r.tag===22){if(Le(na,na.current,r),Le(al,r,r),Bs===null){var u=r.alternate;u!==null&&u.memoizedState!==null&&(Bs=r)}}else Ol(r)}function Ol(r){Le(na,na.current,r),Le(al,al.current,r)}function Qr(r){ve(al,r),Bs===r&&(Bs=null),ve(na,r)}function fu(r){for(var u=r;u!==null;){if(u.tag===13){var s=u.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data===rd||Es(s)))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===r)break;for(;u.sibling===null;){if(u.return===null||u.return===r)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}function yn(r){if(r!==null&&typeof r!="function"){var u=String(r);VT.has(u)||(VT.add(u),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r))}}function Kn(r,u,s,p){var v=r.memoizedState,E=s(p,v);if(r.mode&Ra){Ot(!0);try{E=s(p,v)}finally{Ot(!1)}}E===void 0&&(u=bn(u)||"Component",g2.has(u)||(g2.add(u),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",u))),v=E==null?v:cn({},v,E),r.memoizedState=v,r.lanes===0&&(r.updateQueue.baseState=v)}function Eg(r,u,s,p,v,E,D){var k=r.stateNode;if(typeof k.shouldComponentUpdate=="function"){if(s=k.shouldComponentUpdate(p,E,D),r.mode&Ra){Ot(!0);try{s=k.shouldComponentUpdate(p,E,D)}finally{Ot(!1)}}return s===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",bn(u)||"Component"),s}return u.prototype&&u.prototype.isPureReactComponent?!$c(s,p)||!$c(v,E):!0}function yi(r,u,s,p){var v=u.state;typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(s,p),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(s,p),u.state!==v&&(r=At(r)||"Component",Ip.has(r)||(Ip.add(r),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",r)),xS.enqueueReplaceState(u,u.state,null))}function df(r,u){var s=u;if("ref"in u){s={};for(var p in u)p!=="ref"&&(s[p]=u[p])}if(r=r.defaultProps){s===u&&(s=cn({},s));for(var v in r)s[v]===void 0&&(s[v]=r[v])}return s}function pm(r){wS(r),console.warn(`%s
273
-
274
- %s
275
- `,w0?"An error occurred in the <"+w0+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
276
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Y1(r){var u=w0?"The above error occurred in the <"+w0+"> component.":"The above error occurred in one of your React components.",s="React will try to recreate this component tree from scratch using the error boundary you provided, "+((qT||"Anonymous")+".");if(typeof r=="object"&&r!==null&&typeof r.environmentName=="string"){var p=r.environmentName;r=[`%o
277
-
278
- %s
279
-
280
- %s
281
- `,r,u,s].slice(0),typeof r[0]=="string"?r.splice(0,1,qS+r[0],YS,XS+p+XS,dE):r.splice(0,0,qS,YS,XS+p+XS,dE),r.unshift(console),p=L2.apply(console.error,r),p()}else console.error(`%o
282
-
283
- %s
284
-
285
- %s
286
- `,r,u,s)}function Ag(r){wS(r)}function Ld(r,u){try{w0=u.source?At(u.source):null,qT=null;var s=u.value;if(ye.actQueue!==null)ye.thrownErrors.push(s);else{var p=r.onUncaughtError;p(s,{componentStack:u.stack})}}catch(v){setTimeout(function(){throw v})}}function Od(r,u,s){try{w0=s.source?At(s.source):null,qT=At(u);var p=r.onCaughtError;p(s.value,{componentStack:s.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function li(r,u,s){return s=ls(s),s.tag=gy,s.payload={element:null},s.callback=function(){G(u.source,Ld,r,u)},s}function Pi(r){return r=ls(r),r.tag=gy,r}function hf(r,u,s,p){var v=s.type.getDerivedStateFromError;if(typeof v=="function"){var E=p.value;r.payload=function(){return v(E)},r.callback=function(){Rh(s),G(p.source,Od,u,s,p)}}var D=s.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(r.callback=function(){Rh(s),G(p.source,Od,u,s,p),typeof v!="function"&&(Zl===null?Zl=new Set([this]):Zl.add(this)),c2(this,p),typeof v=="function"||(s.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",At(s)||"Unknown")})}function gs(r,u,s,p,v){if(s.flags|=32768,er&&Zr(r,v),p!==null&&typeof p=="object"&&typeof p.then=="function"){if(u=s.alternate,u!==null&&wt(u,s,v,!0),Pn&&(_s=!0),s=al.current,s!==null){switch(s.tag){case 13:return Bs===null?wm():s.alternate===null&&gi===ol&&(gi=QT),s.flags&=-257,s.flags|=65536,s.lanes=v,p===Gv?s.flags|=16384:(u=s.updateQueue,u===null?s.updateQueue=new Set([p]):u.add(p),jg(r,p,v)),!1;case 22:return s.flags|=65536,p===Gv?s.flags|=16384:(u=s.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([p])},s.updateQueue=u):(s=u.retryQueue,s===null?u.retryQueue=new Set([p]):s.add(p)),jg(r,p,v)),!1}throw Error("Unexpected Suspense handler tag ("+s.tag+"). This is a bug in React.")}return jg(r,p,v),wm(),!1}if(Pn)return _s=!0,u=al.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=v,p!==MT&&rf($u(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:p}),s))):(p!==MT&&rf($u(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:p}),s)),r=r.current.alternate,r.flags|=65536,v&=-v,r.lanes|=v,p=$u(p,s),v=li(r.stateNode,p,v),sc(r,v),gi!==R0&&(gi=mh)),!1;var E=$u(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:p}),s);if(wy===null?wy=[E]:wy.push(E),gi!==R0&&(gi=mh),u===null)return!0;p=$u(p,s),s=u;do{switch(s.tag){case 3:return s.flags|=65536,r=v&-v,s.lanes|=r,r=li(s.stateNode,p,r),sc(s,r),!1;case 1:if(u=s.type,E=s.stateNode,(s.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Zl===null||!Zl.has(E))))return s.flags|=65536,v&=-v,s.lanes|=v,v=Pi(v),hf(v,r,s,p),sc(s,v),!1}s=s.return}while(s!==null);return!1}function Mt(r,u,s,p){u.child=r===null?GT(u,null,s,p):yy(u,r.child,s,p)}function ms(r,u,s,p,v){s=s.render;var E=u.ref;if("ref"in p){var D={};for(var k in p)k!=="ref"&&(D[k]=p[k])}else D=p;return ar(u),gl(u),p=ro(r,u,s,D,E,v),k=ur(),Qc(),r!==null&&!ia?(ya(r,u,v),kl(r,u,v)):(Pn&&k&&Ih(u),u.flags|=1,Mt(r,u,p,v),u.child)}function zo(r,u,s,p,v){if(r===null){var E=s.type;return typeof E=="function"&&!ja(E)&&E.defaultProps===void 0&&s.compare===null?(s=eo(E),u.tag=15,u.type=s,ys(u,E),hn(r,u,s,p,v)):(r=Dh(s.type,null,p,u,u.mode,v),r.ref=u.ref,r.return=u,u.child=r)}if(E=r.child,!ym(r,v)){var D=E.memoizedProps;if(s=s.compare,s=s!==null?s:$c,s(D,p)&&r.ref===u.ref)return kl(r,u,v)}return u.flags|=1,r=Oo(E,p),r.ref=u.ref,r.return=u,u.child=r}function hn(r,u,s,p,v){if(r!==null){var E=r.memoizedProps;if($c(E,p)&&r.ref===u.ref&&u.type===r.type)if(ia=!1,u.pendingProps=p=E,ym(r,v))(r.flags&131072)!==0&&(ia=!0);else return u.lanes=r.lanes,kl(r,u,v)}return mt(r,u,s,p,v)}function Bo(r,u,s){var p=u.pendingProps,v=p.children,E=r!==null?r.memoizedState:null;if(p.mode==="hidden"){if((u.flags&128)!==0){if(p=E!==null?E.baseLanes|s:s,r!==null){for(v=u.child=r.child,E=0;v!==null;)E=E|v.lanes|v.childLanes,v=v.sibling;u.childLanes=E&~p}else u.childLanes=0,u.child=null;return xg(r,u,p,s)}if((s&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},r!==null&&sg(u,E!==null?E.cachePool:null),E!==null?Tr(u,E):fc(u),gc(u);else return u.lanes=u.childLanes=536870912,xg(r,u,E!==null?E.baseLanes|s:s,s)}else E!==null?(sg(u,E.cachePool),Tr(u,E),Ol(u),u.memoizedState=null):(r!==null&&sg(u,null),fc(u),Ol(u));return Mt(r,u,v,s),u.child}function xg(r,u,s,p){var v=om();return v=v===null?null:{parent:jr._currentValue,pool:v},u.memoizedState={baseLanes:s,cachePool:v},r!==null&&sg(u,null),fc(u),gc(u),r!==null&&wt(r,u,p,!0),null}function Zt(r,u){var s=u.ref;if(s===null)r!==null&&r.ref!==null&&(u.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(r===null||r.ref!==s)&&(u.flags|=4194816)}}function mt(r,u,s,p,v){if(s.prototype&&typeof s.prototype.render=="function"){var E=bn(s)||"Unknown";v2[E]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",E,E),v2[E]=!0)}return u.mode&Ra&&Yu.recordLegacyContextWarning(u,null),r===null&&(ys(u,u.type),s.contextTypes&&(E=bn(s)||"Unknown",YT[E]||(YT[E]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",E)))),ar(u),gl(u),s=ro(r,u,s,p,void 0,v),p=ur(),Qc(),r!==null&&!ia?(ya(r,u,v),kl(r,u,v)):(Pn&&p&&Ih(u),u.flags|=1,Mt(r,u,s,v),u.child)}function Ul(r,u,s,p,v,E){return ar(u),gl(u),rl=-1,Zv=r!==null&&r.type!==u.type,u.updateQueue=null,s=bu(u,p,s,v),kh(r,u),p=ur(),Qc(),r!==null&&!ia?(ya(r,u,E),kl(r,u,E)):(Pn&&p&&Ih(u),u.flags|=1,Mt(r,u,s,E),u.child)}function Ta(r,u,s,p,v){switch(la(u)){case!1:var E=u.stateNode,D=new u.type(u.memoizedProps,E.context).state;E.updater.enqueueSetState(E,D,null);break;case!0:u.flags|=128,u.flags|=65536,E=Error("Simulated error coming from DevTools");var k=v&-v;if(u.lanes|=k,D=Ri,D===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");k=Pi(k),hf(k,D,u,$u(E,u)),sc(u,k)}if(ar(u),u.stateNode===null){if(D=Kf,E=s.contextType,"contextType"in s&&E!==null&&(E===void 0||E.$$typeof!==Ko)&&!Sy.has(s)&&(Sy.add(s),k=E===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof E!="object"?" However, it is set to a "+typeof E+".":E.$$typeof===qm?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(E).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",bn(s)||"Component",k)),typeof E=="object"&&E!==null&&(D=Dn(E)),E=new s(p,D),u.mode&Ra){Ot(!0);try{E=new s(p,D)}finally{Ot(!1)}}if(D=u.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=xS,u.stateNode=E,E._reactInternals=u,E._reactInternalInstance=d2,typeof s.getDerivedStateFromProps=="function"&&D===null&&(D=bn(s)||"Component",h2.has(D)||(h2.add(D),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",D,E.state===null?"null":"undefined",D))),typeof s.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"){var H=k=D=null;if(typeof E.componentWillMount=="function"&&E.componentWillMount.__suppressDeprecationWarning!==!0?D="componentWillMount":typeof E.UNSAFE_componentWillMount=="function"&&(D="UNSAFE_componentWillMount"),typeof E.componentWillReceiveProps=="function"&&E.componentWillReceiveProps.__suppressDeprecationWarning!==!0?k="componentWillReceiveProps":typeof E.UNSAFE_componentWillReceiveProps=="function"&&(k="UNSAFE_componentWillReceiveProps"),typeof E.componentWillUpdate=="function"&&E.componentWillUpdate.__suppressDeprecationWarning!==!0?H="componentWillUpdate":typeof E.UNSAFE_componentWillUpdate=="function"&&(H="UNSAFE_componentWillUpdate"),D!==null||k!==null||H!==null){E=bn(s)||"Component";var X=typeof s.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";vy.has(E)||(vy.add(E),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
287
-
288
- %s uses %s but also contains the following legacy lifecycles:%s%s%s
289
-
290
- The above lifecycles should be removed. Learn more about this warning here:
291
- https://react.dev/link/unsafe-component-lifecycles`,E,X,D!==null?`
292
- `+D:"",k!==null?`
293
- `+k:"",H!==null?`
294
- `+H:""))}}E=u.stateNode,D=bn(s)||"Component",E.render||(s.prototype&&typeof s.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",D):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",D)),!E.getInitialState||E.getInitialState.isReactClassApproved||E.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",D),E.getDefaultProps&&!E.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",D),E.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",D),s.childContextTypes&&!y2.has(s)&&(y2.add(s),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",D)),s.contextTypes&&!m2.has(s)&&(m2.add(s),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",D)),typeof E.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",D),s.prototype&&s.prototype.isPureReactComponent&&typeof E.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",bn(s)||"A pure component"),typeof E.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",D),typeof E.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",D),typeof E.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",D),typeof E.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",D),k=E.props!==p,E.props!==void 0&&k&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",D),E.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",D,D),typeof E.getSnapshotBeforeUpdate!="function"||typeof E.componentDidUpdate=="function"||p2.has(s)||(p2.add(s),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",bn(s))),typeof E.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",D),typeof E.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",D),typeof s.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",D),(k=E.state)&&(typeof k!="object"||Qt(k))&&console.error("%s.state: must be set to an object or null",D),typeof E.getChildContext=="function"&&typeof s.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",D),E=u.stateNode,E.props=p,E.state=u.memoizedState,E.refs={},ga(u),D=s.contextType,E.context=typeof D=="object"&&D!==null?Dn(D):Kf,E.state===p&&(D=bn(s)||"Component",tr.has(D)||(tr.add(D),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",D))),u.mode&Ra&&Yu.recordLegacyContextWarning(u,E),Yu.recordUnsafeLifecycleWarnings(u,E),E.state=u.memoizedState,D=s.getDerivedStateFromProps,typeof D=="function"&&(Kn(u,s,D,p),E.state=u.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(D=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),D!==E.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",At(u)||"Component"),xS.enqueueReplaceState(E,E.state,null)),uf(u,p,E,v),Dr(),E.state=u.memoizedState),typeof E.componentDidMount=="function"&&(u.flags|=4194308),(u.mode&ci)!==bi&&(u.flags|=134217728),E=!0}else if(r===null){E=u.stateNode;var ge=u.memoizedProps;k=df(s,ge),E.props=k;var Ae=E.context;H=s.contextType,D=Kf,typeof H=="object"&&H!==null&&(D=Dn(H)),X=s.getDerivedStateFromProps,H=typeof X=="function"||typeof E.getSnapshotBeforeUpdate=="function",ge=u.pendingProps!==ge,H||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(ge||Ae!==D)&&yi(u,E,p,D),fh=!1;var he=u.memoizedState;E.state=he,uf(u,p,E,v),Dr(),Ae=u.memoizedState,ge||he!==Ae||fh?(typeof X=="function"&&(Kn(u,s,X,p),Ae=u.memoizedState),(k=fh||Eg(u,s,k,p,he,Ae,D))?(H||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(u.flags|=4194308),(u.mode&ci)!==bi&&(u.flags|=134217728)):(typeof E.componentDidMount=="function"&&(u.flags|=4194308),(u.mode&ci)!==bi&&(u.flags|=134217728),u.memoizedProps=p,u.memoizedState=Ae),E.props=p,E.state=Ae,E.context=D,E=k):(typeof E.componentDidMount=="function"&&(u.flags|=4194308),(u.mode&ci)!==bi&&(u.flags|=134217728),E=!1)}else{E=u.stateNode,lc(r,u),D=u.memoizedProps,H=df(s,D),E.props=H,X=u.pendingProps,he=E.context,Ae=s.contextType,k=Kf,typeof Ae=="object"&&Ae!==null&&(k=Dn(Ae)),ge=s.getDerivedStateFromProps,(Ae=typeof ge=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(D!==X||he!==k)&&yi(u,E,p,k),fh=!1,he=u.memoizedState,E.state=he,uf(u,p,E,v),Dr();var we=u.memoizedState;D!==X||he!==we||fh||r!==null&&r.dependencies!==null&&Gn(r.dependencies)?(typeof ge=="function"&&(Kn(u,s,ge,p),we=u.memoizedState),(H=fh||Eg(u,s,H,p,he,we,k)||r!==null&&r.dependencies!==null&&Gn(r.dependencies))?(Ae||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(p,we,k),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(p,we,k)),typeof E.componentDidUpdate=="function"&&(u.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof E.componentDidUpdate!="function"||D===r.memoizedProps&&he===r.memoizedState||(u.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&he===r.memoizedState||(u.flags|=1024),u.memoizedProps=p,u.memoizedState=we),E.props=p,E.state=we,E.context=k,E=H):(typeof E.componentDidUpdate!="function"||D===r.memoizedProps&&he===r.memoizedState||(u.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&he===r.memoizedState||(u.flags|=1024),E=!1)}if(k=E,Zt(r,u),D=(u.flags&128)!==0,k||D){if(k=u.stateNode,Zs(u),D&&typeof s.getDerivedStateFromError!="function")s=null,go=-1;else{if(gl(u),s=o2(k),u.mode&Ra){Ot(!0);try{o2(k)}finally{Ot(!1)}}Qc()}u.flags|=1,r!==null&&D?(u.child=yy(u,r.child,null,v),u.child=yy(u,null,s,v)):Mt(r,u,s,v),u.memoizedState=k.state,r=u.child}else r=kl(r,u,v);return v=u.stateNode,E&&v.props!==p&&(gh||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",At(u)||"a component"),gh=!0),r}function Vh(r,u,s,p){return pa(),u.flags|=256,Mt(r,u,s,p),u.child}function ys(r,u){u&&u.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
295
- %s.childContextTypes = ...`,u.displayName||u.name||"Component"),typeof u.getDerivedStateFromProps=="function"&&(r=bn(u)||"Unknown",XT[r]||(console.error("%s: Function components do not support getDerivedStateFromProps.",r),XT[r]=!0)),typeof u.contextType=="object"&&u.contextType!==null&&(u=bn(u)||"Unknown",S2[u]||(console.error("%s: Function components do not support contextType.",u),S2[u]=!0))}function qh(r){return{baseLanes:r,cachePool:Xy()}}function Ud(r,u,s){return r=r!==null?r.childLanes&~s:0,u&&(r|=Ql),r}function mc(r,u,s){var p,v=u.pendingProps;pr(u)&&(u.flags|=128);var E=!1,D=(u.flags&128)!==0;if((p=D)||(p=r!==null&&r.memoizedState===null?!1:(na.current&Ps)!==0),p&&(E=!0,u.flags&=-129),p=(u.flags&32)!==0,u.flags&=-33,r===null){if(Pn){if(E?Iu(u):Ol(u),Pn){var k=wr,H;if(!(H=!k)){e:{var X=k;for(H=_c;X.nodeType!==8;){if(!H){H=null;break e}if(X=kr(X.nextSibling),X===null){H=null;break e}}H=X}H!==null?(za(),u.memoizedState={dehydrated:H,treeContext:y0!==null?{id:Ns,overflow:Qf}:null,retryLane:536870912,hydrationErrors:null},X=Je(18,null,null,bi),X.stateNode=H,X.return=u,u.child=X,po=u,wr=null,H=!0):H=!1,H=!H}H&&(ac(u,k),Pa(u))}if(k=u.memoizedState,k!==null&&(k=k.dehydrated,k!==null))return Es(k)?u.lanes=32:u.lanes=536870912,null;Qr(u)}return k=v.children,v=v.fallback,E?(Ol(u),E=u.mode,k=Yh({mode:"hidden",children:k},E),v=Cu(v,E,s,null),k.return=u,v.return=u,k.sibling=v,u.child=k,E=u.child,E.memoizedState=qh(s),E.childLanes=Ud(r,p,s),u.memoizedState=M0,v):(Iu(u),gm(u,k))}var ge=r.memoizedState;if(ge!==null&&(k=ge.dehydrated,k!==null)){if(D)u.flags&256?(Iu(u),u.flags&=-257,u=Xh(r,u,s)):u.memoizedState!==null?(Ol(u),u.child=r.child,u.flags|=128,u=null):(Ol(u),E=v.fallback,k=u.mode,v=Yh({mode:"visible",children:v.children},k),E=Cu(E,k,s,null),E.flags|=2,v.return=u,E.return=u,v.sibling=E,u.child=v,yy(u,r.child,null,s),v=u.child,v.memoizedState=qh(s),v.childLanes=Ud(r,p,s),u.memoizedState=M0,u=E);else if(Iu(u),Pn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Es(k)){if(p=k.nextSibling&&k.nextSibling.dataset,p){H=p.dgst;var Ae=p.msg;X=p.stck;var he=p.cstck}k=Ae,p=H,v=X,H=E=he,E=Error(k||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),E.stack=v||"",E.digest=p,p=H===void 0?null:H,v={value:E,source:null,stack:p},typeof p=="string"&&lS.set(E,v),rf(v),u=Xh(r,u,s)}else if(ia||wt(r,u,s,!1),p=(s&r.childLanes)!==0,ia||p){if(p=Ri,p!==null&&(v=s&-s,v=(v&42)!==0?1:Ua(v),v=(v&(p.suspendedLanes|s))!==0?0:v,v!==0&&v!==ge.retryLane))throw ge.retryLane=v,iu(r,v),Hi(p,r,v),C0;k.data===rd||wm(),u=Xh(r,u,s)}else k.data===rd?(u.flags|=192,u.child=r.child,u=null):(r=ge.treeContext,wr=kr(k.nextSibling),po=u,Pn=!0,nt=null,_s=!1,Fe=null,_c=!1,r!==null&&(za(),$t[Yl++]=Ns,$t[Yl++]=Qf,$t[Yl++]=y0,Ns=r.id,Qf=r.overflow,y0=u),u=gm(u,v.children),u.flags|=4096);return u}return E?(Ol(u),E=v.fallback,k=u.mode,H=r.child,X=H.sibling,v=Oo(H,{mode:"hidden",children:v.children}),v.subtreeFlags=H.subtreeFlags&65011712,X!==null?E=Oo(X,E):(E=Cu(E,k,s,null),E.flags|=2),E.return=u,v.return=u,v.sibling=E,u.child=v,v=E,E=u.child,k=r.child.memoizedState,k===null?k=qh(s):(H=k.cachePool,H!==null?(X=jr._currentValue,H=H.parent!==X?{parent:X,pool:X}:H):H=Xy(),k={baseLanes:k.baseLanes|s,cachePool:H}),E.memoizedState=k,E.childLanes=Ud(r,p,s),u.memoizedState=M0,v):(Iu(u),s=r.child,r=s.sibling,s=Oo(s,{mode:"visible",children:v.children}),s.return=u,s.sibling=null,r!==null&&(p=u.deletions,p===null?(u.deletions=[r],u.flags|=16):p.push(r)),u.child=s,u.memoizedState=null,s)}function gm(r,u){return u=Yh({mode:"visible",children:u},r.mode),u.return=r,r.child=u}function Yh(r,u){return r=Je(22,r,null,u),r.lanes=0,r.stateNode={_visibility:g0,_pendingMarkers:null,_retryCache:null,_transitions:null},r}function Xh(r,u,s){return yy(u,r.child,null,s),r=gm(u,u.pendingProps.children),r.flags|=2,u.memoizedState=null,r}function kd(r,u,s){r.lanes|=u;var p=r.alternate;p!==null&&(p.lanes|=u),Lh(r.return,u,s)}function Fh(r,u){var s=Qt(r);return r=!s&&typeof Xe(r)=="function",s||r?(s=s?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",s,u,s),!1):!0}function mm(r,u,s,p,v){var E=r.memoizedState;E===null?r.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:p,tail:s,tailMode:v}:(E.isBackwards=u,E.rendering=null,E.renderingStartTime=0,E.last=p,E.tail=s,E.tailMode=v)}function Jy(r,u,s){var p=u.pendingProps,v=p.revealOrder,E=p.tail;if(p=p.children,v!==void 0&&v!=="forwards"&&v!=="backwards"&&v!=="together"&&!T2[v])if(T2[v]=!0,typeof v=="string")switch(v.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',v,v.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',v,v.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',v)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',v);E===void 0||r1[E]||(E!=="collapsed"&&E!=="hidden"?(r1[E]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',E)):v!=="forwards"&&v!=="backwards"&&(r1[E]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',E)));e:if((v==="forwards"||v==="backwards")&&p!==void 0&&p!==null&&p!==!1)if(Qt(p)){for(var D=0;D<p.length;D++)if(!Fh(p[D],D))break e}else if(D=Xe(p),typeof D=="function"){if(D=D.call(p))for(var k=D.next(),H=0;!k.done;k=D.next()){if(!Fh(k.value,H))break e;H++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',v);if(Mt(r,u,p,s),p=na.current,(p&Ps)!==0)p=p&Dp|Ps,u.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=u.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&kd(r,s,u);else if(r.tag===19)kd(r,s,u);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===u)break e;for(;r.sibling===null;){if(r.return===null||r.return===u)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}p&=Dp}switch(Le(na,p,u),v){case"forwards":for(s=u.child,v=null;s!==null;)r=s.alternate,r!==null&&fu(r)===null&&(v=s),s=s.sibling;s=v,s===null?(v=u.child,u.child=null):(v=s.sibling,s.sibling=null),mm(u,!1,v,s,E);break;case"backwards":for(s=null,v=u.child,u.child=null;v!==null;){if(r=v.alternate,r!==null&&fu(r)===null){u.child=v;break}r=v.sibling,v.sibling=s,s=v,v=r}mm(u,!0,s,null,E);break;case"together":mm(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function kl(r,u,s){if(r!==null&&(u.dependencies=r.dependencies),go=-1,Np|=u.lanes,(s&u.childLanes)===0)if(r!==null){if(wt(r,u,s,!1),(s&u.childLanes)===0)return null}else return null;if(r!==null&&u.child!==r.child)throw Error("Resuming work not yet implemented.");if(u.child!==null){for(r=u.child,s=Oo(r,r.pendingProps),u.child=s,s.return=u;r.sibling!==null;)r=r.sibling,s=s.sibling=Oo(r,r.pendingProps),s.return=u;s.sibling=null}return u.child}function ym(r,u){return(r.lanes&u)!==0?!0:(r=r.dependencies,!!(r!==null&&Gn(r)))}function X1(r,u,s){switch(u.tag){case 3:Ge(u,u.stateNode.containerInfo),os(u,jr,r.memoizedState.cache),pa();break;case 27:case 5:Re(u);break;case 4:Ge(u,u.stateNode.containerInfo);break;case 10:os(u,u.type,u.memoizedProps.value);break;case 12:(s&u.childLanes)!==0&&(u.flags|=4),u.flags|=2048;var p=u.stateNode;p.effectDuration=-0,p.passiveEffectDuration=-0;break;case 13:if(p=u.memoizedState,p!==null)return p.dehydrated!==null?(Iu(u),u.flags|=128,null):(s&u.child.childLanes)!==0?mc(r,u,s):(Iu(u),r=kl(r,u,s),r!==null?r.sibling:null);Iu(u);break;case 19:var v=(r.flags&128)!==0;if(p=(s&u.childLanes)!==0,p||(wt(r,u,s,!1),p=(s&u.childLanes)!==0),v){if(p)return Jy(r,u,s);u.flags|=128}if(v=u.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Le(na,na.current,u),p)break;return null;case 22:case 23:return u.lanes=0,Bo(r,u,s);case 24:os(u,jr,r.memoizedState.cache)}return kl(r,u,s)}function wg(r,u,s){if(u._debugNeedsRemount&&r!==null){s=Dh(u.type,u.key,u.pendingProps,u._debugOwner||null,u.mode,u.lanes),s._debugStack=u._debugStack,s._debugTask=u._debugTask;var p=u.return;if(p===null)throw Error("Cannot swap the root fiber.");if(r.alternate=null,u.alternate=null,s.index=u.index,s.sibling=u.sibling,s.return=u.return,s.ref=u.ref,s._debugInfo=u._debugInfo,u===p.child)p.child=s;else{var v=p.child;if(v===null)throw Error("Expected parent to have a child.");for(;v.sibling!==u;)if(v=v.sibling,v===null)throw Error("Expected to find the previous sibling.");v.sibling=s}return u=p.deletions,u===null?(p.deletions=[r],p.flags|=16):u.push(r),s.flags|=2,s}if(r!==null)if(r.memoizedProps!==u.pendingProps||u.type!==r.type)ia=!0;else{if(!ym(r,s)&&(u.flags&128)===0)return ia=!1,X1(r,u,s);ia=(r.flags&131072)!==0}else ia=!1,(p=Pn)&&(za(),p=(u.flags&1048576)!==0),p&&(p=u.index,za(),to(u,ot,p));switch(u.lanes=0,u.tag){case 16:e:if(p=u.pendingProps,r=ph(u.elementType),u.type=r,typeof r=="function")ja(r)?(p=df(r,p),u.tag=1,u.type=r=eo(r),u=Ta(null,u,r,p,s)):(u.tag=0,ys(u,r),u.type=r=eo(r),u=mt(null,u,r,p,s));else{if(r!=null){if(v=r.$$typeof,v===bc){u.tag=11,u.type=r=nm(r),u=ms(null,u,r,p,s);break e}else if(v===$g){u.tag=14,u=zo(null,u,r,p,s);break e}}throw u="",r!==null&&typeof r=="object"&&r.$$typeof===ho&&(u=" Did you wrap a component in React.lazy() more than once?"),r=bn(r)||r,Error("Element type is invalid. Received a promise that resolves to: "+r+". Lazy element type must resolve to a class or function."+u)}return u;case 0:return mt(r,u,u.type,u.pendingProps,s);case 1:return p=u.type,v=df(p,u.pendingProps),Ta(r,u,p,v,s);case 3:e:{if(Ge(u,u.stateNode.containerInfo),r===null)throw Error("Should have a current fiber. This is a bug in React.");p=u.pendingProps;var E=u.memoizedState;v=E.element,lc(r,u),uf(u,p,null,s);var D=u.memoizedState;if(p=D.cache,os(u,jr,p),p!==E.cache&&um(u,[jr],s,!0),Dr(),p=D.element,E.isDehydrated)if(E={element:p,isDehydrated:!1,cache:D.cache},u.updateQueue.baseState=E,u.memoizedState=E,u.flags&256){u=Vh(r,u,p,s);break e}else if(p!==v){v=$u(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),u),rf(v),u=Vh(r,u,p,s);break e}else{switch(r=u.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(wr=kr(r.firstChild),po=u,Pn=!0,nt=null,_s=!1,Fe=null,_c=!0,r=GT(u,null,p,s),u.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(pa(),p===v){u=kl(r,u,s);break e}Mt(r,u,p,s)}u=u.child}return u;case 26:return Zt(r,u),r===null?(r=As(u.type,null,u.pendingProps,null))?u.memoizedState=r:Pn||(r=u.type,s=u.pendingProps,p=_n(Rs.current),p=vn(p).createElement(r),p[$r]=u,p[Gu]=s,Gi(p,r,s),mr(p),u.stateNode=p):u.memoizedState=As(u.type,r.memoizedProps,u.pendingProps,r.memoizedState),null;case 27:return Re(u),r===null&&Pn&&(p=_n(Rs.current),v=re(),p=u.stateNode=hv(u.type,u.pendingProps,p,v,!1),_s||(v=hi(p,u.type,u.pendingProps,v),v!==null&&(Ba(u,0).serverProps=v)),po=u,_c=!0,v=wr,_u(u.type)?(VS=v,wr=kr(p.firstChild)):wr=v),Mt(r,u,u.pendingProps.children,s),Zt(r,u),r===null&&(u.flags|=4194304),u.child;case 5:return r===null&&Pn&&(E=re(),p=Rn(u.type,E.ancestorInfo),v=wr,(D=!v)||(D=bf(v,u.type,u.pendingProps,_c),D!==null?(u.stateNode=D,_s||(E=hi(D,u.type,u.pendingProps,E),E!==null&&(Ba(u,0).serverProps=E)),po=u,wr=kr(D.firstChild),_c=!1,E=!0):E=!1,D=!E),D&&(p&&ac(u,v),Pa(u))),Re(u),v=u.type,E=u.pendingProps,D=r!==null?r.memoizedProps:null,p=E.children,Ts(v,E)?p=null:D!==null&&Ts(v,D)&&(u.flags|=32),u.memoizedState!==null&&(v=ro(r,u,No,null,null,s),x1._currentValue=v),Zt(r,u),Mt(r,u,p,s),u.child;case 6:return r===null&&Pn&&(r=u.pendingProps,s=re(),p=s.ancestorInfo.current,r=p!=null?Ro(r,p.tag,s.ancestorInfo.implicitRootScope):!0,s=wr,(p=!s)||(p=Ur(s,u.pendingProps,_c),p!==null?(u.stateNode=p,po=u,wr=null,p=!0):p=!1,p=!p),p&&(r&&ac(u,s),Pa(u))),null;case 13:return mc(r,u,s);case 4:return Ge(u,u.stateNode.containerInfo),p=u.pendingProps,r===null?u.child=yy(u,null,p,s):Mt(r,u,p,s),u.child;case 11:return ms(r,u,u.type,u.pendingProps,s);case 7:return Mt(r,u,u.pendingProps,s),u.child;case 8:return Mt(r,u,u.pendingProps.children,s),u.child;case 12:return u.flags|=4,u.flags|=2048,p=u.stateNode,p.effectDuration=-0,p.passiveEffectDuration=-0,Mt(r,u,u.pendingProps.children,s),u.child;case 10:return p=u.type,v=u.pendingProps,E=v.value,"value"in v||Ty||(Ty=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),os(u,p,E),Mt(r,u,v.children,s),u.child;case 9:return v=u.type._context,p=u.pendingProps.children,typeof p!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),ar(u),v=Dn(v),gl(u),p=_T(p,v,void 0),Qc(),u.flags|=1,Mt(r,u,p,s),u.child;case 14:return zo(r,u,u.type,u.pendingProps,s);case 15:return hn(r,u,u.type,u.pendingProps,s);case 19:return Jy(r,u,s);case 31:return p=u.pendingProps,s=u.mode,p={mode:p.mode,children:p.children},r===null?(r=Yh(p,s),r.ref=u.ref,u.child=r,r.return=u,u=r):(r=Oo(r.child,p),r.ref=u.ref,u.child=r,r.return=u,u=r),u;case 22:return Bo(r,u,s);case 24:return ar(u),p=Dn(jr),r===null?(v=om(),v===null&&(v=Ri,E=ct(),v.pooledCache=E,ru(E),E!==null&&(v.pooledCacheLanes|=s),v=E),u.memoizedState={parent:p,cache:v},ga(u),os(u,jr,v)):((r.lanes&s)!==0&&(lc(r,u),uf(u,null,null,s),Dr()),v=r.memoizedState,E=u.memoizedState,v.parent!==p?(v={parent:p,cache:p},u.memoizedState=v,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=v),os(u,jr,p)):(p=E.cache,os(u,jr,p),p!==v.cache&&um(u,[jr],s,!0))),Mt(r,u,u.pendingProps.children,s),u.child;case 29:throw u.pendingProps}throw Error("Unknown unit of work tag ("+u.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Lu(r){r.flags|=4}function Cg(r,u){if(u.type!=="stylesheet"||(u.state.loading&qt)!==ad)r.flags&=-16777217;else if(r.flags|=16777216,!Qd(u)){if(u=al.current,u!==null&&((Sn&4194048)===Sn?Bs!==null:(Sn&62914560)!==Sn&&(Sn&536870912)===0||u!==Bs))throw Vv=Gv,OT;r.flags|=8192}}function Mg(r,u){u!==null&&(r.flags|=4),r.flags&16384&&(u=r.tag!==22?xu():536870912,r.lanes|=u,nd|=u)}function yc(r,u){if(!Pn)switch(r.tailMode){case"hidden":u=r.tail;for(var s=null;u!==null;)u.alternate!==null&&(s=u),u=u.sibling;s===null?r.tail=null:s.sibling=null;break;case"collapsed":s=r.tail;for(var p=null;s!==null;)s.alternate!==null&&(p=s),s=s.sibling;p===null?u||r.tail===null?r.tail=null:r.tail.sibling=null:p.sibling=null}}function Vn(r){var u=r.alternate!==null&&r.alternate.child===r.child,s=0,p=0;if(u)if((r.mode&Si)!==bi){for(var v=r.selfBaseDuration,E=r.child;E!==null;)s|=E.lanes|E.childLanes,p|=E.subtreeFlags&65011712,p|=E.flags&65011712,v+=E.treeBaseDuration,E=E.sibling;r.treeBaseDuration=v}else for(v=r.child;v!==null;)s|=v.lanes|v.childLanes,p|=v.subtreeFlags&65011712,p|=v.flags&65011712,v.return=r,v=v.sibling;else if((r.mode&Si)!==bi){v=r.actualDuration,E=r.selfBaseDuration;for(var D=r.child;D!==null;)s|=D.lanes|D.childLanes,p|=D.subtreeFlags,p|=D.flags,v+=D.actualDuration,E+=D.treeBaseDuration,D=D.sibling;r.actualDuration=v,r.treeBaseDuration=E}else for(v=r.child;v!==null;)s|=v.lanes|v.childLanes,p|=v.subtreeFlags,p|=v.flags,v.return=r,v=v.sibling;return r.subtreeFlags|=p,r.childLanes=s,u}function Wy(r,u,s){var p=u.pendingProps;switch(rc(u),u.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vn(u),null;case 1:return Vn(u),null;case 3:return s=u.stateNode,p=null,r!==null&&(p=r.memoizedState.cache),u.memoizedState.cache!==p&&(u.flags|=2048),oc(jr,u),je(u),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(r===null||r.child===null)&&(Td(u)?(Ed(),Lu(u)):r===null||r.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,uc())),Vn(u),null;case 26:return s=u.memoizedState,r===null?(Lu(u),s!==null?(Vn(u),Cg(u,s)):(Vn(u),u.flags&=-16777217)):s?s!==r.memoizedState?(Lu(u),Vn(u),Cg(u,s)):(Vn(u),u.flags&=-16777217):(r.memoizedProps!==p&&Lu(u),Vn(u),u.flags&=-16777217),null;case 27:ze(u),s=_n(Rs.current);var v=u.type;if(r!==null&&u.stateNode!=null)r.memoizedProps!==p&&Lu(u);else{if(!p){if(u.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Vn(u),null}r=re(),Td(u)?Sd(u):(r=hv(v,p,s,r,!0),u.stateNode=r,Lu(u))}return Vn(u),null;case 5:if(ze(u),s=u.type,r!==null&&u.stateNode!=null)r.memoizedProps!==p&&Lu(u);else{if(!p){if(u.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Vn(u),null}if(v=re(),Td(u))Sd(u);else{switch(r=_n(Rs.current),Rn(s,v.ancestorInfo),v=v.context,r=vn(r),v){case _0:r=r.createElementNS(oh,s);break;case PS:r=r.createElementNS(f0,s);break;default:switch(s){case"svg":r=r.createElementNS(oh,s);break;case"math":r=r.createElementNS(f0,s);break;case"script":r=r.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof p.is=="string"?r.createElement("select",{is:p.is}):r.createElement("select"),p.multiple?r.multiple=!0:p.size&&(r.size=p.size);break;default:r=typeof p.is=="string"?r.createElement(s,{is:p.is}):r.createElement(s),s.indexOf("-")===-1&&(s!==s.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",s),Object.prototype.toString.call(r)!=="[object HTMLUnknownElement]"||Dc.call(sE,s)||(sE[s]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",s)))}}r[$r]=u,r[Gu]=p;e:for(v=u.child;v!==null;){if(v.tag===5||v.tag===6)r.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===u)break e;for(;v.sibling===null;){if(v.return===null||v.return===u)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}u.stateNode=r;e:switch(Gi(r,s,p),s){case"button":case"input":case"select":case"textarea":r=!!p.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Lu(u)}}return Vn(u),u.flags&=-16777217,null;case 6:if(r&&u.stateNode!=null)r.memoizedProps!==p&&Lu(u);else{if(typeof p!="string"&&u.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(r=_n(Rs.current),s=re(),Td(u)){r=u.stateNode,s=u.memoizedProps,v=!_s,p=null;var E=po;if(E!==null)switch(E.tag){case 3:v&&(v=_m(r,s,p),v!==null&&(Ba(u,0).serverProps=v));break;case 27:case 5:p=E.memoizedProps,v&&(v=_m(r,s,p),v!==null&&(Ba(u,0).serverProps=v))}r[$r]=u,r=!!(r.nodeValue===s||p!==null&&p.suppressHydrationWarning===!0||cv(r.nodeValue,s)),r||Pa(u)}else v=s.ancestorInfo.current,v!=null&&Ro(p,v.tag,s.ancestorInfo.implicitRootScope),r=vn(r).createTextNode(p),r[$r]=u,u.stateNode=r}return Vn(u),null;case 13:if(p=u.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(v=Td(u),p!==null&&p.dehydrated!==null){if(r===null){if(!v)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(v=u.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");v[$r]=u,Vn(u),(u.mode&Si)!==bi&&p!==null&&(v=u.child,v!==null&&(u.treeBaseDuration-=v.treeBaseDuration))}else Ed(),pa(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4,Vn(u),(u.mode&Si)!==bi&&p!==null&&(v=u.child,v!==null&&(u.treeBaseDuration-=v.treeBaseDuration));v=!1}else v=uc(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=v),v=!0;if(!v)return u.flags&256?(Qr(u),u):(Qr(u),null)}return Qr(u),(u.flags&128)!==0?(u.lanes=s,(u.mode&Si)!==bi&&no(u),u):(s=p!==null,r=r!==null&&r.memoizedState!==null,s&&(p=u.child,v=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(v=p.alternate.memoizedState.cachePool.pool),E=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(E=p.memoizedState.cachePool.pool),E!==v&&(p.flags|=2048)),s!==r&&s&&(u.child.flags|=8192),Mg(u,u.updateQueue),Vn(u),(u.mode&Si)!==bi&&s&&(r=u.child,r!==null&&(u.treeBaseDuration-=r.treeBaseDuration)),null);case 4:return je(u),r===null&&sv(u.stateNode.containerInfo),Vn(u),null;case 10:return oc(u.type,u),Vn(u),null;case 19:if(ve(na,u),v=u.memoizedState,v===null)return Vn(u),null;if(p=(u.flags&128)!==0,E=v.rendering,E===null)if(p)yc(v,!1);else{if(gi!==ol||r!==null&&(r.flags&128)!==0)for(r=u.child;r!==null;){if(E=fu(r),E!==null){for(u.flags|=128,yc(v,!1),r=E.updateQueue,u.updateQueue=r,Mg(u,r),u.subtreeFlags=0,r=s,s=u.child;s!==null;)rm(s,r),s=s.sibling;return Le(na,na.current&Dp|Ps,u),u.child}r=r.sibling}v.tail!==null&&Qo()>jp&&(u.flags|=128,p=!0,yc(v,!1),u.lanes=4194304)}else{if(!p)if(r=fu(E),r!==null){if(u.flags|=128,p=!0,r=r.updateQueue,u.updateQueue=r,Mg(u,r),yc(v,!0),v.tail===null&&v.tailMode==="hidden"&&!E.alternate&&!Pn)return Vn(u),null}else 2*Qo()-v.renderingStartTime>jp&&s!==536870912&&(u.flags|=128,p=!0,yc(v,!1),u.lanes=4194304);v.isBackwards?(E.sibling=u.child,u.child=E):(r=v.last,r!==null?r.sibling=E:u.child=E,v.last=E)}return v.tail!==null?(r=v.tail,v.rendering=r,v.tail=r.sibling,v.renderingStartTime=Qo(),r.sibling=null,s=na.current,s=p?s&Dp|Ps:s&Dp,Le(na,s,u),r):(Vn(u),null);case 22:case 23:return Qr(u),ma(u),p=u.memoizedState!==null,r!==null?r.memoizedState!==null!==p&&(u.flags|=8192):p&&(u.flags|=8192),p?(s&536870912)!==0&&(u.flags&128)===0&&(Vn(u),u.subtreeFlags&6&&(u.flags|=8192)):Vn(u),s=u.updateQueue,s!==null&&Mg(u,s.retryQueue),s=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),p=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(p=u.memoizedState.cachePool.pool),p!==s&&(u.flags|=2048),r!==null&&ve(bp,u),null;case 24:return s=null,r!==null&&(s=r.memoizedState.cache),u.memoizedState.cache!==s&&(u.flags|=2048),oc(jr,u),Vn(u),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+u.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function $y(r,u){switch(rc(u),u.tag){case 1:return r=u.flags,r&65536?(u.flags=r&-65537|128,(u.mode&Si)!==bi&&no(u),u):null;case 3:return oc(jr,u),je(u),r=u.flags,(r&65536)!==0&&(r&128)===0?(u.flags=r&-65537|128,u):null;case 26:case 27:case 5:return ze(u),null;case 13:if(Qr(u),r=u.memoizedState,r!==null&&r.dehydrated!==null){if(u.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");pa()}return r=u.flags,r&65536?(u.flags=r&-65537|128,(u.mode&Si)!==bi&&no(u),u):null;case 19:return ve(na,u),null;case 4:return je(u),null;case 10:return oc(u.type,u),null;case 22:case 23:return Qr(u),ma(u),r!==null&&ve(bp,u),r=u.flags,r&65536?(u.flags=r&-65537|128,(u.mode&Si)!==bi&&no(u),u):null;case 24:return oc(jr,u),null;case 25:return null;default:return null}}function ev(r,u){switch(rc(u),u.tag){case 3:oc(jr,u),je(u);break;case 26:case 27:case 5:ze(u);break;case 4:je(u);break;case 13:Qr(u);break;case 19:ve(na,u);break;case 10:oc(u.type,u);break;case 22:case 23:Qr(u),ma(u),r!==null&&ve(bp,u);break;case 24:oc(jr,u)}}function Nl(r){return(r.mode&Si)!==bi}function bg(r,u){Nl(r)?(ou(),pf(u,r),ii()):pf(u,r)}function Rg(r,u,s){Nl(r)?(ou(),Nd(s,r,u),ii()):Nd(s,r,u)}function pf(r,u){try{var s=u.updateQueue,p=s!==null?s.lastEffect:null;if(p!==null){var v=p.next;s=v;do{if((s.tag&r)===r&&((r&Da)!==il?it!==null&&typeof it.markComponentPassiveEffectMountStarted=="function"&&it.markComponentPassiveEffectMountStarted(u):(r&Ja)!==il&&it!==null&&typeof it.markComponentLayoutEffectMountStarted=="function"&&it.markComponentLayoutEffectMountStarted(u),p=void 0,(r&Xu)!==il&&(O0=!0),p=G(u,t1,s),(r&Xu)!==il&&(O0=!1),(r&Da)!==il?it!==null&&typeof it.markComponentPassiveEffectMountStopped=="function"&&it.markComponentPassiveEffectMountStopped():(r&Ja)!==il&&it!==null&&typeof it.markComponentLayoutEffectMountStopped=="function"&&it.markComponentLayoutEffectMountStopped(),p!==void 0&&typeof p!="function")){var E=void 0;E=(s.tag&Ja)!==0?"useLayoutEffect":(s.tag&Xu)!==0?"useInsertionEffect":"useEffect";var D=void 0;D=p===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof p.then=="function"?`
296
-
297
- It looks like you wrote `+E+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
298
-
299
- `+E+`(() => {
300
- async function fetchData() {
301
- // You can await here
302
- const response = await MyAPI.getData(someId);
303
- // ...
304
- }
305
- fetchData();
306
- }, [someId]); // Or [] if effect doesn't need props or state
307
-
308
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+p,G(u,function(k,H){console.error("%s must not return anything besides a function, which is used for clean-up.%s",k,H)},E,D)}s=s.next}while(s!==v)}}catch(k){Ut(u,u.return,k)}}function Nd(r,u,s){try{var p=u.updateQueue,v=p!==null?p.lastEffect:null;if(v!==null){var E=v.next;p=E;do{if((p.tag&r)===r){var D=p.inst,k=D.destroy;k!==void 0&&(D.destroy=void 0,(r&Da)!==il?it!==null&&typeof it.markComponentPassiveEffectUnmountStarted=="function"&&it.markComponentPassiveEffectUnmountStarted(u):(r&Ja)!==il&&it!==null&&typeof it.markComponentLayoutEffectUnmountStarted=="function"&&it.markComponentLayoutEffectUnmountStarted(u),(r&Xu)!==il&&(O0=!0),v=u,G(v,f2,v,s,k),(r&Xu)!==il&&(O0=!1),(r&Da)!==il?it!==null&&typeof it.markComponentPassiveEffectUnmountStopped=="function"&&it.markComponentPassiveEffectUnmountStopped():(r&Ja)!==il&&it!==null&&typeof it.markComponentLayoutEffectUnmountStopped=="function"&&it.markComponentLayoutEffectUnmountStopped())}p=p.next}while(p!==E)}}catch(H){Ut(u,u.return,H)}}function tv(r,u){Nl(r)?(ou(),pf(u,r),ii()):pf(u,r)}function _d(r,u,s){Nl(r)?(ou(),Nd(s,r,u),ii()):Nd(s,r,u)}function vm(r){var u=r.updateQueue;if(u!==null){var s=r.stateNode;r.type.defaultProps||"ref"in r.memoizedProps||gh||(s.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",At(r)||"instance"),s.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",At(r)||"instance"));try{G(r,Uh,u,s)}catch(p){Ut(r,r.return,p)}}}function F1(r,u,s){return r.getSnapshotBeforeUpdate(u,s)}function dT(r,u){var s=u.memoizedProps,p=u.memoizedState;u=r.stateNode,r.type.defaultProps||"ref"in r.memoizedProps||gh||(u.props!==r.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",At(r)||"instance"),u.state!==r.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",At(r)||"instance"));try{var v=df(r.type,s,r.elementType===r.type),E=G(r,F1,u,v,p);s=Ey,E!==void 0||s.has(r.type)||(s.add(r.type),G(r,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",At(r))})),u.__reactInternalSnapshotBeforeUpdate=E}catch(D){Ut(r,r.return,D)}}function Dg(r,u,s){s.props=df(r.type,r.memoizedProps),s.state=r.memoizedState,Nl(r)?(ou(),G(r,TS,r,u,s),ii()):G(r,TS,r,u,s)}function Kh(r){var u=r.ref;if(u!==null){switch(r.tag){case 26:case 27:case 5:var s=r.stateNode;break;case 30:s=r.stateNode;break;default:s=r.stateNode}if(typeof u=="function")if(Nl(r))try{ou(),r.refCleanup=u(s)}finally{ii()}else r.refCleanup=u(s);else typeof u=="string"?console.error("String refs are no longer supported."):u.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",At(r)),u.current=s}}function jd(r,u){try{G(r,Kh,r)}catch(s){Ut(r,u,s)}}function Po(r,u){var s=r.ref,p=r.refCleanup;if(s!==null)if(typeof p=="function")try{if(Nl(r))try{ou(),G(r,p)}finally{ii(r)}else G(r,p)}catch(v){Ut(r,u,v)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof s=="function")try{if(Nl(r))try{ou(),G(r,s,null)}finally{ii(r)}else G(r,s,null)}catch(v){Ut(r,u,v)}else s.current=null}function zd(r,u,s,p){var v=r.memoizedProps,E=v.id,D=v.onCommit;v=v.onRender,u=u===null?"mount":"update",Cp&&(u="nested-update"),typeof v=="function"&&v(E,u,r.actualDuration,r.treeBaseDuration,r.actualStartTime,s),typeof D=="function"&&D(r.memoizedProps.id,u,p,s)}function K1(r,u,s,p){var v=r.memoizedProps;r=v.id,v=v.onPostCommit,u=u===null?"mount":"update",Cp&&(u="nested-update"),typeof v=="function"&&v(r,u,p,s)}function Q1(r){var u=r.type,s=r.memoizedProps,p=r.stateNode;try{G(r,Nu,p,u,s,r)}catch(v){Ut(r,r.return,v)}}function Sm(r,u,s){try{G(r,pi,r.stateNode,r.type,s,u,r)}catch(p){Ut(r,r.return,p)}}function nv(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&_u(r.type)||r.tag===4}function gf(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||nv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&_u(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Ig(r,u,s){var p=r.tag;if(p===5||p===6)r=r.stateNode,u?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(r,u):(u=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,u.appendChild(r),s=s._reactRootContainer,s!=null||u.onclick!==null||(u.onclick=Ec));else if(p!==4&&(p===27&&_u(r.type)&&(s=r.stateNode,u=null),r=r.child,r!==null))for(Ig(r,u,s),r=r.sibling;r!==null;)Ig(r,u,s),r=r.sibling}function Bd(r,u,s){var p=r.tag;if(p===5||p===6)r=r.stateNode,u?s.insertBefore(r,u):s.appendChild(r);else if(p!==4&&(p===27&&_u(r.type)&&(s=r.stateNode),r=r.child,r!==null))for(Bd(r,u,s),r=r.sibling;r!==null;)Bd(r,u,s),r=r.sibling}function Z1(r){for(var u,s=r.return;s!==null;){if(nv(s)){u=s;break}s=s.return}if(u==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(u.tag){case 27:u=u.stateNode,s=gf(r),Bd(r,s,u);break;case 5:s=u.stateNode,u.flags&32&&(Ma(s),u.flags&=-33),u=gf(r),Bd(r,u,s);break;case 3:case 4:u=u.stateNode.containerInfo,s=gf(r),Ig(r,s,u);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Qh(r){var u=r.stateNode,s=r.memoizedProps;try{G(r,Bu,r.type,s,u,r)}catch(p){Ut(r,r.return,p)}}function Lg(r,u){if(r=r.containerInfo,lE=M1,r=G1(r),Gy(r)){if("selectionStart"in r)var s={start:r.selectionStart,end:r.selectionEnd};else e:{s=(s=r.ownerDocument)&&s.defaultView||window;var p=s.getSelection&&s.getSelection();if(p&&p.rangeCount!==0){s=p.anchorNode;var v=p.anchorOffset,E=p.focusNode;p=p.focusOffset;try{s.nodeType,E.nodeType}catch{s=null;break e}var D=0,k=-1,H=-1,X=0,ge=0,Ae=r,he=null;t:for(;;){for(var we;Ae!==s||v!==0&&Ae.nodeType!==3||(k=D+v),Ae!==E||p!==0&&Ae.nodeType!==3||(H=D+p),Ae.nodeType===3&&(D+=Ae.nodeValue.length),(we=Ae.firstChild)!==null;)he=Ae,Ae=we;for(;;){if(Ae===r)break t;if(he===s&&++X===v&&(k=D),he===E&&++ge===p&&(H=D),(we=Ae.nextSibling)!==null)break;Ae=he,he=Ae.parentNode}Ae=we}s=k===-1||H===-1?null:{start:k,end:H}}else s=null}s=s||{start:0,end:0}}else s=null;for(HS={focusedElem:r,selectionRange:s},M1=!1,Pr=u;Pr!==null;)if(u=Pr,r=u.child,(u.subtreeFlags&1024)!==0&&r!==null)r.return=u,Pr=r;else for(;Pr!==null;){switch(r=u=Pr,s=r.alternate,v=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:(v&1024)!==0&&s!==null&&dT(r,s);break;case 3:if((v&1024)!==0){if(r=r.stateNode.containerInfo,s=r.nodeType,s===9)up(r);else if(s===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":up(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((v&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(r=u.sibling,r!==null){r.return=u.return,Pr=r;break}Pr=u.return}}function Tm(r,u,s){var p=s.flags;switch(s.tag){case 0:case 11:case 15:Go(r,s),p&4&&bg(s,Ja|Xl);break;case 1:if(Go(r,s),p&4)if(r=s.stateNode,u===null)s.type.defaultProps||"ref"in s.memoizedProps||gh||(r.props!==s.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",At(s)||"instance"),r.state!==s.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",At(s)||"instance")),Nl(s)?(ou(),G(s,jT,s,r),ii()):G(s,jT,s,r);else{var v=df(s.type,u.memoizedProps);u=u.memoizedState,s.type.defaultProps||"ref"in s.memoizedProps||gh||(r.props!==s.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",At(s)||"instance"),r.state!==s.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",At(s)||"instance")),Nl(s)?(ou(),G(s,zT,s,r,v,u,r.__reactInternalSnapshotBeforeUpdate),ii()):G(s,zT,s,r,v,u,r.__reactInternalSnapshotBeforeUpdate)}p&64&&vm(s),p&512&&jd(s,s.return);break;case 3:if(u=Sr(),Go(r,s),p&64&&(p=s.updateQueue,p!==null)){if(v=null,s.child!==null)switch(s.child.tag){case 27:case 5:v=s.child.stateNode;break;case 1:v=s.child.stateNode}try{G(s,Uh,p,v)}catch(D){Ut(s,s.return,D)}}r.effectDuration+=au(u);break;case 27:u===null&&p&4&&Qh(s);case 26:case 5:Go(r,s),u===null&&p&4&&Q1(s),p&512&&jd(s,s.return);break;case 12:if(p&4){p=Sr(),Go(r,s),r=s.stateNode,r.effectDuration+=Ha(p);try{G(s,zd,s,u,jv,r.effectDuration)}catch(D){Ut(s,s.return,D)}}else Go(r,s);break;case 13:Go(r,s),p&4&&vs(r,s),p&64&&(r=s.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(s=zg.bind(null,s),We(r,s))));break;case 22:if(p=s.memoizedState!==null||Hs,!p){u=u!==null&&u.memoizedState!==null||nr,v=Hs;var E=nr;Hs=p,(nr=u)&&!E?_l(r,s,(s.subtreeFlags&8772)!==0):Go(r,s),Hs=v,nr=E}break;case 30:break;default:Go(r,s)}}function Og(r){var u=r.alternate;u!==null&&(r.alternate=null,Og(u)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(u=r.stateNode,u!==null&&ml(u)),r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function vc(r,u,s){for(s=s.child;s!==null;)Ho(r,u,s),s=s.sibling}function Ho(r,u,s){if(ba&&typeof ba.onCommitFiberUnmount=="function")try{ba.onCommitFiberUnmount(Bf,s)}catch(E){Hu||(Hu=!0,console.error("React instrumentation encountered an error: %s",E))}switch(s.tag){case 26:nr||Po(s,u),vc(r,u,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:nr||Po(s,u);var p=ra,v=Su;_u(s.type)&&(ra=s.stateNode,Su=!1),vc(r,u,s),G(s,Df,s.stateNode),ra=p,Su=v;break;case 5:nr||Po(s,u);case 6:if(p=ra,v=Su,ra=null,vc(r,u,s),ra=p,Su=v,ra!==null)if(Su)try{G(s,Fd,ra,s.stateNode)}catch(E){Ut(s,u,E)}else try{G(s,ju,ra,s.stateNode)}catch(E){Ut(s,u,E)}break;case 18:ra!==null&&(Su?(r=ra,ap(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,s.stateNode),eh(r)):ap(ra,s.stateNode));break;case 4:p=ra,v=Su,ra=s.stateNode.containerInfo,Su=!0,vc(r,u,s),ra=p,Su=v;break;case 0:case 11:case 14:case 15:nr||Nd(Xu,s,u),nr||Rg(s,u,Ja),vc(r,u,s);break;case 1:nr||(Po(s,u),p=s.stateNode,typeof p.componentWillUnmount=="function"&&Dg(s,u,p)),vc(r,u,s);break;case 21:vc(r,u,s);break;case 22:nr=(p=nr)||s.memoizedState!==null,vc(r,u,s),nr=p;break;default:vc(r,u,s)}}function vs(r,u){if(u.memoizedState===null&&(r=u.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{G(u,Nr,r)}catch(s){Ut(u,u.return,s)}}function Zh(r){switch(r.tag){case 13:case 19:var u=r.stateNode;return u===null&&(u=r.stateNode=new KT),u;case 22:return r=r.stateNode,u=r._retryCache,u===null&&(u=r._retryCache=new KT),u;default:throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}}function mf(r,u){var s=Zh(r);u.forEach(function(p){var v=Ya.bind(null,r,p);if(!s.has(p)){if(s.add(p),er)if(Ay!==null&&b0!==null)Zr(b0,Ay);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");p.then(v,v)}})}function Ea(r,u){var s=u.deletions;if(s!==null)for(var p=0;p<s.length;p++){var v=r,E=u,D=s[p],k=E;e:for(;k!==null;){switch(k.tag){case 27:if(_u(k.type)){ra=k.stateNode,Su=!1;break e}break;case 5:ra=k.stateNode,Su=!1;break e;case 3:case 4:ra=k.stateNode.containerInfo,Su=!0;break e}k=k.return}if(ra===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Ho(v,E,D),ra=null,Su=!1,v=D,E=v.alternate,E!==null&&(E.return=null),v.return=null}if(u.subtreeFlags&13878)for(u=u.child;u!==null;)Em(u,r),u=u.sibling}function Em(r,u){var s=r.alternate,p=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Ea(u,r),du(r),p&4&&(Nd(Xu|Xl,r,r.return),pf(Xu|Xl,r),Rg(r,r.return,Ja|Xl));break;case 1:Ea(u,r),du(r),p&512&&(nr||s===null||Po(s,s.return)),p&64&&Hs&&(r=r.updateQueue,r!==null&&(p=r.callbacks,p!==null&&(s=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=s===null?p:s.concat(p))));break;case 26:var v=jc;if(Ea(u,r),du(r),p&512&&(nr||s===null||Po(s,s.return)),p&4)if(u=s!==null?s.memoizedState:null,p=r.memoizedState,s===null)if(p===null)if(r.stateNode===null){e:{p=r.type,s=r.memoizedProps,u=v.ownerDocument||v;t:switch(p){case"title":v=u.getElementsByTagName("title")[0],(!v||v[yp]||v[$r]||v.namespaceURI===oh||v.hasAttribute("itemprop"))&&(v=u.createElement(p),u.head.insertBefore(v,u.querySelector("head > title"))),Gi(v,p,s),v[$r]=r,mr(v),p=v;break e;case"link":var E=Yn("link","href",u).get(p+(s.href||""));if(E){for(var D=0;D<E.length;D++)if(v=E[D],v.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&v.getAttribute("rel")===(s.rel==null?null:s.rel)&&v.getAttribute("title")===(s.title==null?null:s.title)&&v.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){E.splice(D,1);break t}}v=u.createElement(p),Gi(v,p,s),u.head.appendChild(v);break;case"meta":if(E=Yn("meta","content",u).get(p+(s.content||""))){for(D=0;D<E.length;D++)if(v=E[D],It(s.content,"content"),v.getAttribute("content")===(s.content==null?null:""+s.content)&&v.getAttribute("name")===(s.name==null?null:s.name)&&v.getAttribute("property")===(s.property==null?null:s.property)&&v.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&v.getAttribute("charset")===(s.charSet==null?null:s.charSet)){E.splice(D,1);break t}}v=u.createElement(p),Gi(v,p,s),u.head.appendChild(v);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+p+'". This is a bug in React.')}v[$r]=r,mr(v),p=v}r.stateNode=p}else Kd(v,r.type,r.stateNode);else r.stateNode=Vt(v,p,r.memoizedProps);else u!==p?(u===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):u.count--,p===null?Kd(v,r.type,r.stateNode):Vt(v,p,r.memoizedProps)):p===null&&r.stateNode!==null&&Sm(r,r.memoizedProps,s.memoizedProps);break;case 27:Ea(u,r),du(r),p&512&&(nr||s===null||Po(s,s.return)),s!==null&&p&4&&Sm(r,r.memoizedProps,s.memoizedProps);break;case 5:if(Ea(u,r),du(r),p&512&&(nr||s===null||Po(s,s.return)),r.flags&32){u=r.stateNode;try{G(r,Ma,u)}catch(ge){Ut(r,r.return,ge)}}p&4&&r.stateNode!=null&&(u=r.memoizedProps,Sm(r,u,s!==null?s.memoizedProps:u)),p&1024&&(FT=!0,r.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ea(u,r),du(r),p&4){if(r.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");p=r.memoizedProps,s=s!==null?s.memoizedProps:p,u=r.stateNode;try{G(r,si,u,s,p)}catch(ge){Ut(r,r.return,ge)}}break;case 3:if(v=Sr(),ir=null,E=jc,jc=lp(u.containerInfo),Ea(u,r),jc=E,du(r),p&4&&s!==null&&s.memoizedState.isDehydrated)try{G(r,zm,u.containerInfo)}catch(ge){Ut(r,r.return,ge)}FT&&(FT=!1,yf(r)),u.effectDuration+=au(v);break;case 4:p=jc,jc=lp(r.stateNode.containerInfo),Ea(u,r),du(r),jc=p;break;case 12:p=Sr(),Ea(u,r),du(r),r.stateNode.effectDuration+=Ha(p);break;case 13:Ea(u,r),du(r),r.child.flags&8192&&r.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(MS=Qo()),p&4&&(p=r.updateQueue,p!==null&&(r.updateQueue=null,mf(r,p)));break;case 22:v=r.memoizedState!==null;var k=s!==null&&s.memoizedState!==null,H=Hs,X=nr;if(Hs=H||v,nr=X||k,Ea(u,r),nr=X,Hs=H,du(r),p&8192)e:for(u=r.stateNode,u._visibility=v?u._visibility&-2:u._visibility|g0,v&&(s===null||k||Hs||nr||Wi(r)),s=null,u=r;;){if(u.tag===5||u.tag===26){if(s===null){k=s=u;try{E=k.stateNode,v?G(k,zu,E):G(k,Nm,k.stateNode,k.memoizedProps)}catch(ge){Ut(k,k.return,ge)}}}else if(u.tag===6){if(s===null){k=u;try{D=k.stateNode,v?G(k,dv,D):G(k,qg,D,k.memoizedProps)}catch(ge){Ut(k,k.return,ge)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===r)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===r)break e;for(;u.sibling===null;){if(u.return===null||u.return===r)break e;s===u&&(s=null),u=u.return}s===u&&(s=null),u.sibling.return=u.return,u=u.sibling}p&4&&(p=r.updateQueue,p!==null&&(s=p.retryQueue,s!==null&&(p.retryQueue=null,mf(r,s))));break;case 19:Ea(u,r),du(r),p&4&&(p=r.updateQueue,p!==null&&(r.updateQueue=null,mf(r,p)));break;case 30:break;case 21:break;default:Ea(u,r),du(r)}}function du(r){var u=r.flags;if(u&2){try{G(r,Z1,r)}catch(s){Ut(r,r.return,s)}r.flags&=-3}u&4096&&(r.flags&=-4097)}function yf(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var u=r;yf(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),r=r.sibling}}function Go(r,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)Tm(r,u.alternate,u),u=u.sibling}function Aa(r){switch(r.tag){case 0:case 11:case 14:case 15:Rg(r,r.return,Ja),Wi(r);break;case 1:Po(r,r.return);var u=r.stateNode;typeof u.componentWillUnmount=="function"&&Dg(r,r.return,u),Wi(r);break;case 27:G(r,Df,r.stateNode);case 26:case 5:Po(r,r.return),Wi(r);break;case 22:r.memoizedState===null&&Wi(r);break;case 30:Wi(r);break;default:Wi(r)}}function Wi(r){for(r=r.child;r!==null;)Aa(r),r=r.sibling}function Sc(r,u,s,p){var v=s.flags;switch(s.tag){case 0:case 11:case 15:_l(r,s,p),bg(s,Ja);break;case 1:if(_l(r,s,p),u=s.stateNode,typeof u.componentDidMount=="function"&&G(s,jT,s,u),u=s.updateQueue,u!==null){r=s.stateNode;try{G(s,xd,u,r)}catch(E){Ut(s,s.return,E)}}p&&v&64&&vm(s),jd(s,s.return);break;case 27:Qh(s);case 26:case 5:_l(r,s,p),p&&u===null&&v&4&&Q1(s),jd(s,s.return);break;case 12:if(p&&v&4){v=Sr(),_l(r,s,p),p=s.stateNode,p.effectDuration+=Ha(v);try{G(s,zd,s,u,jv,p.effectDuration)}catch(E){Ut(s,s.return,E)}}else _l(r,s,p);break;case 13:_l(r,s,p),p&&v&4&&vs(r,s);break;case 22:s.memoizedState===null&&_l(r,s,p),jd(s,s.return);break;case 30:break;default:_l(r,s,p)}}function _l(r,u,s){for(s=s&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;)Sc(r,u.alternate,u,s),u=u.sibling}function hu(r,u){var s=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),r=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(r=u.memoizedState.cachePool.pool),r!==s&&(r!=null&&ru(r),s!=null&&Ml(s))}function Ou(r,u){r=null,u.alternate!==null&&(r=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==r&&(ru(u),r!=null&&Ml(r))}function Qn(r,u,s,p){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)vf(r,u,s,p),u=u.sibling}function vf(r,u,s,p){var v=u.flags;switch(u.tag){case 0:case 11:case 15:Qn(r,u,s,p),v&2048&&tv(u,Da|Xl);break;case 1:Qn(r,u,s,p);break;case 3:var E=Sr();Qn(r,u,s,p),v&2048&&(s=null,u.alternate!==null&&(s=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==s&&(ru(u),s!=null&&Ml(s))),r.passiveEffectDuration+=au(E);break;case 12:if(v&2048){v=Sr(),Qn(r,u,s,p),r=u.stateNode,r.passiveEffectDuration+=Ha(v);try{G(u,K1,u,u.alternate,jv,r.passiveEffectDuration)}catch(k){Ut(u,u.return,k)}}else Qn(r,u,s,p);break;case 13:Qn(r,u,s,p);break;case 23:break;case 22:E=u.stateNode;var D=u.alternate;u.memoizedState!==null?E._visibility&sh?Qn(r,u,s,p):Sf(r,u):E._visibility&sh?Qn(r,u,s,p):(E._visibility|=sh,jl(r,u,s,p,(u.subtreeFlags&10256)!==0)),v&2048&&hu(D,u);break;case 24:Qn(r,u,s,p),v&2048&&Ou(u.alternate,u);break;default:Qn(r,u,s,p)}}function jl(r,u,s,p,v){for(v=v&&(u.subtreeFlags&10256)!==0,u=u.child;u!==null;)Ug(r,u,s,p,v),u=u.sibling}function Ug(r,u,s,p,v){var E=u.flags;switch(u.tag){case 0:case 11:case 15:jl(r,u,s,p,v),tv(u,Da);break;case 23:break;case 22:var D=u.stateNode;u.memoizedState!==null?D._visibility&sh?jl(r,u,s,p,v):Sf(r,u):(D._visibility|=sh,jl(r,u,s,p,v)),v&&E&2048&&hu(u.alternate,u);break;case 24:jl(r,u,s,p,v),v&&E&2048&&Ou(u.alternate,u);break;default:jl(r,u,s,p,v)}}function Sf(r,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var s=r,p=u,v=p.flags;switch(p.tag){case 22:Sf(s,p),v&2048&&hu(p.alternate,p);break;case 24:Sf(s,p),v&2048&&Ou(p.alternate,p);break;default:Sf(s,p)}u=u.sibling}}function Pd(r){if(r.subtreeFlags&a1)for(r=r.child;r!==null;)Vo(r),r=r.sibling}function Vo(r){switch(r.tag){case 26:Pd(r),r.flags&a1&&r.memoizedState!==null&&Yg(jc,r.memoizedState,r.memoizedProps);break;case 5:Pd(r);break;case 3:case 4:var u=jc;jc=lp(r.stateNode.containerInfo),Pd(r),jc=u;break;case 22:r.memoizedState===null&&(u=r.alternate,u!==null&&u.memoizedState!==null?(u=a1,a1=16777216,Pd(r),a1=u):Pd(r));break;default:Pd(r)}}function Or(r){var u=r.alternate;if(u!==null&&(r=u.child,r!==null)){u.child=null;do u=r.sibling,r.sibling=null,r=u;while(r!==null)}}function qo(r){var u=r.deletions;if((r.flags&16)!==0){if(u!==null)for(var s=0;s<u.length;s++){var p=u[s];Pr=p,Hd(p,r)}Or(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Tf(r),r=r.sibling}function Tf(r){switch(r.tag){case 0:case 11:case 15:qo(r),r.flags&2048&&_d(r,r.return,Da|Xl);break;case 3:var u=Sr();qo(r),r.stateNode.passiveEffectDuration+=au(u);break;case 12:u=Sr(),qo(r),r.stateNode.passiveEffectDuration+=Ha(u);break;case 22:u=r.stateNode,r.memoizedState!==null&&u._visibility&sh&&(r.return===null||r.return.tag!==13)?(u._visibility&=-3,Jh(r)):qo(r);break;default:qo(r)}}function Jh(r){var u=r.deletions;if((r.flags&16)!==0){if(u!==null)for(var s=0;s<u.length;s++){var p=u[s];Pr=p,Hd(p,r)}Or(r)}for(r=r.child;r!==null;)Wh(r),r=r.sibling}function Wh(r){switch(r.tag){case 0:case 11:case 15:_d(r,r.return,Da),Jh(r);break;case 22:var u=r.stateNode;u._visibility&sh&&(u._visibility&=-3,Jh(r));break;default:Jh(r)}}function Hd(r,u){for(;Pr!==null;){var s=Pr,p=s;switch(p.tag){case 0:case 11:case 15:_d(p,u,Da);break;case 23:case 22:p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(p=p.memoizedState.cachePool.pool,p!=null&&ru(p));break;case 24:Ml(p.memoizedState.cache)}if(p=s.child,p!==null)p.return=s,Pr=p;else e:for(s=r;Pr!==null;){p=Pr;var v=p.sibling,E=p.return;if(Og(p),p===s){Pr=null;break e}if(v!==null){v.return=E,Pr=v;break e}Pr=E}}}function Tc(){u4.forEach(function(r){return r()})}function Gd(){var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return r||ye.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),r}function Uu(r){if((ti&Fu)!==ul&&Sn!==0)return Sn&-Sn;var u=ye.T;return u!==null?(u._updatedFibers||(u._updatedFibers=new Set),u._updatedFibers.add(r),r=Mp,r!==0?r:kt()):P1()}function jn(){Ql===0&&(Ql=(Sn&536870912)===0||Pn?_y():536870912);var r=al.current;return r!==null&&(r.flags|=32),Ql}function Hi(r,u,s){if(O0&&console.error("useInsertionEffect must not schedule updates."),iE&&(DS=!0),(r===Ri&&(fi===Lp||fi===Up)||r.cancelPendingCommit!==null)&&(Vd(r,0),qa(r,Sn,Ql,!1)),xo(r,s),(ti&Fu)!==0&&r===Ri){if(mu)switch(u.tag){case 0:case 11:case 15:r=wn&&At(wn)||"Unknown",IS.has(r)||(IS.add(r),u=At(u)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",u,r,r));break;case 1:rE||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),rE=!0)}}else er&&wo(r,u,s),Om(u),r===Ri&&((ti&Fu)===ul&&(_p|=s),gi===R0&&qa(r,Sn,Ql,!1)),co(r)}function xr(r,u,s){if((ti&(Fu|Cr))!==ul)throw Error("Should not already be working.");var p=!s&&(u&124)===0&&(u&r.expiredLanes)===0||Ah(r,u),v=p?av(r,u):Cm(r,u,!0),E=p;do{if(v===ol){xy&&!p&&qa(r,u,0,!1);break}else{if(s=r.current.alternate,E&&!iv(s)){v=Cm(r,u,!1),E=!1;continue}if(v===mh){if(E=u,r.errorRecoveryDisabledLanes&E)var D=0;else D=r.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){u=D;e:{v=r;var k=D;D=wy;var H=v.current.memoizedState.isDehydrated;if(H&&(Vd(v,k).flags|=256),k=Cm(v,k,!1),k!==mh){if(JT&&!H){v.errorRecoveryDisabledLanes|=E,_p|=E,v=R0;break e}v=mo,mo=D,v!==null&&(mo===null?mo=v:mo.push.apply(mo,v))}v=k}if(E=!1,v!==mh)continue}}if(v===l1){Vd(r,0),qa(r,u,0,!0);break}e:{switch(p=r,v){case ol:case l1:throw Error("Root did not complete. This is a bug in React.");case R0:if((u&4194048)!==u)break;case zc:qa(p,u,Ql,!kp);break e;case mh:mo=null;break;case QT:case td:break;default:throw Error("Unknown root exit status.")}if(ye.actQueue!==null)Dm(p,s,u,mo,d1,Cy,Ql,_p,nd);else{if((u&62914560)===u&&(E=MS+I0-Qo(),10<E)){if(qa(p,u,Ql,!kp),Te(p,0,!0)!==0)break e;p.timeoutHandle=I2(dt.bind(null,p,s,mo,d1,Cy,u,Ql,_p,nd,kp,v,A2,DT,0),E);break e}dt(p,s,mo,d1,Cy,u,Ql,_p,nd,kp,v,h1,DT,0)}}}break}while(!0);co(r)}function dt(r,u,s,p,v,E,D,k,H,X,ge,Ae,he,we){if(r.timeoutHandle=Pp,Ae=u.subtreeFlags,(Ae&8192||(Ae&16785408)===16785408)&&(ud={stylesheets:null,count:0,unsuspend:mv},Vo(u),Ae=W1(),Ae!==null)){r.cancelPendingCommit=Ae(Dm.bind(null,r,u,E,s,p,v,D,k,H,ge,Wa,he,we)),qa(r,E,D,!X);return}Dm(r,u,E,s,p,v,D,k,H)}function iv(r){for(var u=r;;){var s=u.tag;if((s===0||s===11||s===15)&&u.flags&16384&&(s=u.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var p=0;p<s.length;p++){var v=s[p],E=v.getSnapshot;v=v.value;try{if(!fr(E(),v))return!1}catch{return!1}}if(s=u.child,u.subtreeFlags&16384&&s!==null)s.return=u,u=s;else{if(u===r)break;for(;u.sibling===null;){if(u.return===null||u.return===r)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function qa(r,u,s,p){u&=~WT,u&=~_p,r.suspendedLanes|=u,r.pingedLanes&=~u,p&&(r.warmLanes|=u),p=r.expirationTimes;for(var v=u;0<v;){var E=31-Za(v),D=1<<E;p[E]=-1,v&=~D}s!==0&&cT(r,s,u)}function Ef(){return(ti&(Fu|Cr))===ul?(xf(0),!1):!0}function Am(){if(wn!==null){if(fi===ll)var r=wn.return;else r=wn,us(),Kr(r),my=null,n1=0,r=wn;for(;r!==null;)ev(r.alternate,r),r=r.return;wn=null}}function Vd(r,u){var s=r.timeoutHandle;s!==Pp&&(r.timeoutHandle=Pp,GS(s)),s=r.cancelPendingCommit,s!==null&&(r.cancelPendingCommit=null,s()),Am(),Ri=r,wn=s=Oo(r.current,null),Sn=u,fi=ll,sl=null,kp=!1,xy=Ah(r,u),JT=!1,gi=ol,nd=Ql=WT=_p=Np=0,mo=wy=null,Cy=!1,(u&8)!==0&&(u|=u&32);var p=r.entangledLanes;if(p!==0)for(r=r.entanglements,p&=u;0<p;){var v=31-Za(p),E=1<<v;u|=r[v],p&=~E}return Bc=u,bh(),u=t2(),1e3<u-fS&&(ye.recentlyCreatedOwnerStacks=0,fS=u),Yu.discardPendingWarnings(),s}function kg(r,u){Jt=null,ye.H=Jv,ye.getCurrentStack=null,mu=!1,Vu=null,u===Hv||u===mS?(u=lm(),fi=c1):u===OT?(u=lm(),fi=ZT):fi=u===C0?CS:u!==null&&typeof u=="object"&&typeof u.then=="function"?D0:s1,sl=u;var s=wn;if(s===null)gi=l1,Ld(r,$u(u,r.current));else switch(s.mode&Si&&Ci(s),Qc(),fi){case s1:it!==null&&typeof it.markComponentErrored=="function"&&it.markComponentErrored(s,u,Sn);break;case Lp:case Up:case c1:case D0:case f1:it!==null&&typeof it.markComponentSuspended=="function"&&it.markComponentSuspended(s,u,Sn)}}function xm(){var r=ye.H;return ye.H=Jv,r===null?Jv:r}function rv(){var r=ye.A;return ye.A=a4,r}function wm(){gi=R0,kp||(Sn&4194048)!==Sn&&al.current!==null||(xy=!0),(Np&134217727)===0&&(_p&134217727)===0||Ri===null||qa(Ri,Sn,Ql,!1)}function Cm(r,u,s){var p=ti;ti|=Fu;var v=xm(),E=rv();if(Ri!==r||Sn!==u){if(er){var D=r.memoizedUpdaters;0<D.size&&(Zr(r,Sn),D.clear()),Tt(r,u)}d1=null,Vd(r,u)}fd(u),u=!1,D=gi;e:do try{if(fi!==ll&&wn!==null){var k=wn,H=sl;switch(fi){case CS:Am(),D=zc;break e;case c1:case Lp:case Up:case D0:al.current===null&&(u=!0);var X=fi;if(fi=ll,sl=null,Af(r,k,H,X),s&&xy){D=ol;break e}break;default:X=fi,fi=ll,sl=null,Af(r,k,H,X)}}Mm(),D=gi;break}catch(ge){kg(r,ge)}while(!0);return u&&r.shellSuspendCounter++,us(),ti=p,ye.H=v,ye.A=E,Ao(),wn===null&&(Ri=null,Sn=0,bh()),D}function Mm(){for(;wn!==null;)uv(wn)}function av(r,u){var s=ti;ti|=Fu;var p=xm(),v=rv();if(Ri!==r||Sn!==u){if(er){var E=r.memoizedUpdaters;0<E.size&&(Zr(r,Sn),E.clear()),Tt(r,u)}d1=null,jp=Qo()+E2,Vd(r,u)}else xy=Ah(r,u);fd(u);e:do try{if(fi!==ll&&wn!==null)t:switch(u=wn,E=sl,fi){case s1:fi=ll,sl=null,Af(r,u,E,s1);break;case Lp:case Up:if(fg(E)){fi=ll,sl=null,ep(u);break}u=function(){fi!==Lp&&fi!==Up||Ri!==r||(fi=f1),co(r)},E.then(u,u);break e;case c1:fi=f1;break e;case ZT:fi=Op;break e;case f1:fg(E)?(fi=ll,sl=null,ep(u)):(fi=ll,sl=null,Af(r,u,E,f1));break;case Op:var D=null;switch(wn.tag){case 26:D=wn.memoizedState;case 5:case 27:var k=wn;if(!D||Qd(D)){fi=ll,sl=null;var H=k.sibling;if(H!==null)wn=H;else{var X=k.return;X!==null?(wn=X,Ng(X)):wn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}fi=ll,sl=null,Af(r,u,E,Op);break;case D0:fi=ll,sl=null,Af(r,u,E,D0);break;case CS:Am(),gi=zc;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}ye.actQueue!==null?Mm():$h();break}catch(ge){kg(r,ge)}while(!0);return us(),ye.H=p,ye.A=v,ti=s,wn!==null?(it!==null&&typeof it.markRenderYielded=="function"&&it.markRenderYielded(),ol):(Ao(),Ri=null,Sn=0,bh(),gi)}function $h(){for(;wn!==null&&!gp();)uv(wn)}function uv(r){var u=r.alternate;(r.mode&Si)!==bi?(Ad(r),u=G(r,wg,u,r,Bc),Ci(r)):u=G(r,wg,u,r,Bc),r.memoizedProps=r.pendingProps,u===null?Ng(r):wn=u}function ep(r){var u=G(r,bm,r);r.memoizedProps=r.pendingProps,u===null?Ng(r):wn=u}function bm(r){var u=r.alternate,s=(r.mode&Si)!==bi;switch(s&&Ad(r),r.tag){case 15:case 0:u=Ul(u,r,r.pendingProps,r.type,void 0,Sn);break;case 11:u=Ul(u,r,r.pendingProps,r.type.render,r.ref,Sn);break;case 5:Kr(r);default:ev(u,r),r=wn=rm(r,Bc),u=wg(u,r,Bc)}return s&&Ci(r),u}function Af(r,u,s,p){us(),Kr(u),my=null,n1=0;var v=u.return;try{if(gs(r,v,u,s,Sn)){gi=l1,Ld(r,$u(s,r.current)),wn=null;return}}catch(E){if(v!==null)throw wn=v,E;gi=l1,Ld(r,$u(s,r.current)),wn=null;return}u.flags&32768?(Pn||p===s1?r=!0:xy||(Sn&536870912)!==0?r=!1:(kp=r=!0,(p===Lp||p===Up||p===c1||p===D0)&&(p=al.current,p!==null&&p.tag===13&&(p.flags|=16384))),Rm(u,r)):Ng(u)}function Ng(r){var u=r;do{if((u.flags&32768)!==0){Rm(u,kp);return}var s=u.alternate;if(r=u.return,Ad(u),s=G(u,Wy,s,u,Bc),(u.mode&Si)!==bi&&uu(u),s!==null){wn=s;return}if(u=u.sibling,u!==null){wn=u;return}wn=u=r}while(u!==null);gi===ol&&(gi=td)}function Rm(r,u){do{var s=$y(r.alternate,r);if(s!==null){s.flags&=32767,wn=s;return}if((r.mode&Si)!==bi){uu(r),s=r.actualDuration;for(var p=r.child;p!==null;)s+=p.actualDuration,p=p.sibling;r.actualDuration=s}if(s=r.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!u&&(r=r.sibling,r!==null)){wn=r;return}wn=r=s}while(r!==null);gi=zc,wn=null}function Dm(r,u,s,p,v,E,D,k,H){r.cancelPendingCommit=null;do qd();while(Mr!==zp);if(Yu.flushLegacyContextWarning(),Yu.flushPendingUnsafeLifecycleWarnings(),(ti&(Fu|Cr))!==ul)throw Error("Should not already be working.");if(it!==null&&typeof it.markCommitStarted=="function"&&it.markCommitStarted(s),u===null)pl();else{if(s===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),u===r.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(E=u.lanes|u.childLanes,E|=sS,sT(r,s,E,D,k,H),r===Ri&&(wn=Ri=null,Sn=0),Jl=u,Pc=r,Hc=s,RS=E,eE=v,My=p,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,lv(zf,function(){return so(),null})):(r.callbackNode=null,r.callbackPriority=0),jv=wp(),p=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||p){p=ye.T,ye.T=null,v=Pt.p,Pt.p=ki,D=ti,ti|=Cr;try{Lg(r,u,s)}finally{ti=D,Pt.p=v,ye.T=p}}Mr=yh,lo(),Im(),xa()}}function lo(){if(Mr===yh){Mr=zp;var r=Pc,u=Jl,s=Hc,p=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||p){p=ye.T,ye.T=null;var v=Pt.p;Pt.p=ki;var E=ti;ti|=Cr;try{Ay=s,b0=r,Em(u,r),b0=Ay=null,s=HS;var D=G1(r.containerInfo),k=s.focusedElem,H=s.selectionRange;if(D!==k&&k&&k.ownerDocument&&Hy(k.ownerDocument.documentElement,k)){if(H!==null&&Gy(k)){var X=H.start,ge=H.end;if(ge===void 0&&(ge=X),"selectionStart"in k)k.selectionStart=X,k.selectionEnd=Math.min(ge,k.value.length);else{var Ae=k.ownerDocument||document,he=Ae&&Ae.defaultView||window;if(he.getSelection){var we=he.getSelection(),yt=k.textContent.length,Xt=Math.min(H.start,yt),Ei=H.end===void 0?Xt:Math.min(H.end,yt);!we.extend&&Xt>Ei&&(D=Ei,Ei=Xt,Xt=D);var Mn=Ft(k,Xt),W=Ft(k,Ei);if(Mn&&W&&(we.rangeCount!==1||we.anchorNode!==Mn.node||we.anchorOffset!==Mn.offset||we.focusNode!==W.node||we.focusOffset!==W.offset)){var $=Ae.createRange();$.setStart(Mn.node,Mn.offset),we.removeAllRanges(),Xt>Ei?(we.addRange($),we.extend(W.node,W.offset)):($.setEnd(W.node,W.offset),we.addRange($))}}}}for(Ae=[],we=k;we=we.parentNode;)we.nodeType===1&&Ae.push({element:we,left:we.scrollLeft,top:we.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<Ae.length;k++){var ae=Ae[k];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}M1=!!lE,HS=lE=null}finally{ti=E,Pt.p=v,ye.T=p}}r.current=u,Mr=x2}}function Im(){if(Mr===x2){Mr=zp;var r=Pc,u=Jl,s=Hc,p=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||p){p=ye.T,ye.T=null;var v=Pt.p;Pt.p=ki;var E=ti;ti|=Cr;try{it!==null&&typeof it.markLayoutEffectsStarted=="function"&&it.markLayoutEffectsStarted(s),Ay=s,b0=r,Tm(r,u.alternate,u),b0=Ay=null,it!==null&&typeof it.markLayoutEffectsStopped=="function"&&it.markLayoutEffectsStopped()}finally{ti=E,Pt.p=v,ye.T=p}}Mr=$T}}function xa(){if(Mr===o4||Mr===$T){Mr=zp,mp();var r=Pc,u=Jl,s=Hc,p=My,v=(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0;v?Mr=bS:(Mr=zp,Jl=Pc=null,Ye(r,r.pendingLanes),L0=0,by=null);var E=r.pendingLanes;if(E===0&&(Zl=null),v||zn(r),v=Zp(s),u=u.stateNode,ba&&typeof ba.onCommitFiberRoot=="function")try{var D=(u.current.flags&128)===128;switch(v){case ki:var k=n0;break;case Gl:k=Ic;break;case Jo:k=zf;break;case ih:k=nh;break;default:k=zf}ba.onCommitFiberRoot(Bf,u,k,D)}catch(Ae){Hu||(Hu=!0,console.error("React instrumentation encountered an error: %s",Ae))}if(er&&r.memoizedUpdaters.clear(),Tc(),p!==null){D=ye.T,k=Pt.p,Pt.p=ki,ye.T=null;try{var H=r.onRecoverableError;for(u=0;u<p.length;u++){var X=p[u],ge=_g(X.stack);G(X.source,H,X.value,ge)}}finally{ye.T=D,Pt.p=k}}(Hc&3)!==0&&qd(),co(r),E=r.pendingLanes,(s&4194090)!==0&&(E&42)!==0?(pS=!0,r===nE?p1++:(p1=0,nE=r)):p1=0,xf(0),pl()}}function _g(r){return r={componentStack:r},Object.defineProperty(r,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),r}function Ye(r,u){(r.pooledCacheLanes&=u)===0&&(u=r.pooledCache,u!=null&&(r.pooledCache=null,Ml(u)))}function qd(r){return lo(),Im(),xa(),so()}function so(){if(Mr!==bS)return!1;var r=Pc,u=RS;RS=0;var s=Zp(Hc),p=Jo>s?Jo:s;s=ye.T;var v=Pt.p;try{Pt.p=p,ye.T=null,p=eE,eE=null;var E=Pc,D=Hc;if(Mr=zp,Jl=Pc=null,Hc=0,(ti&(Fu|Cr))!==ul)throw Error("Cannot flush passive effects while already rendering.");iE=!0,DS=!1,it!==null&&typeof it.markPassiveEffectsStarted=="function"&&it.markPassiveEffectsStarted(D);var k=ti;if(ti|=Cr,Tf(E.current),vf(E,E.current,D,p),it!==null&&typeof it.markPassiveEffectsStopped=="function"&&it.markPassiveEffectsStopped(),zn(E),ti=k,xf(0,!1),DS?E===by?L0++:(L0=0,by=E):L0=0,DS=iE=!1,ba&&typeof ba.onPostCommitFiberRoot=="function")try{ba.onPostCommitFiberRoot(Bf,E)}catch(X){Hu||(Hu=!0,console.error("React instrumentation encountered an error: %s",X))}var H=E.current.stateNode;return H.effectDuration=0,H.passiveEffectDuration=0,!0}finally{Pt.p=v,ye.T=s,Ye(r,u)}}function Yd(r,u,s){u=$u(s,u),u=li(r.stateNode,u,2),r=Uo(r,u,2),r!==null&&(xo(r,2),co(r))}function Ut(r,u,s){if(O0=!1,r.tag===3)Yd(r,r,s);else{for(;u!==null;){if(u.tag===3){Yd(u,r,s);return}if(u.tag===1){var p=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Zl===null||!Zl.has(p))){r=$u(s,r),s=Pi(2),p=Uo(u,s,2),p!==null&&(hf(s,p,u,r),xo(p,2),co(p));return}}u=u.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
309
-
310
- Error message:
311
-
312
- %s`,s)}}function jg(r,u,s){var p=r.pingCache;if(p===null){p=r.pingCache=new o1;var v=new Set;p.set(u,v)}else v=p.get(u),v===void 0&&(v=new Set,p.set(u,v));v.has(s)||(JT=!0,v.add(s),p=ov.bind(null,r,u,s),er&&Zr(r,s),u.then(p,p))}function ov(r,u,s){var p=r.pingCache;p!==null&&p.delete(u),r.pingedLanes|=r.suspendedLanes&s,r.warmLanes&=~s,Gd()&&ye.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
313
-
314
- When testing, code that resolves suspended data should be wrapped into act(...):
315
-
316
- act(() => {
317
- /* finish loading suspended data */
318
- });
319
- /* assert on the output */
320
-
321
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Ri===r&&(Sn&s)===s&&(gi===R0||gi===QT&&(Sn&62914560)===Sn&&Qo()-MS<I0?(ti&Fu)===ul&&Vd(r,0):WT|=s,nd===Sn&&(nd=0)),co(r)}function Lm(r,u){u===0&&(u=xu()),r=iu(r,u),r!==null&&(xo(r,u),co(r))}function zg(r){var u=r.memoizedState,s=0;u!==null&&(s=u.retryLane),Lm(r,s)}function Ya(r,u){var s=0;switch(r.tag){case 13:var p=r.stateNode,v=r.memoizedState;v!==null&&(s=v.retryLane);break;case 19:p=r.stateNode;break;case 22:p=r.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}p!==null&&p.delete(u),Lm(r,s)}function Bg(r,u,s){if((u.subtreeFlags&67117056)!==0)for(u=u.child;u!==null;){var p=r,v=u,E=v.type===Mc;E=s||E,v.tag!==22?v.flags&67108864?E&&G(v,Ne,p,v,(v.mode&vu)===bi):Bg(p,v,E):v.memoizedState===null&&(E&&v.flags&8192?G(v,Ne,p,v):v.subtreeFlags&67108864&&G(v,Bg,p,v,E)),u=u.sibling}}function Ne(r,u){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;Ot(!0);try{Aa(u),s&&Wh(u),Sc(r,u.alternate,u,!1),s&&Ug(r,u,0,null,!1,0)}finally{Ot(!1)}}function zn(r){var u=!0;r.current.mode&(Ra|ci)||(u=!1),Bg(r,r.current,u)}function Yo(r){if((ti&Fu)===ul){var u=r.tag;if(u===3||u===1||u===0||u===11||u===14||u===15){if(u=At(r)||"ReactComponent",Bp!==null){if(Bp.has(u))return;Bp.add(u)}else Bp=new Set([u]);G(r,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function Zr(r,u){er&&r.memoizedUpdaters.forEach(function(s){wo(r,s,u)})}function lv(r,u){var s=ye.actQueue;return s!==null?(s.push(u),aE):th(r,u)}function Om(r){Gd()&&ye.actQueue===null&&G(r,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
322
-
323
- When testing, code that causes React state updates should be wrapped into act(...):
324
-
325
- act(() => {
326
- /* fire events that update state */
327
- });
328
- /* assert on the output */
329
-
330
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,At(r))})}function co(r){r!==id&&r.next===null&&(id===null?Ry=id=r:id=id.next=r),cl=!0,ye.actQueue!==null?Dy||(Dy=!0,Bn()):U0||(U0=!0,Bn())}function xf(r,u){if(!LS&&cl){LS=!0;do for(var s=!1,p=Ry;p!==null;){if(r!==0){var v=p.pendingLanes;if(v===0)var E=0;else{var D=p.suspendedLanes,k=p.pingedLanes;E=(1<<31-Za(42|r)+1)-1,E&=v&~(D&~k),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(s=!0,Xo(p,E))}else E=Sn,E=Te(p,p===Ri?E:0,p.cancelPendingCommit!==null||p.timeoutHandle!==Pp),(E&3)===0||Ah(p,E)||(s=!0,Xo(p,E));p=p.next}while(s);LS=!1}}function tp(){Um()}function Um(){cl=Dy=U0=!1;var r=0;yo!==0&&(Mf()&&(r=yo),yo=0);for(var u=Qo(),s=null,p=Ry;p!==null;){var v=p.next,E=Xa(p,u);E===0?(p.next=null,s===null?Ry=v:s.next=v,v===null&&(id=s)):(s=p,(r!==0||(E&3)!==0)&&(cl=!0)),p=v}xf(r)}function Xa(r,u){for(var s=r.suspendedLanes,p=r.pingedLanes,v=r.expirationTimes,E=r.pendingLanes&-62914561;0<E;){var D=31-Za(E),k=1<<D,H=v[D];H===-1?((k&s)===0||(k&p)!==0)&&(v[D]=Kp(k,u)):H<=u&&(r.expiredLanes|=k),E&=~k}if(u=Ri,s=Sn,s=Te(r,r===u?s:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Pp),p=r.callbackNode,s===0||r===u&&(fi===Lp||fi===Up)||r.cancelPendingCommit!==null)return p!==null&&np(p),r.callbackNode=null,r.callbackPriority=0;if((s&3)===0||Ah(r,s)){if(u=s&-s,u!==r.callbackPriority||ye.actQueue!==null&&p!==g1)np(p);else return u;switch(Zp(s)){case ki:case Gl:s=Ic;break;case Jo:s=zf;break;case ih:s=nh;break;default:s=zf}return p=di.bind(null,r),ye.actQueue!==null?(ye.actQueue.push(p),s=g1):s=th(s,p),r.callbackPriority=u,r.callbackNode=s,u}return p!==null&&np(p),r.callbackPriority=2,r.callbackNode=null,2}function di(r,u){if(pS=Cp=!1,Mr!==zp&&Mr!==bS)return r.callbackNode=null,r.callbackPriority=0,null;var s=r.callbackNode;if(qd()&&r.callbackNode!==s)return null;var p=Sn;return p=Te(r,r===Ri?p:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Pp),p===0?null:(xr(r,p,u),Xa(r,Qo()),r.callbackNode!=null&&r.callbackNode===s?di.bind(null,r):null)}function Xo(r,u){if(qd())return null;Cp=pS,pS=!1,xr(r,u,!0)}function np(r){r!==g1&&r!==null&&t0(r)}function Bn(){ye.actQueue!==null&&ye.actQueue.push(function(){return Um(),null}),fE(function(){(ti&(Fu|Cr))!==ul?th(n0,tp):Um()})}function kt(){return yo===0&&(yo=_y()),yo}function Pg(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:(It(r,"action"),Io(""+r))}function Jr(r,u){var s=u.ownerDocument.createElement("input");return s.name=u.name,s.value=u.value,r.id&&s.setAttribute("form",r.id),u.parentNode.insertBefore(s,u),r=new FormData(r),s.parentNode.removeChild(s),r}function Oe(r,u,s,p,v){if(u==="submit"&&s&&s.stateNode===v){var E=Pg((v[Gu]||null).action),D=p.submitter;D&&(u=(u=D[Gu]||null)?Pg(u.formAction):D.getAttribute("formAction"),u!==null&&(E=u,D=null));var k=new te("action","action",null,p,v);r.push({event:k,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(yo!==0){var H=D?Jr(v,D):new FormData(v),X={pending:!0,data:H,method:v.method,action:E};Object.freeze(X),ff(s,X,null,H)}}else typeof E=="function"&&(k.preventDefault(),H=D?Jr(v,D):new FormData(v),X={pending:!0,data:H,method:v.method,action:E},Object.freeze(X),ff(s,X,E,H))},currentTarget:v}]})}}function $i(r,u,s){r.currentTarget=s;try{u(r)}catch(p){wS(p)}r.currentTarget=null}function Ve(r,u){u=(u&4)!==0;for(var s=0;s<r.length;s++){var p=r[s];e:{var v=void 0,E=p.event;if(p=p.listeners,u)for(var D=p.length-1;0<=D;D--){var k=p[D],H=k.instance,X=k.currentTarget;if(k=k.listener,H!==v&&E.isPropagationStopped())break e;H!==null?G(H,$i,E,k,X):$i(E,k,X),v=H}else for(D=0;D<p.length;D++){if(k=p[D],H=k.instance,X=k.currentTarget,k=k.listener,H!==v&&E.isPropagationStopped())break e;H!==null?G(H,$i,E,k,X):$i(E,k,X),v=H}}}}function Qe(r,u){OS.has(r)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var s=u[r0];s===void 0&&(s=u[r0]=new Set);var p=r+"__bubble";s.has(p)||(An(u,r,2,!1),s.add(p))}function Xd(r,u,s){OS.has(r)&&!u&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',r);var p=0;u&&(p|=4),An(s,r,p,u)}function sv(r){if(!r[US]){r[US]=!0,wv.forEach(function(s){s!=="selectionchange"&&(OS.has(s)||Xd(s,!1,r),Xd(s,!0,r))});var u=r.nodeType===9?r:r.ownerDocument;u===null||u[US]||(u[US]=!0,Xd("selectionchange",!1,u))}}function An(r,u,s,p){switch(fp(u)){case ki:var v=Bl;break;case Gl:v=cp;break;default:v=wc}s=v.bind(null,u,s,r),v=void 0,!de||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(v=!0),p?v!==void 0?r.addEventListener(u,s,{capture:!0,passive:v}):r.addEventListener(u,s,!0):v!==void 0?r.addEventListener(u,s,{passive:v}):r.addEventListener(u,s,!1)}function wa(r,u,s,p,v){var E=p;if((u&1)===0&&(u&2)===0&&p!==null)e:for(;;){if(p===null)return;var D=p.tag;if(D===3||D===4){var k=p.stateNode.containerInfo;if(k===v)break;if(D===4)for(D=p.return;D!==null;){var H=D.tag;if((H===3||H===4)&&D.stateNode.containerInfo===v)return;D=D.return}for(;k!==null;){if(D=Qs(k),D===null)return;if(H=D.tag,H===5||H===6||H===26||H===27){p=E=D;continue e}k=k.parentNode}}p=p.return}wi(function(){var X=E,ge=nu(s),Ae=[];e:{var he=Nv.get(r);if(he!==void 0){var we=te,yt=r;switch(r){case"keypress":if(Al(s)===0)break e;case"keydown":case"keyup":we=YE;break;case"focusin":yt="focus",we=On;break;case"focusout":yt="blur",we=On;break;case"beforeblur":case"afterblur":we=On;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":we=ln;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":we=zt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":we=JA;break;case p0:case sy:case AT:we=pT;break;case xT:we=$A;break;case"scroll":case"scrollend":we=se;break;case"wheel":we=QE;break;case"copy":case"cut":case"paste":we=gT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":we=XE;break;case"toggle":case"beforetoggle":we=e4}var Xt=(u&4)!==0,Ei=!Xt&&(r==="scroll"||r==="scrollend"),Mn=Xt?he!==null?he+"Capture":null:he;Xt=[];for(var W=X,$;W!==null;){var ae=W;if($=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||$===null||Mn===null||(ae=Na(W,Mn),ae!=null&&Xt.push(Fa(W,ae,$))),Ei)break;W=W.return}0<Xt.length&&(he=new we(he,yt,null,s,ge),Ae.push({event:he,listeners:Xt}))}}if((u&7)===0){e:{if(he=r==="mouseover"||r==="pointerover",we=r==="mouseout"||r==="pointerout",he&&s!==A&&(yt=s.relatedTarget||s.fromElement)&&(Qs(yt)||yt[Hf]))break e;if((we||he)&&(he=ge.window===ge?ge:(he=ge.ownerDocument)?he.defaultView||he.parentWindow:window,we?(yt=s.relatedTarget||s.toElement,we=X,yt=yt?Qs(yt):null,yt!==null&&(Ei=ni(yt),Xt=yt.tag,yt!==Ei||Xt!==5&&Xt!==27&&Xt!==6)&&(yt=null)):(we=null,yt=X),we!==yt)){if(Xt=ln,ae="onMouseLeave",Mn="onMouseEnter",W="mouse",(r==="pointerout"||r==="pointerover")&&(Xt=XE,ae="onPointerLeave",Mn="onPointerEnter",W="pointer"),Ei=we==null?he:yl(we),$=yt==null?he:yl(yt),he=new Xt(ae,W+"leave",we,s,ge),he.target=Ei,he.relatedTarget=$,ae=null,Qs(ge)===X&&(Xt=new Xt(Mn,W+"enter",yt,s,ge),Xt.target=$,Xt.relatedTarget=Ei,ae=Xt),Ei=ae,we&&yt)t:{for(Xt=we,Mn=yt,W=0,$=Xt;$;$=Wr($))W++;for($=0,ae=Mn;ae;ae=Wr(ae))$++;for(;0<W-$;)Xt=Wr(Xt),W--;for(;0<$-W;)Mn=Wr(Mn),$--;for(;W--;){if(Xt===Mn||Mn!==null&&Xt===Mn.alternate)break t;Xt=Wr(Xt),Mn=Wr(Mn)}Xt=null}else Xt=null;we!==null&&km(Ae,he,we,Xt,!1),yt!==null&&Ei!==null&&km(Ae,Ei,yt,Xt,!0)}}e:{if(he=X?yl(X):window,we=he.nodeName&&he.nodeName.toLowerCase(),we==="select"||we==="input"&&he.type==="file")var Me=ug;else if(em(he))if(ET)Me=Py;else{Me=tm;var qe=Qi}else we=he.nodeName,!we||we.toLowerCase()!=="input"||he.type!=="checkbox"&&he.type!=="radio"?X&&Fi(X.elementType)&&(Me=ug):Me=fT;if(Me&&(Me=Me(r,X))){ag(Ae,Me,s,ge);break e}qe&&qe(r,he,X),r==="focusout"&&X&&he.type==="number"&&X.memoizedProps.value!=null&&Ws(he,"number",he.value)}switch(qe=X?yl(X):window,r){case"focusin":(em(qe)||qe.contentEditable==="true")&&(ay=qe,uy=X,oy=null);break;case"focusout":oy=uy=ay=null;break;case"mousedown":kv=!0;break;case"contextmenu":case"mouseup":case"dragend":kv=!1,Vy(Ae,s,ge);break;case"selectionchange":if(n4)break;case"keydown":case"keyup":Vy(Ae,s,ge)}var en;if(uS)e:{switch(r){case"compositionstart":var gt="onCompositionStart";break e;case"compositionend":gt="onCompositionEnd";break e;case"compositionupdate":gt="onCompositionUpdate";break e}gt=void 0}else ry?_a(r,s)&&(gt="onCompositionEnd"):r==="keydown"&&s.keyCode===ZE&&(gt="onCompositionStart");gt&&(yT&&s.locale!=="ko"&&(ry||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&ry&&(en=rs()):(Ie=ge,pe="value"in Ie?Ie.value:Ie.textContent,ry=!0)),qe=Hg(X,gt),0<qe.length&&(gt=new qE(gt,r,null,s,ge),Ae.push({event:gt,listeners:qe}),en?gt.data=en:(en=Rr(s),en!==null&&(gt.data=en)))),(en=JE?tc(r,s):nc(r,s))&&(gt=Hg(X,"onBeforeInput"),0<gt.length&&(qe=new XA("onBeforeInput","beforeinput",null,s,ge),Ae.push({event:qe,listeners:gt}),qe.data=en)),Oe(Ae,r,X,s,ge)}Ve(Ae,u)})}function Fa(r,u,s){return{instance:r,listener:u,currentTarget:s}}function Hg(r,u){for(var s=u+"Capture",p=[];r!==null;){var v=r,E=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||E===null||(v=Na(r,s),v!=null&&p.unshift(Fa(r,v,E)),v=Na(r,u),v!=null&&p.push(Fa(r,v,E))),r.tag===3)return p;r=r.return}return[]}function Wr(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function km(r,u,s,p,v){for(var E=u._reactName,D=[];s!==null&&s!==p;){var k=s,H=k.alternate,X=k.stateNode;if(k=k.tag,H!==null&&H===p)break;k!==5&&k!==26&&k!==27||X===null||(H=X,v?(X=Na(s,E),X!=null&&D.unshift(Fa(s,X,H))):v||(X=Na(s,E),X!=null&&D.push(Fa(s,X,H)))),s=s.return}D.length!==0&&r.push({event:u,listeners:D})}function pu(r,u){ec(r,u),r!=="input"&&r!=="textarea"&&r!=="select"||u==null||u.value!==null||Ep||(Ep=!0,r==="select"&&u.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",r):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r));var s={registrationNameDependencies:Wo,possibleRegistrationNames:rh};Fi(r)||typeof u.is=="string"||tu(r,u,s),u.contentEditable&&!u.suppressContentEditableWarning&&u.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function vi(r,u,s,p){u!==s&&(s=Ca(s),Ca(u)!==s&&(p[r]=u))}function wf(r,u,s){u.forEach(function(p){s[Ac(p)]=p==="style"?Fo(r):r.getAttribute(p)})}function fo(r,u){u===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",r,r,r):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof u)}function ip(r,u){return r=r.namespaceURI===f0||r.namespaceURI===oh?r.ownerDocument.createElementNS(r.namespaceURI,r.tagName):r.ownerDocument.createElement(r.tagName),r.innerHTML=u,r.innerHTML}function Ca(r){return jt(r)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Nt(r)),Jn(r)),(typeof r=="string"?r:""+r).replace(C2,`
331
- `).replace(M2,"")}function cv(r,u){return u=Ca(u),Ca(r)===u}function Ec(){}function qn(r,u,s,p,v,E){switch(s){case"children":typeof p=="string"?(Ro(p,u,!1),u==="body"||u==="textarea"&&p===""||ka(r,p)):(typeof p=="number"||typeof p=="bigint")&&(Ro(""+p,u,!1),u!=="body"&&ka(r,""+p));break;case"className":Wp(r,"class",p);break;case"tabIndex":Wp(r,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Wp(r,s,p);break;case"style":yd(r,p,E);break;case"data":if(u!=="object"){Wp(r,"data",p);break}case"src":case"href":if(p===""&&(u!=="a"||s!=="href")){console.error(s==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',s,s),r.removeAttribute(s);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){r.removeAttribute(s);break}It(p,s),p=Io(""+p),r.setAttribute(s,p);break;case"action":case"formAction":if(p!=null&&(u==="form"?s==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof p=="function"&&(v.encType==null&&v.method==null||_S||(_S=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),v.target==null||v1||(v1=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):u==="input"||u==="button"?s==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):u!=="input"||v.type==="submit"||v.type==="image"||NS?u!=="button"||v.type==null||v.type==="submit"||NS?typeof p=="function"&&(v.name==null||uE||(uE=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),v.formEncType==null&&v.formMethod==null||_S||(_S=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),v.formTarget==null||v1||(v1=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(NS=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(NS=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(s==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof p=="function"){r.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof E=="function"&&(s==="formAction"?(u!=="input"&&qn(r,u,"name",v.name,v,null),qn(r,u,"formEncType",v.formEncType,v,null),qn(r,u,"formMethod",v.formMethod,v,null),qn(r,u,"formTarget",v.formTarget,v,null)):(qn(r,u,"encType",v.encType,v,null),qn(r,u,"method",v.method,v,null),qn(r,u,"target",v.target,v,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){r.removeAttribute(s);break}It(p,s),p=Io(""+p),r.setAttribute(s,p);break;case"onClick":p!=null&&(typeof p!="function"&&fo(s,p),r.onclick=Ec);break;case"onScroll":p!=null&&(typeof p!="function"&&fo(s,p),Qe("scroll",r));break;case"onScrollEnd":p!=null&&(typeof p!="function"&&fo(s,p),Qe("scrollend",r));break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(s=p.__html,s!=null){if(v.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=s}}break;case"multiple":r.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":r.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){r.removeAttribute("xlink:href");break}It(p,s),s=Io(""+p),r.setAttributeNS(k0,"xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?(It(p,s),r.setAttribute(s,""+p)):r.removeAttribute(s);break;case"inert":p!==""||jS[s]||(jS[s]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",s));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?r.setAttribute(s,""):r.removeAttribute(s);break;case"capture":case"download":p===!0?r.setAttribute(s,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?(It(p,s),r.setAttribute(s,p)):r.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?(It(p,s),r.setAttribute(s,p)):r.removeAttribute(s);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?r.removeAttribute(s):(It(p,s),r.setAttribute(s,p));break;case"popover":Qe("beforetoggle",r),Qe("toggle",r),Jp(r,"popover",p);break;case"xlinkActuate":vl(r,k0,"xlink:actuate",p);break;case"xlinkArcrole":vl(r,k0,"xlink:arcrole",p);break;case"xlinkRole":vl(r,k0,"xlink:role",p);break;case"xlinkShow":vl(r,k0,"xlink:show",p);break;case"xlinkTitle":vl(r,k0,"xlink:title",p);break;case"xlinkType":vl(r,k0,"xlink:type",p);break;case"xmlBase":vl(r,oE,"xml:base",p);break;case"xmlLang":vl(r,oE,"xml:lang",p);break;case"xmlSpace":vl(r,oE,"xml:space",p);break;case"is":E!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Jp(r,"is",p);break;case"innerText":case"textContent":break;case"popoverTarget":w2||p==null||typeof p!="object"||(w2=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",p));default:!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N"?(s=ig(s),Jp(r,s,p)):Wo.hasOwnProperty(s)&&p!=null&&typeof p!="function"&&fo(s,p)}}function Ss(r,u,s,p,v,E){switch(s){case"style":yd(r,p,E);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(s=p.__html,s!=null){if(v.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=s}}break;case"children":typeof p=="string"?ka(r,p):(typeof p=="number"||typeof p=="bigint")&&ka(r,""+p);break;case"onScroll":p!=null&&(typeof p!="function"&&fo(s,p),Qe("scroll",r));break;case"onScrollEnd":p!=null&&(typeof p!="function"&&fo(s,p),Qe("scrollend",r));break;case"onClick":p!=null&&(typeof p!="function"&&fo(s,p),r.onclick=Ec);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Wo.hasOwnProperty(s))p!=null&&typeof p!="function"&&fo(s,p);else e:{if(s[0]==="o"&&s[1]==="n"&&(v=s.endsWith("Capture"),u=s.slice(2,v?s.length-7:void 0),E=r[Gu]||null,E=E!=null?E[s]:null,typeof E=="function"&&r.removeEventListener(u,E,v),typeof p=="function")){typeof E!="function"&&E!==null&&(s in r?r[s]=null:r.hasAttribute(s)&&r.removeAttribute(s)),r.addEventListener(u,p,v);break e}s in r?r[s]=p:p===!0?r.setAttribute(s,""):Jp(r,s,p)}}}function Gi(r,u,s){switch(pu(u,s),u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",r),Qe("load",r);var p=!1,v=!1,E;for(E in s)if(s.hasOwnProperty(E)){var D=s[E];if(D!=null)switch(E){case"src":p=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:qn(r,u,E,D,s,null)}}v&&qn(r,u,"srcSet",s.srcSet,s,null),p&&qn(r,u,"src",s.src,s,null);return;case"input":Mo("input",s),Qe("invalid",r);var k=E=D=v=null,H=null,X=null;for(p in s)if(s.hasOwnProperty(p)){var ge=s[p];if(ge!=null)switch(p){case"name":v=ge;break;case"type":D=ge;break;case"checked":H=ge;break;case"defaultChecked":X=ge;break;case"value":E=ge;break;case"defaultValue":k=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(u+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:qn(r,u,p,ge,s,null)}}Ke(r,s),xh(r,E,k,H,X,D,v,!1),bo(r);return;case"select":Mo("select",s),Qe("invalid",r),p=D=E=null;for(v in s)if(s.hasOwnProperty(v)&&(k=s[v],k!=null))switch(v){case"value":E=k;break;case"defaultValue":D=k;break;case"multiple":p=k;default:qn(r,u,v,k,s,null)}Ju(r,s),u=E,s=D,r.multiple=!!p,u!=null?da(r,!!p,u,!1):s!=null&&da(r,!!p,s,!0);return;case"textarea":Mo("textarea",s),Qe("invalid",r),E=v=p=null;for(D in s)if(s.hasOwnProperty(D)&&(k=s[D],k!=null))switch(D){case"value":p=k;break;case"defaultValue":v=k;break;case"children":E=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:qn(r,u,D,k,s,null)}Wu(r,s),K0(r,p,v,E),bo(r);return;case"option":Zu(r,s);for(H in s)if(s.hasOwnProperty(H)&&(p=s[H],p!=null))switch(H){case"selected":r.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:qn(r,u,H,p,s,null)}return;case"dialog":Qe("beforetoggle",r),Qe("toggle",r),Qe("cancel",r),Qe("close",r);break;case"iframe":case"object":Qe("load",r);break;case"video":case"audio":for(p=0;p<m1.length;p++)Qe(m1[p],r);break;case"image":Qe("error",r),Qe("load",r);break;case"details":Qe("toggle",r);break;case"embed":case"source":case"link":Qe("error",r),Qe("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in s)if(s.hasOwnProperty(X)&&(p=s[X],p!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(u+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:qn(r,u,X,p,s,null)}return;default:if(Fi(u)){for(ge in s)s.hasOwnProperty(ge)&&(p=s[ge],p!==void 0&&Ss(r,u,ge,p,s,void 0));return}}for(k in s)s.hasOwnProperty(k)&&(p=s[k],p!=null&&qn(r,u,k,p,s,null))}function Gg(r,u,s,p){switch(pu(u,p),u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,E=null,D=null,k=null,H=null,X=null,ge=null;for(we in s){var Ae=s[we];if(s.hasOwnProperty(we)&&Ae!=null)switch(we){case"checked":break;case"value":break;case"defaultValue":H=Ae;default:p.hasOwnProperty(we)||qn(r,u,we,null,p,Ae)}}for(var he in p){var we=p[he];if(Ae=s[he],p.hasOwnProperty(he)&&(we!=null||Ae!=null))switch(he){case"type":E=we;break;case"name":v=we;break;case"checked":X=we;break;case"defaultChecked":ge=we;break;case"value":D=we;break;case"defaultValue":k=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(u+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:we!==Ae&&qn(r,u,he,we,p,Ae)}}u=s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null,p=p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null,u||!p||kS||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),kS=!0),!u||p||y1||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),y1=!0),fa(r,D,k,H,X,ge,E,v);return;case"select":we=D=k=he=null;for(E in s)if(H=s[E],s.hasOwnProperty(E)&&H!=null)switch(E){case"value":break;case"multiple":we=H;default:p.hasOwnProperty(E)||qn(r,u,E,null,p,H)}for(v in p)if(E=p[v],H=s[v],p.hasOwnProperty(v)&&(E!=null||H!=null))switch(v){case"value":he=E;break;case"defaultValue":k=E;break;case"multiple":D=E;default:E!==H&&qn(r,u,v,E,p,H)}p=k,u=D,s=we,he!=null?da(r,!!u,he,!1):!!s!=!!u&&(p!=null?da(r,!!u,p,!0):da(r,!!u,u?[]:"",!1));return;case"textarea":we=he=null;for(k in s)if(v=s[k],s.hasOwnProperty(k)&&v!=null&&!p.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:qn(r,u,k,null,p,v)}for(D in p)if(v=p[D],E=s[D],p.hasOwnProperty(D)&&(v!=null||E!=null))switch(D){case"value":he=v;break;case"defaultValue":we=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:v!==E&&qn(r,u,D,v,p,E)}$a(r,he,we);return;case"option":for(var yt in s)if(he=s[yt],s.hasOwnProperty(yt)&&he!=null&&!p.hasOwnProperty(yt))switch(yt){case"selected":r.selected=!1;break;default:qn(r,u,yt,null,p,he)}for(H in p)if(he=p[H],we=s[H],p.hasOwnProperty(H)&&he!==we&&(he!=null||we!=null))switch(H){case"selected":r.selected=he&&typeof he!="function"&&typeof he!="symbol";break;default:qn(r,u,H,he,p,we)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Xt in s)he=s[Xt],s.hasOwnProperty(Xt)&&he!=null&&!p.hasOwnProperty(Xt)&&qn(r,u,Xt,null,p,he);for(X in p)if(he=p[X],we=s[X],p.hasOwnProperty(X)&&he!==we&&(he!=null||we!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(u+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:qn(r,u,X,he,p,we)}return;default:if(Fi(u)){for(var Ei in s)he=s[Ei],s.hasOwnProperty(Ei)&&he!==void 0&&!p.hasOwnProperty(Ei)&&Ss(r,u,Ei,void 0,p,he);for(ge in p)he=p[ge],we=s[ge],!p.hasOwnProperty(ge)||he===we||he===void 0&&we===void 0||Ss(r,u,ge,he,p,we);return}}for(var Mn in s)he=s[Mn],s.hasOwnProperty(Mn)&&he!=null&&!p.hasOwnProperty(Mn)&&qn(r,u,Mn,null,p,he);for(Ae in p)he=p[Ae],we=s[Ae],!p.hasOwnProperty(Ae)||he===we||he==null&&we==null||qn(r,u,Ae,he,p,we)}function Ac(r){switch(r){case"class":return"className";case"for":return"htmlFor";default:return r}}function Fo(r){var u={};r=r.style;for(var s=0;s<r.length;s++){var p=r[s];u[p]=r.getPropertyValue(p)}return u}function Vg(r,u,s){if(u!=null&&typeof u!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var p,v=p="",E;for(E in u)if(u.hasOwnProperty(E)){var D=u[E];D!=null&&typeof D!="boolean"&&D!==""&&(E.indexOf("--")===0?(Cn(D,E),p+=v+E+":"+(""+D).trim()):typeof D!="number"||D===0||c0.has(E)?(Cn(D,E),p+=v+E.replace(Uc,"-$1").toLowerCase().replace(ql,"-ms-")+":"+(""+D).trim()):p+=v+E.replace(Uc,"-$1").toLowerCase().replace(ql,"-ms-")+":"+D+"px",v=";")}p=p||null,u=r.getAttribute("style"),u!==p&&(p=Ca(p),Ca(u)!==p&&(s.style=Fo(r)))}}function or(r,u,s,p,v,E){if(v.delete(s),r=r.getAttribute(s),r===null)switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":return}else if(p!=null)switch(typeof p){case"function":case"symbol":case"boolean":break;default:if(It(p,u),r===""+p)return}vi(u,r,p,E)}function fv(r,u,s,p,v,E){if(v.delete(s),r=r.getAttribute(s),r===null){switch(typeof p){case"function":case"symbol":return}if(!p)return}else switch(typeof p){case"function":case"symbol":break;default:if(p)return}vi(u,r,p,E)}function Cf(r,u,s,p,v,E){if(v.delete(s),r=r.getAttribute(s),r===null)switch(typeof p){case"undefined":case"function":case"symbol":return}else if(p!=null)switch(typeof p){case"function":case"symbol":break;default:if(It(p,s),r===""+p)return}vi(u,r,p,E)}function J1(r,u,s,p,v,E){if(v.delete(s),r=r.getAttribute(s),r===null)switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(p))return}else if(p!=null)switch(typeof p){case"function":case"symbol":case"boolean":break;default:if(!isNaN(p)&&(It(p,u),r===""+p))return}vi(u,r,p,E)}function Un(r,u,s,p,v,E){if(v.delete(s),r=r.getAttribute(s),r===null)switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":return}else if(p!=null)switch(typeof p){case"function":case"symbol":case"boolean":break;default:if(It(p,u),s=Io(""+p),r===s)return}vi(u,r,p,E)}function hi(r,u,s,p){for(var v={},E=new Set,D=r.attributes,k=0;k<D.length;k++)switch(D[k].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:E.add(D[k].name)}if(Fi(u)){for(var H in s)if(s.hasOwnProperty(H)){var X=s[H];if(X!=null){if(Wo.hasOwnProperty(H))typeof X!="function"&&fo(H,X);else if(s.suppressHydrationWarning!==!0)switch(H){case"children":typeof X!="string"&&typeof X!="number"||vi("children",r.textContent,X,v);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":D=r.innerHTML,X=X?X.__html:void 0,X!=null&&(X=ip(r,X),vi(H,D,X,v));continue;case"style":E.delete(H),Vg(r,X,v);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":E.delete(H.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",H);continue;case"className":E.delete("class"),D=jy(r,"class",X),vi("className",D,X,v);continue;default:p.context===Sh&&u!=="svg"&&u!=="math"?E.delete(H.toLowerCase()):E.delete(H),D=jy(r,H,X),vi(H,D,X,v)}}}}else for(X in s)if(s.hasOwnProperty(X)&&(H=s[X],H!=null)){if(Wo.hasOwnProperty(X))typeof H!="function"&&fo(X,H);else if(s.suppressHydrationWarning!==!0)switch(X){case"children":typeof H!="string"&&typeof H!="number"||vi("children",r.textContent,H,v);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":D=r.innerHTML,H=H?H.__html:void 0,H!=null&&(H=ip(r,H),D!==H&&(v[X]={__html:D}));continue;case"className":or(r,X,"class",H,E,v);continue;case"tabIndex":or(r,X,"tabindex",H,E,v);continue;case"style":E.delete(X),Vg(r,H,v);continue;case"multiple":E.delete(X),vi(X,r.multiple,H,v);continue;case"muted":E.delete(X),vi(X,r.muted,H,v);continue;case"autoFocus":E.delete("autofocus"),vi(X,r.autofocus,H,v);continue;case"data":if(u!=="object"){E.delete(X),D=r.getAttribute("data"),vi(X,D,H,v);continue}case"src":case"href":if(!(H!==""||u==="a"&&X==="href"||u==="object"&&X==="data")){console.error(X==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',X,X);continue}Un(r,X,X,H,E,v);continue;case"action":case"formAction":if(D=r.getAttribute(X),typeof H=="function"){E.delete(X.toLowerCase()),X==="formAction"?(E.delete("name"),E.delete("formenctype"),E.delete("formmethod"),E.delete("formtarget")):(E.delete("enctype"),E.delete("method"),E.delete("target"));continue}else if(D===b2){E.delete(X.toLowerCase()),vi(X,"function",H,v);continue}Un(r,X,X.toLowerCase(),H,E,v);continue;case"xlinkHref":Un(r,X,"xlink:href",H,E,v);continue;case"contentEditable":Cf(r,X,"contenteditable",H,E,v);continue;case"spellCheck":Cf(r,X,"spellcheck",H,E,v);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Cf(r,X,X,H,E,v);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":fv(r,X,X.toLowerCase(),H,E,v);continue;case"capture":case"download":e:{k=r;var ge=D=X,Ae=v;if(E.delete(ge),k=k.getAttribute(ge),k===null)switch(typeof H){case"undefined":case"function":case"symbol":break e;default:if(H===!1)break e}else if(H!=null)switch(typeof H){case"function":case"symbol":break;case"boolean":if(H===!0&&k==="")break e;break;default:if(It(H,D),k===""+H)break e}vi(D,k,H,Ae)}continue;case"cols":case"rows":case"size":case"span":e:{if(k=r,ge=D=X,Ae=v,E.delete(ge),k=k.getAttribute(ge),k===null)switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(H)||1>H)break e}else if(H!=null)switch(typeof H){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(H)||1>H)&&(It(H,D),k===""+H))break e}vi(D,k,H,Ae)}continue;case"rowSpan":J1(r,X,"rowspan",H,E,v);continue;case"start":J1(r,X,X,H,E,v);continue;case"xHeight":or(r,X,"x-height",H,E,v);continue;case"xlinkActuate":or(r,X,"xlink:actuate",H,E,v);continue;case"xlinkArcrole":or(r,X,"xlink:arcrole",H,E,v);continue;case"xlinkRole":or(r,X,"xlink:role",H,E,v);continue;case"xlinkShow":or(r,X,"xlink:show",H,E,v);continue;case"xlinkTitle":or(r,X,"xlink:title",H,E,v);continue;case"xlinkType":or(r,X,"xlink:type",H,E,v);continue;case"xmlBase":or(r,X,"xml:base",H,E,v);continue;case"xmlLang":or(r,X,"xml:lang",H,E,v);continue;case"xmlSpace":or(r,X,"xml:space",H,E,v);continue;case"inert":H!==""||jS[X]||(jS[X]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",X)),fv(r,X,X,H,E,v);continue;default:if(!(2<X.length)||X[0]!=="o"&&X[0]!=="O"||X[1]!=="n"&&X[1]!=="N"){k=ig(X),D=!1,p.context===Sh&&u!=="svg"&&u!=="math"?E.delete(k.toLowerCase()):(ge=X.toLowerCase(),ge=Us.hasOwnProperty(ge)&&Us[ge]||null,ge!==null&&ge!==X&&(D=!0,E.delete(ge)),E.delete(k));e:if(ge=r,Ae=k,k=H,pd(Ae))if(ge.hasAttribute(Ae))ge=ge.getAttribute(Ae),It(k,Ae),k=ge===""+k?k:ge;else{switch(typeof k){case"function":case"symbol":break e;case"boolean":if(ge=Ae.toLowerCase().slice(0,5),ge!=="data-"&&ge!=="aria-")break e}k=k===void 0?void 0:null}else k=void 0;D||vi(X,k,H,v)}}}return 0<E.size&&s.suppressHydrationWarning!==!0&&wf(r,E,v),Object.keys(v).length===0?null:v}function xn(r,u){switch(r.length){case 0:return"";case 1:return r[0];case 2:return r[0]+" "+u+" "+r[1];default:return r.slice(0,-1).join(", ")+", "+u+" "+r[r.length-1]}}function vn(r){return r.nodeType===9?r:r.ownerDocument}function ei(r){switch(r){case oh:return _0;case f0:return PS;default:return Sh}}function ku(r,u){if(r===Sh)switch(u){case"svg":return _0;case"math":return PS;default:return Sh}return r===_0&&u==="foreignObject"?Sh:r}function Ts(r,u){return r==="textarea"||r==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}function Mf(){var r=window.event;return r&&r.type==="popstate"?r===T1?!1:(T1=r,!0):(T1=null,!1)}function rp(r){setTimeout(function(){throw r})}function Nu(r,u,s){switch(u){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src?r.src=s.src:s.srcSet&&(r.srcset=s.srcSet)}}function pi(r,u,s,p){Gg(r,u,s,p),r[Gu]=p}function Ma(r){ka(r,"")}function si(r,u,s){r.nodeValue=s}function _u(r){return r==="head"}function ju(r,u){r.removeChild(u)}function Fd(r,u){(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).removeChild(u)}function ap(r,u){var s=u,p=0,v=0;do{var E=s.nextSibling;if(r.removeChild(s),E&&E.nodeType===8)if(s=E.data,s===N0){if(0<p&&8>p){s=p;var D=r.ownerDocument;if(s&c4&&Df(D.documentElement),s&f4&&Df(D.body),s&R2)for(s=D.head,Df(s),D=s.firstChild;D;){var k=D.nextSibling,H=D.nodeName;D[yp]||H==="SCRIPT"||H==="STYLE"||H==="LINK"&&D.rel.toLowerCase()==="stylesheet"||s.removeChild(D),D=k}}if(v===0){r.removeChild(E),eh(u);return}v--}else s===zS||s===rd||s===vh?v++:p=s.charCodeAt(0)-48;else p=0;s=E}while(s);eh(u)}function zu(r){r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"}function dv(r){r.nodeValue=""}function Nm(r,u){u=u[d4],u=u!=null&&u.hasOwnProperty("display")?u.display:null,r.style.display=u==null||typeof u=="boolean"?"":(""+u).trim()}function qg(r,u){r.nodeValue=u}function up(r){var u=r.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var s=u;switch(u=u.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":up(s),ml(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}r.removeChild(s)}}function bf(r,u,s,p){for(;r.nodeType===1;){var v=s;if(r.nodeName.toLowerCase()!==u.toLowerCase()){if(!p&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(p){if(!r[yp])switch(u){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(E=r.getAttribute("rel"),E==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(E!==v.rel||r.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||r.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||r.getAttribute("title")!==(v.title==null?null:v.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(E=r.getAttribute("src"),(E!==(v.src==null?null:v.src)||r.getAttribute("type")!==(v.type==null?null:v.type)||r.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&E&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(u==="input"&&r.type==="hidden"){It(v.name,"name");var E=v.name==null?null:""+v.name;if(v.type==="hidden"&&r.getAttribute("name")===E)return r}else return r;if(r=kr(r.nextSibling),r===null)break}return null}function Ur(r,u,s){if(u==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=kr(r.nextSibling),r===null))return null;return r}function Es(r){return r.data===vh||r.data===rd&&r.ownerDocument.readyState===D2}function We(r,u){var s=r.ownerDocument;if(r.data!==rd||s.readyState===D2)u();else{var p=function(){u(),s.removeEventListener("DOMContentLoaded",p)};s.addEventListener("DOMContentLoaded",p),r._reactRetry=p}}function kr(r){for(;r!=null;r=r.nextSibling){var u=r.nodeType;if(u===1||u===3)break;if(u===8){if(u=r.data,u===zS||u===vh||u===rd||u===S1||u===BS)break;if(u===N0)return null}}return r}function Rf(r){if(r.nodeType===1){for(var u=r.nodeName.toLowerCase(),s={},p=r.attributes,v=0;v<p.length;v++){var E=p[v];s[Ac(E.name)]=E.name.toLowerCase()==="style"?Fo(r):E.value}return{type:u,props:s}}return r.nodeType===8?{type:"Suspense",props:{}}:r.nodeValue}function _m(r,u,s){return s===null||s[s4]!==!0?(r.nodeValue===u?r=null:(u=Ca(u),r=Ca(r.nodeValue)===u?null:r.nodeValue),r):null}function jm(r){r=r.nextSibling;for(var u=0;r;){if(r.nodeType===8){var s=r.data;if(s===N0){if(u===0)return kr(r.nextSibling);u--}else s!==zS&&s!==vh&&s!==rd||u++}r=r.nextSibling}return null}function op(r){r=r.previousSibling;for(var u=0;r;){if(r.nodeType===8){var s=r.data;if(s===zS||s===vh||s===rd){if(u===0)return r;u--}else s===N0&&u++}r=r.previousSibling}return null}function zm(r){eh(r)}function Nr(r){eh(r)}function hv(r,u,s,p,v){switch(v&&Rn(r,p.ancestorInfo),u=vn(s),r){case"html":if(r=u.documentElement,!r)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return r;case"head":if(r=u.head,!r)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return r;case"body":if(r=u.body,!r)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return r;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Bu(r,u,s,p){if(!s[Hf]&&un(s)){var v=s.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",v,v,v)}switch(r){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(v=s.attributes;v.length;)s.removeAttributeNode(v[0]);Gi(s,r,u),s[$r]=p,s[Gu]=u}function Df(r){for(var u=r.attributes;u.length;)r.removeAttributeNode(u[0]);ml(r)}function lp(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}function pv(r,u,s){var p=z0;if(p&&typeof u=="string"&&u){var v=ca(u);v='link[rel="'+r+'"][href="'+v+'"]',typeof s=="string"&&(v+='[crossorigin="'+s+'"]'),E1.has(v)||(E1.add(v),r={rel:r,crossOrigin:s,href:u},p.querySelector(v)===null&&(u=p.createElement("link"),Gi(u,"link",r),mr(u),p.head.appendChild(u)))}}function As(r,u,s,p){var v=(v=Rs.current)?lp(v):null;if(!v)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(r){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(s=xc(s.href),u=Qu(v).hoistableStyles,p=u.get(s),p||(p={type:"style",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){r=xc(s.href);var E=Qu(v).hoistableStyles,D=E.get(r);if(!D&&(v=v.ownerDocument||v,D={type:"stylesheet",instance:null,count:0,state:{loading:ad,preload:null}},E.set(r,D),(E=v.querySelector(zl(r)))&&!E._p&&(D.instance=E,D.state.loading=Iy|qt),!Wl.has(r))){var k={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy};Wl.set(r,k),E||gv(v,r,k,D.state)}if(u&&p===null)throw s=`
332
-
333
- - `+If(u)+`
334
- + `+If(s),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+s);return D}if(u&&p!==null)throw s=`
335
-
336
- - `+If(u)+`
337
- + `+If(s),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+s);return null;case"script":return u=s.async,s=s.src,typeof s=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(s=Lf(s),u=Qu(v).hoistableScripts,p=u.get(s),p||(p={type:"script",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+r+'". this is a bug in React.')}}function If(r){var u=0,s="<link";return typeof r.rel=="string"?(u++,s+=' rel="'+r.rel+'"'):Dc.call(r,"rel")&&(u++,s+=' rel="'+(r.rel===null?"null":"invalid type "+typeof r.rel)+'"'),typeof r.href=="string"?(u++,s+=' href="'+r.href+'"'):Dc.call(r,"href")&&(u++,s+=' href="'+(r.href===null?"null":"invalid type "+typeof r.href)+'"'),typeof r.precedence=="string"?(u++,s+=' precedence="'+r.precedence+'"'):Dc.call(r,"precedence")&&(u++,s+=" precedence={"+(r.precedence===null?"null":"invalid type "+typeof r.precedence)+"}"),Object.getOwnPropertyNames(r).length>u&&(s+=" ..."),s+" />"}function xc(r){return'href="'+ca(r)+'"'}function zl(r){return'link[rel="stylesheet"]['+r+"]"}function Bm(r){return cn({},r,{"data-precedence":r.precedence,precedence:null})}function gv(r,u,s,p){r.querySelector('link[rel="preload"][as="style"]['+u+"]")?p.loading=Iy:(u=r.createElement("link"),p.preload=u,u.addEventListener("load",function(){return p.loading|=Iy}),u.addEventListener("error",function(){return p.loading|=j0}),Gi(u,"link",s),mr(u),r.head.appendChild(u))}function Lf(r){return'[src="'+ca(r)+'"]'}function Of(r){return"script[async]"+r}function Vt(r,u,s){if(u.count++,u.instance===null)switch(u.type){case"style":var p=r.querySelector('style[data-href~="'+ca(s.href)+'"]');if(p)return u.instance=p,mr(p),p;var v=cn({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return p=(r.ownerDocument||r).createElement("style"),mr(p),Gi(p,"style",v),Pu(p,s.precedence,r),u.instance=p;case"stylesheet":v=xc(s.href);var E=r.querySelector(zl(v));if(E)return u.state.loading|=qt,u.instance=E,mr(E),E;p=Bm(s),(v=Wl.get(v))&&sp(p,v),E=(r.ownerDocument||r).createElement("link"),mr(E);var D=E;return D._p=new Promise(function(k,H){D.onload=k,D.onerror=H}),Gi(E,"link",p),u.state.loading|=qt,Pu(E,s.precedence,r),u.instance=E;case"script":return E=Lf(s.src),(v=r.querySelector(Of(E)))?(u.instance=v,mr(v),v):(p=s,(v=Wl.get(E))&&(p=cn({},s),gu(p,v)),r=r.ownerDocument||r,v=r.createElement("script"),mr(v),Gi(v,"link",p),r.head.appendChild(v),u.instance=v);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+u.type+'". this is a bug in React.')}else u.type==="stylesheet"&&(u.state.loading&qt)===ad&&(p=u.instance,u.state.loading|=qt,Pu(p,s.precedence,r));return u.instance}function Pu(r,u,s){for(var p=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=p.length?p[p.length-1]:null,E=v,D=0;D<p.length;D++){var k=p[D];if(k.dataset.precedence===u)E=k;else if(E!==v)break}E?E.parentNode.insertBefore(r,E.nextSibling):(u=s.nodeType===9?s.head:s,u.insertBefore(r,u.firstChild))}function sp(r,u){r.crossOrigin==null&&(r.crossOrigin=u.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=u.referrerPolicy),r.title==null&&(r.title=u.title)}function gu(r,u){r.crossOrigin==null&&(r.crossOrigin=u.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=u.referrerPolicy),r.integrity==null&&(r.integrity=u.integrity)}function Yn(r,u,s){if(ir===null){var p=new Map,v=ir=new Map;v.set(s,p)}else v=ir,p=v.get(s),p||(p=new Map,v.set(s,p));if(p.has(r))return p;for(p.set(r,null),s=s.getElementsByTagName(r),v=0;v<s.length;v++){var E=s[v];if(!(E[yp]||E[$r]||r==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!==oh){var D=E.getAttribute(u)||"";D=r+D;var k=p.get(D);k?k.push(E):p.set(D,[E])}}return p}function Kd(r,u,s){r=r.ownerDocument||r,r.head.insertBefore(s,u==="title"?r.querySelector("head > title"):null)}function Uf(r,u,s){var p=!s.ancestorInfo.containerTagInScope;if(s.context===_0||u.itemProp!=null)return!p||u.itemProp==null||r!=="meta"&&r!=="title"&&r!=="style"&&r!=="link"&&r!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",r,r),!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href===""){p&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError){if(u.rel==="stylesheet"&&typeof u.precedence=="string"){r=u.href;var v=u.onError,E=u.disabled;s=[],u.onLoad&&s.push("`onLoad`"),v&&s.push("`onError`"),E!=null&&s.push("`disabled`"),v=xn(s,"and"),v+=s.length===1?" prop":" props",E=s.length===1?"an "+v:"the "+v,s.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',r,E,v)}p&&(typeof u.rel!="string"||typeof u.href!="string"||u.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(u.onError||u.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(u.rel){case"stylesheet":return r=u.precedence,u=u.disabled,typeof r!="string"&&p&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof r=="string"&&u==null;default:return!0}case"script":if(r=u.async&&typeof u.async!="function"&&typeof u.async!="symbol",!r||u.onLoad||u.onError||!u.src||typeof u.src!="string"){p&&(r?u.onLoad||u.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":p&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",r)}return!1}function Qd(r){return!(r.type==="stylesheet"&&(r.state.loading&Ze)===ad)}function mv(){}function Yg(r,u,s){if(ud===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var p=ud;if(u.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(u.state.loading&qt)===ad){if(u.instance===null){var v=xc(s.href),E=r.querySelector(zl(v));if(E){r=E._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(p.count++,p=Xg.bind(p),r.then(p,p)),u.state.loading|=qt,u.instance=E,mr(E);return}E=r.ownerDocument||r,s=Bm(s),(v=Wl.get(v))&&sp(s,v),E=E.createElement("link"),mr(E);var D=E;D._p=new Promise(function(k,H){D.onload=k,D.onerror=H}),Gi(E,"link",s),u.instance=E}p.stylesheets===null&&(p.stylesheets=new Map),p.stylesheets.set(u,r),(r=u.state.preload)&&(u.state.loading&Ze)===ad&&(p.count++,u=Xg.bind(p),r.addEventListener("load",u),r.addEventListener("error",u))}}function W1(){if(ud===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var r=ud;return r.stylesheets&&r.count===0&&Fg(r,r.stylesheets),0<r.count?function(u){var s=setTimeout(function(){if(r.stylesheets&&Fg(r,r.stylesheets),r.unsuspend){var p=r.unsuspend;r.unsuspend=null,p()}},6e4);return r.unsuspend=u,function(){r.unsuspend=null,clearTimeout(s)}}:null}function Xg(){if(this.count--,this.count===0){if(this.stylesheets)Fg(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}function Fg(r,u){r.stylesheets=null,r.unsuspend!==null&&(r.count++,A1=new Map,u.forEach($1,r),A1=null,Xg.call(r))}function $1(r,u){if(!(u.state.loading&qt)){var s=A1.get(r);if(s)var p=s.get(od);else{s=new Map,A1.set(r,s);for(var v=r.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<v.length;E++){var D=v[E];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(s.set(D.dataset.precedence,D),p=D)}p&&s.set(od,p)}v=u.instance,D=v.getAttribute("data-precedence"),E=s.get(D)||p,E===p&&s.set(od,v),s.set(D,v),this.count++,p=Xg.bind(this),v.addEventListener("load",p),v.addEventListener("error",p),E?E.parentNode.insertBefore(v,E.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(v,r.firstChild)),u.state.loading|=qt}}function Zd(r,u,s,p,v,E,D,k){for(this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Pp,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=st(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=st(0),this.hiddenUpdates=st(null),this.identifierPrefix=p,this.onUncaughtError=v,this.onCaughtError=E,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,r=this.pendingUpdatersLaneMap=[],u=0;31>u;u++)r.push(new Set);this._debugRootType=s?"hydrateRoot()":"createRoot()"}function Jd(r,u,s,p,v,E,D,k,H,X,ge,Ae){return r=new Zd(r,u,s,D,k,H,X,Ae),u=e2,E===!0&&(u|=Ra|ci),er&&(u|=Si),E=Je(3,null,null,u),r.current=E,E.stateNode=r,u=ct(),ru(u),r.pooledCache=u,ru(u),E.memoizedState={element:p,isDehydrated:s,cache:u},ga(E),r}function Kg(r){return r?(r=Kf,r):Kf}function ri(r,u,s,p,v,E){if(ba&&typeof ba.onScheduleFiberRoot=="function")try{ba.onScheduleFiberRoot(Bf,p,s)}catch(D){Hu||(Hu=!0,console.error("React instrumentation encountered an error: %s",D))}it!==null&&typeof it.markRenderScheduled=="function"&&it.markRenderScheduled(u),v=Kg(v),p.context===null?p.context=v:p.pendingContext=v,mu&&Vu!==null&&!hE&&(hE=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
338
-
339
- Check the render method of %s.`,At(Vu)||"Unknown")),p=ls(u),p.payload={element:s},E=E===void 0?null:E,E!==null&&(typeof E!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",E),p.callback=E),s=Uo(r,p,u),s!==null&&(Hi(s,r,u),ko(s,r,u))}function Wd(r,u){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var s=r.retryLane;r.retryLane=s!==0&&s<u?s:u}}function yv(r,u){Wd(r,u),(r=r.alternate)&&Wd(r,u)}function $d(r){if(r.tag===13){var u=iu(r,67108864);u!==null&&Hi(u,r,67108864),yv(r,67108864)}}function eS(){return Vu}function tS(){for(var r=new Map,u=1,s=0;31>s;s++){var p=lT(u);r.set(u,p),u*=2}return r}function Bl(r,u,s,p){var v=ye.T;ye.T=null;var E=Pt.p;try{Pt.p=ki,wc(r,u,s,p)}finally{Pt.p=E,ye.T=v}}function cp(r,u,s,p){var v=ye.T;ye.T=null;var E=Pt.p;try{Pt.p=Gl,wc(r,u,s,p)}finally{Pt.p=E,ye.T=v}}function wc(r,u,s,p){if(M1){var v=Qg(p);if(v===null)wa(r,u,p,Ly,s),Cc(r,p);else if(Zg(v,r,u,s,p))p.stopPropagation();else if(Cc(r,p),u&4&&-1<h4.indexOf(r)){for(;v!==null;){var E=un(v);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var D=hd(E.pendingLanes);if(D!==0){var k=E;for(k.pendingLanes|=2,k.entangledLanes|=2;D;){var H=1<<31-Za(D);k.entanglements[1]|=H,D&=~H}co(E),(ti&(Fu|Cr))===ul&&(jp=Qo()+E2,xf(0))}}break;case 13:k=iu(E,2),k!==null&&Hi(k,E,2),Ef(),yv(E,2)}if(E=Qg(p),E===null&&wa(r,u,p,Ly,s),E===v)break;v=E}v!==null&&p.stopPropagation()}else wa(r,u,p,null,s)}}function Qg(r){return r=nu(r),xs(r)}function xs(r){if(Ly=null,r=Qs(r),r!==null){var u=ni(r);if(u===null)r=null;else{var s=u.tag;if(s===13){if(r=Eu(u),r!==null)return r;r=null}else if(s===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;r=null}else u!==r&&(r=null)}}return Ly=r,null}function fp(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return ki;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Gl;case"message":switch(Vi()){case n0:return ki;case Ic:return Gl;case zf:case Ym:return Jo;case nh:return ih;default:return Jo}default:return Jo}}function Cc(r,u){switch(r){case"focusin":case"focusout":ld=null;break;case"dragenter":case"dragleave":Gp=null;break;case"mouseover":case"mouseout":Vp=null;break;case"pointerover":case"pointerout":b1.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":R1.delete(u.pointerId)}}function Ka(r,u,s,p,v,E){return r===null||r.nativeEvent!==E?(r={blockedOn:u,domEventName:s,eventSystemFlags:p,nativeEvent:E,targetContainers:[v]},u!==null&&(u=un(u),u!==null&&$d(u)),r):(r.eventSystemFlags|=p,u=r.targetContainers,v!==null&&u.indexOf(v)===-1&&u.push(v),r)}function Zg(r,u,s,p,v){switch(u){case"focusin":return ld=Ka(ld,r,u,s,p,v),!0;case"dragenter":return Gp=Ka(Gp,r,u,s,p,v),!0;case"mouseover":return Vp=Ka(Vp,r,u,s,p,v),!0;case"pointerover":var E=v.pointerId;return b1.set(E,Ka(b1.get(E)||null,r,u,s,p,v)),!0;case"gotpointercapture":return E=v.pointerId,R1.set(E,Ka(R1.get(E)||null,r,u,s,p,v)),!0}return!1}function Pm(r){var u=Qs(r.target);if(u!==null){var s=ni(u);if(s!==null){if(u=s.tag,u===13){if(u=Eu(s),u!==null){r.blockedOn=u,H1(r.priority,function(){if(s.tag===13){var p=Uu(s);p=Ua(p);var v=iu(s,p);v!==null&&Hi(v,s,p),yv(s,p)}});return}}else if(u===3&&s.stateNode.current.memoizedState.isDehydrated){r.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Jg(r){if(r.blockedOn!==null)return!1;for(var u=r.targetContainers;0<u.length;){var s=Qg(r.nativeEvent);if(s===null){s=r.nativeEvent;var p=new s.constructor(s.type,s),v=p;A!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),A=v,s.target.dispatchEvent(p),A===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),A=null}else return u=un(s),u!==null&&$d(u),r.blockedOn=s,!1;u.shift()}return!0}function vv(r,u,s){Jg(r)&&s.delete(u)}function Hm(){mE=!1,ld!==null&&Jg(ld)&&(ld=null),Gp!==null&&Jg(Gp)&&(Gp=null),Vp!==null&&Jg(Vp)&&(Vp=null),b1.forEach(vv),R1.forEach(vv)}function ws(r,u){r.blockedOn===u&&(r.blockedOn=null,mE||(mE=!0,Ui.unstable_scheduleCallback(Ui.unstable_NormalPriority,Hm)))}function Sv(r){KS!==r&&(KS=r,Ui.unstable_scheduleCallback(Ui.unstable_NormalPriority,function(){KS===r&&(KS=null);for(var u=0;u<r.length;u+=3){var s=r[u],p=r[u+1],v=r[u+2];if(typeof p!="function"){if(xs(p||s)===null)continue;break}var E=un(s);E!==null&&(r.splice(u,3),u-=3,s={pending:!0,data:v,method:s.method,action:p},Object.freeze(s),ff(E,s,p,v))}}))}function eh(r){function u(H){return ws(H,r)}ld!==null&&ws(ld,r),Gp!==null&&ws(Gp,r),Vp!==null&&ws(Vp,r),b1.forEach(u),R1.forEach(u);for(var s=0;s<fl.length;s++){var p=fl[s];p.blockedOn===r&&(p.blockedOn=null)}for(;0<fl.length&&(s=fl[0],s.blockedOn===null);)Pm(s),s.blockedOn===null&&fl.shift();if(s=(r.ownerDocument||r).$$reactFormReplay,s!=null)for(p=0;p<s.length;p+=3){var v=s[p],E=s[p+1],D=v[Gu]||null;if(typeof E=="function")D||Sv(s);else if(D){var k=null;if(E&&E.hasAttribute("formAction")){if(v=E,D=E[Gu]||null)k=D.formAction;else if(xs(v)!==null)continue}else k=D.action;typeof k=="function"?s[p+1]=k:(s.splice(p,3),p-=3),Sv(s)}}}function Gm(r){this._internalRoot=r}function Wg(r){this._internalRoot=r}function nS(r){r[Hf]&&(r._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ui=db(),dp=xi.requireReact(),Vm=sb.requireReactDom(),cn=Object.assign,Cs=Symbol.for("react.element"),kf=Symbol.for("react.transitional.element"),Ms=Symbol.for("react.portal"),nn=Symbol.for("react.fragment"),Mc=Symbol.for("react.strict_mode"),Nf=Symbol.for("react.profiler"),Tv=Symbol.for("react.provider"),qm=Symbol.for("react.consumer"),Ko=Symbol.for("react.context"),bc=Symbol.for("react.forward_ref"),hp=Symbol.for("react.suspense"),_f=Symbol.for("react.suspense_list"),$g=Symbol.for("react.memo"),ho=Symbol.for("react.lazy"),Ev=Symbol.for("react.activity"),Av=Symbol.for("react.memo_cache_sentinel"),e0=Symbol.iterator,pp=Symbol.for("react.client.reference"),Qt=Array.isArray,ye=dp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pt=Vm.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xv=Object.freeze({pending:!1,data:null,method:null,action:null}),lr=[],bs=[],Qa=-1,Pl=O(null),Rc=O(null),Rs=O(null),jf=O(null),Dc=Object.prototype.hasOwnProperty,th=Ui.unstable_scheduleCallback,t0=Ui.unstable_cancelCallback,gp=Ui.unstable_shouldYield,mp=Ui.unstable_requestPaint,Qo=Ui.unstable_now,Vi=Ui.unstable_getCurrentPriorityLevel,n0=Ui.unstable_ImmediatePriority,Ic=Ui.unstable_UserBlockingPriority,zf=Ui.unstable_NormalPriority,Ym=Ui.unstable_LowPriority,nh=Ui.unstable_IdlePriority,hT=Ui.log,Hl=Ui.unstable_setDisableYieldValue,Bf=null,ba=null,it=null,Hu=!1,er=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Za=Math.clz32?Math.clz32:xe,Xm=Math.log,Zo=Math.LN2,Lc=256,i0=4194304,ki=2,Gl=8,Jo=32,ih=268435456,Pf=Math.random().toString(36).slice(2),$r="__reactFiber$"+Pf,Gu="__reactProps$"+Pf,Hf="__reactContainer$"+Pf,r0="__reactEvents$"+Pf,a0="__reactListeners$"+Pf,ea="__reactHandles$"+Pf,Ds="__reactResources$"+Pf,yp="__reactMarker$"+Pf,wv=new Set,Wo={},rh={},iS={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Fm=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Is={},vp={},Gf=0,Km,Cv,Qm,Mv,$o,Ls,Sp;Y0.__reactDisabledLog=!0;var Vf,Oc,el=!1,u0=new(typeof WeakMap=="function"?WeakMap:Map),Vu=null,mu=!1,bv=/[\n"\\]/g,Zm=!1,Rv=!1,sr=!1,Jm=!1,o0=!1,cr=!1,qi=["value","defaultValue"],Tp=!1,rS=/["'&<>\n\t]|^\s|\s$/,Wm="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),Vl="applet caption html table td th marquee object template foreignObject desc title".split(" "),$m=Vl.concat(["button"]),Dv="dd dt li option optgroup p rp rt".split(" "),Iv={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},qf={},Os={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Uc=/([A-Z])/g,ql=/^ms-/,l0=/^(?:webkit|moz|o)[A-Z]/,s0=/^-ms-/,Yf=/-(.)/g,aS=/;\s*$/,ah={},kc={},uh=!1,Lv=!1,c0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),f0="http://www.w3.org/1998/Math/MathML",oh="http://www.w3.org/2000/svg",ey=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Us={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Ov={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},tl={},ty=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lh=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ep=!1,ta={},d0=/^on./,o=/^on[^A-Z]/,c=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),h=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),y=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,A=null,C=null,_=null,z=!1,Z=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),de=!1;if(Z)try{var be={};Object.defineProperty(be,"passive",{get:function(){de=!0}}),window.addEventListener("test",be,be),window.removeEventListener("test",be,be)}catch{de=!1}var Ie=null,pe=null,me=null,bt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},te=lt(bt),Ln=cn({},bt,{view:0,detail:0}),se=lt(Ln),J,fe,De,ut=cn({},Ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$0,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==De&&(De&&r.type==="mousemove"?(J=r.screenX-De.screenX,fe=r.screenY-De.screenY):fe=J=0,De=r),J)},movementY:function(r){return"movementY"in r?r.movementY:fe}}),ln=lt(ut),Ct=cn({},ut,{dataTransfer:0}),zt=lt(Ct),_r=cn({},Ln,{relatedTarget:0}),On=lt(_r),Nc=cn({},bt,{animationName:0,elapsedTime:0,pseudoElement:0}),pT=lt(Nc),GE=cn({},bt,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),gT=lt(GE),VE=cn({},bt,{data:0}),qE=lt(VE),XA=qE,FA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},KA={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},QA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},ZA=cn({},Ln,{key:function(r){if(r.key){var u=FA[r.key]||r.key;if(u!=="Unidentified")return u}return r.type==="keypress"?(r=Al(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?KA[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$0,charCode:function(r){return r.type==="keypress"?Al(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Al(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),YE=lt(ZA),mT=cn({},ut,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),XE=lt(mT),FE=cn({},Ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$0}),JA=lt(FE),WA=cn({},bt,{propertyName:0,elapsedTime:0,pseudoElement:0}),$A=lt(WA),KE=cn({},ut,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),QE=lt(KE),Xf=cn({},bt,{newState:0,oldState:0}),e4=lt(Xf),t4=[9,13,27,32],ZE=229,uS=Z&&"CompositionEvent"in window,ny=null;Z&&"documentMode"in document&&(ny=document.documentMode);var JE=Z&&"TextEvent"in window&&!ny,yT=Z&&(!uS||ny&&8<ny&&11>=ny),vT=32,iy=String.fromCharCode(vT),ST=!1,ry=!1,TT={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Uv=null,Ap=null,ET=!1;Z&&(ET=Wt("input")&&(!document.documentMode||9<document.documentMode));var fr=typeof Object.is=="function"?Object.is:Ch,n4=Z&&"documentMode"in document&&11>=document.documentMode,ay=null,uy=null,oy=null,kv=!1,h0={animationend:wl("Animation","AnimationEnd"),animationiteration:wl("Animation","AnimationIteration"),animationstart:wl("Animation","AnimationStart"),transitionrun:wl("Transition","TransitionRun"),transitionstart:wl("Transition","TransitionStart"),transitioncancel:wl("Transition","TransitionCancel"),transitionend:wl("Transition","TransitionEnd")},ly={},xp={};Z&&(xp=document.createElement("div").style,"AnimationEvent"in window||(delete h0.animationend.animation,delete h0.animationiteration.animation,delete h0.animationstart.animation),"TransitionEvent"in window||delete h0.transitionend.transition);var p0=Gt("animationend"),sy=Gt("animationiteration"),AT=Gt("animationstart"),qu=Gt("transitionrun"),WE=Gt("transitionstart"),$E=Gt("transitioncancel"),xT=Gt("transitionend"),Nv=new Map,oS="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");oS.push("scrollEnd");var lS=new WeakMap,g0=1,sh=2,yu=[],Ff=0,sS=0,Kf={};Object.freeze(Kf);var nl=null,ks=null,bi=0,e2=1,Si=2,Ra=8,ci=16,vu=64,wT=!1;try{var CT=Object.preventExtensions({})}catch{wT=!0}var ch=[],m0=0,cS=null,ot=0,$t=[],Yl=0,y0=null,Ns=1,Qf="",po=null,wr=null,Pn=!1,_s=!1,Fe=null,nt=null,_c=!1,MT=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),fS=0;if(typeof performance=="object"&&typeof performance.now=="function")var bT=performance,t2=function(){return bT.now()};else{var i4=Date;t2=function(){return i4.now()}}var v0=O(null),S0=O(null),_v={},dS=null,cy=null,T0=!1,RT=typeof AbortController<"u"?AbortController:function(){var r=[],u=this.signal={aborted:!1,addEventListener:function(s,p){r.push(p)}};this.abort=function(){u.aborted=!0,r.forEach(function(s){return s()})}},r4=Ui.unstable_scheduleCallback,hS=Ui.unstable_NormalPriority,jr={$$typeof:Ko,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},wp=Ui.unstable_now,DT=-0,jv=-0,go=-1.1,tt=-0,Cp=!1,pS=!1,zv=null,IT=0,Mp=0,fy=null,LT=ye.S;ye.S=function(r,u){typeof u=="object"&&u!==null&&typeof u.then=="function"&&V1(r,u),LT!==null&&LT(r,u)};var bp=O(null),Yu={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},dy=[],zr=[],rt=[],hy=[],Bv=[],Pe=[],Zf=new Set;Yu.recordUnsafeLifecycleWarnings=function(r,u){Zf.has(r.type)||(typeof u.componentWillMount=="function"&&u.componentWillMount.__suppressDeprecationWarning!==!0&&dy.push(r),r.mode&Ra&&typeof u.UNSAFE_componentWillMount=="function"&&zr.push(r),typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&rt.push(r),r.mode&Ra&&typeof u.UNSAFE_componentWillReceiveProps=="function"&&hy.push(r),typeof u.componentWillUpdate=="function"&&u.componentWillUpdate.__suppressDeprecationWarning!==!0&&Bv.push(r),r.mode&Ra&&typeof u.UNSAFE_componentWillUpdate=="function"&&Pe.push(r))},Yu.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;0<dy.length&&(dy.forEach(function(k){r.add(At(k)||"Component"),Zf.add(k.type)}),dy=[]);var u=new Set;0<zr.length&&(zr.forEach(function(k){u.add(At(k)||"Component"),Zf.add(k.type)}),zr=[]);var s=new Set;0<rt.length&&(rt.forEach(function(k){s.add(At(k)||"Component"),Zf.add(k.type)}),rt=[]);var p=new Set;0<hy.length&&(hy.forEach(function(k){p.add(At(k)||"Component"),Zf.add(k.type)}),hy=[]);var v=new Set;0<Bv.length&&(Bv.forEach(function(k){v.add(At(k)||"Component"),Zf.add(k.type)}),Bv=[]);var E=new Set;if(0<Pe.length&&(Pe.forEach(function(k){E.add(At(k)||"Component"),Zf.add(k.type)}),Pe=[]),0<u.size){var D=Nn(u);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
340
-
341
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
342
-
343
- Please update the following components: %s`,D)}0<p.size&&(D=Nn(p),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
344
-
345
- * Move data fetching code or side effects to componentDidUpdate.
346
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
347
-
348
- Please update the following components: %s`,D)),0<E.size&&(D=Nn(E),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
349
-
350
- * Move data fetching code or side effects to componentDidUpdate.
351
-
352
- Please update the following components: %s`,D)),0<r.size&&(D=Nn(r),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
353
-
354
- * Move code with side effects to componentDidMount, and set initial state in the constructor.
355
- * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
356
-
357
- Please update the following components: %s`,D)),0<s.size&&(D=Nn(s),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
358
-
359
- * Move data fetching code or side effects to componentDidUpdate.
360
- * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
361
- * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
362
-
363
- Please update the following components: %s`,D)),0<v.size&&(D=Nn(v),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
364
-
365
- * Move data fetching code or side effects to componentDidUpdate.
366
- * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
367
-
368
- Please update the following components: %s`,D))};var Pv=new Map,gS=new Set;Yu.recordLegacyContextWarning=function(r,u){for(var s=null,p=r;p!==null;)p.mode&Ra&&(s=p),p=p.return;s===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!gS.has(r.type)&&(p=Pv.get(s),r.type.contextTypes!=null||r.type.childContextTypes!=null||u!==null&&typeof u.getChildContext=="function")&&(p===void 0&&(p=[],Pv.set(s,p)),p.push(r))},Yu.flushLegacyContextWarning=function(){Pv.forEach(function(r){if(r.length!==0){var u=r[0],s=new Set;r.forEach(function(v){s.add(At(v)||"Component"),gS.add(v.type)});var p=Nn(s);G(u,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
369
-
370
- The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
371
-
372
- Please update the following components: %s
373
-
374
- Learn more about this warning here: https://react.dev/link/legacy-context`,p)})}})},Yu.discardPendingWarnings=function(){dy=[],zr=[],rt=[],hy=[],Bv=[],Pe=[],Pv=new Map};var Hv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),OT=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),mS=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Gv={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Vv=null,py=!1,il=0,Xl=1,Xu=2,Ja=4,Da=8,n2=0,yS=1,i2=2,gy=3,fh=!1,UT=!1,qv=null,Yv=!1,Jf=O(null),vS=O(0),dh,Fl=new Set,Xv=new Set,E0=new Set,kT=new Set,Zn=0,Jt=null,Ti=null,Br=null,Fv=!1,A0=!1,Rp=!1,Kv=0,Qv=0,hh=null,r2=0,Ia=25,Ee=null,Kl=null,rl=-1,Zv=!1,Jv={readContext:Dn,use:bl,useCallback:oi,useContext:oi,useEffect:oi,useImperativeHandle:oi,useLayoutEffect:oi,useInsertionEffect:oi,useMemo:oi,useReducer:oi,useRef:oi,useState:oi,useDebugValue:oi,useDeferredValue:oi,useTransition:oi,useSyncExternalStore:oi,useId:oi,useHostTransitionStatus:oi,useFormState:oi,useActionState:oi,useOptimistic:oi,useMemoCache:oi,useCacheRefresh:oi},Wv=null,NT=null,$v=null,a2=null,Wf=null,js=null,zs=null;Wv={readContext:function(r){return Dn(r)},use:bl,useCallback:function(r,u){return Ee="useCallback",on(),io(u),hc(r,u)},useContext:function(r){return Ee="useContext",on(),Dn(r)},useEffect:function(r,u){return Ee="useEffect",on(),io(u),fm(r,u)},useImperativeHandle:function(r,u,s){return Ee="useImperativeHandle",on(),io(s),gg(r,u,s)},useInsertionEffect:function(r,u){Ee="useInsertionEffect",on(),io(u),oo(4,Xu,r,u)},useLayoutEffect:function(r,u){return Ee="useLayoutEffect",on(),io(u),pg(r,u)},useMemo:function(r,u){Ee="useMemo",on(),io(u);var s=ye.H;ye.H=Wf;try{return dm(r,u)}finally{ye.H=s}},useReducer:function(r,u,s){Ee="useReducer",on();var p=ye.H;ye.H=Wf;try{return mn(r,u,s)}finally{ye.H=p}},useRef:function(r){return Ee="useRef",on(),hg(r)},useState:function(r){Ee="useState",on();var u=ye.H;ye.H=Wf;try{return Sa(r)}finally{ye.H=u}},useDebugValue:function(){Ee="useDebugValue",on()},useDeferredValue:function(r,u){return Ee="useDeferredValue",on(),hm(r,u)},useTransition:function(){return Ee="useTransition",on(),su()},useSyncExternalStore:function(r,u,s){return Ee="useSyncExternalStore",on(),In(r,u,s)},useId:function(){return Ee="useId",on(),Ll()},useFormState:function(r,u){return Ee="useFormState",on(),wd(),Du(r,u)},useActionState:function(r,u){return Ee="useActionState",on(),Du(r,u)},useOptimistic:function(r){return Ee="useOptimistic",on(),$n(r)},useHostTransitionStatus:cu,useMemoCache:Bi,useCacheRefresh:function(){return Ee="useCacheRefresh",on(),hs()}},NT={readContext:function(r){return Dn(r)},use:bl,useCallback:function(r,u){return Ee="useCallback",_e(),hc(r,u)},useContext:function(r){return Ee="useContext",_e(),Dn(r)},useEffect:function(r,u){return Ee="useEffect",_e(),fm(r,u)},useImperativeHandle:function(r,u,s){return Ee="useImperativeHandle",_e(),gg(r,u,s)},useInsertionEffect:function(r,u){Ee="useInsertionEffect",_e(),oo(4,Xu,r,u)},useLayoutEffect:function(r,u){return Ee="useLayoutEffect",_e(),pg(r,u)},useMemo:function(r,u){Ee="useMemo",_e();var s=ye.H;ye.H=Wf;try{return dm(r,u)}finally{ye.H=s}},useReducer:function(r,u,s){Ee="useReducer",_e();var p=ye.H;ye.H=Wf;try{return mn(r,u,s)}finally{ye.H=p}},useRef:function(r){return Ee="useRef",_e(),hg(r)},useState:function(r){Ee="useState",_e();var u=ye.H;ye.H=Wf;try{return Sa(r)}finally{ye.H=u}},useDebugValue:function(){Ee="useDebugValue",_e()},useDeferredValue:function(r,u){return Ee="useDeferredValue",_e(),hm(r,u)},useTransition:function(){return Ee="useTransition",_e(),su()},useSyncExternalStore:function(r,u,s){return Ee="useSyncExternalStore",_e(),In(r,u,s)},useId:function(){return Ee="useId",_e(),Ll()},useActionState:function(r,u){return Ee="useActionState",_e(),Du(r,u)},useFormState:function(r,u){return Ee="useFormState",_e(),wd(),Du(r,u)},useOptimistic:function(r){return Ee="useOptimistic",_e(),$n(r)},useHostTransitionStatus:cu,useMemoCache:Bi,useCacheRefresh:function(){return Ee="useCacheRefresh",_e(),hs()}},$v={readContext:function(r){return Dn(r)},use:bl,useCallback:function(r,u){return Ee="useCallback",_e(),pc(r,u)},useContext:function(r){return Ee="useContext",_e(),Dn(r)},useEffect:function(r,u){Ee="useEffect",_e(),Ir(2048,Da,r,u)},useImperativeHandle:function(r,u,s){return Ee="useImperativeHandle",_e(),Dl(r,u,s)},useInsertionEffect:function(r,u){return Ee="useInsertionEffect",_e(),Ir(4,Xu,r,u)},useLayoutEffect:function(r,u){return Ee="useLayoutEffect",_e(),Ir(4,Ja,r,u)},useMemo:function(r,u){Ee="useMemo",_e();var s=ye.H;ye.H=js;try{return cf(r,u)}finally{ye.H=s}},useReducer:function(r,u,s){Ee="useReducer",_e();var p=ye.H;ye.H=js;try{return Ru(r,u,s)}finally{ye.H=p}},useRef:function(){return Ee="useRef",_e(),tn().memoizedState},useState:function(){Ee="useState",_e();var r=ye.H;ye.H=js;try{return Ru(Et)}finally{ye.H=r}},useDebugValue:function(){Ee="useDebugValue",_e()},useDeferredValue:function(r,u){return Ee="useDeferredValue",_e(),Il(r,u)},useTransition:function(){return Ee="useTransition",_e(),yg()},useSyncExternalStore:function(r,u,s){return Ee="useSyncExternalStore",_e(),jo(r,u,s)},useId:function(){return Ee="useId",_e(),tn().memoizedState},useFormState:function(r){return Ee="useFormState",_e(),wd(),sf(r)},useActionState:function(r){return Ee="useActionState",_e(),sf(r)},useOptimistic:function(r,u){return Ee="useOptimistic",_e(),uo(r,u)},useHostTransitionStatus:cu,useMemoCache:Bi,useCacheRefresh:function(){return Ee="useCacheRefresh",_e(),tn().memoizedState}},a2={readContext:function(r){return Dn(r)},use:bl,useCallback:function(r,u){return Ee="useCallback",_e(),pc(r,u)},useContext:function(r){return Ee="useContext",_e(),Dn(r)},useEffect:function(r,u){Ee="useEffect",_e(),Ir(2048,Da,r,u)},useImperativeHandle:function(r,u,s){return Ee="useImperativeHandle",_e(),Dl(r,u,s)},useInsertionEffect:function(r,u){return Ee="useInsertionEffect",_e(),Ir(4,Xu,r,u)},useLayoutEffect:function(r,u){return Ee="useLayoutEffect",_e(),Ir(4,Ja,r,u)},useMemo:function(r,u){Ee="useMemo",_e();var s=ye.H;ye.H=zs;try{return cf(r,u)}finally{ye.H=s}},useReducer:function(r,u,s){Ee="useReducer",_e();var p=ye.H;ye.H=zs;try{return cs(r,u,s)}finally{ye.H=p}},useRef:function(){return Ee="useRef",_e(),tn().memoizedState},useState:function(){Ee="useState",_e();var r=ye.H;ye.H=zs;try{return cs(Et)}finally{ye.H=r}},useDebugValue:function(){Ee="useDebugValue",_e()},useDeferredValue:function(r,u){return Ee="useDeferredValue",_e(),ds(r,u)},useTransition:function(){return Ee="useTransition",_e(),vg()},useSyncExternalStore:function(r,u,s){return Ee="useSyncExternalStore",_e(),jo(r,u,s)},useId:function(){return Ee="useId",_e(),tn().memoizedState},useFormState:function(r){return Ee="useFormState",_e(),wd(),zh(r)},useActionState:function(r){return Ee="useActionState",_e(),zh(r)},useOptimistic:function(r,u){return Ee="useOptimistic",_e(),cm(r,u)},useHostTransitionStatus:cu,useMemoCache:Bi,useCacheRefresh:function(){return Ee="useCacheRefresh",_e(),tn().memoizedState}},Wf={readContext:function(r){return Ni(),Dn(r)},use:function(r){return et(),bl(r)},useCallback:function(r,u){return Ee="useCallback",et(),on(),hc(r,u)},useContext:function(r){return Ee="useContext",et(),on(),Dn(r)},useEffect:function(r,u){return Ee="useEffect",et(),on(),fm(r,u)},useImperativeHandle:function(r,u,s){return Ee="useImperativeHandle",et(),on(),gg(r,u,s)},useInsertionEffect:function(r,u){Ee="useInsertionEffect",et(),on(),oo(4,Xu,r,u)},useLayoutEffect:function(r,u){return Ee="useLayoutEffect",et(),on(),pg(r,u)},useMemo:function(r,u){Ee="useMemo",et(),on();var s=ye.H;ye.H=Wf;try{return dm(r,u)}finally{ye.H=s}},useReducer:function(r,u,s){Ee="useReducer",et(),on();var p=ye.H;ye.H=Wf;try{return mn(r,u,s)}finally{ye.H=p}},useRef:function(r){return Ee="useRef",et(),on(),hg(r)},useState:function(r){Ee="useState",et(),on();var u=ye.H;ye.H=Wf;try{return Sa(r)}finally{ye.H=u}},useDebugValue:function(){Ee="useDebugValue",et(),on()},useDeferredValue:function(r,u){return Ee="useDeferredValue",et(),on(),hm(r,u)},useTransition:function(){return Ee="useTransition",et(),on(),su()},useSyncExternalStore:function(r,u,s){return Ee="useSyncExternalStore",et(),on(),In(r,u,s)},useId:function(){return Ee="useId",et(),on(),Ll()},useFormState:function(r,u){return Ee="useFormState",et(),on(),Du(r,u)},useActionState:function(r,u){return Ee="useActionState",et(),on(),Du(r,u)},useOptimistic:function(r){return Ee="useOptimistic",et(),on(),$n(r)},useMemoCache:function(r){return et(),Bi(r)},useHostTransitionStatus:cu,useCacheRefresh:function(){return Ee="useCacheRefresh",on(),hs()}},js={readContext:function(r){return Ni(),Dn(r)},use:function(r){return et(),bl(r)},useCallback:function(r,u){return Ee="useCallback",et(),_e(),pc(r,u)},useContext:function(r){return Ee="useContext",et(),_e(),Dn(r)},useEffect:function(r,u){Ee="useEffect",et(),_e(),Ir(2048,Da,r,u)},useImperativeHandle:function(r,u,s){return Ee="useImperativeHandle",et(),_e(),Dl(r,u,s)},useInsertionEffect:function(r,u){return Ee="useInsertionEffect",et(),_e(),Ir(4,Xu,r,u)},useLayoutEffect:function(r,u){return Ee="useLayoutEffect",et(),_e(),Ir(4,Ja,r,u)},useMemo:function(r,u){Ee="useMemo",et(),_e();var s=ye.H;ye.H=js;try{return cf(r,u)}finally{ye.H=s}},useReducer:function(r,u,s){Ee="useReducer",et(),_e();var p=ye.H;ye.H=js;try{return Ru(r,u,s)}finally{ye.H=p}},useRef:function(){return Ee="useRef",et(),_e(),tn().memoizedState},useState:function(){Ee="useState",et(),_e();var r=ye.H;ye.H=js;try{return Ru(Et)}finally{ye.H=r}},useDebugValue:function(){Ee="useDebugValue",et(),_e()},useDeferredValue:function(r,u){return Ee="useDeferredValue",et(),_e(),Il(r,u)},useTransition:function(){return Ee="useTransition",et(),_e(),yg()},useSyncExternalStore:function(r,u,s){return Ee="useSyncExternalStore",et(),_e(),jo(r,u,s)},useId:function(){return Ee="useId",et(),_e(),tn().memoizedState},useFormState:function(r){return Ee="useFormState",et(),_e(),sf(r)},useActionState:function(r){return Ee="useActionState",et(),_e(),sf(r)},useOptimistic:function(r,u){return Ee="useOptimistic",et(),_e(),uo(r,u)},useMemoCache:function(r){return et(),Bi(r)},useHostTransitionStatus:cu,useCacheRefresh:function(){return Ee="useCacheRefresh",_e(),tn().memoizedState}},zs={readContext:function(r){return Ni(),Dn(r)},use:function(r){return et(),bl(r)},useCallback:function(r,u){return Ee="useCallback",et(),_e(),pc(r,u)},useContext:function(r){return Ee="useContext",et(),_e(),Dn(r)},useEffect:function(r,u){Ee="useEffect",et(),_e(),Ir(2048,Da,r,u)},useImperativeHandle:function(r,u,s){return Ee="useImperativeHandle",et(),_e(),Dl(r,u,s)},useInsertionEffect:function(r,u){return Ee="useInsertionEffect",et(),_e(),Ir(4,Xu,r,u)},useLayoutEffect:function(r,u){return Ee="useLayoutEffect",et(),_e(),Ir(4,Ja,r,u)},useMemo:function(r,u){Ee="useMemo",et(),_e();var s=ye.H;ye.H=js;try{return cf(r,u)}finally{ye.H=s}},useReducer:function(r,u,s){Ee="useReducer",et(),_e();var p=ye.H;ye.H=js;try{return cs(r,u,s)}finally{ye.H=p}},useRef:function(){return Ee="useRef",et(),_e(),tn().memoizedState},useState:function(){Ee="useState",et(),_e();var r=ye.H;ye.H=js;try{return cs(Et)}finally{ye.H=r}},useDebugValue:function(){Ee="useDebugValue",et(),_e()},useDeferredValue:function(r,u){return Ee="useDeferredValue",et(),_e(),ds(r,u)},useTransition:function(){return Ee="useTransition",et(),_e(),vg()},useSyncExternalStore:function(r,u,s){return Ee="useSyncExternalStore",et(),_e(),jo(r,u,s)},useId:function(){return Ee="useId",et(),_e(),tn().memoizedState},useFormState:function(r){return Ee="useFormState",et(),_e(),zh(r)},useActionState:function(r){return Ee="useActionState",et(),_e(),zh(r)},useOptimistic:function(r,u){return Ee="useOptimistic",et(),_e(),cm(r,u)},useMemoCache:function(r){return et(),Bi(r)},useHostTransitionStatus:cu,useCacheRefresh:function(){return Ee="useCacheRefresh",_e(),tn().memoizedState}};var $f={"react-stack-bottom-frame":function(r,u,s){var p=mu;mu=!0;try{return r(u,s)}finally{mu=p}}},_T=$f["react-stack-bottom-frame"].bind($f),u2={"react-stack-bottom-frame":function(r){var u=mu;mu=!0;try{return r.render()}finally{mu=u}}},o2=u2["react-stack-bottom-frame"].bind(u2),l2={"react-stack-bottom-frame":function(r,u){try{u.componentDidMount()}catch(s){Ut(r,r.return,s)}}},jT=l2["react-stack-bottom-frame"].bind(l2),s2={"react-stack-bottom-frame":function(r,u,s,p,v){try{u.componentDidUpdate(s,p,v)}catch(E){Ut(r,r.return,E)}}},zT=s2["react-stack-bottom-frame"].bind(s2),SS={"react-stack-bottom-frame":function(r,u){var s=u.stack;r.componentDidCatch(u.value,{componentStack:s!==null?s:""})}},c2=SS["react-stack-bottom-frame"].bind(SS),BT={"react-stack-bottom-frame":function(r,u,s){try{s.componentWillUnmount()}catch(p){Ut(r,u,p)}}},TS=BT["react-stack-bottom-frame"].bind(BT),e1={"react-stack-bottom-frame":function(r){r.resourceKind!=null&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",r.resourceKind);var u=r.create;return r=r.inst,u=u(),r.destroy=u}},t1=e1["react-stack-bottom-frame"].bind(e1),x0={"react-stack-bottom-frame":function(r,u,s){try{s()}catch(p){Ut(r,u,p)}}},f2=x0["react-stack-bottom-frame"].bind(x0),ed={"react-stack-bottom-frame":function(r){var u=r._init;return u(r._payload)}},ph=ed["react-stack-bottom-frame"].bind(ed),my=null,n1=0,pn=null,ES,i1=ES=!1,AS={},PT={},HT={};w=function(r,u,s){if(s!==null&&typeof s=="object"&&s._store&&(!s._store.validated&&s.key==null||s._store.validated===2)){if(typeof s._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");s._store.validated=1;var p=At(r),v=p||"null";if(!AS[v]){AS[v]=!0,s=s._owner,r=r._debugOwner;var E="";r&&typeof r.tag=="number"&&(v=At(r))&&(E=`
375
-
376
- Check the render method of \``+v+"`."),E||p&&(E=`
377
-
378
- Check the top-level render call using <`+p+">.");var D="";s!=null&&r!==s&&(p=null,typeof s.tag=="number"?p=At(s):typeof s.name=="string"&&(p=s.name),p&&(D=" It was passed a child from "+p+".")),G(u,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',E,D)})}}};var yy=ps(!0),GT=ps(!1),al=O(null),Bs=null,Dp=1,Ps=2,na=O(0),d2={},Ip=new Set,h2=new Set,p2=new Set,vy=new Set,tr=new Set,g2=new Set,m2=new Set,y2=new Set,Sy=new Set,VT=new Set;Object.freeze(d2);var xS={enqueueSetState:function(r,u,s){r=r._reactInternals;var p=Uu(r),v=ls(p);v.payload=u,s!=null&&(yn(s),v.callback=s),u=Uo(r,v,p),u!==null&&(Hi(u,r,p),ko(u,r,p)),dd(r,p)},enqueueReplaceState:function(r,u,s){r=r._reactInternals;var p=Uu(r),v=ls(p);v.tag=yS,v.payload=u,s!=null&&(yn(s),v.callback=s),u=Uo(r,v,p),u!==null&&(Hi(u,r,p),ko(u,r,p)),dd(r,p)},enqueueForceUpdate:function(r,u){r=r._reactInternals;var s=Uu(r),p=ls(s);p.tag=i2,u!=null&&(yn(u),p.callback=u),u=Uo(r,p,s),u!==null&&(Hi(u,r,s),ko(u,r,s)),it!==null&&typeof it.markForceUpdateScheduled=="function"&&it.markForceUpdateScheduled(r,s)}},wS=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},w0=null,qT=null,C0=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),ia=!1,v2={},S2={},YT={},XT={},gh=!1,T2={},r1={},M0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ty=!1,Ey=null;Ey=new Set;var Hs=!1,nr=!1,FT=!1,KT=typeof WeakSet=="function"?WeakSet:Set,Pr=null,Ay=null,b0=null,ra=null,Su=!1,jc=null,a1=8192,a4={getCacheForType:function(r){var u=Dn(jr),s=u.data.get(r);return s===void 0&&(s=r(),u.data.set(r,s)),s},getOwner:function(){return Vu}};if(typeof Symbol=="function"&&Symbol.for){var u1=Symbol.for;u1("selector.component"),u1("selector.has_pseudo_class"),u1("selector.role"),u1("selector.test_id"),u1("selector.text")}var u4=[],o1=typeof WeakMap=="function"?WeakMap:Map,ul=0,Fu=2,Cr=4,ol=0,l1=1,mh=2,QT=3,R0=4,zc=6,td=5,ti=ul,Ri=null,wn=null,Sn=0,ll=0,s1=1,Lp=2,c1=3,ZT=4,Op=5,D0=6,f1=7,CS=8,Up=9,fi=ll,sl=null,kp=!1,xy=!1,JT=!1,Bc=0,gi=ol,Np=0,_p=0,WT=0,Ql=0,nd=0,wy=null,mo=null,Cy=!1,MS=0,I0=300,jp=1/0,E2=500,d1=null,Zl=null,h1=0,Wa=1,A2=2,zp=0,yh=1,x2=2,$T=3,o4=4,bS=5,Mr=0,Pc=null,Jl=null,Hc=0,RS=0,eE=null,My=null,tE=50,p1=0,nE=null,iE=!1,DS=!1,l4=50,L0=0,by=null,O0=!1,Bp=null,rE=!1,IS=new Set,aE={},Ry=null,id=null,U0=!1,Dy=!1,cl=!1,LS=!1,yo=0,g1={};(function(){for(var r=0;r<oS.length;r++){var u=oS[r],s=u.toLowerCase();u=u[0].toUpperCase()+u.slice(1),Cl(s,"on"+u)}Cl(p0,"onAnimationEnd"),Cl(sy,"onAnimationIteration"),Cl(AT,"onAnimationStart"),Cl("dblclick","onDoubleClick"),Cl("focusin","onFocus"),Cl("focusout","onBlur"),Cl(qu,"onTransitionRun"),Cl(WE,"onTransitionStart"),Cl($E,"onTransitionCancel"),Cl(xT,"onTransitionEnd")})(),Co("onMouseEnter",["mouseout","mouseover"]),Co("onMouseLeave",["mouseout","mouseover"]),Co("onPointerEnter",["pointerout","pointerover"]),Co("onPointerLeave",["pointerout","pointerover"]),wu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wu("onBeforeInput",["compositionend","keypress","textInput","paste"]),wu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var m1="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),OS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(m1)),US="_reactListening"+Math.random().toString(36).slice(2),y1=!1,kS=!1,NS=!1,uE=!1,v1=!1,_S=!1,w2=!1,jS={},C2=/\r\n?/g,M2=/\u0000|\uFFFD/g,k0="http://www.w3.org/1999/xlink",oE="http://www.w3.org/XML/1998/namespace",b2="javascript:throw new Error('React form unexpectedly submitted.')",s4="suppressHydrationWarning",zS="$",N0="/$",rd="$?",vh="$!",c4=1,f4=2,R2=4,S1="F!",BS="F",D2="complete",d4="style",Sh=0,_0=1,PS=2,lE=null,HS=null,sE={dialog:!0,webview:!0},T1=null,I2=typeof setTimeout=="function"?setTimeout:void 0,GS=typeof clearTimeout=="function"?clearTimeout:void 0,Pp=-1,cE=typeof Promise=="function"?Promise:void 0,fE=typeof queueMicrotask=="function"?queueMicrotask:typeof cE<"u"?function(r){return cE.resolve(null).then(r).catch(rp)}:I2,VS=null,ad=0,Iy=1,j0=2,Ze=3,qt=4,Wl=new Map,E1=new Set,Hr=Pt.d;Pt.d={f:function(){var r=Hr.f(),u=Ef();return r||u},r:function(r){var u=un(r);u!==null&&u.tag===5&&u.type==="form"?Ph(u):Hr.r(r)},D:function(r){Hr.D(r),pv("dns-prefetch",r,null)},C:function(r,u){Hr.C(r,u),pv("preconnect",r,u)},L:function(r,u,s){Hr.L(r,u,s);var p=z0;if(p&&r&&u){var v='link[rel="preload"][as="'+ca(u)+'"]';u==="image"&&s&&s.imageSrcSet?(v+='[imagesrcset="'+ca(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(v+='[imagesizes="'+ca(s.imageSizes)+'"]')):v+='[href="'+ca(r)+'"]';var E=v;switch(u){case"style":E=xc(r);break;case"script":E=Lf(r)}Wl.has(E)||(r=cn({rel:"preload",href:u==="image"&&s&&s.imageSrcSet?void 0:r,as:u},s),Wl.set(E,r),p.querySelector(v)!==null||u==="style"&&p.querySelector(zl(E))||u==="script"&&p.querySelector(Of(E))||(u=p.createElement("link"),Gi(u,"link",r),mr(u),p.head.appendChild(u)))}},m:function(r,u){Hr.m(r,u);var s=z0;if(s&&r){var p=u&&typeof u.as=="string"?u.as:"script",v='link[rel="modulepreload"][as="'+ca(p)+'"][href="'+ca(r)+'"]',E=v;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=Lf(r)}if(!Wl.has(E)&&(r=cn({rel:"modulepreload",href:r},u),Wl.set(E,r),s.querySelector(v)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Of(E)))return}p=s.createElement("link"),Gi(p,"link",r),mr(p),s.head.appendChild(p)}}},X:function(r,u){Hr.X(r,u);var s=z0;if(s&&r){var p=Qu(s).hoistableScripts,v=Lf(r),E=p.get(v);E||(E=s.querySelector(Of(v)),E||(r=cn({src:r,async:!0},u),(u=Wl.get(v))&&gu(r,u),E=s.createElement("script"),mr(E),Gi(E,"link",r),s.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},p.set(v,E))}},S:function(r,u,s){Hr.S(r,u,s);var p=z0;if(p&&r){var v=Qu(p).hoistableStyles,E=xc(r);u=u||"default";var D=v.get(E);if(!D){var k={loading:ad,preload:null};if(D=p.querySelector(zl(E)))k.loading=Iy|qt;else{r=cn({rel:"stylesheet",href:r,"data-precedence":u},s),(s=Wl.get(E))&&sp(r,s);var H=D=p.createElement("link");mr(H),Gi(H,"link",r),H._p=new Promise(function(X,ge){H.onload=X,H.onerror=ge}),H.addEventListener("load",function(){k.loading|=Iy}),H.addEventListener("error",function(){k.loading|=j0}),k.loading|=qt,Pu(D,u,p)}D={type:"stylesheet",instance:D,count:1,state:k},v.set(E,D)}}},M:function(r,u){Hr.M(r,u);var s=z0;if(s&&r){var p=Qu(s).hoistableScripts,v=Lf(r),E=p.get(v);E||(E=s.querySelector(Of(v)),E||(r=cn({src:r,async:!0,type:"module"},u),(u=Wl.get(v))&&gu(r,u),E=s.createElement("script"),mr(E),Gi(E,"link",r),s.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},p.set(v,E))}}};var z0=typeof document>"u"?null:document,ir=null,ud=null,od=null,A1=null,Hp=xv,x1={$$typeof:Ko,Provider:null,Consumer:null,_currentValue:Hp,_currentValue2:Hp,_threadCount:0},qS="%c%s%c ",YS="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",dE="",XS=" ",L2=Function.prototype.bind,hE=!1,w1=null,C1=null,FS=null,O2=null,pE=null,U2=null,gE=null,k2=null,N2=null;w1=function(r,u,s,p){u=He(r,u),u!==null&&(s=Xn(u.memoizedState,s,0,p),u.memoizedState=s,u.baseState=s,r.memoizedProps=cn({},r.memoizedProps),s=iu(r,2),s!==null&&Hi(s,r,2))},C1=function(r,u,s){u=He(r,u),u!==null&&(s=oe(u.memoizedState,s,0),u.memoizedState=s,u.baseState=s,r.memoizedProps=cn({},r.memoizedProps),s=iu(r,2),s!==null&&Hi(s,r,2))},FS=function(r,u,s,p){u=He(r,u),u!==null&&(s=Hn(u.memoizedState,s,p),u.memoizedState=s,u.baseState=s,r.memoizedProps=cn({},r.memoizedProps),s=iu(r,2),s!==null&&Hi(s,r,2))},O2=function(r,u,s){r.pendingProps=Xn(r.memoizedProps,u,0,s),r.alternate&&(r.alternate.pendingProps=r.pendingProps),u=iu(r,2),u!==null&&Hi(u,r,2)},pE=function(r,u){r.pendingProps=oe(r.memoizedProps,u,0),r.alternate&&(r.alternate.pendingProps=r.pendingProps),u=iu(r,2),u!==null&&Hi(u,r,2)},U2=function(r,u,s){r.pendingProps=Hn(r.memoizedProps,u,s),r.alternate&&(r.alternate.pendingProps=r.pendingProps),u=iu(r,2),u!==null&&Hi(u,r,2)},gE=function(r){var u=iu(r,2);u!==null&&Hi(u,r,2)},k2=function(r){la=r},N2=function(r){pr=r};var M1=!0,Ly=null,mE=!1,ld=null,Gp=null,Vp=null,b1=new Map,R1=new Map,fl=[],h4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),KS=null;if(Wg.prototype.render=Gm.prototype.render=function(r){var u=this._internalRoot;if(u===null)throw Error("Cannot update an unmounted root.");var s=arguments;typeof s[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Ii(s[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof s[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),s=r;var p=u.current,v=Uu(p);ri(p,v,s,u,null,null)},Wg.prototype.unmount=Gm.prototype.unmount=function(){var r=arguments;if(typeof r[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),r=this._internalRoot,r!==null){this._internalRoot=null;var u=r.containerInfo;(ti&(Fu|Cr))!==ul&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),ri(r.current,2,null,r,null,null),Ef(),u[Hf]=null}},Wg.prototype.unstable_scheduleHydration=function(r){if(r){var u=P1();r={blockedOn:null,target:r,priority:u};for(var s=0;s<fl.length&&u!==0&&u<fl[s].priority;s++);fl.splice(s,0,r),s===0&&Pm(r)}},function(){var r=dp.version;if(r!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
379
- - react: `+(r+`
380
- - react-dom: 19.1.0
381
- Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Pt.findDOMNode=function(r){var u=r._reactInternals;if(u===void 0)throw typeof r.render=="function"?Error("Unable to find node on an unmounted component."):(r=Object.keys(r).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+r));return r=qr(u),r=r!==null?sa(r):null,r=r===null?null:r.stateNode,r},!function(){var r={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:ye,reconcilerVersion:"19.1.0"};return r.overrideHookState=w1,r.overrideHookStateDeletePath=C1,r.overrideHookStateRenamePath=FS,r.overrideProps=O2,r.overridePropsDeletePath=pE,r.overridePropsRenamePath=U2,r.scheduleUpdate=gE,r.setErrorHandler=k2,r.setSuspenseHandler=N2,r.scheduleRefresh=b,r.scheduleRoot=Yi,r.setRefreshHandler=Ue,r.getCurrentFiber=eS,r.getLaneLabelMap=tS,r.injectProfilingHooks=Au,xt(r)}()&&Z&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var _2=window.location.protocol;/^(https?|file):$/.test(_2)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(_2==="file:"?`
382
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}HE.createRoot=function(r,u){if(!Ii(r))throw Error("Target container is not a DOM element.");nS(r);var s=!1,p="",v=pm,E=Y1,D=Ag,k=null;return u!=null&&(u.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof u=="object"&&u!==null&&u.$$typeof===kf&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
383
-
384
- let root = createRoot(domContainer);
385
- root.render(<App />);`),u.unstable_strictMode===!0&&(s=!0),u.identifierPrefix!==void 0&&(p=u.identifierPrefix),u.onUncaughtError!==void 0&&(v=u.onUncaughtError),u.onCaughtError!==void 0&&(E=u.onCaughtError),u.onRecoverableError!==void 0&&(D=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(k=u.unstable_transitionCallbacks)),u=Jd(r,1,!1,null,null,s,p,v,E,D,k,null),r[Hf]=u.current,sv(r),new Gm(u)},HE.hydrateRoot=function(r,u,s){if(!Ii(r))throw Error("Target container is not a DOM element.");nS(r),u===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var p=!1,v="",E=pm,D=Y1,k=Ag,H=null,X=null;return s!=null&&(s.unstable_strictMode===!0&&(p=!0),s.identifierPrefix!==void 0&&(v=s.identifierPrefix),s.onUncaughtError!==void 0&&(E=s.onUncaughtError),s.onCaughtError!==void 0&&(D=s.onCaughtError),s.onRecoverableError!==void 0&&(k=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(H=s.unstable_transitionCallbacks),s.formState!==void 0&&(X=s.formState)),u=Jd(r,1,!0,u,s??null,p,v,E,D,k,H,X),u.context=Kg(null),s=u.current,p=Uu(s),p=Ua(p),v=ls(p),v.callback=null,Uo(s,v,p),s=p,u.current.lanes=s,xo(u,s),co(u),r[Hf]=u.current,sv(r),new Wg(u)},HE.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),HE}var ob;function JI(){if(ob)return qA.exports;ob=1;function He(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(He)}catch(Xn){console.error(Xn)}}}return process.env.NODE_ENV==="production"?(He(),qA.exports=QI()):qA.exports=ZI(),qA.exports}var WI=JI();const $I=({callback:He,children:Xn})=>xi.React.createElement("button",{className:"video-player__report-button",ref:He},xi.React.createElement(G3.EbayIcon,{name:"flag24"}),Xn);function eL(He=()=>{}){const Xn=class extends cb.ui.Element{constructor(Hn,Ce,oe){super(Hn,Ce);const pr=document.createElement("div"),la=()=>{const w=pr.firstChild;Hn.appendChild(w),pr.remove(),this.eventManager.listen(w,"click",He)};WI.createRoot(pr).render(xi.React.createElement($I,{callback:la},oe))}};return Xn.Factory=class{constructor(Hn){this.reportText=Hn}create(Hn,Ce){return new Xn(Hn,Ce,this.reportText)}},{Report:Xn}}const tL=He=>{var{width:Xn,height:Hn,thumbnail:Ce,action:oe,muted:pr,playView:la="inline",a11yLoadText:w,a11yPlayText:et,reportText:Ni,volumeSlider:Fn,volume:Nn=1,hideReportButton:Je,errorText:Yi,onVolumeChange:b=()=>{},onLoadError:Ue=()=>{},onPlay:Ii=()=>{},onReport:ni=()=>{},children:Eu}=He,rr=lb.__rest(He,["width","height","thumbnail","action","muted","playView","a11yLoadText","a11yPlayText","reportText","volumeSlider","volume","hideReportButton","errorText","onVolumeChange","onLoadError","onPlay","onReport","children"]);const[qr,sa]=xi.reactExports.useState(),[Xe,bn]=xi.reactExports.useState(),[gr,At]=xi.reactExports.useState(),[O,ve]=xi.reactExports.useState(),Le=xi.reactExports.useRef(null),_n=xi.reactExports.useRef(null),Ge=xi.reactExports.useRef(null),je=xi.reactExports.useRef(null),re=GI.filterByType(Eu,fb).map(({props:xt})=>xt),Re=xt=>{sa(!0),ve(!0),Ue(xt)},ze=(xt=0)=>{var Ot;!re.length||!Ge.current||(sa(!1),Ge.current.load((Ot=re[xt])===null||Ot===void 0?void 0:Ot.src).then(()=>{ve(!1)}).catch(Au=>{switch(console.error(Au),Au.code){case YI:return;case XI:setTimeout(()=>ze(xt),0);break;default:{const pl=re.length>xt+1&&xt+1;pl?setTimeout(()=>ze(pl),0):Re(Au)}}}).finally(()=>{sa(!0)}))};xi.reactExports.useEffect(()=>{const xt=_n.current,Ot=Le.current;if(!(!xt||!Ot)&&(xt.volume=Nn,VA.polyfill.installAll(),Ge.current=new VA.Player(xt),!!Ge.current)){if(Ge.current.addEventListener("error",()=>Re(new Error("Shake-Player error"))),Ge.current.addEventListener("buffering",Au=>{bn(Au.buffering)}),je.current=new VA.ui.Overlay(Ge.current,Ot,xt,Ni),je.current.configure({addBigPlayButton:!0,controlPanelElements:[],addSeekBar:!1}),!Je){const{Report:Au}=eL(ni);VA.ui.Controls.registerElement("report",new Au.Factory(Ni))}ze(),iL(Ot)}},[]),xi.reactExports.useEffect(()=>{switch(oe){case"play":_n.current.play();break;case"pause":_n.current.pause();break}},[oe]);const Nt=()=>{if(!je.current)return;const xt=Fn?{controlPanelElements:nL(tb.controlPanelElements)}:{};je.current.configure(Object.assign(Object.assign({},tb),xt)),_n.current.controls=!1},jt=xt=>{xt.stopPropagation(),Nt(),la==="fullscreen"&&_n.current.requestFullscreen(),At(!0),Ii(xt,{player:Ge.current})},Jn=()=>{_n.current.play()},It=xt=>{const Ot=xt.currentTarget;b(xt,{volume:Math.round((Ot.volume+Number.EPSILON)*100)/100,muted:Ot.muted})},Cn=()=>{_n.current.controls=!1},q={width:Xn?`${Xn}px`:void 0,height:Hn?`${Hn}px`:void 0};return xi.React.createElement("div",{style:q,className:z3.classNames("video-player",{"video-player--poster":!gr})},!gr&&qr&&!O&&!Xe&&xi.React.createElement("div",{className:"shaka-play-button-container"},xi.React.createElement("button",{onClick:Jn,className:"shaka-play-button",style:{opacity:1,zIndex:999},"aria-label":et},xi.React.createElement(G3.EbayIcon,{name:"playFilled64Colored"}))),xi.React.createElement("div",{className:"video-player__container",ref:Le},xi.React.createElement("video",Object.assign({ref:_n,style:q,poster:Ce,muted:pr||!1,onPlaying:jt,onPause:Cn,onVolumeChange:It},rr),re.map((xt,Ot)=>xi.React.createElement("source",Object.assign({key:Ot},xt))))),xi.React.createElement("div",{className:z3.classNames("video-player__overlay",{"video-player__overlay--hidden":!O})},xi.React.createElement(G3.EbayIcon,{name:"attention64"}),xi.React.createElement("div",{className:"video-player__overlay-text"},Yi)),xi.React.createElement("div",{className:z3.classNames("video-player__overlay",{"video-player__overlay--hidden":qr&&(O||!Xe)})},xi.React.createElement(VI.EbayProgressSpinner,{size:"large","aria-label":w})))};function nL(He){const Xn=He.length-2>0?He.length-2:He.length,Hn=[...He];return Hn.splice(Xn,0,"volume"),Hn}function iL(He){const Xn=He.querySelectorAll(".shaka-spinner")[0];Xn&&Xn.setAttribute("hidden","")}exports.EbayVideo=tL;exports.EbayVideoSource=fb;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("../tslib.es6-C4EgNkz1.js"),e=require("react"),b=require("classnames"),d=require("shaka-player/dist/shaka-player.ui"),X=require("../utils-C9NL3q0j.js"),_=require("../icon-C-bWGO-9.js"),Z=require("../progress-spinner-BQ5Ms2Nu.js"),ee=require("react-dom/client"),B=r=>{var n=V.__rest(r,[]);return e.createElement("source",Object.assign({},n))},te=7e3,re=11,N={addBigPlayButton:!1,addSeekBar:!0,controlPanelElements:["play_pause","time_and_duration","spacer","mute","report","captions","fullscreen"]},ne=({callback:r,children:n})=>e.createElement("button",{className:"video-player__report-button",ref:r},e.createElement(_.EbayIcon,{name:"flag24"}),n);function oe(r=()=>{}){const n=class extends d.ui.Element{constructor(o,i,m){super(o,i);const u=document.createElement("div"),h=()=>{const p=u.firstChild;o.appendChild(p),u.remove(),this.eventManager.listen(p,"click",r)};ee.createRoot(u).render(e.createElement(ne,{callback:h},m))}};return n.Factory=class{constructor(o){this.reportText=o}create(o,i){return new n(o,i,this.reportText)}},{Report:n}}const ae=r=>{var{width:n,height:o,thumbnail:i,action:m,muted:u,playView:h="inline",a11yLoadText:p,a11yPlayText:q,reportText:R,volumeSlider:L,volume:A=1,hideReportButton:j,errorText:I,onVolumeChange:F=()=>{},onLoadError:M=()=>{},onPlay:z=()=>{},onReport:$=()=>{},children:D}=r,H=V.__rest(r,["width","height","thumbnail","action","muted","playView","a11yLoadText","a11yPlayText","reportText","volumeSlider","volume","hideReportButton","errorText","onVolumeChange","onLoadError","onPlay","onReport","children"]);const[P,v]=e.useState(),[S,W]=e.useState(),[k,Y]=e.useState(),[E,T]=e.useState(),C=e.useRef(null),l=e.useRef(null),s=e.useRef(null),y=e.useRef(null),f=X.filterByType(D,B).map(({props:t})=>t),O=t=>{v(!0),T(!0),M(t)},g=(t=0)=>{var a;!f.length||!s.current||(v(!1),s.current.load((a=f[t])===null||a===void 0?void 0:a.src).then(()=>{T(!1)}).catch(c=>{switch(console.error(c),c.code){case te:return;case re:setTimeout(()=>g(t),0);break;default:{const x=f.length>t+1&&t+1;x?setTimeout(()=>g(x),0):O(c)}}}).finally(()=>{v(!0)}))};e.useEffect(()=>{const t=l.current,a=C.current;if(!(!t||!a)&&(t.volume=A,d.polyfill.installAll(),s.current=new d.Player(t),!!s.current)){if(s.current.addEventListener("error",()=>O(new Error("Shake-Player error"))),s.current.addEventListener("buffering",c=>{W(c.buffering)}),y.current=new d.ui.Overlay(s.current,a,t,R),y.current.configure({addBigPlayButton:!0,controlPanelElements:[],addSeekBar:!1}),!j){const{Report:c}=oe($);d.ui.Controls.registerElement("report",new c.Factory(R))}g(),se(a)}},[]),e.useEffect(()=>{switch(m){case"play":l.current.play();break;case"pause":l.current.pause();break}},[m]);const G=()=>{if(!y.current)return;const t=L?{controlPanelElements:le(N.controlPanelElements)}:{};y.current.configure(Object.assign(Object.assign({},N),t)),l.current.controls=!1},J=t=>{t.stopPropagation(),G(),h==="fullscreen"&&l.current.requestFullscreen(),Y(!0),z(t,{player:s.current})},K=()=>{l.current.play()},Q=t=>{const a=t.currentTarget;F(t,{volume:Math.round((a.volume+Number.EPSILON)*100)/100,muted:a.muted})},U=()=>{l.current.controls=!1},w={width:n?`${n}px`:void 0,height:o?`${o}px`:void 0};return e.createElement("div",{style:w,className:b("video-player",{"video-player--poster":!k})},!k&&P&&!E&&!S&&e.createElement("div",{className:"shaka-play-button-container"},e.createElement("button",{onClick:K,className:"shaka-play-button",style:{opacity:1,zIndex:999},"aria-label":q},e.createElement(_.EbayIcon,{name:"playFilled64Colored"}))),e.createElement("div",{className:"video-player__container",ref:C},e.createElement("video",Object.assign({ref:l,style:w,poster:i,muted:u||!1,onPlaying:J,onPause:U,onVolumeChange:Q},H),f.map((t,a)=>e.createElement("source",Object.assign({key:a},t))))),e.createElement("div",{className:b("video-player__overlay",{"video-player__overlay--hidden":!E})},e.createElement(_.EbayIcon,{name:"attention64"}),e.createElement("div",{className:"video-player__overlay-text"},I)),e.createElement("div",{className:b("video-player__overlay",{"video-player__overlay--hidden":P&&(E||!S)})},e.createElement(Z.EbayProgressSpinner,{size:"large","aria-label":p})))};function le(r){const n=r.length-2>0?r.length-2:r.length,o=[...r];return o.splice(n,0,"volume"),o}function se(r){const n=r.querySelectorAll(".shaka-spinner")[0];n&&n.setAttribute("hidden","")}exports.EbayVideo=ae;exports.EbayVideoSource=B;