diff --git a/static/web/404.html b/static/web/404.html index 027b6e1e5..ebff5e903 100644 --- a/static/web/404.html +++ b/static/web/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/404/index.html b/static/web/404/index.html index 027b6e1e5..ebff5e903 100644 --- a/static/web/404/index.html +++ b/static/web/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/_next/static/8C8ycHlbV9nguKlyMxB6G/_buildManifest.js b/static/web/_next/static/8yee_itu5giV0OF5d83q0/_buildManifest.js similarity index 82% rename from static/web/_next/static/8C8ycHlbV9nguKlyMxB6G/_buildManifest.js rename to static/web/_next/static/8yee_itu5giV0OF5d83q0/_buildManifest.js index c8357768b..8bd4388ca 100644 --- a/static/web/_next/static/8C8ycHlbV9nguKlyMxB6G/_buildManifest.js +++ b/static/web/_next/static/8yee_itu5giV0OF5d83q0/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,a,c,e,i,t,d,n,f,h,b,o,m,u,k,r,g,j,p,l,_,w,v,y,I,B,F,A,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[o,m,l,a,s,c,t,d,f,u,k,_,w,v,"static/chunks/8559-579ca2755f6999d1.js",h,r,y,"static/css/a97e1fdb349cf296.css","static/chunks/pages/index-5ed8e7b96f57c353.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,d,n,b,k,"static/chunks/5300-b0f573cc3f14ae75.js","static/chunks/pages/admin-a8c5922f0fa68184.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-5f45e77ab2176f5b.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-118addb368d4ec1b.js"],"/admin/chat/messages":[I,a,s,c,e,i,d,B,F,"static/chunks/pages/admin/chat/messages-5e938f5fcf6d38b4.js"],"/admin/chat/users":[I,a,s,c,e,i,t,d,B,F,"static/chunks/pages/admin/chat/users-edd78f9bcab13177.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-60cf4efa879df43b.js"],"/admin/config-federation":["static/chunks/1829-b015b4e5cd814fc8.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-162a41a161f6bd5a.js"],"/admin/config-public-details":["static/chunks/4ad82c5e-3111f896f08ad8d3.js",a,s,c,e,g,"static/chunks/9257-50331d5d9069613c.js",A,"static/chunks/pages/admin/config-public-details-e19f32415e69afa7.js"],"/admin/config-server-details":[D,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[a,s,c,e,A,"static/chunks/pages/admin/config-social-items-4259e7e71b649d89.js"],"/admin/config-storage":["static/chunks/5473-ecd3fd646bf241fd.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[a,s,c,e,D,"static/chunks/4812-9c96405be4c6ddd3.js","static/chunks/pages/admin/config-video-77be2acde5c474cb.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-7358c2d2b36cd0d3.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-244b216150a6b7ed.js"],"/admin/hardware-info":[j,i,t,n,b,p,g,"static/chunks/pages/admin/hardware-info-bc854e2372771829.js"],"/admin/help":[t,n,v,"static/chunks/5566-52c087631b066441.js","static/chunks/pages/admin/help-42d7e93ad9dd7422.js"],"/admin/logs":[a,s,c,e,i,k,"static/chunks/pages/admin/logs-edbab10327a430d5.js"],"/admin/stream-health":[j,i,t,n,b,p,"static/chunks/2934-a0634ff87273dd23.js","static/chunks/pages/admin/stream-health-477fe3fdf39f07c6.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/2069-f1df28dfe5edee8e.js","static/chunks/pages/admin/upgrade-c7e86ed531f5961a.js"],"/admin/viewer-info":[j,a,s,c,e,i,t,d,n,b,p,g,"static/chunks/pages/admin/viewer-info-d5d9e6e1bb5b2d30.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-66e239b373b061f0.js"],"/embed/chat/readonly":[o,m,f,u,h,r,"static/css/12c1bf3c7fd206d0.css","static/chunks/pages/embed/chat/readonly-0324692758910ef4.js"],"/embed/chat/readwrite":[o,m,s,f,u,h,r,"static/css/836decc457006cbf.css","static/chunks/pages/embed/chat/readwrite-f3d041a76ac09b59.js"],"/embed/video":[l,d,f,_,w,h,y,"static/css/4e16c63b431ddd13.css","static/chunks/pages/embed/video-43f8d4d055defc6f.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-97c724332d1a5798.js","static/chunks/8939-2c7dd78bd2286b4d.js","static/chunks/4267-0d1cbd98a57df9e3.js","static/chunks/3626-d074077c8897dd8b.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/4381-ff441df8dbf283c8.js","static/chunks/5938-b8bf626b6df6d168.js","static/chunks/5315-7b43a85c1af1db86.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-c33f8f88bafc4aeb.js","static/chunks/4763-d06cb8d6555df3ab.js","static/chunks/d3048c20-405c7c1a8bffb46c.js","static/chunks/d2094a0f-ffb6824e6aa18418.js","static/chunks/7364-a2aa024934e71728.js","static/chunks/2429-38af9f180f370b65.js","static/chunks/2382-db0487c02624c136.js","static/chunks/7910-c80aab5f0058b5c3.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-e5a704c6afec0fd3.js","static/css/7c735c05af084bb2.css","static/chunks/5859-6e1aa4a1a8a3e90f.js","static/chunks/1082-c86716156ee6f510.js","static/chunks/2854-a4d191d86405b70f.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/2460-885300cc1f75d92b.js","static/chunks/9640-e282810d6fb4f58d.js","static/chunks/2877-77357d178da33d53.js","static/chunks/3286-a15aa91d3d2fc97f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(s,a,c,e,i,t,d,n,f,h,o,b,m,u,k,r,g,j,p,l,_,w,v,y,I,B,F,A,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[b,m,l,a,s,c,t,d,f,u,k,_,w,v,"static/chunks/5824-79357962d517a911.js",h,r,y,"static/css/a85f6a8b9b428d9b.css","static/chunks/pages/index-659cfc1343f929cc.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[a,s,c,e,i,t,d,n,o,k,"static/chunks/5300-b0f573cc3f14ae75.js","static/chunks/pages/admin-a8c5922f0fa68184.js"],"/admin/access-tokens":[a,s,c,e,i,"static/chunks/pages/admin/access-tokens-5f45e77ab2176f5b.js"],"/admin/actions":[a,s,c,e,"static/chunks/pages/admin/actions-118addb368d4ec1b.js"],"/admin/chat/messages":[I,a,s,c,e,i,d,B,F,"static/chunks/pages/admin/chat/messages-5e938f5fcf6d38b4.js"],"/admin/chat/users":[I,a,s,c,e,i,t,d,B,F,"static/chunks/pages/admin/chat/users-edd78f9bcab13177.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-60cf4efa879df43b.js"],"/admin/config-federation":["static/chunks/1829-b015b4e5cd814fc8.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-162a41a161f6bd5a.js"],"/admin/config-public-details":["static/chunks/4ad82c5e-3111f896f08ad8d3.js",a,s,c,e,g,"static/chunks/9257-50331d5d9069613c.js",A,"static/chunks/pages/admin/config-public-details-e19f32415e69afa7.js"],"/admin/config-server-details":[D,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[a,s,c,e,A,"static/chunks/pages/admin/config-social-items-4259e7e71b649d89.js"],"/admin/config-storage":["static/chunks/5473-ecd3fd646bf241fd.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[a,s,c,e,D,"static/chunks/4812-9c96405be4c6ddd3.js","static/chunks/pages/admin/config-video-77be2acde5c474cb.js"],"/admin/federation/actions":[a,s,c,e,i,"static/chunks/pages/admin/federation/actions-7358c2d2b36cd0d3.js"],"/admin/federation/followers":[a,s,c,e,i,t,"static/chunks/pages/admin/federation/followers-244b216150a6b7ed.js"],"/admin/hardware-info":[j,i,t,n,o,p,g,"static/chunks/pages/admin/hardware-info-bc854e2372771829.js"],"/admin/help":[t,n,v,"static/chunks/5566-52c087631b066441.js","static/chunks/pages/admin/help-42d7e93ad9dd7422.js"],"/admin/logs":[a,s,c,e,i,k,"static/chunks/pages/admin/logs-edbab10327a430d5.js"],"/admin/stream-health":[j,i,t,n,o,p,"static/chunks/2934-a0634ff87273dd23.js","static/chunks/pages/admin/stream-health-477fe3fdf39f07c6.js"],"/admin/upgrade":[a,s,c,e,"static/chunks/2069-f1df28dfe5edee8e.js","static/chunks/pages/admin/upgrade-c7e86ed531f5961a.js"],"/admin/viewer-info":[j,a,s,c,e,i,t,d,n,o,p,g,"static/chunks/pages/admin/viewer-info-d5d9e6e1bb5b2d30.js"],"/admin/webhooks":[a,s,c,e,"static/chunks/pages/admin/webhooks-66e239b373b061f0.js"],"/embed/chat/readonly":[b,m,f,u,h,r,"static/css/12c1bf3c7fd206d0.css","static/chunks/pages/embed/chat/readonly-0324692758910ef4.js"],"/embed/chat/readwrite":[b,m,s,f,u,h,r,"static/css/836decc457006cbf.css","static/chunks/pages/embed/chat/readwrite-f3d041a76ac09b59.js"],"/embed/video":[l,d,f,_,w,h,y,"static/css/df2265f42be36c15.css","static/chunks/pages/embed/video-66965a750b6ec698.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-97c724332d1a5798.js","static/chunks/8939-2c7dd78bd2286b4d.js","static/chunks/4267-0d1cbd98a57df9e3.js","static/chunks/3626-d074077c8897dd8b.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/4381-ff441df8dbf283c8.js","static/chunks/5938-b8bf626b6df6d168.js","static/chunks/5315-7b43a85c1af1db86.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-c33f8f88bafc4aeb.js","static/chunks/4763-d06cb8d6555df3ab.js","static/chunks/d3048c20-405c7c1a8bffb46c.js","static/chunks/d2094a0f-ffb6824e6aa18418.js","static/chunks/7364-a2aa024934e71728.js","static/chunks/2429-38af9f180f370b65.js","static/chunks/2382-db0487c02624c136.js","static/chunks/7910-c80aab5f0058b5c3.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-e5a704c6afec0fd3.js","static/css/7c735c05af084bb2.css","static/chunks/6373-4d3c9c1a2350aa63.js","static/chunks/1082-c86716156ee6f510.js","static/chunks/2854-078bd611c7391906.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/2460-885300cc1f75d92b.js","static/chunks/9640-e282810d6fb4f58d.js","static/chunks/2877-77357d178da33d53.js","static/chunks/3286-a15aa91d3d2fc97f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/8C8ycHlbV9nguKlyMxB6G/_ssgManifest.js b/static/web/_next/static/8yee_itu5giV0OF5d83q0/_ssgManifest.js similarity index 100% rename from static/web/_next/static/8C8ycHlbV9nguKlyMxB6G/_ssgManifest.js rename to static/web/_next/static/8yee_itu5giV0OF5d83q0/_ssgManifest.js diff --git a/static/web/_next/static/chunks/2854-078bd611c7391906.js b/static/web/_next/static/chunks/2854-078bd611c7391906.js new file mode 100644 index 000000000..b4f37f835 --- /dev/null +++ b/static/web/_next/static/chunks/2854-078bd611c7391906.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2854],{1698:function(e,t,n){"use strict";n.d(t,{R:function(){return c}});var i=n(85893),r=n(27049),a=n(24019),s=n(45938),o=n(29316),l=n.n(o),c=function(e){var t,n=e.streamName,o=e.customText,c=e.lastLive,u=e.notificationsEnabled,h=e.fediverseAccount,f=e.onNotifyClick,d=e.onFollowClick;return t=o||(!o&&u&&h?(0,i.jsxs)("span",{children:["This stream is offline. You can"," ",(0,i.jsx)("span",{role:"link",tabIndex:0,className:l().actionLink,onClick:f,children:"be notified"})," ","the next time ",n," goes live or"," ",(0,i.jsx)("span",{role:"link",tabIndex:0,className:l().actionLink,onClick:d,children:"follow"})," ",h," on the Fediverse."]}):!o&&u?(0,i.jsxs)("span",{children:["This stream is offline."," ",(0,i.jsx)("span",{role:"link",tabIndex:0,className:l().actionLink,onClick:f,children:"Be notified"})," ","the next time ",n," goes live."]}):!o&&h?(0,i.jsxs)("span",{children:["This stream is offline."," ",(0,i.jsx)("span",{role:"link",tabIndex:0,className:l().actionLink,onClick:d,children:"Follow"})," ",h," on the Fediverse to see the next time ",n," goes live."]}):"This stream is offline. Check back soon!"),(0,i.jsx)("div",{className:l().outerContainer,children:(0,i.jsxs)("div",{className:l().innerContainer,children:[(0,i.jsx)("div",{className:l().header,children:n}),(0,i.jsx)(r.Z,{className:l().separator}),(0,i.jsx)("div",{className:l().bodyText,children:t}),c&&(0,i.jsxs)("div",{className:l().lastLiveDate,children:[(0,i.jsx)(a.Z,{className:l().clockIcon}),"Last live ".concat((0,s.Z)(new Date(c))," ago.")]})]})})}},43125:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var i=n(85893),r=n(45938),a=n(68730),s=n(67294),o=n(31326),l=n(93132),c=n.n(l);var u=function(e){var t=e.online,n=e.lastConnectTime,l=e.lastDisconnectTime,u=e.viewerCount,h=(0,s.useState)(new Date)[1];(0,s.useEffect)((function(){var e=setInterval((function(){return h(new Date)}),1e3);return function(){clearInterval(e)}}),[]);var f,d="";if(t&&n){var m=function(e){var t=(0,a.Z)({start:e,end:new Date});return t.days>1?"".concat(t.days," days ").concat(t.hours," hours"):t.hours>=1?"".concat(t.hours," hours ").concat(t.minutes," minutes"):"".concat(t.minutes," minutes ").concat(t.seconds," seconds")}(new Date(n));d=t?"Live for ".concat(m):"Offline",f=u>0&&(0,i.jsxs)("div",{className:c().right,children:[(0,i.jsx)("span",{children:(0,i.jsx)(o.Z,{})}),(0,i.jsx)("span",{children:" ".concat(u)})]})}else t||(d="Offline",l&&(f="Last live ".concat((0,r.Z)(new Date(l))," ago.")));return(0,i.jsxs)("div",{className:c().statusbar,children:[(0,i.jsx)("div",{children:d}),(0,i.jsx)("div",{children:f})]})};u.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},83818:function(e,t,n){"use strict";n.d(t,{M:function(){return U}});var i=n(47568),r=n(828),a=n(70655),s=n(85893),o=n(67294),l=n(4480),c=n(49218),u=n(85215),h=n(55206),f=n.n(h);n(33108);var d=function(e){var t=e.options,n=e.onReady,i=o.useRef(null),r=o.useRef(null);return o.useEffect((function(){if(!r.current){var e=i.current,a=r.current=(0,u.Z)(e,t,(function(){return a.log("player is ready"),n&&n(a,u.Z)}));a.autoplay(t.autoplay),a.src(t.sources)}}),[t,i]),o.useEffect((function(){var e=r.current;return function(){e&&(e.dispose(),r.current=null)}}),[r]),(0,s.jsx)("div",{"data-vjs-player":!0,children:(0,s.jsx)("video",{ref:i,className:"video-js vjs-big-play-centered vjs-show-big-play-button-on-pause ".concat(f().player," vjs-owncast")})})},m=n(51438);var v=function(){function e(){(0,m.Z)(this,e)}var t=e.prototype;return t.start=function(){this.stop(),this.timer=setInterval((function(){!function(){try{fetch("/api/ping")}catch(e){console.error(e)}}()}),4e3)},t.stop=function(){clearInterval(this.timer)},e}(),p=n(26042),y=n(69396),g=n(29815),b={position:"absolute",width:"100%",height:"100%"},k=function(e){var t=e.src,n=void 0===t?"":t,i=e.width,r=e.height,a=e.objectFit,l=void 0===a?"fill":a,c=e.duration,u=void 0===c?"1s":c,h=(0,o.useMemo)((function(){return{display:"inline-block",position:"relative",width:i,height:r}}),[i,r]),f=(0,o.useMemo)((function(){return[(0,y.Z)((0,p.Z)({},b),{objectFit:l,opacity:0,transition:"opacity ".concat(u)}),(0,y.Z)((0,p.Z)({},b),{objectFit:l,opacity:1,transition:"opacity ".concat(u)}),(0,y.Z)((0,p.Z)({},b),{objectFit:l,opacity:0})]}),[l,u]),d=(0,o.useState)(0),m=d[0],v=d[1],k=(0,o.useState)(["",""]),T=k[0],w=k[1],x=n!==T[1]?n:"",j=function(){v((m+1)%3),w([T[1],x])};return(0,s.jsx)("span",{style:h,children:(0,g.Z)(T).concat([x]).map((function(e,t){return""!==e&&(0,s.jsx)("img",{src:e,alt:"",style:f[t],onLoad:2===t?j:void 0},e)}))})};k.defaultProps={objectFit:"fill",duration:"3s"};var T=n(1125),w=n.n(T),x=function(e){var t,n=e.online,i=e.initialSrc,r=e.src,a=(0,o.useState)(i),l=a[0],c=a[1],u=(0,o.useState)("0s"),h=u[0],f=u[1];return(0,o.useEffect)((function(){clearInterval(t),t=setInterval((function(){"0s"===h&&f("3s"),c("".concat(r,"?").concat(Date.now()))}),2e4)}),[]),(0,s.jsxs)("div",{className:w().poster,children:[!n&&(0,s.jsx)("img",{src:i,alt:"logo"}),n&&(0,s.jsx)(k,{src:l,duration:h,objectFit:"cover",width:"100%",height:"100%"})]})},j=n(73682),C=n(1899),B=n(52951);var I=function(){function e(t,n){var i=this;(0,m.Z)(this,e),this.player=t,this.supportsDetailedMetrics=!1,this.hasPerformedInitialVariantChange=!1,this.clockSkewMs=0,this.segmentDownloadTime=[],this.bandwidthTracking=[],this.latencyTracking=[],this.errors=0,this.qualityVariantChanges=0,this.isBuffering=!1,this.bufferingDurationTimer=0,this.collectPlaybackMetricsTimer=0,this.videoJSReady=this.videoJSReady.bind(this),this.handlePlaying=this.handlePlaying.bind(this),this.handleBuffering=this.handleBuffering.bind(this),this.handleEnded=this.handleEnded.bind(this),this.handleError=this.handleError.bind(this),this.send=this.send.bind(this),this.collectPlaybackMetrics=this.collectPlaybackMetrics.bind(this),this.handleNoLongerBuffering=this.handleNoLongerBuffering.bind(this),this.sendMetricsTimer=0,this.player.on("canplaythrough",this.handleNoLongerBuffering),this.player.on("error",this.handleError),this.player.on("stalled",this.handleBuffering),this.player.on("waiting",this.handleBuffering),this.player.on("playing",this.handlePlaying),this.player.on("ended",this.handleEnded);var r=n.xhr;n.Vhs.xhr=function(){for(var e=arguments.length,t=new Array(e),n=0;n=40)return;this.trackLatency(a)}catch(s){console.warn(s)}}}},{key:"send",value:function(){var e=this;return(0,i.Z)((function(){var t,n,i,r,s,o,l,c,u,h,f;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(0===e.segmentDownloadTime.length)return[2];if(!e.player||e.player.paused())return[2];t=e.errors,e.supportsDetailedMetrics?(r=(i=function(e){return e.reduce((function(e,t){return e+t}),0)/e.length})(e.segmentDownloadTime)/1e3,s=Math.round(1e3*r)/1e3,o=i(e.bandwidthTracking)/1e3,l=Math.round(1e3*o)/1e3,c=i(e.latencyTracking)/1e3,u=Math.round(1e3*c)/1e3,n={bandwidth:l,latency:u,downloadDuration:s,errors:t+(e.isBuffering?1:0),qualityVariantChanges:e.qualityVariantChanges}):n={errors:t+(e.isBuffering?1:0)},e.errors=0,e.qualityVariantChanges=0,e.segmentDownloadTime=[],e.bandwidthTracking=[],e.latencyTracking=[],h={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch("/api/metrics/playback",h)];case 2:return a.sent(),[3,4];case 3:return f=a.sent(),console.error(f),[3,4];case 4:return[2]}}))}))()}}]),e}(),_=I,E=n(45785),L=n(82662),M=n(88029),D=n(91224);var P=function(e,t,n,i){var r=t.getComponent("MenuItem"),a=t.getComponent("MenuItem"),s=t.getComponent("MenuButton"),o=function(e){(0,M.Z)(n,e);var t=(0,D.Z)(n);function n(e,i){return(0,m.Z)(this,n),t.call(this,e,i)}return n.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,E.Z)((0,L.Z)(n.prototype),"createEl",this).call(this,e,t,i);return r.innerHTML='
',r},n}(r),l=new a(e,{selectable:!0});l.setAttribute("class","latency-toggle-item"),l.on("click",(function(){i()}));var c=new o(e,{selectable:!1}),u=t.extend(s,{constructor:function(){s.call(this,e)},createItems:function(){var t=e.tech({IWillNotUseThisInPlugins:!0}),i=new a(e,{selectable:!0,label:"Auto"}),r=n.map((function(n){var i=new a(e,{selectable:!0,label:n.name});return i.on("click",(function(){t?(t.vhs.representations().forEach((function(e,t){e.enabled(t===n.index)})),i.selected(!1)):console.warn("Invalid attempt to access null player tech")})),i}));i.on("click",(function(){t.vhs.representations().forEach((function(e){e.enabled(!0)})),i.selected(!1)}));var s=!!t&&!!t.vhs;return n.length<2&&s?[l]:n.length>1&&s?[i].concat((0,g.Z)(r),[c,l]):s||1!==n.length?[i].concat((0,g.Z)(r)):[]}}),h=e.tech({IWillNotUseThisInPlugins:!0});if(!(n.length<2)||h&&h.vhs){var f=new u;return f.addClass("vjs-quality-selector"),f}};var N=function(){function e(t){(0,m.Z)(this,e),this.player=t,this.playing=!1,this.enabled=!1,this.running=!1,this.inTimeout=!1,this.jumpingToLiveIgnoreBuffer=!1,this.timeoutTimer=0,this.checkTimer=0,this.bufferingCounter=0,this.bufferingTimer=0,this.playbackRate=1,this.lastJumpOccurred=null,this.startupTime=new Date,this.clockSkewMs=0,this.currentLatency=null,this.bufferedAtLatency=[],this.player.on("playing",this.handlePlaying.bind(this)),this.player.on("pause",this.handlePause.bind(this)),this.player.on("error",this.handleError.bind(this)),this.player.on("waiting",this.handleBuffering.bind(this)),this.player.on("stalled",this.handleBuffering.bind(this)),this.player.on("ended",this.handleEnded.bind(this)),this.player.on("canplaythrough",this.handlePlaying.bind(this)),this.player.on("canplay",this.handlePlaying.bind(this)),this.check=this.check.bind(this),this.start=this.start.bind(this),this.enable=this.enable.bind(this),this.countBufferingEvent=this.countBufferingEvent.bind(this)}return(0,B.Z)(e,[{key:"setClockSkew",value:function(e){this.clockSkewMs=e}},{key:"check",value:function(){if(!((new Date).getTime()-this.startupTime.getTime()<1e4)&&!this.player.paused()&&!this.player.seeking()&&!this.inTimeout&&this.enabled){var e=this.player.tech({IWillNotUseThisInPlugins:!0});if(e&&e.vhs)if(2===this.player.networkState()){var t=0;try{if(0===e.vhs.stats.buffered.length)return void this.timeout();e.vhs.stats.buffered.forEach((function(e){t+=e.end-e.start}))}catch(p){console.error(p)}var n=e.vhs.playlists.media().attributes.BANDWIDTH,i=e.vhs.systemBandwidth/n;try{var a=function(e){for(var t,n=e.vhs.playlists.media(),i=e.currentTime(),a=0,s=n.segments.length;a=c&&(c=l+3e3);var u=a.dateTimeObject.getTime(),h=(new Date).getTime()+this.clockSkewMs-u;if(this.currentLatency=h,Math.abs(h)>8e4)return void this.timeout();if(h>c){if(this.shouldJumpToLive()&&h>c+5e3){var f=h/1e3-3*a.duration,d=this.player.currentTime()+f;console.info("latency",h/1e3,"jumping",f,"to live from ",this.player.currentTime()," to ",d);var m=e.vhs.stats.buffered[0].end;if(d>e.vhs.stats.buffered[0].startthis.playbackRate+.02&&(v=this.playbackRate+.02),v=Math.round(v*Math.pow(10,3))/Math.pow(10,3),this.start(v)}else h<=l&&this.stop();console.info("latency",h/1e3,"min",l/1e3,"max",c/1e3,"playback rate",this.playbackRate,"enabled:",this.enabled,"running: ",this.running,"skew: ",this.clockSkewMs,"rebuffer events: ",this.bufferingCounter)}catch(y){}}}}},{key:"shouldJumpToLive",value:function(){return!(this.bufferingCounter>1)&&(new Date).getTime()-this.lastJumpOccurred>2e4}},{key:"jump",value:function(e){var t=this;this.jumpingToLiveIgnoreBuffer=!0,this.performedInitialLiveJump=!0,this.lastJumpOccurred=new Date,console.info("current time",this.player.currentTime(),"seeking to",e),this.player.currentTime(e),setTimeout((function(){t.jumpingToLiveIgnoreBuffer=!1}),5e3)}},{key:"setPlaybackRate",value:function(e){this.playbackRate=e,this.player.playbackRate(e)}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;!this.inTimeout&&this.enabled&&e!==this.playbackRate&&(this.running=!0,this.setPlaybackRate(e))}},{key:"stop",value:function(){this.running&&console.log("stopping latency compensator..."),this.running=!1,this.setPlaybackRate(1)}},{key:"enable",value:function(){var e=this;this.enabled=!0,clearInterval(this.checkTimer),clearTimeout(this.bufferingTimer),this.checkTimer=setInterval((function(){e.check()}),3e3)}},{key:"disable",value:function(){clearInterval(this.checkTimer),clearTimeout(this.timeoutTimer),this.stop(),this.enabled=!1}},{key:"timeout",value:function(){var e=this;this.jumpingToLiveIgnoreBuffer||(this.inTimeout=!0,this.stop(),clearTimeout(this.timeoutTimer),this.timeoutTimer=setTimeout((function(){e.endTimeout()}),3e4))}},{key:"endTimeout",value:function(){clearTimeout(this.timeoutTimer),this.inTimeout=!1}},{key:"handlePlaying",value:function(){var e=this.playing;this.playing=!0,clearTimeout(this.bufferingTimer),this.enabled&&this.shouldJumpToLive()&&(e||(this.jumpingToLiveIgnoreBuffer=!0,this.player.liveTracker.seekToLiveEdge(),this.lastJumpOccurred=new Date))}},{key:"handlePause",value:function(){this.playing=!1}},{key:"handleEnded",value:function(){this.enabled&&this.disable()}},{key:"handleError",value:function(){this.enabled&&this.timeout()}},{key:"countBufferingEvent",value:function(){var e=this;this.bufferingCounter+=1,this.bufferingCounter>4?this.disable():(this.bufferedAtLatency.push(this.currentLatency),console.log("latency compensation timeout due to buffering:",this.bufferingCounter,"buffering events of",4),setTimeout((function(){e.bufferingCounter>0&&(e.bufferingCounter-=1)}),18e4))}},{key:"handleBuffering",value:function(){var e=this;this.enabled&&!this.inTimeout&&(this.jumpingToLiveIgnoreBuffer?this.jumpingToLiveIgnoreBuffer=!1:(this.timeout(),clearTimeout(this.bufferingTimer),this.bufferingTimer=setTimeout((function(){e.countBufferingEvent()}),200)))}}]),e}(),S=N,Z="/api/video/variants",O="owncast_volume",R="latencyCompensatorEnabled",V=new v,J=null,F=null,A=!1;function q(){return W.apply(this,arguments)}function W(){return(W=(0,i.Z)((function(){var e,t;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:e=[],n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch(Z)];case 2:return[4,n.sent().json()];case 3:return e=n.sent(),[3,5];case 4:return t=n.sent(),console.error(t),[3,5];case 5:return[2,e]}}))}))).apply(this,arguments)}var U=function(e){var t=e.source,n=e.online,u=o.useRef(null),h=(0,r.Z)((0,l.FV)(C.We),2),f=h[0],m=h[1],v=(0,l.sJ)(C.g8),p=function(){(0,j.qQ)(O,u.current.muted()?0:u.current.volume())},y=function(e){var t=document.querySelector(".latency-toggle-item > .vjs-menu-item-text");t&&(t.innerHTML=e)},g=function(){F&&F.stop(),A=!0,(F=new S(u.current)).setClockSkew(v),F.enable(),(0,j.qQ)(R,!0),y("disable minimized latency")},b=function(){F&&F.disable(),F=null,A=!1,(0,j.qQ)(R,!1),y('enable minimized latency (experimental)')},k=function(){A?b():g()},T=function(){var e=(0,i.Z)((function(e,t){var n,i;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return[4,q()];case 1:return n=r.sent(),i=P(e,t,n,k),e.controlBar.addChild(i,{},e.controlBar.children_.length-2),function(e){var t=e.tech({IWillNotUseThisInPlugins:!0});t&&t.vhs&&("true"===(0,j.$o)(R)&&t&&t.vhs?g():b())}(e),[2]}}))}));return function(t,n){return e.apply(this,arguments)}}();(0,c.y1)("space",(function(e){e.preventDefault(),u.current.paused()?u.current.play():u.current.pause()})),(0,c.y1)("f",(function(){u.current.isFullscreen()?u.current.exitFullscreen():u.current.requestFullscreen()}),{enableOnContentEditable:!1}),(0,c.y1)("m",(function(){u.current.muted()||0===u.current.volume()?u.current.volume(.7):u.current.volume(0)}),{enableOnContentEditable:!1}),(0,c.y1)("0",(function(){return u.current.volume(u.current.volume()+.1)}),{enableOnContentEditable:!1}),(0,c.y1)("9",(function(){return u.current.volume(u.current.volume()-.1)}),{enableOnContentEditable:!1});var w={autoplay:!1,controls:!0,responsive:!0,fluid:!1,playsinline:!0,liveui:!0,preload:"auto",controlBar:{progressControl:{seekBar:!1}},html5:{vhs:{enableLowInitialPlaylist:!0,experimentalBufferBasedABR:!0,useNetworkInformationApi:!0,maxPlaylistRetries:30}},liveTracker:{trackingThreshold:0,liveTolerance:15},sources:[{src:t,type:"application/x-mpegURL"}]};return(0,o.useEffect)((function(){J&&J.setClockSkew(v)}),[v]),(0,o.useEffect)((function(){return function(){b(),J.stop()}}),[]),(0,s.jsxs)("div",{style:{display:"grid"},children:[n&&(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:(0,s.jsx)(d,{options:w,onReady:function(e,t){u.current=e,function(){try{u.current.volume((0,j.$o)(O)||1)}catch(e){console.warn(e)}}(),function(e,t){if(window.hasOwnProperty("WebKitPlaybackTargetAvailabilityEvent")){var n=t.getComponent("Button"),i=t.extend(n,{constructor:function(){n.call(this,e)},handleClick:function(){try{document.getElementsByTagName("video")[0].webkitShowPlaybackTargetPicker()}catch(e){console.error(e)}}});e.controlBar.addChild(new i).addClass("vjs-airplay")}}(e,t),e.on("waiting",(function(){e.log("player is waiting")})),e.on("dispose",(function(){e.log("player will dispose"),V.stop()})),e.on("playing",(function(){e.log("player is playing"),V.start(),m(!0)})),e.on("pause",(function(){e.log("player is paused"),V.stop(),m(!1)})),e.on("ended",(function(){e.log("player is ended"),V.stop(),m(!1)})),t.hookOnce(),e.on("volumechange",p),(J=new _(e,t)).setClockSkew(v),T(e,t)}})}),(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:!f&&(0,s.jsx)(x,{online:n,initialSrc:"/thumbnail.jpg",src:"/thumbnail.jpg"})})]})}},29316:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",bodyText:"OfflineBanner_bodyText__nNNy0",separator:"OfflineBanner_separator___j_Ss",lastLiveDate:"OfflineBanner_lastLiveDate___UZdO",clockIcon:"OfflineBanner_clockIcon__s0DB_",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5",actionLink:"OfflineBanner_actionLink__b4Mwa"}},93132:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},55206:function(e){e.exports={player:"VideoJS_player__GT8FN",poster:"VideoJS_poster__nlmqm"}},1125:function(e){e.exports={poster:"VideoPoster_poster__RDkSk"}},25893:function(){}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2854-a4d191d86405b70f.js b/static/web/_next/static/chunks/2854-a4d191d86405b70f.js deleted file mode 100644 index e1f49f2ea..000000000 --- a/static/web/_next/static/chunks/2854-a4d191d86405b70f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2854],{7263:function(e,t,n){"use strict";n.d(t,{e:function(){return u}});var i=n(26042),r=n(69396),a=n(85893),s=n(71577),o=n(34447),c=n(36879),l=n.n(c),u=function(e){var t=e.onClick,n=e.props;return(0,a.jsx)(s.Z,(0,r.Z)((0,i.Z)({},n),{type:"primary",className:l().button,icon:(0,a.jsx)(o.Z,{}),onClick:t,children:"Follow"}))}},52437:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var i=n(85893),r=n(71577),a=n(71578),s=n(36879),o=n.n(s),c=function(e){var t=e.onClick,n=e.text;return(0,i.jsx)(r.Z,{type:"primary",className:"".concat(o().button),icon:(0,i.jsx)(a.Z,{}),onClick:t,children:n||"Notify"})}},1698:function(e,t,n){"use strict";n.d(t,{R:function(){return h}});var i=n(85893),r=n(27049),a=n(24019),s=n(45938),o=n(29316),c=n.n(o),l=n(7263),u=n(52437),h=function(e){var t,n=e.streamName,o=e.customText,h=e.lastLive,f=e.notificationsEnabled,d=e.fediverseAccount,v=e.onNotifyClick;return t=o||(!o&&f&&d?"This stream is offline. You can be notified the next time ".concat(n," goes live or follow ").concat(d," on the Fediverse."):!o&&f?"This stream is offline. Be notified the next time ".concat(n," goes live."):"This stream is offline. Check back soon!"),(0,i.jsx)("div",{className:c().outerContainer,children:(0,i.jsxs)("div",{className:c().innerContainer,children:[(0,i.jsx)("div",{className:c().header,children:n}),(0,i.jsx)(r.Z,{className:c().separator}),(0,i.jsx)("div",{className:c().bodyText,children:t}),h&&(0,i.jsxs)("div",{className:c().lastLiveDate,children:[(0,i.jsx)(a.Z,{className:c().clockIcon}),"Last live ".concat((0,s.Z)(new Date(h))," ago.")]}),(0,i.jsxs)("div",{className:c().footer,children:[d&&(0,i.jsx)(l.e,{}),f&&(0,i.jsx)(u.E,{text:"Notify when live",onClick:v})]})]})})}},43125:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var i=n(85893),r=n(45938),a=n(68730),s=n(67294),o=n(31326),c=n(93132),l=n.n(c);var u=function(e){var t=e.online,n=e.lastConnectTime,c=e.lastDisconnectTime,u=e.viewerCount,h=(0,s.useState)(new Date)[1];(0,s.useEffect)((function(){var e=setInterval((function(){return h(new Date)}),1e3);return function(){clearInterval(e)}}),[]);var f,d="";if(t&&n){var v=function(e){var t=(0,a.Z)({start:e,end:new Date});return t.days>1?"".concat(t.days," days ").concat(t.hours," hours"):t.hours>=1?"".concat(t.hours," hours ").concat(t.minutes," minutes"):"".concat(t.minutes," minutes ").concat(t.seconds," seconds")}(new Date(n));d=t?"Live for ".concat(v):"Offline",f=u>0&&(0,i.jsxs)("div",{className:l().right,children:[(0,i.jsx)("span",{children:(0,i.jsx)(o.Z,{})}),(0,i.jsx)("span",{children:" ".concat(u)})]})}else t||(d="Offline",c&&(f="Last live ".concat((0,r.Z)(new Date(c))," ago.")));return(0,i.jsxs)("div",{className:l().statusbar,children:[(0,i.jsx)("div",{children:d}),(0,i.jsx)("div",{children:f})]})};u.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},83818:function(e,t,n){"use strict";n.d(t,{M:function(){return U}});var i=n(47568),r=n(828),a=n(70655),s=n(85893),o=n(67294),c=n(4480),l=n(49218),u=n(85215),h=n(55206),f=n.n(h);n(33108);var d=function(e){var t=e.options,n=e.onReady,i=o.useRef(null),r=o.useRef(null);return o.useEffect((function(){if(!r.current){var e=i.current,a=r.current=(0,u.Z)(e,t,(function(){return a.log("player is ready"),n&&n(a,u.Z)}));a.autoplay(t.autoplay),a.src(t.sources)}}),[t,i]),o.useEffect((function(){var e=r.current;return function(){e&&(e.dispose(),r.current=null)}}),[r]),(0,s.jsx)("div",{"data-vjs-player":!0,children:(0,s.jsx)("video",{ref:i,className:"video-js vjs-big-play-centered vjs-show-big-play-button-on-pause ".concat(f().player," vjs-owncast")})})},v=n(51438);var m=function(){function e(){(0,v.Z)(this,e)}var t=e.prototype;return t.start=function(){this.stop(),this.timer=setInterval((function(){!function(){try{fetch("/api/ping")}catch(e){console.error(e)}}()}),4e3)},t.stop=function(){clearInterval(this.timer)},e}(),y=n(26042),p=n(69396),g=n(29815),b={position:"absolute",width:"100%",height:"100%"},k=function(e){var t=e.src,n=void 0===t?"":t,i=e.width,r=e.height,a=e.objectFit,c=void 0===a?"fill":a,l=e.duration,u=void 0===l?"1s":l,h=(0,o.useMemo)((function(){return{display:"inline-block",position:"relative",width:i,height:r}}),[i,r]),f=(0,o.useMemo)((function(){return[(0,p.Z)((0,y.Z)({},b),{objectFit:c,opacity:0,transition:"opacity ".concat(u)}),(0,p.Z)((0,y.Z)({},b),{objectFit:c,opacity:1,transition:"opacity ".concat(u)}),(0,p.Z)((0,y.Z)({},b),{objectFit:c,opacity:0})]}),[c,u]),d=(0,o.useState)(0),v=d[0],m=d[1],k=(0,o.useState)(["",""]),T=k[0],w=k[1],j=n!==T[1]?n:"",x=function(){m((v+1)%3),w([T[1],j])};return(0,s.jsx)("span",{style:h,children:(0,g.Z)(T).concat([j]).map((function(e,t){return""!==e&&(0,s.jsx)("img",{src:e,alt:"",style:f[t],onLoad:2===t?x:void 0},e)}))})};k.defaultProps={objectFit:"fill",duration:"3s"};var T=n(1125),w=n.n(T),j=function(e){var t,n=e.online,i=e.initialSrc,r=e.src,a=(0,o.useState)(i),c=a[0],l=a[1],u=(0,o.useState)("0s"),h=u[0],f=u[1];return(0,o.useEffect)((function(){clearInterval(t),t=setInterval((function(){"0s"===h&&f("3s"),l("".concat(r,"?").concat(Date.now()))}),2e4)}),[]),(0,s.jsxs)("div",{className:w().poster,children:[!n&&(0,s.jsx)("img",{src:i,alt:"logo"}),n&&(0,s.jsx)(k,{src:c,duration:h,objectFit:"cover",width:"100%",height:"100%"})]})},x=n(73682),C=n(1899),B=n(52951);var _=function(){function e(t,n){var i=this;(0,v.Z)(this,e),this.player=t,this.supportsDetailedMetrics=!1,this.hasPerformedInitialVariantChange=!1,this.clockSkewMs=0,this.segmentDownloadTime=[],this.bandwidthTracking=[],this.latencyTracking=[],this.errors=0,this.qualityVariantChanges=0,this.isBuffering=!1,this.bufferingDurationTimer=0,this.collectPlaybackMetricsTimer=0,this.videoJSReady=this.videoJSReady.bind(this),this.handlePlaying=this.handlePlaying.bind(this),this.handleBuffering=this.handleBuffering.bind(this),this.handleEnded=this.handleEnded.bind(this),this.handleError=this.handleError.bind(this),this.send=this.send.bind(this),this.collectPlaybackMetrics=this.collectPlaybackMetrics.bind(this),this.handleNoLongerBuffering=this.handleNoLongerBuffering.bind(this),this.sendMetricsTimer=0,this.player.on("canplaythrough",this.handleNoLongerBuffering),this.player.on("error",this.handleError),this.player.on("stalled",this.handleBuffering),this.player.on("waiting",this.handleBuffering),this.player.on("playing",this.handlePlaying),this.player.on("ended",this.handleEnded);var r=n.xhr;n.Vhs.xhr=function(){for(var e=arguments.length,t=new Array(e),n=0;n=40)return;this.trackLatency(a)}catch(s){console.warn(s)}}}},{key:"send",value:function(){var e=this;return(0,i.Z)((function(){var t,n,i,r,s,o,c,l,u,h,f;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(0===e.segmentDownloadTime.length)return[2];if(!e.player||e.player.paused())return[2];t=e.errors,e.supportsDetailedMetrics?(r=(i=function(e){return e.reduce((function(e,t){return e+t}),0)/e.length})(e.segmentDownloadTime)/1e3,s=Math.round(1e3*r)/1e3,o=i(e.bandwidthTracking)/1e3,c=Math.round(1e3*o)/1e3,l=i(e.latencyTracking)/1e3,u=Math.round(1e3*l)/1e3,n={bandwidth:c,latency:u,downloadDuration:s,errors:t+(e.isBuffering?1:0),qualityVariantChanges:e.qualityVariantChanges}):n={errors:t+(e.isBuffering?1:0)},e.errors=0,e.qualityVariantChanges=0,e.segmentDownloadTime=[],e.bandwidthTracking=[],e.latencyTracking=[],h={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)},a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch("/api/metrics/playback",h)];case 2:return a.sent(),[3,4];case 3:return f=a.sent(),console.error(f),[3,4];case 4:return[2]}}))}))()}}]),e}(),I=_,E=n(45785),Z=n(82662),M=n(88029),P=n(91224);var D=function(e,t,n,i){var r=t.getComponent("MenuItem"),a=t.getComponent("MenuItem"),s=t.getComponent("MenuButton"),o=function(e){(0,M.Z)(n,e);var t=(0,P.Z)(n);function n(e,i){return(0,v.Z)(this,n),t.call(this,e,i)}return n.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,E.Z)((0,Z.Z)(n.prototype),"createEl",this).call(this,e,t,i);return r.innerHTML='
',r},n}(r),c=new a(e,{selectable:!0});c.setAttribute("class","latency-toggle-item"),c.on("click",(function(){i()}));var l=new o(e,{selectable:!1}),u=t.extend(s,{constructor:function(){s.call(this,e)},createItems:function(){var t=e.tech({IWillNotUseThisInPlugins:!0}),i=new a(e,{selectable:!0,label:"Auto"}),r=n.map((function(n){var i=new a(e,{selectable:!0,label:n.name});return i.on("click",(function(){t?(t.vhs.representations().forEach((function(e,t){e.enabled(t===n.index)})),i.selected(!1)):console.warn("Invalid attempt to access null player tech")})),i}));i.on("click",(function(){t.vhs.representations().forEach((function(e){e.enabled(!0)})),i.selected(!1)}));var s=!!t&&!!t.vhs;return n.length<2&&s?[c]:n.length>1&&s?[i].concat((0,g.Z)(r),[l,c]):s||1!==n.length?[i].concat((0,g.Z)(r)):[]}}),h=e.tech({IWillNotUseThisInPlugins:!0});if(!(n.length<2)||h&&h.vhs){var f=new u;return f.addClass("vjs-quality-selector"),f}};var L=function(){function e(t){(0,v.Z)(this,e),this.player=t,this.playing=!1,this.enabled=!1,this.running=!1,this.inTimeout=!1,this.jumpingToLiveIgnoreBuffer=!1,this.timeoutTimer=0,this.checkTimer=0,this.bufferingCounter=0,this.bufferingTimer=0,this.playbackRate=1,this.lastJumpOccurred=null,this.startupTime=new Date,this.clockSkewMs=0,this.currentLatency=null,this.bufferedAtLatency=[],this.player.on("playing",this.handlePlaying.bind(this)),this.player.on("pause",this.handlePause.bind(this)),this.player.on("error",this.handleError.bind(this)),this.player.on("waiting",this.handleBuffering.bind(this)),this.player.on("stalled",this.handleBuffering.bind(this)),this.player.on("ended",this.handleEnded.bind(this)),this.player.on("canplaythrough",this.handlePlaying.bind(this)),this.player.on("canplay",this.handlePlaying.bind(this)),this.check=this.check.bind(this),this.start=this.start.bind(this),this.enable=this.enable.bind(this),this.countBufferingEvent=this.countBufferingEvent.bind(this)}return(0,B.Z)(e,[{key:"setClockSkew",value:function(e){this.clockSkewMs=e}},{key:"check",value:function(){if(!((new Date).getTime()-this.startupTime.getTime()<1e4)&&!this.player.paused()&&!this.player.seeking()&&!this.inTimeout&&this.enabled){var e=this.player.tech({IWillNotUseThisInPlugins:!0});if(e&&e.vhs)if(2===this.player.networkState()){var t=0;try{if(0===e.vhs.stats.buffered.length)return void this.timeout();e.vhs.stats.buffered.forEach((function(e){t+=e.end-e.start}))}catch(y){console.error(y)}var n=e.vhs.playlists.media().attributes.BANDWIDTH,i=e.vhs.systemBandwidth/n;try{var a=function(e){for(var t,n=e.vhs.playlists.media(),i=e.currentTime(),a=0,s=n.segments.length;a=l&&(l=c+3e3);var u=a.dateTimeObject.getTime(),h=(new Date).getTime()+this.clockSkewMs-u;if(this.currentLatency=h,Math.abs(h)>8e4)return void this.timeout();if(h>l){if(this.shouldJumpToLive()&&h>l+5e3){var f=h/1e3-3*a.duration,d=this.player.currentTime()+f;console.info("latency",h/1e3,"jumping",f,"to live from ",this.player.currentTime()," to ",d);var v=e.vhs.stats.buffered[0].end;if(d>e.vhs.stats.buffered[0].startthis.playbackRate+.02&&(m=this.playbackRate+.02),m=Math.round(m*Math.pow(10,3))/Math.pow(10,3),this.start(m)}else h<=c&&this.stop();console.info("latency",h/1e3,"min",c/1e3,"max",l/1e3,"playback rate",this.playbackRate,"enabled:",this.enabled,"running: ",this.running,"skew: ",this.clockSkewMs,"rebuffer events: ",this.bufferingCounter)}catch(p){}}}}},{key:"shouldJumpToLive",value:function(){return!(this.bufferingCounter>1)&&(new Date).getTime()-this.lastJumpOccurred>2e4}},{key:"jump",value:function(e){var t=this;this.jumpingToLiveIgnoreBuffer=!0,this.performedInitialLiveJump=!0,this.lastJumpOccurred=new Date,console.info("current time",this.player.currentTime(),"seeking to",e),this.player.currentTime(e),setTimeout((function(){t.jumpingToLiveIgnoreBuffer=!1}),5e3)}},{key:"setPlaybackRate",value:function(e){this.playbackRate=e,this.player.playbackRate(e)}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;!this.inTimeout&&this.enabled&&e!==this.playbackRate&&(this.running=!0,this.setPlaybackRate(e))}},{key:"stop",value:function(){this.running&&console.log("stopping latency compensator..."),this.running=!1,this.setPlaybackRate(1)}},{key:"enable",value:function(){var e=this;this.enabled=!0,clearInterval(this.checkTimer),clearTimeout(this.bufferingTimer),this.checkTimer=setInterval((function(){e.check()}),3e3)}},{key:"disable",value:function(){clearInterval(this.checkTimer),clearTimeout(this.timeoutTimer),this.stop(),this.enabled=!1}},{key:"timeout",value:function(){var e=this;this.jumpingToLiveIgnoreBuffer||(this.inTimeout=!0,this.stop(),clearTimeout(this.timeoutTimer),this.timeoutTimer=setTimeout((function(){e.endTimeout()}),3e4))}},{key:"endTimeout",value:function(){clearTimeout(this.timeoutTimer),this.inTimeout=!1}},{key:"handlePlaying",value:function(){var e=this.playing;this.playing=!0,clearTimeout(this.bufferingTimer),this.enabled&&this.shouldJumpToLive()&&(e||(this.jumpingToLiveIgnoreBuffer=!0,this.player.liveTracker.seekToLiveEdge(),this.lastJumpOccurred=new Date))}},{key:"handlePause",value:function(){this.playing=!1}},{key:"handleEnded",value:function(){this.enabled&&this.disable()}},{key:"handleError",value:function(){this.enabled&&this.timeout()}},{key:"countBufferingEvent",value:function(){var e=this;this.bufferingCounter+=1,this.bufferingCounter>4?this.disable():(this.bufferedAtLatency.push(this.currentLatency),console.log("latency compensation timeout due to buffering:",this.bufferingCounter,"buffering events of",4),setTimeout((function(){e.bufferingCounter>0&&(e.bufferingCounter-=1)}),18e4))}},{key:"handleBuffering",value:function(){var e=this;this.enabled&&!this.inTimeout&&(this.jumpingToLiveIgnoreBuffer?this.jumpingToLiveIgnoreBuffer=!1:(this.timeout(),clearTimeout(this.bufferingTimer),this.bufferingTimer=setTimeout((function(){e.countBufferingEvent()}),200)))}}]),e}(),N=L,S="/api/video/variants",O="owncast_volume",R="latencyCompensatorEnabled",V=new m,J=null,A=null,F=!1;function q(){return W.apply(this,arguments)}function W(){return(W=(0,i.Z)((function(){var e,t;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:e=[],n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch(S)];case 2:return[4,n.sent().json()];case 3:return e=n.sent(),[3,5];case 4:return t=n.sent(),console.error(t),[3,5];case 5:return[2,e]}}))}))).apply(this,arguments)}var U=function(e){var t=e.source,n=e.online,u=o.useRef(null),h=(0,r.Z)((0,c.FV)(C.We),2),f=h[0],v=h[1],m=(0,c.sJ)(C.g8),y=function(){(0,x.qQ)(O,u.current.muted()?0:u.current.volume())},p=function(e){var t=document.querySelector(".latency-toggle-item > .vjs-menu-item-text");t&&(t.innerHTML=e)},g=function(){A&&A.stop(),F=!0,(A=new N(u.current)).setClockSkew(m),A.enable(),(0,x.qQ)(R,!0),p("disable minimized latency")},b=function(){A&&A.disable(),A=null,F=!1,(0,x.qQ)(R,!1),p('enable minimized latency (experimental)')},k=function(){F?b():g()},T=function(){var e=(0,i.Z)((function(e,t){var n,i;return(0,a.__generator)(this,(function(r){switch(r.label){case 0:return[4,q()];case 1:return n=r.sent(),i=D(e,t,n,k),e.controlBar.addChild(i,{},e.controlBar.children_.length-2),function(e){var t=e.tech({IWillNotUseThisInPlugins:!0});t&&t.vhs&&("true"===(0,x.$o)(R)&&t&&t.vhs?g():b())}(e),[2]}}))}));return function(t,n){return e.apply(this,arguments)}}();(0,l.y1)("space",(function(e){e.preventDefault(),u.current.paused()?u.current.play():u.current.pause()})),(0,l.y1)("f",(function(){u.current.isFullscreen()?u.current.exitFullscreen():u.current.requestFullscreen()}),{enableOnContentEditable:!1}),(0,l.y1)("m",(function(){u.current.muted()||0===u.current.volume()?u.current.volume(.7):u.current.volume(0)}),{enableOnContentEditable:!1}),(0,l.y1)("0",(function(){return u.current.volume(u.current.volume()+.1)}),{enableOnContentEditable:!1}),(0,l.y1)("9",(function(){return u.current.volume(u.current.volume()-.1)}),{enableOnContentEditable:!1});var w={autoplay:!1,controls:!0,responsive:!0,fluid:!1,playsinline:!0,liveui:!0,preload:"auto",controlBar:{progressControl:{seekBar:!1}},html5:{vhs:{enableLowInitialPlaylist:!0,experimentalBufferBasedABR:!0,useNetworkInformationApi:!0,maxPlaylistRetries:30}},liveTracker:{trackingThreshold:0,liveTolerance:15},sources:[{src:t,type:"application/x-mpegURL"}]};return(0,o.useEffect)((function(){J&&J.setClockSkew(m)}),[m]),(0,o.useEffect)((function(){return function(){b(),J.stop()}}),[]),(0,s.jsxs)("div",{style:{display:"grid"},children:[n&&(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:(0,s.jsx)(d,{options:w,onReady:function(e,t){u.current=e,function(){try{u.current.volume((0,x.$o)(O)||1)}catch(e){console.warn(e)}}(),function(e,t){if(window.hasOwnProperty("WebKitPlaybackTargetAvailabilityEvent")){var n=t.getComponent("Button"),i=t.extend(n,{constructor:function(){n.call(this,e)},handleClick:function(){try{document.getElementsByTagName("video")[0].webkitShowPlaybackTargetPicker()}catch(e){console.error(e)}}});e.controlBar.addChild(new i).addClass("vjs-airplay")}}(e,t),e.on("waiting",(function(){e.log("player is waiting")})),e.on("dispose",(function(){e.log("player will dispose"),V.stop()})),e.on("playing",(function(){e.log("player is playing"),V.start(),v(!0)})),e.on("pause",(function(){e.log("player is paused"),V.stop(),v(!1)})),e.on("ended",(function(){e.log("player is ended"),V.stop(),v(!1)})),t.hookOnce(),e.on("volumechange",y),(J=new I(e,t)).setClockSkew(m),T(e,t)}})}),(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:!f&&(0,s.jsx)(j,{online:n,initialSrc:"/thumbnail.jpg",src:"/thumbnail.jpg"})})]})}},36879:function(e){e.exports={button:"ActionButton_button__z5Z2c",icon:"ActionButton_icon__EPp7Q"}},29316:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",bodyText:"OfflineBanner_bodyText__nNNy0",separator:"OfflineBanner_separator___j_Ss",lastLiveDate:"OfflineBanner_lastLiveDate___UZdO",clockIcon:"OfflineBanner_clockIcon__s0DB_",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5"}},93132:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},55206:function(e){e.exports={player:"VideoJS_player__GT8FN",poster:"VideoJS_poster__nlmqm"}},1125:function(e){e.exports={poster:"VideoPoster_poster__RDkSk"}},25893:function(){}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/5824-79357962d517a911.js b/static/web/_next/static/chunks/5824-79357962d517a911.js new file mode 100644 index 000000000..1bfed4ed9 --- /dev/null +++ b/static/web/_next/static/chunks/5824-79357962d517a911.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5824],{25413:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"}},6594:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}},77307:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},54067:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(r=n(45799))&&r.__esModule?r:{default:r};t.default=a,e.exports=a},68229:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(r=n(7500))&&r.__esModule?r:{default:r};t.default=a,e.exports=a},67638:function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(r=n(86994))&&r.__esModule?r:{default:r};t.default=a,e.exports=a},71578:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z"}}]},name:"bell",theme:"filled"},c=n(42135),i=function(e,t){return a.createElement(c.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};i.displayName="BellFilled";var l=a.forwardRef(i)},60198:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"},c=n(42135),i=function(e,t){return a.createElement(c.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};i.displayName="BellOutlined";var l=a.forwardRef(i)},34447:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]},name:"heart",theme:"filled"},c=n(42135),i=function(e,t){return a.createElement(c.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};i.displayName="HeartFilled";var l=a.forwardRef(i)},49647:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]},name:"heart",theme:"outlined"},c=n(42135),i=function(e,t){return a.createElement(c.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};i.displayName="HeartOutlined";var l=a.forwardRef(i)},94149:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},c=n(42135),i=function(e,t){return a.createElement(c.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};i.displayName="LockOutlined";var l=a.forwardRef(i)},87547:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1413),a=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},c=n(42135),i=function(e,t){return a.createElement(c.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:o}))};i.displayName="UserOutlined";var l=a.forwardRef(i)},45799:function(e,t,n){var r=n(75263),a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(42122)),c=r(n(67294)),i=a(n(25413)),l=a(n(92074)),s=function(e,t){return c.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};s.displayName="BarsOutlined";var u=c.forwardRef(s);t.default=u},7500:function(e,t,n){var r=n(75263),a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(42122)),c=r(n(67294)),i=a(n(6594)),l=a(n(92074)),s=function(e,t){return c.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};s.displayName="LeftOutlined";var u=c.forwardRef(s);t.default=u},86994:function(e,t,n){var r=n(75263),a=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(42122)),c=r(n(67294)),i=a(n(77307)),l=a(n(92074)),s=function(e,t){return c.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:i.default}))};s.displayName="RightOutlined";var u=c.forwardRef(s);t.default=u},24093:function(e,t,n){n.d(t,{C:function(){return O}});var r=n(87462),a=n(4942),o=n(71002),c=n(97685),i=n(94184),l=n.n(i),s=n(48555),u=n(42550),f=n(67294),d=n(53124),v=n(25378),m=n(24308),p=f.createContext("default"),g=function(e){var t=e.children,n=e.size;return f.createElement(p.Consumer,null,(function(e){return f.createElement(p.Provider,{value:n||e},t)}))},h=p,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0){var _=g[0]/2;R.paddingLeft=_,R.paddingRight=_}if(g&&g[1]>0&&!y){var H=g[1]/2;R.paddingTop=H,R.paddingBottom=H}return P&&(R.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(P),!1!==h||R.minWidth||(R.minWidth=0)),l.createElement("div",(0,a.Z)({},k,{style:(0,a.Z)((0,a.Z)({},R),z),className:j,ref:t}),O)}))},99134:function(e,t,n){var r=(0,n(67294).createContext)({});t.Z=r},79216:function(e,t,n){n.d(t,{Z:function(){return ie}});var r=n(87462),a=n(71002),o=n(99611),c=n(1413),i=n(4942),l=n(97685),s=n(45987),u=n(67294),f=n(94184),d=n.n(f),v=n(27678),m=n(21770),p=n(95173),g=n(64019),h=n(15105),y=n(80334),Z=n(75164);function x(e,t,n,r){var a=t+n,o=(n-r)/2;if(n>r){if(t>0)return(0,i.Z)({},e,o);if(t<0&&ar)return(0,i.Z)({},e,t<0?o:-o);return{}}var w=["visible","onVisibleChange","getContainer","current","countRender"],C=u.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),b=C.Provider,E=function(e){var t=e.previewPrefixCls,n=void 0===t?"rc-image-preview":t,o=e.children,c=e.icons,i=void 0===c?{}:c,f=e.preview,d="object"===(0,a.Z)(f)?f:{},v=d.visible,p=void 0===v?void 0:v,g=d.onVisibleChange,h=void 0===g?void 0:g,y=d.getContainer,Z=void 0===y?void 0:y,x=d.current,C=void 0===x?0:x,E=d.countRender,N=void 0===E?void 0:E,O=(0,s.Z)(d,w),P=(0,u.useState)(new Map),z=(0,l.Z)(P,2),k=z[0],S=z[1],M=(0,u.useState)(),R=(0,l.Z)(M,2),_=R[0],H=R[1],L=(0,m.Z)(!!p,{value:p,onChange:h}),B=(0,l.Z)(L,2),V=B[0],I=B[1],A=(0,u.useState)(null),T=(0,l.Z)(A,2),F=T[0],W=T[1],q=void 0!==p,D=Array.from(k.keys())[C],G=new Map(Array.from(k).filter((function(e){return!!(0,l.Z)(e,2)[1].canPreview})).map((function(e){var t=(0,l.Z)(e,2);return[t[0],t[1].url]})));return u.useEffect((function(){H(D)}),[D]),u.useEffect((function(){!V&&q&&H(D)}),[D,q,V]),u.createElement(b,{value:{isPreviewGroup:!0,previewUrls:G,setPreviewUrls:S,current:_,setCurrent:H,setShowPreview:I,setMousePosition:W,registerImage:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=function(){S((function(t){var n=new Map(t);return n.delete(e)?n:t}))};return S((function(r){return new Map(r).set(e,{url:t,canPreview:n})})),r}}},o,u.createElement(j,(0,r.Z)({"aria-hidden":!V,visible:V,prefixCls:n,onClose:function(e){e.stopPropagation(),I(!1),W(null)},mousePosition:F,src:G.get(_),icons:i,getContainer:Z,countRender:N},O)))},N=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","countRender"],O=u.useState,P=u.useEffect,z=u.useCallback,k=u.useRef,S=u.useContext,M={x:0,y:0},j=function(e){var t,n=e.prefixCls,a=e.src,o=e.alt,f=e.onClose,m=(e.afterClose,e.visible),w=e.icons,b=void 0===w?{}:w,E=e.rootClassName,j=e.countRender,R=(0,s.Z)(e,N),_=b.rotateLeft,H=b.rotateRight,L=b.zoomIn,B=b.zoomOut,V=b.close,I=b.left,A=b.right,T=O(1),F=(0,l.Z)(T,2),W=F[0],q=F[1],D=O(0),G=(0,l.Z)(D,2),X=G[0],Y=G[1],U=function(e){var t=u.useRef(null),n=u.useState(e),r=(0,l.Z)(n,2),a=r[0],o=r[1],i=u.useRef([]);return u.useEffect((function(){return function(){return t.current&&Z.Z.cancel(t.current)}}),[]),[a,function(e){null===t.current&&(i.current=[],t.current=(0,Z.Z)((function(){o((function(e){var n=e;return i.current.forEach((function(e){n=(0,c.Z)((0,c.Z)({},n),e)})),t.current=null,n}))}))),i.current.push(e)}]}(M),K=(0,l.Z)(U,2),Q=K[0],$=K[1],J=k(),ee=k({originX:0,originY:0,deltaX:0,deltaY:0}),te=O(!1),ne=(0,l.Z)(te,2),re=ne[0],ae=ne[1],oe=S(C),ce=oe.previewUrls,ie=oe.current,le=oe.isPreviewGroup,se=oe.setCurrent,ue=ce.size,fe=Array.from(ce.keys()),de=fe.indexOf(ie),ve=le?ce.get(ie):a,me=le&&ue>1,pe=O({wheelDirection:0}),ge=(0,l.Z)(pe,2),he=ge[0],ye=ge[1],Ze=function(){q((function(e){return e+1})),$(M)},xe=function(){W>1&&q((function(e){return e-1})),$(M)},we=d()((0,i.Z)({},"".concat(n,"-moving"),re)),Ce="".concat(n,"-operations-operation"),be="".concat(n,"-operations-icon"),Ee=[{icon:V,onClick:f,type:"close"},{icon:L,onClick:Ze,type:"zoomIn"},{icon:B,onClick:xe,type:"zoomOut",disabled:1===W},{icon:H,onClick:function(){Y((function(e){return e+90}))},type:"rotateRight"},{icon:_,onClick:function(){Y((function(e){return e-90}))},type:"rotateLeft"}],Ne=function(){if(m&&re){var e=J.current.offsetWidth*W,t=J.current.offsetHeight*W,n=J.current.getBoundingClientRect(),r=n.left,a=n.top,o=X%180!==0;ae(!1);var i=function(e,t,n,r){var a=(0,v.g1)(),o=a.width,i=a.height,l=null;return e<=o&&t<=i?l={x:0,y:0}:(e>o||t>i)&&(l=(0,c.Z)((0,c.Z)({},x("x",n,e,o)),x("y",r,t,i))),l}(o?t:e,o?e:t,r,a);i&&$((0,c.Z)({},i))}},Oe=function(e){m&&re&&$({x:e.pageX-ee.current.deltaX,y:e.pageY-ee.current.deltaY})},Pe=function(e){if(m){e.preventDefault();var t=e.deltaY;ye({wheelDirection:t})}},ze=z((function(e){m&&me&&(e.preventDefault(),e.keyCode===h.Z.LEFT?de>0&&se(fe[de-1]):e.keyCode===h.Z.RIGHT&&de0?xe():e<0&&Ze()}),[he]),P((function(){var e,t,n=(0,g.Z)(window,"mouseup",Ne,!1),r=(0,g.Z)(window,"mousemove",Oe,!1),a=(0,g.Z)(window,"wheel",Pe,{passive:!1}),o=(0,g.Z)(window,"keydown",ze,!1);try{window.top!==window.self&&(e=(0,g.Z)(window.top,"mouseup",Ne,!1),t=(0,g.Z)(window.top,"mousemove",Oe,!1))}catch(c){(0,y.Kp)(!1,"[rc-image] ".concat(c))}return function(){n.remove(),r.remove(),a.remove(),o.remove(),e&&e.remove(),t&&t.remove()}}),[m,re,ze]),u.createElement(p.Z,(0,r.Z)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:n,onClose:f,afterClose:function(){q(1),Y(0),$(M)},visible:m,wrapClassName:we,rootClassName:E},R),u.createElement("ul",{className:"".concat(n,"-operations")},me&&u.createElement("li",{className:"".concat(n,"-operations-progress")},null!==(t=null===j||void 0===j?void 0:j(de+1,ue))&&void 0!==t?t:"".concat(de+1," / ").concat(ue)),Ee.map((function(e){var t=e.icon,r=e.onClick,a=e.type,o=e.disabled;return u.createElement("li",{className:d()(Ce,(0,i.Z)({},"".concat(n,"-operations-operation-disabled"),!!o)),onClick:r,key:a},u.isValidElement(t)?u.cloneElement(t,{className:be}):t)}))),u.createElement("div",{className:"".concat(n,"-img-wrapper"),style:{transform:"translate3d(".concat(Q.x,"px, ").concat(Q.y,"px, 0)")}},u.createElement("img",{width:e.width,height:e.height,onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),ee.current.deltaX=e.pageX-Q.x,ee.current.deltaY=e.pageY-Q.y,ee.current.originX=Q.x,ee.current.originY=Q.y,ae(!0))},onDoubleClick:function(){m&&(1!==W&&q(1),Q.x===M.x&&Q.y===M.y||$(M))},ref:J,className:"".concat(n,"-img"),src:ve,alt:o,style:{transform:"scale3d(".concat(W,", ").concat(W,", 1) rotate(").concat(X,"deg)")}})),me&&u.createElement("div",{className:d()("".concat(n,"-switch-left"),(0,i.Z)({},"".concat(n,"-switch-left-disabled"),0===de)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de>0&&se(fe[de-1])}},I),me&&u.createElement("div",{className:d()("".concat(n,"-switch-right"),(0,i.Z)({},"".concat(n,"-switch-right-disabled"),de===ue-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de0?_[0]/-2:void 0,V=null!=_[1]&&_[1]>0?_[1]/-2:void 0;if(B&&(L.marginLeft=B,L.marginRight=B),M){var I=(0,c.Z)(_,2);L.rowGap=I[1]}else V&&(L.marginTop=V,L.marginBottom=V);var A=(0,c.Z)(_,2),T=A[0],F=A[1],W=s.useMemo((function(){return{gutter:[T,F],wrap:C,supportFlexGap:M}}),[T,F,C,M]);return s.createElement(m.Z.Provider,{value:W},s.createElement("div",(0,r.Z)({},b,{className:H,style:(0,r.Z)((0,r.Z)({},L),y),ref:t}),Z))}))},26303:function(e,t,n){n.d(t,{Z:function(){return P}});var r=n(4942),a=n(87462),o=n(71002),c=n(94184),i=n.n(c),l=n(67294),s=n(53124),u=n(98423),f=function(e){var t,n,o=e.prefixCls,c=e.className,s=e.style,u=e.size,f=e.shape,d=i()((t={},(0,r.Z)(t,"".concat(o,"-lg"),"large"===u),(0,r.Z)(t,"".concat(o,"-sm"),"small"===u),t)),v=i()((n={},(0,r.Z)(n,"".concat(o,"-circle"),"circle"===f),(0,r.Z)(n,"".concat(o,"-square"),"square"===f),(0,r.Z)(n,"".concat(o,"-round"),"round"===f),n)),m=l.useMemo((function(){return"number"===typeof u?{width:u,height:u,lineHeight:"".concat(u,"px")}:{}}),[u]);return l.createElement("span",{className:i()(o,d,v,c),style:(0,a.Z)((0,a.Z)({},m),s)})},d=function(e){var t=e.prefixCls,n=e.className,o=e.active,c=e.shape,d=void 0===c?"circle":c,v=e.size,m=void 0===v?"default":v,p=(0,l.useContext(s.E_).getPrefixCls)("skeleton",t),g=(0,u.Z)(e,["prefixCls","className"]),h=i()(p,"".concat(p,"-element"),(0,r.Z)({},"".concat(p,"-active"),o),n);return l.createElement("div",{className:h},l.createElement(f,(0,a.Z)({prefixCls:"".concat(p,"-avatar"),shape:d,size:m},g)))},v=function(e){var t,n=e.prefixCls,o=e.className,c=e.active,d=e.block,v=void 0!==d&&d,m=e.size,p=void 0===m?"default":m,g=(0,l.useContext(s.E_).getPrefixCls)("skeleton",n),h=(0,u.Z)(e,["prefixCls"]),y=i()(g,"".concat(g,"-element"),(t={},(0,r.Z)(t,"".concat(g,"-active"),c),(0,r.Z)(t,"".concat(g,"-block"),v),t),o);return l.createElement("div",{className:y},l.createElement(f,(0,a.Z)({prefixCls:"".concat(g,"-button"),size:p},h)))},m=n(1413),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},g=n(42135),h=function(e,t){return l.createElement(g.Z,(0,m.Z)((0,m.Z)({},e),{},{ref:t,icon:p}))};h.displayName="DotChartOutlined";var y=l.forwardRef(h),Z=function(e){var t=e.prefixCls,n=e.className,a=e.style,o=e.active,c=e.children,u=(0,l.useContext(s.E_).getPrefixCls)("skeleton",t),f=i()(u,"".concat(u,"-element"),(0,r.Z)({},"".concat(u,"-active"),o),n),d=null!==c&&void 0!==c?c:l.createElement(y,null);return l.createElement("div",{className:f},l.createElement("div",{className:i()("".concat(u,"-image"),n),style:a},d))},x=function(e){var t=e.prefixCls,n=e.className,a=e.style,o=e.active,c=(0,l.useContext(s.E_).getPrefixCls)("skeleton",t),u=i()(c,"".concat(c,"-element"),(0,r.Z)({},"".concat(c,"-active"),o),n);return l.createElement("div",{className:u},l.createElement("div",{className:i()("".concat(c,"-image"),n),style:a},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(c,"-image-svg")},l.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(c,"-image-path")}))))},w=function(e){var t,n=e.prefixCls,o=e.className,c=e.active,d=e.block,v=e.size,m=void 0===v?"default":v,p=(0,l.useContext(s.E_).getPrefixCls)("skeleton",n),g=(0,u.Z)(e,["prefixCls"]),h=i()(p,"".concat(p,"-element"),(t={},(0,r.Z)(t,"".concat(p,"-active"),c),(0,r.Z)(t,"".concat(p,"-block"),d),t),o);return l.createElement("div",{className:h},l.createElement(f,(0,a.Z)({prefixCls:"".concat(p,"-input"),size:m},g)))},C=n(74902),b=function(e){var t=function(t){var n=e.width,r=e.rows,a=void 0===r?2:r;return Array.isArray(n)?n[t]:a-1===t?n:void 0},n=e.prefixCls,r=e.className,a=e.style,o=e.rows,c=(0,C.Z)(Array(o)).map((function(e,n){return l.createElement("li",{key:n,style:{width:t(n)}})}));return l.createElement("ul",{className:i()(n,r),style:a},c)},E=function(e){var t=e.prefixCls,n=e.className,r=e.width,o=e.style;return l.createElement("h3",{className:i()(t,n),style:(0,a.Z)({width:r},o)})};function N(e){return e&&"object"===(0,o.Z)(e)?e:{}}var O=function(e){var t=e.prefixCls,n=e.loading,o=e.className,c=e.style,u=e.children,d=e.avatar,v=void 0!==d&&d,m=e.title,p=void 0===m||m,g=e.paragraph,h=void 0===g||g,y=e.active,Z=e.round,x=l.useContext(s.E_),w=x.getPrefixCls,C=x.direction,O=w("skeleton",t);if(n||!("loading"in e)){var P,z,k,S=!!v,M=!!p,j=!!h;if(S){var R=(0,a.Z)((0,a.Z)({prefixCls:"".concat(O,"-avatar")},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(M,j)),N(v));z=l.createElement("div",{className:"".concat(O,"-header")},l.createElement(f,(0,a.Z)({},R)))}if(M||j){var _,H;if(M){var L=(0,a.Z)((0,a.Z)({prefixCls:"".concat(O,"-title")},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(S,j)),N(p));_=l.createElement(E,(0,a.Z)({},L))}if(j){var B=(0,a.Z)((0,a.Z)({prefixCls:"".concat(O,"-paragraph")},function(e,t){var n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(S,M)),N(h));H=l.createElement(b,(0,a.Z)({},B))}k=l.createElement("div",{className:"".concat(O,"-content")},_,H)}var V=i()(O,(P={},(0,r.Z)(P,"".concat(O,"-with-avatar"),S),(0,r.Z)(P,"".concat(O,"-active"),y),(0,r.Z)(P,"".concat(O,"-rtl"),"rtl"===C),(0,r.Z)(P,"".concat(O,"-round"),Z),P),o);return l.createElement("div",{className:V,style:c},z,k)}return"undefined"!==typeof u?u:null};O.Button=v,O.Avatar=d,O.Input=w,O.Image=x,O.Node=Z;var P=O},63406:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};t.default=n},87412:function(e,t,n){var r=n(75263).default,a=n(64836).default;t.ZP=void 0;var o=a(n(38416)),c=a(n(10434)),i=a(n(27424)),l=a(n(54067)),s=a(n(68229)),u=a(n(67638)),f=a(n(94184)),d=a(n(18475)),v=r(n(67294)),m=n(31929),p=a(n(63406)),g=n(62704),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}();var w=v.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,a=e.trigger,w=e.children,C=e.defaultCollapsed,b=void 0!==C&&C,E=e.theme,N=void 0===E?"dark":E,O=e.style,P=void 0===O?{}:O,z=e.collapsible,k=void 0!==z&&z,S=e.reverseArrow,M=void 0!==S&&S,j=e.width,R=void 0===j?200:j,_=e.collapsedWidth,H=void 0===_?80:_,L=e.zeroWidthTriggerStyle,B=e.breakpoint,V=e.onCollapse,I=e.onBreakpoint,A=h(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),T=(0,v.useContext)(g.LayoutContext).siderHook,F=(0,v.useState)("collapsed"in A?A.collapsed:b),W=(0,i.default)(F,2),q=W[0],D=W[1],G=(0,v.useState)(!1),X=(0,i.default)(G,2),Y=X[0],U=X[1];(0,v.useEffect)((function(){"collapsed"in A&&D(A.collapsed)}),[A.collapsed]);var K=function(e,t){"collapsed"in A||D(e),null===V||void 0===V||V(e,t)},Q=(0,v.useRef)();Q.current=function(e){U(e.matches),null===I||void 0===I||I(e.matches),q!==e.matches&&K(e.matches,"responsive")},(0,v.useEffect)((function(){function e(e){return Q.current(e)}var t;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&B&&B in y){t=n("(max-width: ".concat(y[B],")"));try{t.addEventListener("change",e)}catch(r){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(r){null===t||void 0===t||t.removeListener(e)}}}),[B]),(0,v.useEffect)((function(){var e=x("ant-sider-");return T.addSider(e),function(){return T.removeSider(e)}}),[]);var $=function(){K(!q,"clickTrigger")},J=(0,v.useContext)(m.ConfigContext).getPrefixCls,ee=v.useMemo((function(){return{siderCollapsed:q}}),[q]);return v.createElement(Z.Provider,{value:ee},function(){var e,i=J("layout-sider",n),m=(0,d.default)(A,["collapsed"]),g=q?H:R,h=(0,p.default)(g)?"".concat(g,"px"):String(g),y=0===parseFloat(String(H||0))?v.createElement("span",{onClick:$,className:(0,f.default)("".concat(i,"-zero-width-trigger"),"".concat(i,"-zero-width-trigger-").concat(M?"right":"left")),style:L},a||v.createElement(l.default,null)):null,Z={expanded:M?v.createElement(u.default,null):v.createElement(s.default,null),collapsed:M?v.createElement(s.default,null):v.createElement(u.default,null)}[q?"collapsed":"expanded"],x=null!==a?y||v.createElement("div",{className:"".concat(i,"-trigger"),onClick:$,style:{width:h}},a||Z):null,C=(0,c.default)((0,c.default)({},P),{flex:"0 0 ".concat(h),maxWidth:h,minWidth:h,width:h}),b=(0,f.default)(i,"".concat(i,"-").concat(N),(e={},(0,o.default)(e,"".concat(i,"-collapsed"),!!q),(0,o.default)(e,"".concat(i,"-has-trigger"),k&&null!==a&&!y),(0,o.default)(e,"".concat(i,"-below"),!!Y),(0,o.default)(e,"".concat(i,"-zero-width"),0===parseFloat(h)),e),r);return v.createElement("aside",(0,c.default)({className:b},m,{style:C,ref:t}),v.createElement("div",{className:"".concat(i,"-children")},w),k||Y&&y?x:null)}())}));t.ZP=w},62704:function(e,t,n){var r=n(75263).default,a=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LayoutContext=t.Header=t.Footer=t.Content=void 0;var o=a(n(861)),c=a(n(38416)),i=a(n(27424)),l=a(n(10434)),s=a(n(94184)),u=r(n(67294)),f=n(31929),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0),(0,c.default)(n,"".concat(h,"-rtl"),"rtl"===r),n),y),E=u.useMemo((function(){return{siderHook:{addSider:function(e){g((function(t){return[].concat((0,o.default)(t),[e])}))},removeSider:function(e){g((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return u.createElement(v.Provider,{value:E},u.createElement(w,(0,l.default)({ref:t,className:b},C),Z))})),h=m({suffixCls:"layout",tagName:"section",displayName:"Layout"})(g),y=m({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(p);t.Header=y;var Z=m({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(p);t.Footer=Z;var x=m({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(p);t.Content=x;var w=h;t.default=w},82670:function(e,t,n){function r(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n.d(t,{Z:function(){return r}})}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/5859-6e1aa4a1a8a3e90f.js b/static/web/_next/static/chunks/5859-6e1aa4a1a8a3e90f.js deleted file mode 100644 index 00fc27d63..000000000 --- a/static/web/_next/static/chunks/5859-6e1aa4a1a8a3e90f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5859],{71578:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(1413),i=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z"}}]},name:"bell",theme:"filled"},o=r(42135),s=function(t,e){return i.createElement(o.Z,(0,n.Z)((0,n.Z)({},t),{},{ref:e,icon:a}))};s.displayName="BellFilled";var u=i.forwardRef(s)},24019:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(1413),i=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},o=r(42135),s=function(t,e){return i.createElement(o.Z,(0,n.Z)((0,n.Z)({},t),{},{ref:e,icon:a}))};s.displayName="ClockCircleOutlined";var u=i.forwardRef(s)},31326:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(1413),i=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 512a112 112 0 10224 0 112 112 0 10-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"}}]},name:"eye",theme:"filled"},o=r(42135),s=function(t,e){return i.createElement(o.Z,(0,n.Z)((0,n.Z)({},t),{},{ref:e,icon:a}))};s.displayName="EyeFilled";var u=i.forwardRef(s)},34447:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(1413),i=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]},name:"heart",theme:"filled"},o=r(42135),s=function(t,e){return i.createElement(o.Z,(0,n.Z)((0,n.Z)({},t),{},{ref:e,icon:a}))};s.displayName="HeartFilled";var u=i.forwardRef(s)},60562:function(t,e,r){"use strict";r.d(e,{Au:function(){return i},G3:function(){return p},Ki:function(){return a},d3:function(){return f},hL:function(){return c},lx:function(){return h},qX:function(){return l},tm:function(){return u}});var n=r(58908),i=function(t){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},a=function(t){return t instanceof Uint8Array?t:(Array.isArray(t)||i(t)||t instanceof ArrayBuffer||(t="number"!==typeof t||"number"===typeof t&&t!==t?0:[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},o=r.n(n)().BigInt||Number,s=[o("0x1"),o("0x100"),o("0x10000"),o("0x1000000"),o("0x100000000"),o("0x10000000000"),o("0x1000000000000"),o("0x100000000000000"),o("0x10000000000000000")],u=(function(){var t=new Uint16Array([65484]),e=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);255===e[0]||e[0]}(),function(t,e){var r=void 0===e?{}:e,n=r.signed,i=void 0!==n&&n,u=r.le,c=void 0!==u&&u;t=a(t);var f=c?"reduce":"reduceRight",l=(t[f]?t[f]:Array.prototype[f]).call(t,(function(e,r,n){var i=c?n:Math.abs(n+1-t.length);return e+o(r)*s[i]}),o(0));if(i){var h=s[t.length]/o(2)-o(1);(l=o(l))>h&&(l-=h,l-=h,l-=o(2))}return Number(l)}),c=function(t,e){var r=(void 0===e?{}:e).le,n=void 0!==r&&r;("bigint"!==typeof t&&"number"!==typeof t||"number"===typeof t&&t!==t)&&(t=0),t=o(t);for(var i,a=(i=t,Math.ceil(function(t){return t.toString(2).length}(i)/8)),u=new Uint8Array(new ArrayBuffer(a)),c=0;c=e.length&&c.call(e,(function(e,r){return e===(u[r]?u[r]&t[o+r]:t[o+r])}))}},92260:function(t,e,r){"use strict";r.d(e,{Hi:function(){return d},Jg:function(){return f},KL:function(){return l},_5:function(){return h},kS:function(){return c},lA:function(){return m},p7:function(){return p},ws:function(){return u},xz:function(){return g}});var n=r(58908),i=r.n(n),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],u=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,r){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)})):t},c=function(t){void 0===t&&(t="");var e=t.split(","),r=[];return e.forEach((function(t){var e;t=t.trim(),o.forEach((function(n){var i=a[n].exec(t.toLowerCase());if(i&&!(i.length<=1)){e=n;var o=t.substring(0,i[1].length),s=t.replace(o,"");r.push({type:o,details:s,mediaType:n})}})),e||r.push({type:t,details:"",mediaType:"unknown"})})),r},f=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var r=t.mediaGroups.AUDIO[e];if(!r)return null;for(var n in r){var i=r[n];if(i.default&&i.playlists)return c(i.playlists[0].attributes.CODECS)}return null},l=function(t){return void 0===t&&(t=""),a.audio.test(t.trim().toLowerCase())},h=function(t){if(t&&"string"===typeof t){var e,r=t.toLowerCase().split(",").map((function(t){return u(t.trim())})),n="video";1===r.length&&l(r[0])?n="audio":1===r.length&&(void 0===(e=r[0])&&(e=""),a.text.test(e.trim().toLowerCase()))&&(n="application");var i="mp4";return r.every((function(t){return a.mp4.test(t)}))?i="mp4":r.every((function(t){return a.webm.test(t)}))?i="webm":r.every((function(t){return a.ogg.test(t)}))&&(i="ogg"),n+"/"+i+';codecs="'+t+'"'}},p=function(t){return void 0===t&&(t=""),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(h(t))||!1},d=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every((function(t){t=t.trim();for(var e=0;er;){var a=t[r],o=0,s=0,u=t[++s];for(s++;128&u;)o=(127&u)<<7,u=t[s],s++;o+=127&u;for(var c=0;c>>0,c=e.subarray(s+4,s+8);if(0===u)break;var f=s+u;if(f>e.length){if(n)break;f=e.length}var l=e.subarray(s+8,f);(0,i.G3)(c,r[0])&&(1===r.length?o.push(l):o.push.apply(o,t(l,r.slice(1),n))),s=f}return o},u={EBML:(0,i.Ki)([26,69,223,163]),DocType:(0,i.Ki)([66,130]),Segment:(0,i.Ki)([24,83,128,103]),SegmentInfo:(0,i.Ki)([21,73,169,102]),Tracks:(0,i.Ki)([22,84,174,107]),Track:(0,i.Ki)([174]),TrackNumber:(0,i.Ki)([215]),DefaultDuration:(0,i.Ki)([35,227,131]),TrackEntry:(0,i.Ki)([174]),TrackType:(0,i.Ki)([131]),FlagDefault:(0,i.Ki)([136]),CodecID:(0,i.Ki)([134]),CodecPrivate:(0,i.Ki)([99,162]),VideoTrack:(0,i.Ki)([224]),AudioTrack:(0,i.Ki)([225]),Cluster:(0,i.Ki)([31,67,182,117]),Timestamp:(0,i.Ki)([231]),TimestampScale:(0,i.Ki)([42,215,177]),BlockGroup:(0,i.Ki)([160]),BlockDuration:(0,i.Ki)([155]),Block:(0,i.Ki)([161]),SimpleBlock:(0,i.Ki)([163])},c=[128,64,32,16,8,4,2,1],f=function(t,e,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var a=function(t){for(var e=1,r=0;r=r.length)return r.length;var a=f(r,n,!1);if((0,i.G3)(e.bytes,a.bytes))return n;var o=f(r,n+a.length);return t(e,r,n+o.length+o.value+a.length)},p=function t(e,r){r=function(t){return Array.isArray(t)?t.map((function(t){return l(t)})):[l(t)]}(r),e=(0,i.Ki)(e);var n=[];if(!r.length)return n;for(var a=0;ae.length?e.length:u+s.value,p=e.subarray(u,c);(0,i.G3)(r[0],o.bytes)&&(1===r.length?n.push(p):n=n.concat(t(p,r.slice(1)))),a+=o.length+s.length+p.length}return n},d=r(68925),m=(0,i.Ki)([0,0,0,1]),g=(0,i.Ki)([0,0,1]),y=(0,i.Ki)([0,0,3]),v=function(t){for(var e=[],r=1;r>1&63),-1!==r.indexOf(c)&&(a=o+u),o+=u+("h264"===e?1:2)}else o++}return t.subarray(0,0)},w={webm:(0,i.Ki)([119,101,98,109]),matroska:(0,i.Ki)([109,97,116,114,111,115,107,97]),flac:(0,i.Ki)([102,76,97,67]),ogg:(0,i.Ki)([79,103,103,83]),ac3:(0,i.Ki)([11,119]),riff:(0,i.Ki)([82,73,70,70]),avi:(0,i.Ki)([65,86,73]),wav:(0,i.Ki)([87,65,86,69]),"3gp":(0,i.Ki)([102,116,121,112,51,103]),mp4:(0,i.Ki)([102,116,121,112]),fmp4:(0,i.Ki)([115,116,121,112]),mov:(0,i.Ki)([102,116,121,112,113,116]),moov:(0,i.Ki)([109,111,111,118]),moof:(0,i.Ki)([109,111,111,102])},E={aac:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=p(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.webm)},mkv:function(t){var e=p(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.matroska)},mp4:function(t){return!E["3gp"](t)&&!E.mov(t)&&(!(!(0,i.G3)(t,w.mp4,{offset:4})&&!(0,i.G3)(t,w.fmp4,{offset:4}))||(!(!(0,i.G3)(t,w.moof,{offset:4})&&!(0,i.G3)(t,w.moov,{offset:4}))||void 0))},mov:function(t){return(0,i.G3)(t,w.mov,{offset:4})},"3gp":function(t){return(0,i.G3)(t,w["3gp"],{offset:4})},ac3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,w.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+1880}},36722:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(58908),i=r.n(n),a=r(48764).lW;function o(t){for(var e,r=(e=t,i().atob?i().atob(e):a.from(e,"base64").toString("binary")),n=new Uint8Array(r.length),o=0;o>4?i+20:i+10}(e,r),t(e,r))}},8485:function(t,e,r){"use strict";r.d(e,{t:function(){return a}});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,i=/^application\/dash\+xml/i,a=function(t){return n.test(t)?"hls":i.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null}},80779:function(t,e,r){"use strict";var n=r(49945),i=r.n(n),a=r(58908),o=r.n(a),s="http://example.com";e.Z=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=o().location&&o().location.href||"");var r="function"===typeof o().URL,n=/^\/\//.test(t),a=!o().location&&!/\/\//i.test(t);if(r?t=new(o().URL)(t,o().location||s):/\/\//i.test(t)||(t=i().buildAbsoluteURL(o().location&&o().location.href||"",t)),r){var u=new URL(e,t);return a?u.href.slice(s.length):n?u.href.slice(u.protocol.length):u.href}return i().buildAbsoluteURL(t,e)}},13490:function(t,e,r){"use strict";var n=r(58908);t.exports=function(t,e){return void 0===e&&(e=!1),function(r,i,a){if(r)t(r);else if(i.statusCode>=400&&i.statusCode<=599){var o=a;if(e)if(n.TextDecoder){var s=function(t){void 0===t&&(t="");return t.toLowerCase().split(";").reduce((function(t,e){var r=e.split("="),n=r[0],i=r[1];return"charset"===n.trim()?i.trim():t}),"utf-8")}(i.headers&&i.headers["content-type"]);try{o=new TextDecoder(s).decode(a)}catch(u){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));t({cause:o})}else t(null,a)}}},9603:function(t,e,r){"use strict";var n=r(58908),i=r(10434),a=r(27376);s.httpHandler=r(13490);function o(t,e,r){var n=t;return a(e)?(r=e,"string"===typeof t&&(n={uri:t})):n=i({},e,{uri:t}),n.callback=r,n}function s(t,e,r){return u(e=o(t,e,r))}function u(t){if("undefined"===typeof t.callback)throw new Error("callback argument missing");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(r){}return null}(c),g)try{t=JSON.parse(t)}catch(e){}return t}function i(t){return clearTimeout(f),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,y)}function a(){if(!u){var e;clearTimeout(f),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=y,a=null;return 0!==e?(i={body:n(),statusCode:e,method:h,headers:{},url:l,rawRequest:c},c.getAllResponseHeaders&&(i.headers=function(t){var e={};return t?(t.trim().split("\n").forEach((function(t){var r=t.indexOf(":"),n=t.slice(0,r).trim().toLowerCase(),i=t.slice(r+1).trim();"undefined"===typeof e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]})),e):e}(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),r(a,i,i.body)}}var o,u,c=t.xhr||null;c||(c=t.cors||t.useXDR?new s.XDomainRequest:new s.XMLHttpRequest);var f,l=c.url=t.uri||t.url,h=c.method=t.method||"GET",p=t.body||t.data,d=c.headers=t.headers||{},m=!!t.sync,g=!1,y={body:void 0,headers:{},statusCode:0,method:h,url:l,rawRequest:c};if("json"in t&&!1!==t.json&&(g=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),p=JSON.stringify(!0===t.json?p:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=i,c.onprogress=function(){},c.onabort=function(){u=!0},c.ontimeout=i,c.open(h,l,!m,t.username,t.password),m||(c.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(f=setTimeout((function(){if(!u){u=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),c.setRequestHeader)for(o in d)d.hasOwnProperty(o)&&c.setRequestHeader(o,d[o]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"===typeof t.beforeSend&&t.beforeSend(c),c.send(p||null),c}t.exports=s,t.exports.default=s,s.XMLHttpRequest=n.XMLHttpRequest||function(){},s.XDomainRequest="withCredentials"in new s.XMLHttpRequest?s.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r=e+r||e?new java.lang.String(t,e,r)+"":t}function g(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}l.prototype.parseFromString=function(t,e){var r=this.options,n=new f,i=r.domBuilder||new h,o=r.errorHandler,s=r.locator,c=r.xmlns||{},l=/\/x?html?$/.test(e),p=l?a.HTML_ENTITIES:a.XML_ENTITIES;return s&&i.setDocumentLocator(s),n.errorHandler=function(t,e,r){if(!t){if(e instanceof h)return e;t=e}var n={},i=t instanceof Function;function a(e){var a=t[e];!a&&i&&(a=2==t.length?function(r){t(e,r)}:t),n[e]=a&&function(t){a("[xmldom "+e+"]\t"+t+d(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}(o,i,s),n.domBuilder=r.domBuilder||i,l&&(c[""]=u.HTML),c.xml=c.xml||u.XML,t&&"string"===typeof t?n.parse(t,c,p):n.errorHandler.error("invalid doc source"),i.doc},h.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var i=this.doc,a=i.createElementNS(t,r||e),o=n.length;g(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var s=0;s=0))throw O(A,new Error(t.tagName+"@"+r));for(var i=e.length-1;n"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function _(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(_(t,e))return!0}while(t=t.nextSibling)}function X(){}function j(t,e,r,i){t&&t._inc++,r.namespaceURI===n.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function F(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var i=e.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a}}}function Z(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,F(t.ownerDocument,t),e}function K(t,e,r){var n=e.parentNode;if(n&&n.removeChild(e),e.nodeType===w){var i=e.firstChild;if(null==i)return e;var a=e.lastChild}else i=a=e;var o=r?r.previousSibling:t.lastChild;i.previousSibling=o,a.nextSibling=r,o?o.nextSibling=i:t.firstChild=i,null==r?t.lastChild=a:r.previousSibling=a;do{i.parentNode=t}while(i!==a&&(i=i.nextSibling));return F(t.ownerDocument||t,t),e.nodeType==w&&(e.firstChild=e.lastChild=null),e}function G(){this._nsMap={}}function H(){}function V(){}function q(){}function z(){}function Y(){}function W(){}function $(){}function J(){}function Q(){}function tt(){}function et(){}function rt(){}function nt(t,e){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&null==i&&null==(i=n.lookupPrefix(a)))var o=[{namespace:a,prefix:null}];return ot(this,r,t,e,o),r.join("")}function it(t,e,r){var i=t.prefix||"",a=t.namespaceURI;if(!a)return!1;if("xml"===i&&a===n.XML||a===n.XMLNS)return!1;for(var o=r.length;o--;){var s=r[o];if(s.prefix===i)return s.namespace!==a}return!0}function at(t,e,r){t.push(" ",e,'="',r.replace(/[<&"]/g,B),'"')}function ot(t,e,r,i,a){if(a||(a=[]),i){if(!(t=i(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case f:var o=t.attributes,s=o.length,u=t.firstChild,c=t.tagName,m=c;if(!(r=n.isHTML(t.namespaceURI)||r)&&!t.prefix&&t.namespaceURI){for(var E,T=0;T=0;S--){if(""===(N=a[S]).prefix&&N.namespace===t.namespaceURI){E=N.namespace;break}}if(E!==t.namespaceURI)for(S=a.length-1;S>=0;S--){var N;if((N=a[S]).namespace===t.namespaceURI){N.prefix&&(m=N.prefix+":"+c);break}}}e.push("<",m);for(var A=0;A"),r&&/^script$/i.test(c))for(;u;)u.data?e.push(u.data):ot(u,e,r,i,a.slice()),u=u.nextSibling;else for(;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;e.push("")}else e.push("/>");return;case v:case w:for(u=t.firstChild;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;return;case l:return at(e,t.name,t.value);case h:return e.push(t.data.replace(/[<&]/g,B).replace(/]]>/g,"]]>"));case p:return e.push("");case y:return e.push("\x3c!--",t.data,"--\x3e");case b:var C=t.publicId,R=t.systemId;if(e.push("");else if(R&&"."!=R)e.push(" SYSTEM ",R,">");else{var D=t.internalSubset;D&&e.push(" [",D,"]"),e.push(">")}return;case g:return e.push("");case d:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function st(t,e,r){var n;switch(e.nodeType){case f:(n=e.cloneNode(!1)).ownerDocument=t;case w:break;case l:r=!0}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,r)for(var i=e.firstChild;i;)n.appendChild(st(t,i,r)),i=i.nextSibling;return n}function ut(t,e,r){var n=new e.constructor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=e[i];"object"!=typeof a&&a!=n[i]&&(n[i]=a)}switch(e.childNodes&&(n.childNodes=new x),n.ownerDocument=t,n.nodeType){case f:var o=e.attributes,s=n.attributes=new D,u=o.length;s._ownerElement=n;for(var c=0;c0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r)for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===t)return n;e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&t in r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},s(c,k),s(c,k.prototype),X.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==w){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return null==this.documentElement&&t.nodeType==f&&(this.documentElement=t),K(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),Z(this,t)},importNode:function(t,e){return st(this,t,e)},getElementById:function(t){var e=null;return _(this.documentElement,(function(r){if(r.nodeType==f&&r.getAttribute("id")==t)return e=r,!0})),e},getElementsByClassName:function(t){var e=o(t);return new C(this,(function(r){var n=[];return e.length>0&&_(r.documentElement,(function(i){if(i!==r&&i.nodeType===f){var a=i.getAttribute("class");if(a){var s=t===a;if(!s){var u=o(a);s=e.every((c=u,function(t){return c&&-1!==c.indexOf(t)}))}s&&n.push(i)}}var c})),n}))},createElement:function(t){var e=new G;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new x,(e.attributes=new D)._ownerElement=e,e},createDocumentFragment:function(){var t=new tt;return t.ownerDocument=this,t.childNodes=new x,t},createTextNode:function(t){var e=new q;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new z;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Y;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new et;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new H;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Q;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new G,n=e.split(":"),i=r.attributes=new D;return r.childNodes=new x,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,i._ownerElement=r,r},createAttributeNS:function(t,e){var r=new H,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}},u(X,k),G.prototype={nodeType:f,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===w?this.insertBefore(t,null):function(t,e){var r=e.parentNode;if(r){var n=t.lastChild;r.removeChild(e),n=t.lastChild}return n=t.lastChild,e.parentNode=t,e.previousSibling=n,e.nextSibling=null,n?n.nextSibling=e:t.firstChild=e,t.lastChild=e,F(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new C(this,(function(e){var r=[];return _(e,(function(n){n===e||n.nodeType!=f||"*"!==t&&n.tagName!=t||r.push(n)})),r}))},getElementsByTagNameNS:function(t,e){return new C(this,(function(r){var n=[];return _(r,(function(i){i===r||i.nodeType!==f||"*"!==t&&i.namespaceURI!==t||"*"!==e&&i.localName!=e||n.push(i)})),n}))}},X.prototype.getElementsByTagName=G.prototype.getElementsByTagName,X.prototype.getElementsByTagNameNS=G.prototype.getElementsByTagNameNS,u(G,k),H.prototype.nodeType=l,u(H,k),V.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(S[N])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},u(V,k),q.prototype={nodeName:"#text",nodeType:h,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(q,V),z.prototype={nodeName:"#comment",nodeType:y},u(z,V),Y.prototype={nodeName:"#cdata-section",nodeType:p},u(Y,V),W.prototype.nodeType=b,u(W,k),$.prototype.nodeType=E,u($,k),J.prototype.nodeType=m,u(J,k),Q.prototype.nodeType=d,u(Q,k),tt.prototype.nodeName="#document-fragment",tt.prototype.nodeType=w,u(tt,k),et.prototype.nodeType=g,u(et,k),rt.prototype.serializeToString=function(t,e,r){return nt.call(t,e,r)},k.prototype.toString=nt;try{if(Object.defineProperty){function ft(t){switch(t.nodeType){case f:case w:var e=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&e.push(ft(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}Object.defineProperty(C.prototype,"length",{get:function(){return R(this),this.$$length}}),Object.defineProperty(k.prototype,"textContent",{get:function(){return ft(this)},set:function(t){switch(this.nodeType){case f:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),ct=function(t,e,r){t["$$"+e]=r}}}catch(lt){}e.DocumentType=W,e.DOMException=O,e.DOMImplementation=U,e.Element=G,e.Node=k,e.NodeList=x,e.XMLSerializer=rt},31045:function(t,e,r){var n=r(72167).freeze;e.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",euro:"\u20ac",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),e.entityMap=e.HTML_ENTITIES},3969:function(t,e,r){var n=r(41146);n.DOMImplementation,n.XMLSerializer,e.DOMParser=r(86129).DOMParser},76925:function(t,e,r){var n=r(72167).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+i.source+a.source+"*(?::"+i.source+a.source+"*)?$");function s(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function u(){}function c(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function f(t,e,r,i,a,o){function s(t,e,n){r.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),r.addValue(t,e,n)}for(var u,c=++e,f=0;;){var l=t.charAt(c);switch(l){case"=":if(1===f)u=t.slice(e,c),f=3;else{if(2!==f)throw new Error("attribute equal must after attrName");f=3}break;case"'":case'"':if(3===f||1===f){if(1===f&&(o.warning('attribute value must after "="'),u=t.slice(e,c)),e=c+1,!((c=t.indexOf(l,e))>0))throw new Error("attribute value no end '"+l+"' match");s(u,h=t.slice(e,c).replace(/&#?\w+;/g,a),e-1),f=5}else{if(4!=f)throw new Error('attribute value must after "="');s(u,h=t.slice(e,c).replace(/&#?\w+;/g,a),e),o.warning('attribute "'+u+'" missed start quot('+l+")!!"),e=c+1,f=5}break;case"/":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:f=7,r.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==f&&r.setTagName(t.slice(e,c)),c;case">":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=t.slice(e,c)).slice(-1)&&(r.closed=!0,h=h.slice(0,-1));case 2:2===f&&(h=u),4==f?(o.warning('attribute "'+h+'" missed quot(")!'),s(u,h.replace(/&#?\w+;/g,a),e)):(n.isHTML(i[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,e));break;case 3:throw new Error("attribute value missed!!")}return c;case"\x80":l=" ";default:if(l<=" ")switch(f){case 0:r.setTagName(t.slice(e,c)),f=6;break;case 1:u=t.slice(e,c),f=2;break;case 4:var h=t.slice(e,c).replace(/&#?\w+;/g,a);o.warning('attribute "'+h+'" missed quot(")!!'),s(u,h,e);case 5:f=6}else switch(f){case 2:r.tagName;n.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s(u,u,e),e=c,f=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:f=1,e=c;break;case 3:f=4,e=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function l(t,e,r){for(var i=t.tagName,a=null,o=t.length;o--;){var s=t[o],u=s.qName,c=s.value;if((p=u.indexOf(":"))>0)var f=s.prefix=u.slice(0,p),l=u.slice(p+1),h="xmlns"===f&&l;else l=u,f=null,h="xmlns"===u&&"";s.localName=l,!1!==h&&(null==a&&(a={},d(r,r={})),r[h]=a[h]=c,s.uri=n.XMLNS,e.startPrefixMapping(h,c))}for(o=t.length;o--;){(f=(s=t[o]).prefix)&&("xml"===f&&(s.uri=n.XML),"xmlns"!==f&&(s.uri=r[f||""]))}var p;(p=i.indexOf(":"))>0?(f=t.prefix=i.slice(0,p),l=t.localName=i.slice(p+1)):(f=null,l=t.localName=i);var m=t.uri=r[f||""];if(e.startElement(m,l,i,t),!t.closed)return t.currentNSMap=r,t.localNSMap=a,!0;if(e.endElement(m,l,i),a)for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&e.endPrefixMapping(f)}function h(t,e,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var a=t.indexOf("",e),o=t.substring(e+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return e+1}function p(t,e,r,n){var i=n[r];return null==i&&((i=t.lastIndexOf(""))e?(r.comment(t,e+4,i-e-4),i+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,i-e-9),r.endCDATA(),i+3}var a=function(t,e){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=e,i.exec(t);for(;r=i.exec(t);)if(n.push(r),r[1])return n}(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return r.startDTD(s,u,c),r.endDTD(),f.index+f[0].length}return-1}function g(t,e,r){var n=t.indexOf("?>",e);if(n){var i=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return r.processingInstruction(i[1],i[2]),n+2}return-1}return-1}function y(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,u.prototype={parse:function(t,e,r){var i=this.domBuilder;i.startDocument(),d(e,e={}),function(t,e,r,i,a){function o(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}function u(t){var e=t.slice(1,-1);return e in r?r[e]:"#"===e.charAt(0)?o(parseInt(e.substr(1).replace("x","0x"))):(a.error("entity not found:"+t),t)}function d(e){if(e>A){var r=t.substring(A,e).replace(/&#?\w+;/g,u);T&&v(A),i.characters(r,0,e-A),A=e}}function v(e,r){for(;e>=w&&(r=E.exec(t));)b=r.index,w=b+r[0].length,T.lineNumber++;T.columnNumber=e-b+1}var b=0,w=0,E=/.*(?:\r\n?|\n)|.*$/g,T=i.locator,S=[{currentNSMap:e}],N={},A=0;for(;;){try{var I=t.indexOf("<",A);if(I<0){if(!t.substr(A).match(/^\s*$/)){var O=i.doc,x=O.createTextNode(t.substr(A));O.appendChild(x),i.currentElement=x}return}switch(I>A&&d(I),t.charAt(I+1)){case"/":var C=t.indexOf(">",I+3),R=t.substring(I+2,C).replace(/[ \t\n\r]+$/g,""),D=S.pop();C<0?(R=t.substring(I+2).replace(/[\s<].*/,""),a.error("end tag name: "+R+" is not complete:"+D.tagName),C=I+1+R.length):R.match(/\sA?A=C:d(Math.max(I,A)+1)}}(t,e,r,i,this.errorHandler),i.endDocument()}},y.prototype={setTagName:function(t){if(!o.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!o.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=u,e.ParseError=s},27049:function(t,e,r){"use strict";var n=r(87462),i=r(4942),a=r(94184),o=r.n(a),s=r(67294),u=r(53124),c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i0?"-".concat(m):m,N=!!v,A="left"===m&&null!=g,I="right"===m&&null!=g,O=o()(T,"".concat(T,"-").concat(p),(e={},(0,i.Z)(e,"".concat(T,"-with-text"),N),(0,i.Z)(e,"".concat(T,"-with-text").concat(S),N),(0,i.Z)(e,"".concat(T,"-dashed"),!!b),(0,i.Z)(e,"".concat(T,"-plain"),!!w),(0,i.Z)(e,"".concat(T,"-rtl"),"rtl"===f),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-left"),A),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-right"),I),e),y),x=(0,n.Z)((0,n.Z)({},A&&{marginLeft:g}),I&&{marginRight:g});return s.createElement("div",(0,n.Z)({className:O},E,{role:"separator"}),v&&"vertical"!==p&&s.createElement("span",{className:"".concat(T,"-inner-text"),style:x},v))}},79742:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,a=u(t),o=a[0],s=a[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),f=0,l=s>0?o-4:o;for(r=0;r>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=16383,s=0,u=n-i;su?u:s+o));1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return a.join("")};for(var r=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,n){for(var i,a,o=[],s=e;s>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(t,e,r){"use strict";var n=r(79742),i=r(80645),a="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=u,e.h2=50;var o=2147483647;function s(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|m(t,e),n=s(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(F(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(F(t,ArrayBuffer)||t&&F(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(F(t,SharedArrayBuffer)||t&&F(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var i=function(t){if(u.isBuffer(t)){var e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!==typeof t.length||Z(t.length)?s(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),s(t<0?0:0|d(t))}function h(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||F(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(i)return n?-1:_(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return I(this,e,r);case"ascii":return x(this,e,r);case"latin1":case"binary":return C(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var l=!0,h=0;hi&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function I(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128===(192&(a=t[i+1]))&&(u=(31&c)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nn.length?u.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(F(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),c=this.slice(n,i),f=t.slice(e,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return T(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function x(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function L(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,a){return e=+e,r>>>=0,a||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function k(t,e,r,n,a){return e=+e,r>>>=0,a||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return k(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return k(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(a=e;a55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function X(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function j(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function F(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Z(t){return t!==t}var K=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},86559:function(t,e,r){"use strict";r.d(e,{Z:function(){return g}});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(t,e,r){var i,a=n[t];return i="string"===typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function a(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u=function(t,e,r,n){return s[t]};function c(t){return function(e,r){var n;if("formatting"===(null!==r&&void 0!==r&&r.context?String(r.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!==r&&void 0!==r&&r.width?String(r.width):i;n=t.formattingValues[a]||t.formattingValues[i]}else{var o=t.defaultWidth,s=null!==r&&void 0!==r&&r.width?String(r.width):t.defaultWidth;n=t.values[s]||t.values[o]}return n[t.argumentCallback?t.argumentCallback(e):e]}}var f={ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:c({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:c({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:c({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function l(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;var o,s=a[0],u=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?p(u,(function(t){return t.test(s)})):h(u,(function(t){return t.test(s)}));o=t.valueCallback?t.valueCallback(c):c,o=r.valueCallback?r.valueCallback(o):o;var f=e.slice(s.length);return{value:o,rest:f}}}function h(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function p(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(d.matchPattern);if(!r)return null;var n=r[0],i=t.match(d.parsePattern);if(!i)return null;var a=d.valueCallback?d.valueCallback(i[0]):i[0];a=e.valueCallback?e.valueCallback(a):a;var o=t.slice(n.length);return{value:a,rest:o}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},g={code:"en-US",formatDistance:i,formatLong:o,formatRelative:u,localize:f,match:m,options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(t,e,r){"use strict";r.d(e,{j:function(){return i}});var n={};function i(){return n}},24262:function(t,e,r){"use strict";function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}r.d(e,{Z:function(){return n}})},83946:function(t,e,r){"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}r.d(e,{Z:function(){return n}})},77349:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);return isNaN(o)?new Date(NaN):o?(r.setDate(r.getDate()+o),r):r}},11640:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);if(isNaN(o))return new Date(NaN);if(!o)return r;var s=r.getDate(),u=new Date(r.getTime());u.setMonth(r.getMonth()+o+1,0);var c=u.getDate();return s>=c?u:(r.setFullYear(u.getFullYear(),u.getMonth(),s),r)}},75401:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(24262),i=r(19013),a=r(13882);function o(t){(0,a.Z)(1,arguments);var e=(0,i.Z)(t);return e.setHours(0,0,0,0),e}var s=864e5;function u(t,e){(0,a.Z)(2,arguments);var r=o(t),i=o(e),u=r.getTime()-(0,n.Z)(r),c=i.getTime()-(0,n.Z)(i);return Math.round((u-c)/s)}},68730:function(t,e,r){"use strict";r.d(e,{Z:function(){return S}});var n=r(49474),i=r(77349),a=r(11640),o=r(19013),s=r(13882),u=r(83946);function c(t){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,e){if((0,s.Z)(2,arguments),!e||"object"!==c(e))return new Date(NaN);var r=e.years?(0,u.Z)(e.years):0,n=e.months?(0,u.Z)(e.months):0,f=e.weeks?(0,u.Z)(e.weeks):0,l=e.days?(0,u.Z)(e.days):0,h=e.hours?(0,u.Z)(e.hours):0,p=e.minutes?(0,u.Z)(e.minutes):0,d=e.seconds?(0,u.Z)(e.seconds):0,m=(0,o.Z)(t),g=n||r?(0,a.Z)(m,n+12*r):m,y=l||f?(0,i.Z)(g,l+7*f):g,v=p+60*h,b=d+60*v,w=1e3*b,E=new Date(y.getTime()+w);return E}var l=r(75401);function h(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function p(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e),i=h(r,n),a=Math.abs((0,l.Z)(r,n));r.setDate(r.getDate()-i*a);var u=Number(h(r,n)===-i),c=i*(a-u);return 0===c?0:c}Math.pow(10,8);var d=36e5,m=r(59910),g=r(93645);function y(t,e,r){(0,s.Z)(2,arguments);var n=(0,m.Z)(t,e)/d;return(0,g.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}function v(t,e,r){(0,s.Z)(2,arguments);var n=(0,m.Z)(t,e)/6e4;return(0,g.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}var b=r(82161),w=r(11699);function E(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e);return r.getFullYear()-n.getFullYear()}function T(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),i=(0,o.Z)(e),a=(0,n.Z)(r,i),u=Math.abs(E(r,i));r.setFullYear(1584),i.setFullYear(1584);var c=(0,n.Z)(r,i)===-a,f=a*(u-Number(c));return 0===f?0:f}function S(t){(0,s.Z)(1,arguments);var e=(0,o.Z)(t.start),r=(0,o.Z)(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(r.getTime()))throw new RangeError("End Date is invalid");var i={};i.years=Math.abs(T(r,e));var a=(0,n.Z)(r,e),u=f(e,{years:a*i.years});i.months=Math.abs((0,b.Z)(r,u));var c=f(u,{months:a*i.months});i.days=Math.abs(p(r,c));var l=f(c,{days:a*i.days});i.hours=Math.abs(y(r,l));var h=f(l,{hours:a*i.hours});i.minutes=Math.abs(v(r,h));var d=f(h,{minutes:a*i.minutes});return i.seconds=Math.abs((0,w.Z)(r,d)),i}},89144:function(t,e,r){var n,i="undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:{},a=r(25893);"undefined"!==typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=n},58908:function(t,e,r){var n;n="undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:{},t.exports=n},80645:function(t,e){e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<>1,f=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,a=p&(1<<-f)-1,p>>=-f,f+=s;f>0;a=256*a+t[e+l],l+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+l],l+=h,f-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,c=8*a-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(o++,u/=2),o+l>=f?(s=0,o=f):o+l>=1?(s=(e*u-1)*Math.pow(2,i),o+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*m}},27376:function(t){t.exports=function(t){if(!t)return!1;var r=e.call(t);return"[object Function]"===r||"function"===typeof t&&"[object RegExp]"!==r||"undefined"!==typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},27537:function(t,e){function r(t){if(t&&"object"===typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"===typeof t)return o[t];var r,a=String(t);return(r=n[a.toLowerCase()])?r:(r=i[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}r.isEventKey=function(t,e){if(t&&"object"===typeof t){var r=t.which||t.keyCode||t.charCode;if(null===r||void 0===r)return!1;if("string"===typeof e){var a;if(a=n[e.toLowerCase()])return a===r;if(a=i[e.toLowerCase()])return a===r}else if("number"===typeof e)return e===r;return!1}};var n=(e=t.exports=r).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=e.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n["f"+a]=a+111;for(a=0;a<10;a++)n["numpad "+a]=a+96;var o=e.names=e.title={};for(a in n)o[n[a]]=a;for(var s in i)n[s]=i[s]},9323:function(t,e,r){"use strict";r.d(e,{_b:function(){return m}});var n=r(94578),i=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var r=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(r,1),r>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var r=e.length,n=0;n-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(i),c=String.fromCharCode(9),f=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),r={};return e[1]&&(r.length=parseInt(e[1],10)),e[2]&&(r.offset=parseInt(e[2],10)),r},l=function(t){for(var e,r=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},i=r.length;i--;)""!==r[i]&&((e=/([^=]*)=(.*)/.exec(r[i]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},h=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}(0,n.Z)(e,t);var r=e.prototype;return r.push=function(t){var e,r,n=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce((function(e,r){var n=r(t);return n===t?e:e.concat([n])}),[t]).forEach((function(t){for(var i=0;i0&&(f.duration=t.duration),0===t.duration&&(f.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=c},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes});if("com.microsoft.playready"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:(0,s.Z)(t.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},"undefined"!==typeof t.attributes.IV&&(n.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else n=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,y=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){r={},t.uri&&(r.uri=t.uri),t.byterange&&(r.byterange=t.byterange),n&&(r.key=n)},"stream-inf":function(){this.manifest.playlists=c,this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes?(f.attributes||(f.attributes={}),(0,a.Z)(f.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var r=this.manifest.mediaGroups[t.attributes.TYPE];r[t.attributes["GROUP-ID"]]=r[t.attributes["GROUP-ID"]]||{},e=r[t.attributes["GROUP-ID"]],(o={default:/yes/i.test(t.attributes.DEFAULT)}).default?o.autoselect=!0:o.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(o.language=t.attributes.LANGUAGE),t.attributes.URI&&(o.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(o.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(o.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(o.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=o}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){y+=1,f.discontinuity=!0,this.manifest.discontinuityStarts.push(c.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),f.dateTimeString=t.dateTimeString,f.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,d.call(this,this.manifest))},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){f.cueOut=t.data},"cue-out-cont":function(){f.cueOutCont=t.data},"cue-in":function(){f.cueIn=t.data},skip:function(){this.manifest.skip=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;l=!0;var r=this.manifest.segments.length,n=p(t.attributes);f.parts=f.parts||[],f.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=b),b=n.byterange.offset+n.byterange.length);var i=f.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+i+" for segment #"+r,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(t,r){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+r+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var e=this.manifest.serverControl=p(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),d.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,r=p(t.attributes),n=r.type&&"PART"===r.type;f.preloadHints=f.preloadHints||[],f.preloadHints.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=n?b:0,n&&(b=r.byterange.offset+r.byterange.length)));var i=f.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+i+" for segment #"+e,t.attributes,["TYPE","URI"]),r.type)for(var a=0;ae.timeline?1:-1}));var e,r},x=function(t){var e,r,n=[];return e=t,r=function(t,e,r,i){n=n.concat(t.playlists||[])},I.forEach((function(t){for(var n in e.mediaGroups[t])for(var i in e.mediaGroups[t][n]){var a=e.mediaGroups[t][n][i];r(a,t,n,i)}})),n},C=function(t){var e=t.playlist,r=t.mediaSequence;e.mediaSequence=r,e.segments.forEach((function(t,r){t.number=e.mediaSequence+r}))},R=function(t){var e=t.oldManifest,r=t.newManifest,n=e.playlists.concat(x(e)),i=r.playlists.concat(x(r));return r.timelineStarts=O([e.timelineStarts,r.timelineStarts]),function(t){var e=t.oldPlaylists,r=t.newPlaylists,n=t.timelineStarts;r.forEach((function(t){t.discontinuitySequence=p(n,(function(e){return e.timeline===t.timeline}));var r=function(t,e){for(var r=0;rr.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--);r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),C({playlist:t,mediaSequence:r.segments[a].number})}}))}({oldPlaylists:n,newPlaylists:i,timelineStarts:r.timelineStarts}),r},D=function(t){return t&&t.uri+"-"+function(t){var e;return e="bigint"===typeof t.offset||"bigint"===typeof t.length?a().BigInt(t.offset)+a().BigInt(t.length)-a().BigInt(1):t.offset+t.length-1,t.offset+"-"+e}(t.byterange)},M=function(t){return f(t.reduce((function(t,e){var r=e.attributes.id+(e.attributes.lang||"");if(t[r]){var n;if(e.segments)e.segments[0]&&(e.segments[0].discontinuity=!0),(n=t[r].segments).push.apply(n,e.segments);e.attributes.contentProtection&&(t[r].attributes.contentProtection=e.attributes.contentProtection)}else t[r]=e,t[r].attributes.timelineStarts=[];return t[r].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t}),{})).map((function(t){var e,r;return t.discontinuityStarts=(e=t.segments||[],r="discontinuity",e.reduce((function(t,e,n){return e[r]&&t.push(n),t}),[])),t}))},P=function(t,e){var r=D(t.sidx),n=r&&e[r]&&e[r].sidx;return n&&A(t,n,t.sidx.resolvedUri),t},L=function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var r in t)t[r]=P(t[r],e);return t},U=function(t){var e,r=t.attributes,n=t.segments,i=t.sidx,a=t.discontinuityStarts,o={attributes:(e={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuityStarts:a,timelineStarts:r.timelineStarts,segments:n};return r.contentProtection&&(o.contentProtection=r.contentProtection),i&&(o.sidx=i),o},k=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},B=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},_=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},X=function(t){return t?Object.keys(t).reduce((function(e,r){var n=t[r];return e.concat(n.playlists)}),[]):[]},j=function(t){var e,r=t.dashPlaylists,n=t.locations,i=t.sidxMapping,a=void 0===i?{}:i,o=t.previousManifest;if(!r.length)return{};var s=r[0].attributes,u=s.sourceDuration,c=s.type,f=s.suggestedPresentationDelay,l=s.minimumUpdatePeriod,h=M(r.filter(k)).map(U),d=M(r.filter(B)),m=M(r.filter(_)),g=r.map((function(t){return t.attributes.captionServices})).filter(Boolean),y={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(e={AUDIO:{},VIDEO:{}},e["CLOSED-CAPTIONS"]={},e.SUBTITLES={},e),uri:"",duration:u,playlists:L(h,a)};l>=0&&(y.minimumUpdatePeriod=1e3*l),n&&(y.locations=n),"dynamic"===c&&(y.suggestedPresentationDelay=f);var v,b,w=0===y.playlists.length,E=d.length?function(t,e,r){var n;void 0===e&&(e={}),void 0===r&&(r=!1);var i=t.reduce((function(t,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",s=i.attributes.label||"main";if(o&&!i.attributes.label){var u=a?" ("+a+")":"";s=""+i.attributes.lang+u}t[s]||(t[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var c=P(function(t,e){var r,n=t.attributes,i=t.segments,a=t.sidx,o=t.mediaSequence,s=t.discontinuitySequence,u=t.discontinuityStarts,c={attributes:(r={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},r["PROGRAM-ID"]=1,r),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:s,discontinuityStarts:u,timelineStarts:n.timelineStarts,mediaSequence:o,segments:i};return n.contentProtection&&(c.contentProtection=n.contentProtection),a&&(c.sidx=a),e&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c}(i,r),e);return t[s].playlists.push(c),"undefined"===typeof n&&"main"===a&&((n=i).default=!0),t}),{});return n||(i[Object.keys(i)[0]].default=!0),i}(d,a,w):null,T=m.length?function(t,e){return void 0===e&&(e={}),t.reduce((function(t,r){var n=r.attributes.lang||"text";return t[n]||(t[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),t[n].playlists.push(P(function(t){var e,r=t.attributes,n=t.segments,i=t.mediaSequence,a=t.discontinuityStarts,o=t.discontinuitySequence;"undefined"===typeof n&&(n=[{uri:r.baseUrl,timeline:r.periodStart,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var s=((e={NAME:r.id,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e);return r.codecs&&(s.CODECS=r.codecs),{attributes:s,uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,timelineStarts:r.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:i,segments:n}}(r),e)),t}),{})}(m,a):null,S=h.concat(X(E),X(T)),N=S.map((function(t){return t.timelineStarts}));return y.timelineStarts=O(N),v=S,b=y.timelineStarts,v.forEach((function(t){t.mediaSequence=0,t.discontinuitySequence=p(b,(function(e){return e.timeline===t.timeline})),t.segments&&t.segments.forEach((function(t,e){t.number=e}))})),E&&(y.mediaGroups.AUDIO.audio=E),T&&(y.mediaGroups.SUBTITLES.subs=T),g.length&&(y.mediaGroups["CLOSED-CAPTIONS"].cc=g.reduce((function(t,e){return e?(e.forEach((function(e){var r=e.channel,n=e.language;t[n]={autoselect:!1,default:!1,instreamId:r,language:n},e.hasOwnProperty("aspectRatio")&&(t[n].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[n].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[n]["3D"]=e["3D"])})),t):t}),{})),o?R({oldManifest:o,newManifest:y}):y},F=function(t,e,r){var n=t.NOW,i=t.clientOffset,a=t.availabilityStartTime,o=t.timescale,s=void 0===o?1:o,u=t.periodStart,c=void 0===u?0:u,f=t.minimumUpdatePeriod,l=(n+i)/1e3+(void 0===f?0:f)-(a+c);return Math.ceil((l*s-e)/r)},Z=function(t,e){for(var r=t.type,n=t.minimumUpdatePeriod,i=void 0===n?0:n,a=t.media,o=void 0===a?"":a,s=t.sourceDuration,u=t.timescale,c=void 0===u?1:u,f=t.startNumber,l=void 0===f?1:f,h=t.periodStart,p=[],d=-1,m=0;md&&(d=b);var w=void 0;if(v<0){var E=m+1;w=E===e.length?"dynamic"===r&&i>0&&o.indexOf("$Number$")>0?F(t,d,y):(s*c-d)/y:(e[E].t-d)/y}else w=v+1;for(var T=l+p.length+w,S=l+p.length;S=i?a:""+new Array(i-a.length+1).join("0")+a)}}(e))},H=function(t,e){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=w({baseUrl:t.baseUrl,source:G(a.sourceURL,r),range:a.range}),s=function(t,e){return t.duration||e?t.duration?S(t):Z(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]}(t,e);return s.map((function(e){r.Number=e.number,r.Time=e.time;var i=G(t.media||"",r),a=t.timescale||1,s=t.presentationTimeOffset||0,u=t.periodStart+(e.time-s)/a;return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:(0,n.Z)(t.baseUrl||"",i),map:o,number:e.number,presentationTime:u}}))},V=function(t,e){var r=t.duration,n=t.segmentUrls,i=void 0===n?[]:n,a=t.periodStart;if(!r&&!e||r&&e)throw new Error(v);var o,s=i.map((function(e){return function(t,e){var r=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,a=w({baseUrl:r,source:i.sourceURL,range:i.range}),o=w({baseUrl:r,source:e.media,range:e.mediaRange});return o.map=a,o}(t,e)}));return r&&(o=S(t)),e&&(o=Z(t,e)),o.map((function(e,r){if(s[r]){var n=s[r],i=t.timescale||1,o=t.presentationTimeOffset||0;return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n.presentationTime=a+(e.time-o)/i,n}})).filter((function(t){return t}))},q=function(t){var e,r,n=t.attributes,i=t.segmentInfo;i.template?(r=H,e=c(n,i.template)):i.base?(r=N,e=c(n,i.base)):i.list&&(r=V,e=c(n,i.list));var a={attributes:n};if(!r)return a;var o=r(e,i.segmentTimeline);if(e.duration){var s=e,u=s.duration,f=s.timescale,l=void 0===f?1:f;e.duration=u/l}else o.length?e.duration=o.reduce((function(t,e){return Math.max(t,Math.ceil(e.duration))}),0):e.duration=0;return a.attributes=e,a.segments=o,i.base&&e.indexRange&&(a.sidx=o[0],a.segments=[]),a},z=function(t,e){return h(t.childNodes).filter((function(t){return t.tagName===e}))},Y=function(t){return t.textContent.trim()},W=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var r=e.slice(1),n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(u||0)},$={mediaPresentationDuration:function(t){return W(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return W(t)},suggestedPresentationDelay:function(t){return W(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return W(t)},start:function(t){return W(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?W(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},J=function(t){return t&&t.attributes?h(t.attributes).reduce((function(t,e){var r=$[e.name]||$.DEFAULT;return t[e.name]=r(e.value),t}),{}):{}},Q={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"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:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},tt=function(t,e){return e.length?l(t.map((function(t){return e.map((function(e){return(0,n.Z)(t,Y(e))}))}))):t},et=function(t){var e=z(t,"SegmentTemplate")[0],r=z(t,"SegmentList")[0],n=r&&z(r,"SegmentURL").map((function(t){return c({tag:"SegmentURL"},J(t))})),i=z(t,"SegmentBase")[0],a=r||e,o=a&&z(a,"SegmentTimeline")[0],s=r||i||e,u=s&&z(s,"Initialization")[0],f=e&&J(e);f&&u?f.initialization=u&&J(u):f&&f.initialization&&(f.initialization={sourceURL:f.initialization});var l={template:f,segmentTimeline:o&&z(o,"S").map((function(t){return J(t)})),list:r&&c(J(r),{segmentUrls:n,initialization:J(u)}),base:i&&c(J(i),{initialization:J(u)})};return Object.keys(l).forEach((function(t){l[t]||delete l[t]})),l},rt=function(t,e,r){return function(n){var i,a=J(n),s=tt(e,z(n,"BaseURL")),u=z(n,"Role")[0],f={role:J(u)},h=c(t,a,f),p=z(n,"Accessibility")[0],d="urn:scte:dash:cc:cea-608:2015"===(i=J(p)).schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e,r;if(r=t,/^CC\d=/.test(t)){var n=t.split("=");e=n[0],r=n[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:r}})):"urn:scte:dash:cc:cea-708:2015"===i.schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var r=t.split("="),n=r[0],i=r[1],a=void 0===i?"":i;e.channel=n,e.language=t,a.split(",").forEach((function(t){var r=t.split(":"),n=r[0],i=r[1];"lang"===n?e.language=i:"er"===n?e.easyReader=Number(i):"war"===n?e.aspectRatio=Number(i):"3D"===n&&(e["3D"]=Number(i))}))}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e})):void 0;d&&(h=c(h,{captionServices:d}));var m=z(n,"Label")[0];if(m&&m.childNodes.length){var g=m.childNodes[0].nodeValue.trim();h=c(h,{label:g})}var y=z(n,"ContentProtection").reduce((function(t,e){var r=J(e);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());var n=Q[r.schemeIdUri];if(n){t[n]={attributes:r};var i=z(e,"cenc:pssh")[0];if(i){var a=Y(i);t[n].pssh=a&&(0,o.Z)(a)}}return t}),{});Object.keys(y).length&&(h=c(h,{contentProtection:y}));var v=et(n),b=z(n,"Representation"),w=c(r,v);return l(b.map(function(t,e,r){return function(n){var i=z(n,"BaseURL"),a=tt(e,i),o=c(t,J(n)),s=et(n);return a.map((function(t){return{segmentInfo:c(r,s),attributes:c(o,{baseUrl:t})}}))}}(h,s,w)))}},nt=function(t,e){return function(r,n){var i=tt(e,z(r.node,"BaseURL")),a=c(t,{periodStart:r.attributes.start});"number"===typeof r.attributes.duration&&(a.periodDuration=r.attributes.duration);var o=z(r.node,"AdaptationSet"),s=et(r.node);return l(o.map(rt(a,i,s)))}},it=function(t){if(""===t)throw new Error(m);var e,r,n=new s.DOMParser;try{r=(e=n.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(i){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw new Error(g);return r},at=function(t,e){void 0===e&&(e={});var r=function(t,e){void 0===e&&(e={});var r=e,n=r.manifestUri,i=void 0===n?"":n,a=r.NOW,o=void 0===a?Date.now():a,s=r.clientOffset,u=void 0===s?0:s,c=z(t,"Period");if(!c.length)throw new Error(d);var f=z(t,"Location"),h=J(t),p=tt([i],z(t,"BaseURL"));h.type=h.type||"static",h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=o,h.clientOffset=u,f.length&&(h.locations=f.map(Y));var m=[];return c.forEach((function(t,e){var r=J(t),n=m[e-1];r.start=function(t){var e=t.attributes,r=t.priorPeriodAttributes,n=t.mpdType;return"number"===typeof e.start?e.start:r&&"number"===typeof r.start&&"number"===typeof r.duration?r.start+r.duration:r||"static"!==n?null:0}({attributes:r,priorPeriodAttributes:n?n.attributes:null,mpdType:h.type}),m.push({node:t,attributes:r})})),{locations:h.locations,representationInfo:l(m.map(nt(h,p)))}}(it(t),e),n=r.representationInfo.map(q);return j({dashPlaylists:n,locations:r.locations,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest})},ot=function(t){return function(t){var e=z(t,"UTCTiming")[0];if(!e)return null;var r=J(e);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;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":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw new Error(b)}return r}(it(t))}},84221:function(t,e,r){var n=r(46894).getUint64;t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=e.getUint32(i),r.firstOffset=e.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(t.subarray(i)),r.firstOffset=n(t.subarray(i+8)),i+=16),i+=2;var a=e.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(128&t[i])>>>7,referencedSize:2147483647&e.getUint32(i),subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(128&t[i+8]),sapType:(112&t[i+8])>>>4,sapDeltaTime:268435455&e.getUint32(i+8)});return r}},51489:function(t){var e,r,n,i,a,o,s,u=9e4;e=function(t){return t*u},r=function(t,e){return t*e},n=function(t){return t/u},i=function(t,e){return t/e},a=function(t,r){return e(i(t,r))},o=function(t,e){return r(n(t),e)},s=function(t,e,r){return n(r?t:t-e)},t.exports={ONE_SECOND_IN_TS:u,secondsToVideoTs:e,secondsToAudioTs:r,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:a,videoTsToAudioTs:o,metadataTsToSeconds:s}},46894:function(t){var e=Math.pow(2,32);t.exports={getUint64:function(t){var r,n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getBigUint64?(r=n.getBigUint64(0))0;function i(t,e,r,n){t.addEventListener?t.addEventListener(e,r,n):t.attachEvent&&t.attachEvent("on".concat(e),(function(){r(window.event)}))}function a(t,e){for(var r=e.slice(0,e.length-1),n=0;n=0;)e[r-1]+=",",e.splice(r,1),r=e.lastIndexOf("");return e}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":n?173:189,"=":n?61:187,";":n?59:186,"'":222,"[":219,"]":221,"\\":220},u={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},c={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},f={16:!1,18:!1,17:!1,91:!1},l={},h=1;h<20;h++)s["f".concat(h)]=111+h;var p=[],d=!1,m="all",g=[],y=function(t){return s[t.toLowerCase()]||u[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function v(t){m=t||"all"}function b(){return m||"all"}var w=function(t){var e=t.key,r=t.scope,n=t.method,i=t.splitKey,s=void 0===i?"+":i;o(e).forEach((function(t){var e=t.split(s),i=e.length,o=e[i-1],c="*"===o?"*":y(o);if(l[c]){r||(r=b());var f=i>1?a(u,e):[];l[c]=l[c].filter((function(t){return!((!n||t.method===n)&&t.scope===r&&function(t,e){for(var r=t.length>=e.length?t:e,n=t.length>=e.length?e:t,i=!0,a=0;a0,f)Object.prototype.hasOwnProperty.call(f,a)&&(!f[a]&&e.mods.indexOf(+a)>-1||f[a]&&-1===e.mods.indexOf(+a))&&(i=!1);(0!==e.mods.length||f[16]||f[18]||f[17]||f[91])&&!i&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function T(t,e){var r=l["*"],n=t.keyCode||t.which||t.charCode;if(S.filter.call(this,t)){if(93!==n&&224!==n||(n=91),-1===p.indexOf(n)&&229!==n&&p.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var r=c[e];t[e]&&-1===p.indexOf(r)?p.push(r):!t[e]&&p.indexOf(r)>-1?p.splice(p.indexOf(r),1):"metaKey"===e&&t[e]&&3===p.length&&(t.ctrlKey||t.shiftKey||t.altKey||(p=p.slice(p.indexOf(r))))})),n in f){for(var i in f[n]=!0,u)u[i]===n&&(S[i]=!0);if(!r)return}for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(f[a]=t[c[a]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),f[17]=!0,f[18]=!0);var o=b();if(r)for(var s=0;s1&&(s=a(u,t)),(t="*"===(t=t[t.length-1])?"*":y(t))in l||(l[t]=[]),l[t].push({keyup:v,keydown:b,scope:c,mods:s,shortcut:n[m],method:r,key:n[m],splitKey:w,element:h});"undefined"!==typeof h&&!function(t){return g.indexOf(t)>-1}(h)&&window&&(g.push(h),i(h,"keydown",(function(t){T(t,h)}),E),d||(d=!0,i(window,"focus",(function(){p=[]}),E)),i(h,"keyup",(function(t){T(t,h),function(t){var e=t.keyCode||t.which||t.charCode,r=p.indexOf(e);if(r>=0&&p.splice(r,1),t.key&&"meta"===t.key.toLowerCase()&&p.splice(0,p.length),93!==e&&224!==e||(e=91),e in f)for(var n in f[e]=!1,u)u[n]===e&&(S[n]=!1)}(t)}),E))}var N={setScope:v,getScope:b,deleteScope:function(t,e){var r,n;for(var i in t||(t=b()),l)if(Object.prototype.hasOwnProperty.call(l,i))for(r=l[i],n=0;n1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(l).forEach((function(r){var n=l[r].find((function(r){return r.scope===e&&r.shortcut===t}));n&&n.method&&n.method()}))},unbind:function(t){if("undefined"===typeof t)Object.keys(l).forEach((function(t){return delete l[t]}));else if(Array.isArray(t))t.forEach((function(t){t.key&&w(t)}));else if("object"===typeof t)t.key&&w(t);else if("string"===typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}function s(){this.values=i(null)}function u(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"===typeof i[a]){var o=i[a].split(r);if(2===o.length)e(o[0].trim(),o[1].trim())}}function c(t,e,r){var n=t;function i(){var e=o(t);if(null===e)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(){t=t.replace(/^\s+/,"")}if(c(),e.startTime=i(),c(),"--\x3e"!==t.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),c(),e.endTime=i(),c(),function(t,e){var n=new s;u(t,(function(t,e){switch(t){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===e){n.set(t,r[i].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),o=a[0];n.integer(t,o),n.percent(t,o)&&n.set("snapToLines",!1),n.alt(t,o,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(i){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(i){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(i){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}a.prototype=i(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var n=0;n=0&&e<=100)&&(this.set(t,e),!0)}};var f=n.createElement&&n.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},d={rt:"ruby"};function m(t,e){function r(){if(!e)return null;var t,r=e.match(/^([^<]*)(<[^>]*>?)?/);return t=r[1]?r[1]:r[2],e=e.substr(t.length),t}function n(t,e){return!d[e.localName]||d[e.localName]===t.localName}function i(e,r){var n=l[e];if(!n)return null;var i=t.document.createElement(n),a=p[e];return a&&r&&(i[a]=r.trim()),i}for(var a,s,u=t.document.createElement("div"),c=u,m=[];null!==(a=r());)if("<"!==a[0])c.appendChild(t.document.createTextNode((s=a,f.innerHTML=s,s=f.textContent,f.textContent="",s)));else{if("/"===a[1]){m.length&&m[m.length-1]===a.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var g,y=o(a.substr(1,a.length-2));if(y){g=t.document.createProcessingInstruction("timestamp",y),c.appendChild(g);continue}var v=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(g=i(v[1],v[3])))continue;if(!n(c,g))continue;if(v[2]){var b=v[2].split(".");b.forEach((function(t){var e=/^bg_/.test(t),r=e?t.slice(3):t;if(h.hasOwnProperty(r)){var n=e?"background-color":"color",i=h[r];g.style[n]=i}})),g.className=b.join(" ")}m.push(v[1]),c.appendChild(g),c=g}return u}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function y(t){for(var e=0;e=r[0]&&t<=r[1])return!0}return!1}function v(t){var e=[],r="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var r=e.childNodes.length-1;r>=0;r--)t.push(e.childNodes[r])}function i(t){if(!t||!t.length)return null;var e=t.pop(),r=e.textContent||e.innerText;if(r){var a=r.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):r}return"ruby"===e.tagName?i(t):e.childNodes?(n(t,e),i(t)):void 0}for(n(e,t);r=i(e);)for(var a=0;a=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,r=e.textTrackList,n=0,i=0;il&&(f=f<0?-1:1,f*=Math.ceil(l/c)*c),o<0&&(f+=""===a.vertical?r.height:r.width,s=s.reverse()),i.move(h,f)}else{var p=i.lineHeight/r.height*100;switch(a.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],i=new E(e)}var d=function(t,e){for(var i,a=new E(t),o=1,s=0;su&&(i=new E(t),o=u),t=new E(a)}return i||a}(i,s);e.move(d.toCSSCompatValues(r))}function S(){}b.prototype.applyStyles=function(t,e){for(var r in e=e||this.div,t)t.hasOwnProperty(r)&&(e.style[r]=t[r])},b.prototype.formatStyle=function(t,e){return 0===t?0:t+e},w.prototype=i(b.prototype),w.prototype.constructor=w,E.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},E.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},E.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},E.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},E.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},E.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},E.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,r=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||r}},S.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!==typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},S.convertCueToDOMTree=function(t,e){return t&&e?m(t,e):null};S.processCues=function(t,e,r){if(!t||!e||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),function(t){for(var e=0;e100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=n(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");y=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(t){var e=n(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");v=e,this.hasBeenReset=!0}}}),this.displayState=void 0}i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=i},13710:function(t){var e={"":!0,up:!0};function r(t){return"number"===typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,n=3,i=0,a=100,o=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw new Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!r(t))throw new Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var r=function(t){return"string"===typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);!1===r?console.warn("Scroll: an invalid or illegal string was specified."):u=r}}})}},10434:function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;eh&&(l-=h,l-=h,l-=o(2))}return Number(l)}),c=function(t,e){var r=(void 0===e?{}:e).le,n=void 0!==r&&r;("bigint"!==typeof t&&"number"!==typeof t||"number"===typeof t&&t!==t)&&(t=0),t=o(t);for(var i,a=(i=t,Math.ceil(function(t){return t.toString(2).length}(i)/8)),u=new Uint8Array(new ArrayBuffer(a)),c=0;c=e.length&&c.call(e,(function(e,r){return e===(u[r]?u[r]&t[o+r]:t[o+r])}))}},92260:function(t,e,r){"use strict";r.d(e,{Hi:function(){return d},Jg:function(){return f},KL:function(){return l},_5:function(){return h},kS:function(){return c},lA:function(){return m},p7:function(){return p},ws:function(){return u},xz:function(){return g}});var n=r(58908),i=r.n(n),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],u=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,r){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)})):t},c=function(t){void 0===t&&(t="");var e=t.split(","),r=[];return e.forEach((function(t){var e;t=t.trim(),o.forEach((function(n){var i=a[n].exec(t.toLowerCase());if(i&&!(i.length<=1)){e=n;var o=t.substring(0,i[1].length),s=t.replace(o,"");r.push({type:o,details:s,mediaType:n})}})),e||r.push({type:t,details:"",mediaType:"unknown"})})),r},f=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var r=t.mediaGroups.AUDIO[e];if(!r)return null;for(var n in r){var i=r[n];if(i.default&&i.playlists)return c(i.playlists[0].attributes.CODECS)}return null},l=function(t){return void 0===t&&(t=""),a.audio.test(t.trim().toLowerCase())},h=function(t){if(t&&"string"===typeof t){var e,r=t.toLowerCase().split(",").map((function(t){return u(t.trim())})),n="video";1===r.length&&l(r[0])?n="audio":1===r.length&&(void 0===(e=r[0])&&(e=""),a.text.test(e.trim().toLowerCase()))&&(n="application");var i="mp4";return r.every((function(t){return a.mp4.test(t)}))?i="mp4":r.every((function(t){return a.webm.test(t)}))?i="webm":r.every((function(t){return a.ogg.test(t)}))&&(i="ogg"),n+"/"+i+';codecs="'+t+'"'}},p=function(t){return void 0===t&&(t=""),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(h(t))||!1},d=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every((function(t){t=t.trim();for(var e=0;er;){var a=t[r],o=0,s=0,u=t[++s];for(s++;128&u;)o=(127&u)<<7,u=t[s],s++;o+=127&u;for(var c=0;c>>0,c=e.subarray(s+4,s+8);if(0===u)break;var f=s+u;if(f>e.length){if(n)break;f=e.length}var l=e.subarray(s+8,f);(0,i.G3)(c,r[0])&&(1===r.length?o.push(l):o.push.apply(o,t(l,r.slice(1),n))),s=f}return o},u={EBML:(0,i.Ki)([26,69,223,163]),DocType:(0,i.Ki)([66,130]),Segment:(0,i.Ki)([24,83,128,103]),SegmentInfo:(0,i.Ki)([21,73,169,102]),Tracks:(0,i.Ki)([22,84,174,107]),Track:(0,i.Ki)([174]),TrackNumber:(0,i.Ki)([215]),DefaultDuration:(0,i.Ki)([35,227,131]),TrackEntry:(0,i.Ki)([174]),TrackType:(0,i.Ki)([131]),FlagDefault:(0,i.Ki)([136]),CodecID:(0,i.Ki)([134]),CodecPrivate:(0,i.Ki)([99,162]),VideoTrack:(0,i.Ki)([224]),AudioTrack:(0,i.Ki)([225]),Cluster:(0,i.Ki)([31,67,182,117]),Timestamp:(0,i.Ki)([231]),TimestampScale:(0,i.Ki)([42,215,177]),BlockGroup:(0,i.Ki)([160]),BlockDuration:(0,i.Ki)([155]),Block:(0,i.Ki)([161]),SimpleBlock:(0,i.Ki)([163])},c=[128,64,32,16,8,4,2,1],f=function(t,e,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var a=function(t){for(var e=1,r=0;r=r.length)return r.length;var a=f(r,n,!1);if((0,i.G3)(e.bytes,a.bytes))return n;var o=f(r,n+a.length);return t(e,r,n+o.length+o.value+a.length)},p=function t(e,r){r=function(t){return Array.isArray(t)?t.map((function(t){return l(t)})):[l(t)]}(r),e=(0,i.Ki)(e);var n=[];if(!r.length)return n;for(var a=0;ae.length?e.length:u+s.value,p=e.subarray(u,c);(0,i.G3)(r[0],o.bytes)&&(1===r.length?n.push(p):n=n.concat(t(p,r.slice(1)))),a+=o.length+s.length+p.length}return n},d=r(68925),m=(0,i.Ki)([0,0,0,1]),g=(0,i.Ki)([0,0,1]),y=(0,i.Ki)([0,0,3]),v=function(t){for(var e=[],r=1;r>1&63),-1!==r.indexOf(c)&&(a=o+u),o+=u+("h264"===e?1:2)}else o++}return t.subarray(0,0)},w={webm:(0,i.Ki)([119,101,98,109]),matroska:(0,i.Ki)([109,97,116,114,111,115,107,97]),flac:(0,i.Ki)([102,76,97,67]),ogg:(0,i.Ki)([79,103,103,83]),ac3:(0,i.Ki)([11,119]),riff:(0,i.Ki)([82,73,70,70]),avi:(0,i.Ki)([65,86,73]),wav:(0,i.Ki)([87,65,86,69]),"3gp":(0,i.Ki)([102,116,121,112,51,103]),mp4:(0,i.Ki)([102,116,121,112]),fmp4:(0,i.Ki)([115,116,121,112]),mov:(0,i.Ki)([102,116,121,112,113,116]),moov:(0,i.Ki)([109,111,111,118]),moof:(0,i.Ki)([109,111,111,102])},E={aac:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=p(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.webm)},mkv:function(t){var e=p(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.matroska)},mp4:function(t){return!E["3gp"](t)&&!E.mov(t)&&(!(!(0,i.G3)(t,w.mp4,{offset:4})&&!(0,i.G3)(t,w.fmp4,{offset:4}))||(!(!(0,i.G3)(t,w.moof,{offset:4})&&!(0,i.G3)(t,w.moov,{offset:4}))||void 0))},mov:function(t){return(0,i.G3)(t,w.mov,{offset:4})},"3gp":function(t){return(0,i.G3)(t,w["3gp"],{offset:4})},ac3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,w.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+1880}},36722:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(58908),i=r.n(n),a=r(48764).lW;function o(t){for(var e,r=(e=t,i().atob?i().atob(e):a.from(e,"base64").toString("binary")),n=new Uint8Array(r.length),o=0;o>4?i+20:i+10}(e,r),t(e,r))}},8485:function(t,e,r){"use strict";r.d(e,{t:function(){return a}});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,i=/^application\/dash\+xml/i,a=function(t){return n.test(t)?"hls":i.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null}},80779:function(t,e,r){"use strict";var n=r(49945),i=r.n(n),a=r(58908),o=r.n(a),s="http://example.com";e.Z=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=o().location&&o().location.href||"");var r="function"===typeof o().URL,n=/^\/\//.test(t),a=!o().location&&!/\/\//i.test(t);if(r?t=new(o().URL)(t,o().location||s):/\/\//i.test(t)||(t=i().buildAbsoluteURL(o().location&&o().location.href||"",t)),r){var u=new URL(e,t);return a?u.href.slice(s.length):n?u.href.slice(u.protocol.length):u.href}return i().buildAbsoluteURL(t,e)}},13490:function(t,e,r){"use strict";var n=r(58908);t.exports=function(t,e){return void 0===e&&(e=!1),function(r,i,a){if(r)t(r);else if(i.statusCode>=400&&i.statusCode<=599){var o=a;if(e)if(n.TextDecoder){var s=function(t){void 0===t&&(t="");return t.toLowerCase().split(";").reduce((function(t,e){var r=e.split("="),n=r[0],i=r[1];return"charset"===n.trim()?i.trim():t}),"utf-8")}(i.headers&&i.headers["content-type"]);try{o=new TextDecoder(s).decode(a)}catch(u){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));t({cause:o})}else t(null,a)}}},9603:function(t,e,r){"use strict";var n=r(58908),i=r(10434),a=r(27376);s.httpHandler=r(13490);function o(t,e,r){var n=t;return a(e)?(r=e,"string"===typeof t&&(n={uri:t})):n=i({},e,{uri:t}),n.callback=r,n}function s(t,e,r){return u(e=o(t,e,r))}function u(t){if("undefined"===typeof t.callback)throw new Error("callback argument missing");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(r){}return null}(c),g)try{t=JSON.parse(t)}catch(e){}return t}function i(t){return clearTimeout(f),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,y)}function a(){if(!u){var e;clearTimeout(f),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=y,a=null;return 0!==e?(i={body:n(),statusCode:e,method:h,headers:{},url:l,rawRequest:c},c.getAllResponseHeaders&&(i.headers=function(t){var e={};return t?(t.trim().split("\n").forEach((function(t){var r=t.indexOf(":"),n=t.slice(0,r).trim().toLowerCase(),i=t.slice(r+1).trim();"undefined"===typeof e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]})),e):e}(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),r(a,i,i.body)}}var o,u,c=t.xhr||null;c||(c=t.cors||t.useXDR?new s.XDomainRequest:new s.XMLHttpRequest);var f,l=c.url=t.uri||t.url,h=c.method=t.method||"GET",p=t.body||t.data,d=c.headers=t.headers||{},m=!!t.sync,g=!1,y={body:void 0,headers:{},statusCode:0,method:h,url:l,rawRequest:c};if("json"in t&&!1!==t.json&&(g=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),p=JSON.stringify(!0===t.json?p:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=i,c.onprogress=function(){},c.onabort=function(){u=!0},c.ontimeout=i,c.open(h,l,!m,t.username,t.password),m||(c.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(f=setTimeout((function(){if(!u){u=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),c.setRequestHeader)for(o in d)d.hasOwnProperty(o)&&c.setRequestHeader(o,d[o]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"===typeof t.beforeSend&&t.beforeSend(c),c.send(p||null),c}t.exports=s,t.exports.default=s,s.XMLHttpRequest=n.XMLHttpRequest||function(){},s.XDomainRequest="withCredentials"in new s.XMLHttpRequest?s.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r=e+r||e?new java.lang.String(t,e,r)+"":t}function g(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}l.prototype.parseFromString=function(t,e){var r=this.options,n=new f,i=r.domBuilder||new h,o=r.errorHandler,s=r.locator,c=r.xmlns||{},l=/\/x?html?$/.test(e),p=l?a.HTML_ENTITIES:a.XML_ENTITIES;return s&&i.setDocumentLocator(s),n.errorHandler=function(t,e,r){if(!t){if(e instanceof h)return e;t=e}var n={},i=t instanceof Function;function a(e){var a=t[e];!a&&i&&(a=2==t.length?function(r){t(e,r)}:t),n[e]=a&&function(t){a("[xmldom "+e+"]\t"+t+d(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}(o,i,s),n.domBuilder=r.domBuilder||i,l&&(c[""]=u.HTML),c.xml=c.xml||u.XML,t&&"string"===typeof t?n.parse(t,c,p):n.errorHandler.error("invalid doc source"),i.doc},h.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var i=this.doc,a=i.createElementNS(t,r||e),o=n.length;g(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var s=0;s=0))throw O(A,new Error(t.tagName+"@"+r));for(var i=e.length-1;n"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function _(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(_(t,e))return!0}while(t=t.nextSibling)}function X(){}function j(t,e,r,i){t&&t._inc++,r.namespaceURI===n.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function F(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var i=e.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a}}}function Z(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,F(t.ownerDocument,t),e}function K(t,e,r){var n=e.parentNode;if(n&&n.removeChild(e),e.nodeType===w){var i=e.firstChild;if(null==i)return e;var a=e.lastChild}else i=a=e;var o=r?r.previousSibling:t.lastChild;i.previousSibling=o,a.nextSibling=r,o?o.nextSibling=i:t.firstChild=i,null==r?t.lastChild=a:r.previousSibling=a;do{i.parentNode=t}while(i!==a&&(i=i.nextSibling));return F(t.ownerDocument||t,t),e.nodeType==w&&(e.firstChild=e.lastChild=null),e}function G(){this._nsMap={}}function H(){}function q(){}function V(){}function z(){}function Y(){}function W(){}function $(){}function J(){}function Q(){}function tt(){}function et(){}function rt(){}function nt(t,e){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&null==i&&null==(i=n.lookupPrefix(a)))var o=[{namespace:a,prefix:null}];return ot(this,r,t,e,o),r.join("")}function it(t,e,r){var i=t.prefix||"",a=t.namespaceURI;if(!a)return!1;if("xml"===i&&a===n.XML||a===n.XMLNS)return!1;for(var o=r.length;o--;){var s=r[o];if(s.prefix===i)return s.namespace!==a}return!0}function at(t,e,r){t.push(" ",e,'="',r.replace(/[<&"]/g,B),'"')}function ot(t,e,r,i,a){if(a||(a=[]),i){if(!(t=i(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case f:var o=t.attributes,s=o.length,u=t.firstChild,c=t.tagName,m=c;if(!(r=n.isHTML(t.namespaceURI)||r)&&!t.prefix&&t.namespaceURI){for(var E,T=0;T=0;S--){if(""===(N=a[S]).prefix&&N.namespace===t.namespaceURI){E=N.namespace;break}}if(E!==t.namespaceURI)for(S=a.length-1;S>=0;S--){var N;if((N=a[S]).namespace===t.namespaceURI){N.prefix&&(m=N.prefix+":"+c);break}}}e.push("<",m);for(var A=0;A"),r&&/^script$/i.test(c))for(;u;)u.data?e.push(u.data):ot(u,e,r,i,a.slice()),u=u.nextSibling;else for(;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;e.push("")}else e.push("/>");return;case v:case w:for(u=t.firstChild;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;return;case l:return at(e,t.name,t.value);case h:return e.push(t.data.replace(/[<&]/g,B).replace(/]]>/g,"]]>"));case p:return e.push("");case y:return e.push("\x3c!--",t.data,"--\x3e");case b:var C=t.publicId,R=t.systemId;if(e.push("");else if(R&&"."!=R)e.push(" SYSTEM ",R,">");else{var D=t.internalSubset;D&&e.push(" [",D,"]"),e.push(">")}return;case g:return e.push("");case d:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function st(t,e,r){var n;switch(e.nodeType){case f:(n=e.cloneNode(!1)).ownerDocument=t;case w:break;case l:r=!0}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,r)for(var i=e.firstChild;i;)n.appendChild(st(t,i,r)),i=i.nextSibling;return n}function ut(t,e,r){var n=new e.constructor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=e[i];"object"!=typeof a&&a!=n[i]&&(n[i]=a)}switch(e.childNodes&&(n.childNodes=new x),n.ownerDocument=t,n.nodeType){case f:var o=e.attributes,s=n.attributes=new D,u=o.length;s._ownerElement=n;for(var c=0;c0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r)for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===t)return n;e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&t in r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},s(c,k),s(c,k.prototype),X.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==w){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return null==this.documentElement&&t.nodeType==f&&(this.documentElement=t),K(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),Z(this,t)},importNode:function(t,e){return st(this,t,e)},getElementById:function(t){var e=null;return _(this.documentElement,(function(r){if(r.nodeType==f&&r.getAttribute("id")==t)return e=r,!0})),e},getElementsByClassName:function(t){var e=o(t);return new C(this,(function(r){var n=[];return e.length>0&&_(r.documentElement,(function(i){if(i!==r&&i.nodeType===f){var a=i.getAttribute("class");if(a){var s=t===a;if(!s){var u=o(a);s=e.every((c=u,function(t){return c&&-1!==c.indexOf(t)}))}s&&n.push(i)}}var c})),n}))},createElement:function(t){var e=new G;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new x,(e.attributes=new D)._ownerElement=e,e},createDocumentFragment:function(){var t=new tt;return t.ownerDocument=this,t.childNodes=new x,t},createTextNode:function(t){var e=new V;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new z;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Y;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new et;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new H;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Q;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new G,n=e.split(":"),i=r.attributes=new D;return r.childNodes=new x,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,i._ownerElement=r,r},createAttributeNS:function(t,e){var r=new H,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}},u(X,k),G.prototype={nodeType:f,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===w?this.insertBefore(t,null):function(t,e){var r=e.parentNode;if(r){var n=t.lastChild;r.removeChild(e),n=t.lastChild}return n=t.lastChild,e.parentNode=t,e.previousSibling=n,e.nextSibling=null,n?n.nextSibling=e:t.firstChild=e,t.lastChild=e,F(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new C(this,(function(e){var r=[];return _(e,(function(n){n===e||n.nodeType!=f||"*"!==t&&n.tagName!=t||r.push(n)})),r}))},getElementsByTagNameNS:function(t,e){return new C(this,(function(r){var n=[];return _(r,(function(i){i===r||i.nodeType!==f||"*"!==t&&i.namespaceURI!==t||"*"!==e&&i.localName!=e||n.push(i)})),n}))}},X.prototype.getElementsByTagName=G.prototype.getElementsByTagName,X.prototype.getElementsByTagNameNS=G.prototype.getElementsByTagNameNS,u(G,k),H.prototype.nodeType=l,u(H,k),q.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(S[N])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},u(q,k),V.prototype={nodeName:"#text",nodeType:h,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(V,q),z.prototype={nodeName:"#comment",nodeType:y},u(z,q),Y.prototype={nodeName:"#cdata-section",nodeType:p},u(Y,q),W.prototype.nodeType=b,u(W,k),$.prototype.nodeType=E,u($,k),J.prototype.nodeType=m,u(J,k),Q.prototype.nodeType=d,u(Q,k),tt.prototype.nodeName="#document-fragment",tt.prototype.nodeType=w,u(tt,k),et.prototype.nodeType=g,u(et,k),rt.prototype.serializeToString=function(t,e,r){return nt.call(t,e,r)},k.prototype.toString=nt;try{if(Object.defineProperty){function ft(t){switch(t.nodeType){case f:case w:var e=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&e.push(ft(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}Object.defineProperty(C.prototype,"length",{get:function(){return R(this),this.$$length}}),Object.defineProperty(k.prototype,"textContent",{get:function(){return ft(this)},set:function(t){switch(this.nodeType){case f:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),ct=function(t,e,r){t["$$"+e]=r}}}catch(lt){}e.DocumentType=W,e.DOMException=O,e.DOMImplementation=U,e.Element=G,e.Node=k,e.NodeList=x,e.XMLSerializer=rt},31045:function(t,e,r){var n=r(72167).freeze;e.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",euro:"\u20ac",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),e.entityMap=e.HTML_ENTITIES},3969:function(t,e,r){var n=r(41146);n.DOMImplementation,n.XMLSerializer,e.DOMParser=r(86129).DOMParser},76925:function(t,e,r){var n=r(72167).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+i.source+a.source+"*(?::"+i.source+a.source+"*)?$");function s(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function u(){}function c(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function f(t,e,r,i,a,o){function s(t,e,n){r.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),r.addValue(t,e,n)}for(var u,c=++e,f=0;;){var l=t.charAt(c);switch(l){case"=":if(1===f)u=t.slice(e,c),f=3;else{if(2!==f)throw new Error("attribute equal must after attrName");f=3}break;case"'":case'"':if(3===f||1===f){if(1===f&&(o.warning('attribute value must after "="'),u=t.slice(e,c)),e=c+1,!((c=t.indexOf(l,e))>0))throw new Error("attribute value no end '"+l+"' match");s(u,h=t.slice(e,c).replace(/&#?\w+;/g,a),e-1),f=5}else{if(4!=f)throw new Error('attribute value must after "="');s(u,h=t.slice(e,c).replace(/&#?\w+;/g,a),e),o.warning('attribute "'+u+'" missed start quot('+l+")!!"),e=c+1,f=5}break;case"/":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:f=7,r.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==f&&r.setTagName(t.slice(e,c)),c;case">":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=t.slice(e,c)).slice(-1)&&(r.closed=!0,h=h.slice(0,-1));case 2:2===f&&(h=u),4==f?(o.warning('attribute "'+h+'" missed quot(")!'),s(u,h.replace(/&#?\w+;/g,a),e)):(n.isHTML(i[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,e));break;case 3:throw new Error("attribute value missed!!")}return c;case"\x80":l=" ";default:if(l<=" ")switch(f){case 0:r.setTagName(t.slice(e,c)),f=6;break;case 1:u=t.slice(e,c),f=2;break;case 4:var h=t.slice(e,c).replace(/&#?\w+;/g,a);o.warning('attribute "'+h+'" missed quot(")!!'),s(u,h,e);case 5:f=6}else switch(f){case 2:r.tagName;n.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s(u,u,e),e=c,f=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:f=1,e=c;break;case 3:f=4,e=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function l(t,e,r){for(var i=t.tagName,a=null,o=t.length;o--;){var s=t[o],u=s.qName,c=s.value;if((p=u.indexOf(":"))>0)var f=s.prefix=u.slice(0,p),l=u.slice(p+1),h="xmlns"===f&&l;else l=u,f=null,h="xmlns"===u&&"";s.localName=l,!1!==h&&(null==a&&(a={},d(r,r={})),r[h]=a[h]=c,s.uri=n.XMLNS,e.startPrefixMapping(h,c))}for(o=t.length;o--;){(f=(s=t[o]).prefix)&&("xml"===f&&(s.uri=n.XML),"xmlns"!==f&&(s.uri=r[f||""]))}var p;(p=i.indexOf(":"))>0?(f=t.prefix=i.slice(0,p),l=t.localName=i.slice(p+1)):(f=null,l=t.localName=i);var m=t.uri=r[f||""];if(e.startElement(m,l,i,t),!t.closed)return t.currentNSMap=r,t.localNSMap=a,!0;if(e.endElement(m,l,i),a)for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&e.endPrefixMapping(f)}function h(t,e,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var a=t.indexOf("",e),o=t.substring(e+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return e+1}function p(t,e,r,n){var i=n[r];return null==i&&((i=t.lastIndexOf(""))e?(r.comment(t,e+4,i-e-4),i+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,i-e-9),r.endCDATA(),i+3}var a=function(t,e){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=e,i.exec(t);for(;r=i.exec(t);)if(n.push(r),r[1])return n}(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return r.startDTD(s,u,c),r.endDTD(),f.index+f[0].length}return-1}function g(t,e,r){var n=t.indexOf("?>",e);if(n){var i=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return r.processingInstruction(i[1],i[2]),n+2}return-1}return-1}function y(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,u.prototype={parse:function(t,e,r){var i=this.domBuilder;i.startDocument(),d(e,e={}),function(t,e,r,i,a){function o(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}function u(t){var e=t.slice(1,-1);return e in r?r[e]:"#"===e.charAt(0)?o(parseInt(e.substr(1).replace("x","0x"))):(a.error("entity not found:"+t),t)}function d(e){if(e>A){var r=t.substring(A,e).replace(/&#?\w+;/g,u);T&&v(A),i.characters(r,0,e-A),A=e}}function v(e,r){for(;e>=w&&(r=E.exec(t));)b=r.index,w=b+r[0].length,T.lineNumber++;T.columnNumber=e-b+1}var b=0,w=0,E=/.*(?:\r\n?|\n)|.*$/g,T=i.locator,S=[{currentNSMap:e}],N={},A=0;for(;;){try{var I=t.indexOf("<",A);if(I<0){if(!t.substr(A).match(/^\s*$/)){var O=i.doc,x=O.createTextNode(t.substr(A));O.appendChild(x),i.currentElement=x}return}switch(I>A&&d(I),t.charAt(I+1)){case"/":var C=t.indexOf(">",I+3),R=t.substring(I+2,C).replace(/[ \t\n\r]+$/g,""),D=S.pop();C<0?(R=t.substring(I+2).replace(/[\s<].*/,""),a.error("end tag name: "+R+" is not complete:"+D.tagName),C=I+1+R.length):R.match(/\sA?A=C:d(Math.max(I,A)+1)}}(t,e,r,i,this.errorHandler),i.endDocument()}},y.prototype={setTagName:function(t){if(!o.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!o.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=u,e.ParseError=s},27049:function(t,e,r){"use strict";var n=r(87462),i=r(4942),a=r(94184),o=r.n(a),s=r(67294),u=r(53124),c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i0?"-".concat(m):m,N=!!v,A="left"===m&&null!=g,I="right"===m&&null!=g,O=o()(T,"".concat(T,"-").concat(p),(e={},(0,i.Z)(e,"".concat(T,"-with-text"),N),(0,i.Z)(e,"".concat(T,"-with-text").concat(S),N),(0,i.Z)(e,"".concat(T,"-dashed"),!!b),(0,i.Z)(e,"".concat(T,"-plain"),!!w),(0,i.Z)(e,"".concat(T,"-rtl"),"rtl"===f),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-left"),A),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-right"),I),e),y),x=(0,n.Z)((0,n.Z)({},A&&{marginLeft:g}),I&&{marginRight:g});return s.createElement("div",(0,n.Z)({className:O},E,{role:"separator"}),v&&"vertical"!==p&&s.createElement("span",{className:"".concat(T,"-inner-text"),style:x},v))}},79742:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,a=u(t),o=a[0],s=a[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),f=0,l=s>0?o-4:o;for(r=0;r>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=16383,s=0,u=n-i;su?u:s+o));1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return a.join("")};for(var r=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,n){for(var i,a,o=[],s=e;s>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(t,e,r){"use strict";var n=r(79742),i=r(80645),a="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=u,e.h2=50;var o=2147483647;function s(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|m(t,e),n=s(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(F(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(F(t,ArrayBuffer)||t&&F(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(F(t,SharedArrayBuffer)||t&&F(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var i=function(t){if(u.isBuffer(t)){var e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!==typeof t.length||Z(t.length)?s(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),s(t<0?0:0|d(t))}function h(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||F(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(i)return n?-1:_(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return I(this,e,r);case"ascii":return x(this,e,r);case"latin1":case"binary":return C(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var l=!0,h=0;hi&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function I(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128===(192&(a=t[i+1]))&&(u=(31&c)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nn.length?u.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(F(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),c=this.slice(n,i),f=t.slice(e,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return T(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function x(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function L(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,a){return e=+e,r>>>=0,a||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function k(t,e,r,n,a){return e=+e,r>>>=0,a||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return k(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return k(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(a=e;a55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function X(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function j(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function F(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Z(t){return t!==t}var K=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},86559:function(t,e,r){"use strict";r.d(e,{Z:function(){return g}});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(t,e,r){var i,a=n[t];return i="string"===typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function a(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u=function(t,e,r,n){return s[t]};function c(t){return function(e,r){var n;if("formatting"===(null!==r&&void 0!==r&&r.context?String(r.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!==r&&void 0!==r&&r.width?String(r.width):i;n=t.formattingValues[a]||t.formattingValues[i]}else{var o=t.defaultWidth,s=null!==r&&void 0!==r&&r.width?String(r.width):t.defaultWidth;n=t.values[s]||t.values[o]}return n[t.argumentCallback?t.argumentCallback(e):e]}}var f={ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:c({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:c({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:c({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function l(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;var o,s=a[0],u=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?p(u,(function(t){return t.test(s)})):h(u,(function(t){return t.test(s)}));o=t.valueCallback?t.valueCallback(c):c,o=r.valueCallback?r.valueCallback(o):o;var f=e.slice(s.length);return{value:o,rest:f}}}function h(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function p(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(d.matchPattern);if(!r)return null;var n=r[0],i=t.match(d.parsePattern);if(!i)return null;var a=d.valueCallback?d.valueCallback(i[0]):i[0];a=e.valueCallback?e.valueCallback(a):a;var o=t.slice(n.length);return{value:a,rest:o}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},g={code:"en-US",formatDistance:i,formatLong:o,formatRelative:u,localize:f,match:m,options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(t,e,r){"use strict";r.d(e,{j:function(){return i}});var n={};function i(){return n}},24262:function(t,e,r){"use strict";function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}r.d(e,{Z:function(){return n}})},83946:function(t,e,r){"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}r.d(e,{Z:function(){return n}})},77349:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);return isNaN(o)?new Date(NaN):o?(r.setDate(r.getDate()+o),r):r}},11640:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);if(isNaN(o))return new Date(NaN);if(!o)return r;var s=r.getDate(),u=new Date(r.getTime());u.setMonth(r.getMonth()+o+1,0);var c=u.getDate();return s>=c?u:(r.setFullYear(u.getFullYear(),u.getMonth(),s),r)}},75401:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(24262),i=r(19013),a=r(13882);function o(t){(0,a.Z)(1,arguments);var e=(0,i.Z)(t);return e.setHours(0,0,0,0),e}var s=864e5;function u(t,e){(0,a.Z)(2,arguments);var r=o(t),i=o(e),u=r.getTime()-(0,n.Z)(r),c=i.getTime()-(0,n.Z)(i);return Math.round((u-c)/s)}},68730:function(t,e,r){"use strict";r.d(e,{Z:function(){return S}});var n=r(49474),i=r(77349),a=r(11640),o=r(19013),s=r(13882),u=r(83946);function c(t){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,e){if((0,s.Z)(2,arguments),!e||"object"!==c(e))return new Date(NaN);var r=e.years?(0,u.Z)(e.years):0,n=e.months?(0,u.Z)(e.months):0,f=e.weeks?(0,u.Z)(e.weeks):0,l=e.days?(0,u.Z)(e.days):0,h=e.hours?(0,u.Z)(e.hours):0,p=e.minutes?(0,u.Z)(e.minutes):0,d=e.seconds?(0,u.Z)(e.seconds):0,m=(0,o.Z)(t),g=n||r?(0,a.Z)(m,n+12*r):m,y=l||f?(0,i.Z)(g,l+7*f):g,v=p+60*h,b=d+60*v,w=1e3*b,E=new Date(y.getTime()+w);return E}var l=r(75401);function h(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function p(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e),i=h(r,n),a=Math.abs((0,l.Z)(r,n));r.setDate(r.getDate()-i*a);var u=Number(h(r,n)===-i),c=i*(a-u);return 0===c?0:c}Math.pow(10,8);var d=36e5,m=r(59910),g=r(93645);function y(t,e,r){(0,s.Z)(2,arguments);var n=(0,m.Z)(t,e)/d;return(0,g.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}function v(t,e,r){(0,s.Z)(2,arguments);var n=(0,m.Z)(t,e)/6e4;return(0,g.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}var b=r(82161),w=r(11699);function E(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e);return r.getFullYear()-n.getFullYear()}function T(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),i=(0,o.Z)(e),a=(0,n.Z)(r,i),u=Math.abs(E(r,i));r.setFullYear(1584),i.setFullYear(1584);var c=(0,n.Z)(r,i)===-a,f=a*(u-Number(c));return 0===f?0:f}function S(t){(0,s.Z)(1,arguments);var e=(0,o.Z)(t.start),r=(0,o.Z)(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(r.getTime()))throw new RangeError("End Date is invalid");var i={};i.years=Math.abs(T(r,e));var a=(0,n.Z)(r,e),u=f(e,{years:a*i.years});i.months=Math.abs((0,b.Z)(r,u));var c=f(u,{months:a*i.months});i.days=Math.abs(p(r,c));var l=f(c,{days:a*i.days});i.hours=Math.abs(y(r,l));var h=f(l,{hours:a*i.hours});i.minutes=Math.abs(v(r,h));var d=f(h,{minutes:a*i.minutes});return i.seconds=Math.abs((0,w.Z)(r,d)),i}},89144:function(t,e,r){var n,i="undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:{},a=r(25893);"undefined"!==typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=n},58908:function(t,e,r){var n;n="undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:{},t.exports=n},80645:function(t,e){e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<>1,f=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,a=p&(1<<-f)-1,p>>=-f,f+=s;f>0;a=256*a+t[e+l],l+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+l],l+=h,f-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,c=8*a-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(o++,u/=2),o+l>=f?(s=0,o=f):o+l>=1?(s=(e*u-1)*Math.pow(2,i),o+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*m}},27376:function(t){t.exports=function(t){if(!t)return!1;var r=e.call(t);return"[object Function]"===r||"function"===typeof t&&"[object RegExp]"!==r||"undefined"!==typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},27537:function(t,e){function r(t){if(t&&"object"===typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"===typeof t)return o[t];var r,a=String(t);return(r=n[a.toLowerCase()])?r:(r=i[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}r.isEventKey=function(t,e){if(t&&"object"===typeof t){var r=t.which||t.keyCode||t.charCode;if(null===r||void 0===r)return!1;if("string"===typeof e){var a;if(a=n[e.toLowerCase()])return a===r;if(a=i[e.toLowerCase()])return a===r}else if("number"===typeof e)return e===r;return!1}};var n=(e=t.exports=r).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=e.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n["f"+a]=a+111;for(a=0;a<10;a++)n["numpad "+a]=a+96;var o=e.names=e.title={};for(a in n)o[n[a]]=a;for(var s in i)n[s]=i[s]},9323:function(t,e,r){"use strict";r.d(e,{_b:function(){return m}});var n=r(94578),i=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var r=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(r,1),r>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var r=e.length,n=0;n-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(i),c=String.fromCharCode(9),f=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),r={};return e[1]&&(r.length=parseInt(e[1],10)),e[2]&&(r.offset=parseInt(e[2],10)),r},l=function(t){for(var e,r=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},i=r.length;i--;)""!==r[i]&&((e=/([^=]*)=(.*)/.exec(r[i]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},h=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}(0,n.Z)(e,t);var r=e.prototype;return r.push=function(t){var e,r,n=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce((function(e,r){var n=r(t);return n===t?e:e.concat([n])}),[t]).forEach((function(t){for(var i=0;i0&&(f.duration=t.duration),0===t.duration&&(f.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=c},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes});if("com.microsoft.playready"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:(0,s.Z)(t.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},"undefined"!==typeof t.attributes.IV&&(n.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else n=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,y=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){r={},t.uri&&(r.uri=t.uri),t.byterange&&(r.byterange=t.byterange),n&&(r.key=n)},"stream-inf":function(){this.manifest.playlists=c,this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes?(f.attributes||(f.attributes={}),(0,a.Z)(f.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var r=this.manifest.mediaGroups[t.attributes.TYPE];r[t.attributes["GROUP-ID"]]=r[t.attributes["GROUP-ID"]]||{},e=r[t.attributes["GROUP-ID"]],(o={default:/yes/i.test(t.attributes.DEFAULT)}).default?o.autoselect=!0:o.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(o.language=t.attributes.LANGUAGE),t.attributes.URI&&(o.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(o.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(o.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(o.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=o}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){y+=1,f.discontinuity=!0,this.manifest.discontinuityStarts.push(c.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),f.dateTimeString=t.dateTimeString,f.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,d.call(this,this.manifest))},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){f.cueOut=t.data},"cue-out-cont":function(){f.cueOutCont=t.data},"cue-in":function(){f.cueIn=t.data},skip:function(){this.manifest.skip=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;l=!0;var r=this.manifest.segments.length,n=p(t.attributes);f.parts=f.parts||[],f.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=b),b=n.byterange.offset+n.byterange.length);var i=f.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+i+" for segment #"+r,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(t,r){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+r+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var e=this.manifest.serverControl=p(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),d.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,r=p(t.attributes),n=r.type&&"PART"===r.type;f.preloadHints=f.preloadHints||[],f.preloadHints.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=n?b:0,n&&(b=r.byterange.offset+r.byterange.length)));var i=f.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+i+" for segment #"+e,t.attributes,["TYPE","URI"]),r.type)for(var a=0;ae.timeline?1:-1}));var e,r},x=function(t){var e,r,n=[];return e=t,r=function(t,e,r,i){n=n.concat(t.playlists||[])},I.forEach((function(t){for(var n in e.mediaGroups[t])for(var i in e.mediaGroups[t][n]){var a=e.mediaGroups[t][n][i];r(a,t,n,i)}})),n},C=function(t){var e=t.playlist,r=t.mediaSequence;e.mediaSequence=r,e.segments.forEach((function(t,r){t.number=e.mediaSequence+r}))},R=function(t){var e=t.oldManifest,r=t.newManifest,n=e.playlists.concat(x(e)),i=r.playlists.concat(x(r));return r.timelineStarts=O([e.timelineStarts,r.timelineStarts]),function(t){var e=t.oldPlaylists,r=t.newPlaylists,n=t.timelineStarts;r.forEach((function(t){t.discontinuitySequence=p(n,(function(e){return e.timeline===t.timeline}));var r=function(t,e){for(var r=0;rr.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--);r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),C({playlist:t,mediaSequence:r.segments[a].number})}}))}({oldPlaylists:n,newPlaylists:i,timelineStarts:r.timelineStarts}),r},D=function(t){return t&&t.uri+"-"+function(t){var e;return e="bigint"===typeof t.offset||"bigint"===typeof t.length?a().BigInt(t.offset)+a().BigInt(t.length)-a().BigInt(1):t.offset+t.length-1,t.offset+"-"+e}(t.byterange)},M=function(t){return f(t.reduce((function(t,e){var r=e.attributes.id+(e.attributes.lang||"");if(t[r]){var n;if(e.segments)e.segments[0]&&(e.segments[0].discontinuity=!0),(n=t[r].segments).push.apply(n,e.segments);e.attributes.contentProtection&&(t[r].attributes.contentProtection=e.attributes.contentProtection)}else t[r]=e,t[r].attributes.timelineStarts=[];return t[r].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t}),{})).map((function(t){var e,r;return t.discontinuityStarts=(e=t.segments||[],r="discontinuity",e.reduce((function(t,e,n){return e[r]&&t.push(n),t}),[])),t}))},P=function(t,e){var r=D(t.sidx),n=r&&e[r]&&e[r].sidx;return n&&A(t,n,t.sidx.resolvedUri),t},L=function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var r in t)t[r]=P(t[r],e);return t},U=function(t){var e,r=t.attributes,n=t.segments,i=t.sidx,a=t.discontinuityStarts,o={attributes:(e={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuityStarts:a,timelineStarts:r.timelineStarts,segments:n};return r.contentProtection&&(o.contentProtection=r.contentProtection),i&&(o.sidx=i),o},k=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},B=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},_=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},X=function(t){return t?Object.keys(t).reduce((function(e,r){var n=t[r];return e.concat(n.playlists)}),[]):[]},j=function(t){var e,r=t.dashPlaylists,n=t.locations,i=t.sidxMapping,a=void 0===i?{}:i,o=t.previousManifest;if(!r.length)return{};var s=r[0].attributes,u=s.sourceDuration,c=s.type,f=s.suggestedPresentationDelay,l=s.minimumUpdatePeriod,h=M(r.filter(k)).map(U),d=M(r.filter(B)),m=M(r.filter(_)),g=r.map((function(t){return t.attributes.captionServices})).filter(Boolean),y={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(e={AUDIO:{},VIDEO:{}},e["CLOSED-CAPTIONS"]={},e.SUBTITLES={},e),uri:"",duration:u,playlists:L(h,a)};l>=0&&(y.minimumUpdatePeriod=1e3*l),n&&(y.locations=n),"dynamic"===c&&(y.suggestedPresentationDelay=f);var v,b,w=0===y.playlists.length,E=d.length?function(t,e,r){var n;void 0===e&&(e={}),void 0===r&&(r=!1);var i=t.reduce((function(t,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",s=i.attributes.label||"main";if(o&&!i.attributes.label){var u=a?" ("+a+")":"";s=""+i.attributes.lang+u}t[s]||(t[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var c=P(function(t,e){var r,n=t.attributes,i=t.segments,a=t.sidx,o=t.mediaSequence,s=t.discontinuitySequence,u=t.discontinuityStarts,c={attributes:(r={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},r["PROGRAM-ID"]=1,r),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:s,discontinuityStarts:u,timelineStarts:n.timelineStarts,mediaSequence:o,segments:i};return n.contentProtection&&(c.contentProtection=n.contentProtection),a&&(c.sidx=a),e&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c}(i,r),e);return t[s].playlists.push(c),"undefined"===typeof n&&"main"===a&&((n=i).default=!0),t}),{});return n||(i[Object.keys(i)[0]].default=!0),i}(d,a,w):null,T=m.length?function(t,e){return void 0===e&&(e={}),t.reduce((function(t,r){var n=r.attributes.lang||"text";return t[n]||(t[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),t[n].playlists.push(P(function(t){var e,r=t.attributes,n=t.segments,i=t.mediaSequence,a=t.discontinuityStarts,o=t.discontinuitySequence;"undefined"===typeof n&&(n=[{uri:r.baseUrl,timeline:r.periodStart,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var s=((e={NAME:r.id,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e);return r.codecs&&(s.CODECS=r.codecs),{attributes:s,uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,timelineStarts:r.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:i,segments:n}}(r),e)),t}),{})}(m,a):null,S=h.concat(X(E),X(T)),N=S.map((function(t){return t.timelineStarts}));return y.timelineStarts=O(N),v=S,b=y.timelineStarts,v.forEach((function(t){t.mediaSequence=0,t.discontinuitySequence=p(b,(function(e){return e.timeline===t.timeline})),t.segments&&t.segments.forEach((function(t,e){t.number=e}))})),E&&(y.mediaGroups.AUDIO.audio=E),T&&(y.mediaGroups.SUBTITLES.subs=T),g.length&&(y.mediaGroups["CLOSED-CAPTIONS"].cc=g.reduce((function(t,e){return e?(e.forEach((function(e){var r=e.channel,n=e.language;t[n]={autoselect:!1,default:!1,instreamId:r,language:n},e.hasOwnProperty("aspectRatio")&&(t[n].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[n].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[n]["3D"]=e["3D"])})),t):t}),{})),o?R({oldManifest:o,newManifest:y}):y},F=function(t,e,r){var n=t.NOW,i=t.clientOffset,a=t.availabilityStartTime,o=t.timescale,s=void 0===o?1:o,u=t.periodStart,c=void 0===u?0:u,f=t.minimumUpdatePeriod,l=(n+i)/1e3+(void 0===f?0:f)-(a+c);return Math.ceil((l*s-e)/r)},Z=function(t,e){for(var r=t.type,n=t.minimumUpdatePeriod,i=void 0===n?0:n,a=t.media,o=void 0===a?"":a,s=t.sourceDuration,u=t.timescale,c=void 0===u?1:u,f=t.startNumber,l=void 0===f?1:f,h=t.periodStart,p=[],d=-1,m=0;md&&(d=b);var w=void 0;if(v<0){var E=m+1;w=E===e.length?"dynamic"===r&&i>0&&o.indexOf("$Number$")>0?F(t,d,y):(s*c-d)/y:(e[E].t-d)/y}else w=v+1;for(var T=l+p.length+w,S=l+p.length;S=i?a:""+new Array(i-a.length+1).join("0")+a)}}(e))},H=function(t,e){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=w({baseUrl:t.baseUrl,source:G(a.sourceURL,r),range:a.range}),s=function(t,e){return t.duration||e?t.duration?S(t):Z(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]}(t,e);return s.map((function(e){r.Number=e.number,r.Time=e.time;var i=G(t.media||"",r),a=t.timescale||1,s=t.presentationTimeOffset||0,u=t.periodStart+(e.time-s)/a;return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:(0,n.Z)(t.baseUrl||"",i),map:o,number:e.number,presentationTime:u}}))},q=function(t,e){var r=t.duration,n=t.segmentUrls,i=void 0===n?[]:n,a=t.periodStart;if(!r&&!e||r&&e)throw new Error(v);var o,s=i.map((function(e){return function(t,e){var r=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,a=w({baseUrl:r,source:i.sourceURL,range:i.range}),o=w({baseUrl:r,source:e.media,range:e.mediaRange});return o.map=a,o}(t,e)}));return r&&(o=S(t)),e&&(o=Z(t,e)),o.map((function(e,r){if(s[r]){var n=s[r],i=t.timescale||1,o=t.presentationTimeOffset||0;return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n.presentationTime=a+(e.time-o)/i,n}})).filter((function(t){return t}))},V=function(t){var e,r,n=t.attributes,i=t.segmentInfo;i.template?(r=H,e=c(n,i.template)):i.base?(r=N,e=c(n,i.base)):i.list&&(r=q,e=c(n,i.list));var a={attributes:n};if(!r)return a;var o=r(e,i.segmentTimeline);if(e.duration){var s=e,u=s.duration,f=s.timescale,l=void 0===f?1:f;e.duration=u/l}else o.length?e.duration=o.reduce((function(t,e){return Math.max(t,Math.ceil(e.duration))}),0):e.duration=0;return a.attributes=e,a.segments=o,i.base&&e.indexRange&&(a.sidx=o[0],a.segments=[]),a},z=function(t,e){return h(t.childNodes).filter((function(t){return t.tagName===e}))},Y=function(t){return t.textContent.trim()},W=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var r=e.slice(1),n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(u||0)},$={mediaPresentationDuration:function(t){return W(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return W(t)},suggestedPresentationDelay:function(t){return W(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return W(t)},start:function(t){return W(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?W(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},J=function(t){return t&&t.attributes?h(t.attributes).reduce((function(t,e){var r=$[e.name]||$.DEFAULT;return t[e.name]=r(e.value),t}),{}):{}},Q={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"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:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},tt=function(t,e){return e.length?l(t.map((function(t){return e.map((function(e){return(0,n.Z)(t,Y(e))}))}))):t},et=function(t){var e=z(t,"SegmentTemplate")[0],r=z(t,"SegmentList")[0],n=r&&z(r,"SegmentURL").map((function(t){return c({tag:"SegmentURL"},J(t))})),i=z(t,"SegmentBase")[0],a=r||e,o=a&&z(a,"SegmentTimeline")[0],s=r||i||e,u=s&&z(s,"Initialization")[0],f=e&&J(e);f&&u?f.initialization=u&&J(u):f&&f.initialization&&(f.initialization={sourceURL:f.initialization});var l={template:f,segmentTimeline:o&&z(o,"S").map((function(t){return J(t)})),list:r&&c(J(r),{segmentUrls:n,initialization:J(u)}),base:i&&c(J(i),{initialization:J(u)})};return Object.keys(l).forEach((function(t){l[t]||delete l[t]})),l},rt=function(t,e,r){return function(n){var i,a=J(n),s=tt(e,z(n,"BaseURL")),u=z(n,"Role")[0],f={role:J(u)},h=c(t,a,f),p=z(n,"Accessibility")[0],d="urn:scte:dash:cc:cea-608:2015"===(i=J(p)).schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e,r;if(r=t,/^CC\d=/.test(t)){var n=t.split("=");e=n[0],r=n[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:r}})):"urn:scte:dash:cc:cea-708:2015"===i.schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var r=t.split("="),n=r[0],i=r[1],a=void 0===i?"":i;e.channel=n,e.language=t,a.split(",").forEach((function(t){var r=t.split(":"),n=r[0],i=r[1];"lang"===n?e.language=i:"er"===n?e.easyReader=Number(i):"war"===n?e.aspectRatio=Number(i):"3D"===n&&(e["3D"]=Number(i))}))}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e})):void 0;d&&(h=c(h,{captionServices:d}));var m=z(n,"Label")[0];if(m&&m.childNodes.length){var g=m.childNodes[0].nodeValue.trim();h=c(h,{label:g})}var y=z(n,"ContentProtection").reduce((function(t,e){var r=J(e);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());var n=Q[r.schemeIdUri];if(n){t[n]={attributes:r};var i=z(e,"cenc:pssh")[0];if(i){var a=Y(i);t[n].pssh=a&&(0,o.Z)(a)}}return t}),{});Object.keys(y).length&&(h=c(h,{contentProtection:y}));var v=et(n),b=z(n,"Representation"),w=c(r,v);return l(b.map(function(t,e,r){return function(n){var i=z(n,"BaseURL"),a=tt(e,i),o=c(t,J(n)),s=et(n);return a.map((function(t){return{segmentInfo:c(r,s),attributes:c(o,{baseUrl:t})}}))}}(h,s,w)))}},nt=function(t,e){return function(r,n){var i=tt(e,z(r.node,"BaseURL")),a=c(t,{periodStart:r.attributes.start});"number"===typeof r.attributes.duration&&(a.periodDuration=r.attributes.duration);var o=z(r.node,"AdaptationSet"),s=et(r.node);return l(o.map(rt(a,i,s)))}},it=function(t){if(""===t)throw new Error(m);var e,r,n=new s.DOMParser;try{r=(e=n.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(i){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw new Error(g);return r},at=function(t,e){void 0===e&&(e={});var r=function(t,e){void 0===e&&(e={});var r=e,n=r.manifestUri,i=void 0===n?"":n,a=r.NOW,o=void 0===a?Date.now():a,s=r.clientOffset,u=void 0===s?0:s,c=z(t,"Period");if(!c.length)throw new Error(d);var f=z(t,"Location"),h=J(t),p=tt([i],z(t,"BaseURL"));h.type=h.type||"static",h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=o,h.clientOffset=u,f.length&&(h.locations=f.map(Y));var m=[];return c.forEach((function(t,e){var r=J(t),n=m[e-1];r.start=function(t){var e=t.attributes,r=t.priorPeriodAttributes,n=t.mpdType;return"number"===typeof e.start?e.start:r&&"number"===typeof r.start&&"number"===typeof r.duration?r.start+r.duration:r||"static"!==n?null:0}({attributes:r,priorPeriodAttributes:n?n.attributes:null,mpdType:h.type}),m.push({node:t,attributes:r})})),{locations:h.locations,representationInfo:l(m.map(nt(h,p)))}}(it(t),e),n=r.representationInfo.map(V);return j({dashPlaylists:n,locations:r.locations,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest})},ot=function(t){return function(t){var e=z(t,"UTCTiming")[0];if(!e)return null;var r=J(e);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;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":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw new Error(b)}return r}(it(t))}},84221:function(t,e,r){var n=r(46894).getUint64;t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=e.getUint32(i),r.firstOffset=e.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(t.subarray(i)),r.firstOffset=n(t.subarray(i+8)),i+=16),i+=2;var a=e.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(128&t[i])>>>7,referencedSize:2147483647&e.getUint32(i),subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(128&t[i+8]),sapType:(112&t[i+8])>>>4,sapDeltaTime:268435455&e.getUint32(i+8)});return r}},51489:function(t){var e,r,n,i,a,o,s,u=9e4;e=function(t){return t*u},r=function(t,e){return t*e},n=function(t){return t/u},i=function(t,e){return t/e},a=function(t,r){return e(i(t,r))},o=function(t,e){return r(n(t),e)},s=function(t,e,r){return n(r?t:t-e)},t.exports={ONE_SECOND_IN_TS:u,secondsToVideoTs:e,secondsToAudioTs:r,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:a,videoTsToAudioTs:o,metadataTsToSeconds:s}},46894:function(t){var e=Math.pow(2,32);t.exports={getUint64:function(t){var r,n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getBigUint64?(r=n.getBigUint64(0))0;function i(t,e,r,n){t.addEventListener?t.addEventListener(e,r,n):t.attachEvent&&t.attachEvent("on".concat(e),(function(){r(window.event)}))}function a(t,e){for(var r=e.slice(0,e.length-1),n=0;n=0;)e[r-1]+=",",e.splice(r,1),r=e.lastIndexOf("");return e}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":n?173:189,"=":n?61:187,";":n?59:186,"'":222,"[":219,"]":221,"\\":220},u={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},c={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},f={16:!1,18:!1,17:!1,91:!1},l={},h=1;h<20;h++)s["f".concat(h)]=111+h;var p=[],d=!1,m="all",g=[],y=function(t){return s[t.toLowerCase()]||u[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function v(t){m=t||"all"}function b(){return m||"all"}var w=function(t){var e=t.key,r=t.scope,n=t.method,i=t.splitKey,s=void 0===i?"+":i;o(e).forEach((function(t){var e=t.split(s),i=e.length,o=e[i-1],c="*"===o?"*":y(o);if(l[c]){r||(r=b());var f=i>1?a(u,e):[];l[c]=l[c].filter((function(t){return!((!n||t.method===n)&&t.scope===r&&function(t,e){for(var r=t.length>=e.length?t:e,n=t.length>=e.length?e:t,i=!0,a=0;a0,f)Object.prototype.hasOwnProperty.call(f,a)&&(!f[a]&&e.mods.indexOf(+a)>-1||f[a]&&-1===e.mods.indexOf(+a))&&(i=!1);(0!==e.mods.length||f[16]||f[18]||f[17]||f[91])&&!i&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function T(t,e){var r=l["*"],n=t.keyCode||t.which||t.charCode;if(S.filter.call(this,t)){if(93!==n&&224!==n||(n=91),-1===p.indexOf(n)&&229!==n&&p.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var r=c[e];t[e]&&-1===p.indexOf(r)?p.push(r):!t[e]&&p.indexOf(r)>-1?p.splice(p.indexOf(r),1):"metaKey"===e&&t[e]&&3===p.length&&(t.ctrlKey||t.shiftKey||t.altKey||(p=p.slice(p.indexOf(r))))})),n in f){for(var i in f[n]=!0,u)u[i]===n&&(S[i]=!0);if(!r)return}for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(f[a]=t[c[a]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),f[17]=!0,f[18]=!0);var o=b();if(r)for(var s=0;s1&&(s=a(u,t)),(t="*"===(t=t[t.length-1])?"*":y(t))in l||(l[t]=[]),l[t].push({keyup:v,keydown:b,scope:c,mods:s,shortcut:n[m],method:r,key:n[m],splitKey:w,element:h});"undefined"!==typeof h&&!function(t){return g.indexOf(t)>-1}(h)&&window&&(g.push(h),i(h,"keydown",(function(t){T(t,h)}),E),d||(d=!0,i(window,"focus",(function(){p=[]}),E)),i(h,"keyup",(function(t){T(t,h),function(t){var e=t.keyCode||t.which||t.charCode,r=p.indexOf(e);if(r>=0&&p.splice(r,1),t.key&&"meta"===t.key.toLowerCase()&&p.splice(0,p.length),93!==e&&224!==e||(e=91),e in f)for(var n in f[e]=!1,u)u[n]===e&&(S[n]=!1)}(t)}),E))}var N={setScope:v,getScope:b,deleteScope:function(t,e){var r,n;for(var i in t||(t=b()),l)if(Object.prototype.hasOwnProperty.call(l,i))for(r=l[i],n=0;n1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(l).forEach((function(r){var n=l[r].find((function(r){return r.scope===e&&r.shortcut===t}));n&&n.method&&n.method()}))},unbind:function(t){if("undefined"===typeof t)Object.keys(l).forEach((function(t){return delete l[t]}));else if(Array.isArray(t))t.forEach((function(t){t.key&&w(t)}));else if("object"===typeof t)t.key&&w(t);else if("string"===typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}function s(){this.values=i(null)}function u(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"===typeof i[a]){var o=i[a].split(r);if(2===o.length)e(o[0].trim(),o[1].trim())}}function c(t,e,r){var n=t;function i(){var e=o(t);if(null===e)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(){t=t.replace(/^\s+/,"")}if(c(),e.startTime=i(),c(),"--\x3e"!==t.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),c(),e.endTime=i(),c(),function(t,e){var n=new s;u(t,(function(t,e){switch(t){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===e){n.set(t,r[i].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),o=a[0];n.integer(t,o),n.percent(t,o)&&n.set("snapToLines",!1),n.alt(t,o,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(i){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(i){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(i){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}a.prototype=i(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var n=0;n=0&&e<=100)&&(this.set(t,e),!0)}};var f=n.createElement&&n.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},d={rt:"ruby"};function m(t,e){function r(){if(!e)return null;var t,r=e.match(/^([^<]*)(<[^>]*>?)?/);return t=r[1]?r[1]:r[2],e=e.substr(t.length),t}function n(t,e){return!d[e.localName]||d[e.localName]===t.localName}function i(e,r){var n=l[e];if(!n)return null;var i=t.document.createElement(n),a=p[e];return a&&r&&(i[a]=r.trim()),i}for(var a,s,u=t.document.createElement("div"),c=u,m=[];null!==(a=r());)if("<"!==a[0])c.appendChild(t.document.createTextNode((s=a,f.innerHTML=s,s=f.textContent,f.textContent="",s)));else{if("/"===a[1]){m.length&&m[m.length-1]===a.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var g,y=o(a.substr(1,a.length-2));if(y){g=t.document.createProcessingInstruction("timestamp",y),c.appendChild(g);continue}var v=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(g=i(v[1],v[3])))continue;if(!n(c,g))continue;if(v[2]){var b=v[2].split(".");b.forEach((function(t){var e=/^bg_/.test(t),r=e?t.slice(3):t;if(h.hasOwnProperty(r)){var n=e?"background-color":"color",i=h[r];g.style[n]=i}})),g.className=b.join(" ")}m.push(v[1]),c.appendChild(g),c=g}return u}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function y(t){for(var e=0;e=r[0]&&t<=r[1])return!0}return!1}function v(t){var e=[],r="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var r=e.childNodes.length-1;r>=0;r--)t.push(e.childNodes[r])}function i(t){if(!t||!t.length)return null;var e=t.pop(),r=e.textContent||e.innerText;if(r){var a=r.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):r}return"ruby"===e.tagName?i(t):e.childNodes?(n(t,e),i(t)):void 0}for(n(e,t);r=i(e);)for(var a=0;a=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,r=e.textTrackList,n=0,i=0;il&&(f=f<0?-1:1,f*=Math.ceil(l/c)*c),o<0&&(f+=""===a.vertical?r.height:r.width,s=s.reverse()),i.move(h,f)}else{var p=i.lineHeight/r.height*100;switch(a.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],i=new E(e)}var d=function(t,e){for(var i,a=new E(t),o=1,s=0;su&&(i=new E(t),o=u),t=new E(a)}return i||a}(i,s);e.move(d.toCSSCompatValues(r))}function S(){}b.prototype.applyStyles=function(t,e){for(var r in e=e||this.div,t)t.hasOwnProperty(r)&&(e.style[r]=t[r])},b.prototype.formatStyle=function(t,e){return 0===t?0:t+e},w.prototype=i(b.prototype),w.prototype.constructor=w,E.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},E.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},E.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},E.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},E.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},E.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},E.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,r=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||r}},S.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!==typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},S.convertCueToDOMTree=function(t,e){return t&&e?m(t,e):null};S.processCues=function(t,e,r){if(!t||!e||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),function(t){for(var e=0;e100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=n(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");y=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(t){var e=n(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");v=e,this.hasBeenReset=!0}}}),this.displayState=void 0}i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=i},13710:function(t){var e={"":!0,up:!0};function r(t){return"number"===typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,n=3,i=0,a=100,o=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw new Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!r(t))throw new Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var r=function(t){return"string"===typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);!1===r?console.warn("Scroll: an invalid or illegal string was specified."):u=r}}})}},10434:function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;e0){var _=g[0]/2;R.paddingLeft=_,R.paddingRight=_}if(g&&g[1]>0&&!y){var H=g[1]/2;R.paddingTop=H,R.paddingBottom=H}return P&&(R.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(P),!1!==h||R.minWidth||(R.minWidth=0)),l.createElement("div",(0,a.Z)({},k,{style:(0,a.Z)((0,a.Z)({},R),z),className:j,ref:t}),O)}))},99134:function(e,t,n){var r=(0,n(67294).createContext)({});t.Z=r},79216:function(e,t,n){n.d(t,{Z:function(){return ie}});var r=n(87462),a=n(71002),o=n(99611),c=n(1413),i=n(4942),l=n(97685),s=n(45987),u=n(67294),f=n(94184),d=n.n(f),v=n(27678),m=n(21770),p=n(95173),g=n(64019),h=n(15105),y=n(80334),Z=n(75164);function x(e,t,n,r){var a=t+n,o=(n-r)/2;if(n>r){if(t>0)return(0,i.Z)({},e,o);if(t<0&&ar)return(0,i.Z)({},e,t<0?o:-o);return{}}var C=["visible","onVisibleChange","getContainer","current","countRender"],w=u.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),b=w.Provider,E=function(e){var t=e.previewPrefixCls,n=void 0===t?"rc-image-preview":t,o=e.children,c=e.icons,i=void 0===c?{}:c,f=e.preview,d="object"===(0,a.Z)(f)?f:{},v=d.visible,p=void 0===v?void 0:v,g=d.onVisibleChange,h=void 0===g?void 0:g,y=d.getContainer,Z=void 0===y?void 0:y,x=d.current,w=void 0===x?0:x,E=d.countRender,N=void 0===E?void 0:E,O=(0,s.Z)(d,C),P=(0,u.useState)(new Map),z=(0,l.Z)(P,2),k=z[0],S=z[1],M=(0,u.useState)(),R=(0,l.Z)(M,2),_=R[0],H=R[1],L=(0,m.Z)(!!p,{value:p,onChange:h}),I=(0,l.Z)(L,2),V=I[0],B=I[1],A=(0,u.useState)(null),T=(0,l.Z)(A,2),W=T[0],q=T[1],D=void 0!==p,F=Array.from(k.keys())[w],G=new Map(Array.from(k).filter((function(e){return!!(0,l.Z)(e,2)[1].canPreview})).map((function(e){var t=(0,l.Z)(e,2);return[t[0],t[1].url]})));return u.useEffect((function(){H(F)}),[F]),u.useEffect((function(){!V&&D&&H(F)}),[F,D,V]),u.createElement(b,{value:{isPreviewGroup:!0,previewUrls:G,setPreviewUrls:S,current:_,setCurrent:H,setShowPreview:B,setMousePosition:q,registerImage:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=function(){S((function(t){var n=new Map(t);return n.delete(e)?n:t}))};return S((function(r){return new Map(r).set(e,{url:t,canPreview:n})})),r}}},o,u.createElement(j,(0,r.Z)({"aria-hidden":!V,visible:V,prefixCls:n,onClose:function(e){e.stopPropagation(),B(!1),q(null)},mousePosition:W,src:G.get(_),icons:i,getContainer:Z,countRender:N},O)))},N=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","countRender"],O=u.useState,P=u.useEffect,z=u.useCallback,k=u.useRef,S=u.useContext,M={x:0,y:0},j=function(e){var t,n=e.prefixCls,a=e.src,o=e.alt,f=e.onClose,m=(e.afterClose,e.visible),C=e.icons,b=void 0===C?{}:C,E=e.rootClassName,j=e.countRender,R=(0,s.Z)(e,N),_=b.rotateLeft,H=b.rotateRight,L=b.zoomIn,I=b.zoomOut,V=b.close,B=b.left,A=b.right,T=O(1),W=(0,l.Z)(T,2),q=W[0],D=W[1],F=O(0),G=(0,l.Z)(F,2),X=G[0],Y=G[1],U=function(e){var t=u.useRef(null),n=u.useState(e),r=(0,l.Z)(n,2),a=r[0],o=r[1],i=u.useRef([]);return u.useEffect((function(){return function(){return t.current&&Z.Z.cancel(t.current)}}),[]),[a,function(e){null===t.current&&(i.current=[],t.current=(0,Z.Z)((function(){o((function(e){var n=e;return i.current.forEach((function(e){n=(0,c.Z)((0,c.Z)({},n),e)})),t.current=null,n}))}))),i.current.push(e)}]}(M),K=(0,l.Z)(U,2),Q=K[0],$=K[1],J=k(),ee=k({originX:0,originY:0,deltaX:0,deltaY:0}),te=O(!1),ne=(0,l.Z)(te,2),re=ne[0],ae=ne[1],oe=S(w),ce=oe.previewUrls,ie=oe.current,le=oe.isPreviewGroup,se=oe.setCurrent,ue=ce.size,fe=Array.from(ce.keys()),de=fe.indexOf(ie),ve=le?ce.get(ie):a,me=le&&ue>1,pe=O({wheelDirection:0}),ge=(0,l.Z)(pe,2),he=ge[0],ye=ge[1],Ze=function(){D((function(e){return e+1})),$(M)},xe=function(){q>1&&D((function(e){return e-1})),$(M)},Ce=d()((0,i.Z)({},"".concat(n,"-moving"),re)),we="".concat(n,"-operations-operation"),be="".concat(n,"-operations-icon"),Ee=[{icon:V,onClick:f,type:"close"},{icon:L,onClick:Ze,type:"zoomIn"},{icon:I,onClick:xe,type:"zoomOut",disabled:1===q},{icon:H,onClick:function(){Y((function(e){return e+90}))},type:"rotateRight"},{icon:_,onClick:function(){Y((function(e){return e-90}))},type:"rotateLeft"}],Ne=function(){if(m&&re){var e=J.current.offsetWidth*q,t=J.current.offsetHeight*q,n=J.current.getBoundingClientRect(),r=n.left,a=n.top,o=X%180!==0;ae(!1);var i=function(e,t,n,r){var a=(0,v.g1)(),o=a.width,i=a.height,l=null;return e<=o&&t<=i?l={x:0,y:0}:(e>o||t>i)&&(l=(0,c.Z)((0,c.Z)({},x("x",n,e,o)),x("y",r,t,i))),l}(o?t:e,o?e:t,r,a);i&&$((0,c.Z)({},i))}},Oe=function(e){m&&re&&$({x:e.pageX-ee.current.deltaX,y:e.pageY-ee.current.deltaY})},Pe=function(e){if(m){e.preventDefault();var t=e.deltaY;ye({wheelDirection:t})}},ze=z((function(e){m&&me&&(e.preventDefault(),e.keyCode===h.Z.LEFT?de>0&&se(fe[de-1]):e.keyCode===h.Z.RIGHT&&de0?xe():e<0&&Ze()}),[he]),P((function(){var e,t,n=(0,g.Z)(window,"mouseup",Ne,!1),r=(0,g.Z)(window,"mousemove",Oe,!1),a=(0,g.Z)(window,"wheel",Pe,{passive:!1}),o=(0,g.Z)(window,"keydown",ze,!1);try{window.top!==window.self&&(e=(0,g.Z)(window.top,"mouseup",Ne,!1),t=(0,g.Z)(window.top,"mousemove",Oe,!1))}catch(c){(0,y.Kp)(!1,"[rc-image] ".concat(c))}return function(){n.remove(),r.remove(),a.remove(),o.remove(),e&&e.remove(),t&&t.remove()}}),[m,re,ze]),u.createElement(p.Z,(0,r.Z)({transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:n,onClose:f,afterClose:function(){D(1),Y(0),$(M)},visible:m,wrapClassName:Ce,rootClassName:E},R),u.createElement("ul",{className:"".concat(n,"-operations")},me&&u.createElement("li",{className:"".concat(n,"-operations-progress")},null!==(t=null===j||void 0===j?void 0:j(de+1,ue))&&void 0!==t?t:"".concat(de+1," / ").concat(ue)),Ee.map((function(e){var t=e.icon,r=e.onClick,a=e.type,o=e.disabled;return u.createElement("li",{className:d()(we,(0,i.Z)({},"".concat(n,"-operations-operation-disabled"),!!o)),onClick:r,key:a},u.isValidElement(t)?u.cloneElement(t,{className:be}):t)}))),u.createElement("div",{className:"".concat(n,"-img-wrapper"),style:{transform:"translate3d(".concat(Q.x,"px, ").concat(Q.y,"px, 0)")}},u.createElement("img",{width:e.width,height:e.height,onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),ee.current.deltaX=e.pageX-Q.x,ee.current.deltaY=e.pageY-Q.y,ee.current.originX=Q.x,ee.current.originY=Q.y,ae(!0))},onDoubleClick:function(){m&&(1!==q&&D(1),Q.x===M.x&&Q.y===M.y||$(M))},ref:J,className:"".concat(n,"-img"),src:ve,alt:o,style:{transform:"scale3d(".concat(q,", ").concat(q,", 1) rotate(").concat(X,"deg)")}})),me&&u.createElement("div",{className:d()("".concat(n,"-switch-left"),(0,i.Z)({},"".concat(n,"-switch-left-disabled"),0===de)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de>0&&se(fe[de-1])}},B),me&&u.createElement("div",{className:d()("".concat(n,"-switch-right"),(0,i.Z)({},"".concat(n,"-switch-right-disabled"),de===ue-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),de0?_[0]/-2:void 0,V=null!=_[1]&&_[1]>0?_[1]/-2:void 0;if(I&&(L.marginLeft=I,L.marginRight=I),M){var B=(0,c.Z)(_,2);L.rowGap=B[1]}else V&&(L.marginTop=V,L.marginBottom=V);var A=(0,c.Z)(_,2),T=A[0],W=A[1],q=s.useMemo((function(){return{gutter:[T,W],wrap:w,supportFlexGap:M}}),[T,W,w,M]);return s.createElement(m.Z.Provider,{value:q},s.createElement("div",(0,r.Z)({},b,{className:H,style:(0,r.Z)((0,r.Z)({},L),y),ref:t}),Z))}))},26303:function(e,t,n){n.d(t,{Z:function(){return P}});var r=n(4942),a=n(87462),o=n(71002),c=n(94184),i=n.n(c),l=n(67294),s=n(53124),u=n(98423),f=function(e){var t,n,o=e.prefixCls,c=e.className,s=e.style,u=e.size,f=e.shape,d=i()((t={},(0,r.Z)(t,"".concat(o,"-lg"),"large"===u),(0,r.Z)(t,"".concat(o,"-sm"),"small"===u),t)),v=i()((n={},(0,r.Z)(n,"".concat(o,"-circle"),"circle"===f),(0,r.Z)(n,"".concat(o,"-square"),"square"===f),(0,r.Z)(n,"".concat(o,"-round"),"round"===f),n)),m=l.useMemo((function(){return"number"===typeof u?{width:u,height:u,lineHeight:"".concat(u,"px")}:{}}),[u]);return l.createElement("span",{className:i()(o,d,v,c),style:(0,a.Z)((0,a.Z)({},m),s)})},d=function(e){var t=e.prefixCls,n=e.className,o=e.active,c=e.shape,d=void 0===c?"circle":c,v=e.size,m=void 0===v?"default":v,p=(0,l.useContext(s.E_).getPrefixCls)("skeleton",t),g=(0,u.Z)(e,["prefixCls","className"]),h=i()(p,"".concat(p,"-element"),(0,r.Z)({},"".concat(p,"-active"),o),n);return l.createElement("div",{className:h},l.createElement(f,(0,a.Z)({prefixCls:"".concat(p,"-avatar"),shape:d,size:m},g)))},v=function(e){var t,n=e.prefixCls,o=e.className,c=e.active,d=e.block,v=void 0!==d&&d,m=e.size,p=void 0===m?"default":m,g=(0,l.useContext(s.E_).getPrefixCls)("skeleton",n),h=(0,u.Z)(e,["prefixCls"]),y=i()(g,"".concat(g,"-element"),(t={},(0,r.Z)(t,"".concat(g,"-active"),c),(0,r.Z)(t,"".concat(g,"-block"),v),t),o);return l.createElement("div",{className:y},l.createElement(f,(0,a.Z)({prefixCls:"".concat(g,"-button"),size:p},h)))},m=n(1413),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},g=n(42135),h=function(e,t){return l.createElement(g.Z,(0,m.Z)((0,m.Z)({},e),{},{ref:t,icon:p}))};h.displayName="DotChartOutlined";var y=l.forwardRef(h),Z=function(e){var t=e.prefixCls,n=e.className,a=e.style,o=e.active,c=e.children,u=(0,l.useContext(s.E_).getPrefixCls)("skeleton",t),f=i()(u,"".concat(u,"-element"),(0,r.Z)({},"".concat(u,"-active"),o),n),d=null!==c&&void 0!==c?c:l.createElement(y,null);return l.createElement("div",{className:f},l.createElement("div",{className:i()("".concat(u,"-image"),n),style:a},d))},x=function(e){var t=e.prefixCls,n=e.className,a=e.style,o=e.active,c=(0,l.useContext(s.E_).getPrefixCls)("skeleton",t),u=i()(c,"".concat(c,"-element"),(0,r.Z)({},"".concat(c,"-active"),o),n);return l.createElement("div",{className:u},l.createElement("div",{className:i()("".concat(c,"-image"),n),style:a},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(c,"-image-svg")},l.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(c,"-image-path")}))))},C=function(e){var t,n=e.prefixCls,o=e.className,c=e.active,d=e.block,v=e.size,m=void 0===v?"default":v,p=(0,l.useContext(s.E_).getPrefixCls)("skeleton",n),g=(0,u.Z)(e,["prefixCls"]),h=i()(p,"".concat(p,"-element"),(t={},(0,r.Z)(t,"".concat(p,"-active"),c),(0,r.Z)(t,"".concat(p,"-block"),d),t),o);return l.createElement("div",{className:h},l.createElement(f,(0,a.Z)({prefixCls:"".concat(p,"-input"),size:m},g)))},w=n(74902),b=function(e){var t=function(t){var n=e.width,r=e.rows,a=void 0===r?2:r;return Array.isArray(n)?n[t]:a-1===t?n:void 0},n=e.prefixCls,r=e.className,a=e.style,o=e.rows,c=(0,w.Z)(Array(o)).map((function(e,n){return l.createElement("li",{key:n,style:{width:t(n)}})}));return l.createElement("ul",{className:i()(n,r),style:a},c)},E=function(e){var t=e.prefixCls,n=e.className,r=e.width,o=e.style;return l.createElement("h3",{className:i()(t,n),style:(0,a.Z)({width:r},o)})};function N(e){return e&&"object"===(0,o.Z)(e)?e:{}}var O=function(e){var t=e.prefixCls,n=e.loading,o=e.className,c=e.style,u=e.children,d=e.avatar,v=void 0!==d&&d,m=e.title,p=void 0===m||m,g=e.paragraph,h=void 0===g||g,y=e.active,Z=e.round,x=l.useContext(s.E_),C=x.getPrefixCls,w=x.direction,O=C("skeleton",t);if(n||!("loading"in e)){var P,z,k,S=!!v,M=!!p,j=!!h;if(S){var R=(0,a.Z)((0,a.Z)({prefixCls:"".concat(O,"-avatar")},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(M,j)),N(v));z=l.createElement("div",{className:"".concat(O,"-header")},l.createElement(f,(0,a.Z)({},R)))}if(M||j){var _,H;if(M){var L=(0,a.Z)((0,a.Z)({prefixCls:"".concat(O,"-title")},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(S,j)),N(p));_=l.createElement(E,(0,a.Z)({},L))}if(j){var I=(0,a.Z)((0,a.Z)({prefixCls:"".concat(O,"-paragraph")},function(e,t){var n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(S,M)),N(h));H=l.createElement(b,(0,a.Z)({},I))}k=l.createElement("div",{className:"".concat(O,"-content")},_,H)}var V=i()(O,(P={},(0,r.Z)(P,"".concat(O,"-with-avatar"),S),(0,r.Z)(P,"".concat(O,"-active"),y),(0,r.Z)(P,"".concat(O,"-rtl"),"rtl"===w),(0,r.Z)(P,"".concat(O,"-round"),Z),P),o);return l.createElement("div",{className:V,style:c},z,k)}return"undefined"!==typeof u?u:null};O.Button=v,O.Avatar=d,O.Input=C,O.Image=x,O.Node=Z;var P=O},63406:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};t.default=n},87412:function(e,t,n){var r=n(75263).default,a=n(64836).default;t.ZP=void 0;var o=a(n(38416)),c=a(n(10434)),i=a(n(27424)),l=a(n(54067)),s=a(n(68229)),u=a(n(67638)),f=a(n(94184)),d=a(n(18475)),v=r(n(67294)),m=n(31929),p=a(n(63406)),g=n(62704),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}();var C=v.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,a=e.trigger,C=e.children,w=e.defaultCollapsed,b=void 0!==w&&w,E=e.theme,N=void 0===E?"dark":E,O=e.style,P=void 0===O?{}:O,z=e.collapsible,k=void 0!==z&&z,S=e.reverseArrow,M=void 0!==S&&S,j=e.width,R=void 0===j?200:j,_=e.collapsedWidth,H=void 0===_?80:_,L=e.zeroWidthTriggerStyle,I=e.breakpoint,V=e.onCollapse,B=e.onBreakpoint,A=h(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),T=(0,v.useContext)(g.LayoutContext).siderHook,W=(0,v.useState)("collapsed"in A?A.collapsed:b),q=(0,i.default)(W,2),D=q[0],F=q[1],G=(0,v.useState)(!1),X=(0,i.default)(G,2),Y=X[0],U=X[1];(0,v.useEffect)((function(){"collapsed"in A&&F(A.collapsed)}),[A.collapsed]);var K=function(e,t){"collapsed"in A||F(e),null===V||void 0===V||V(e,t)},Q=(0,v.useRef)();Q.current=function(e){U(e.matches),null===B||void 0===B||B(e.matches),D!==e.matches&&K(e.matches,"responsive")},(0,v.useEffect)((function(){function e(e){return Q.current(e)}var t;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&I&&I in y){t=n("(max-width: ".concat(y[I],")"));try{t.addEventListener("change",e)}catch(r){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(r){null===t||void 0===t||t.removeListener(e)}}}),[I]),(0,v.useEffect)((function(){var e=x("ant-sider-");return T.addSider(e),function(){return T.removeSider(e)}}),[]);var $=function(){K(!D,"clickTrigger")},J=(0,v.useContext)(m.ConfigContext).getPrefixCls,ee=v.useMemo((function(){return{siderCollapsed:D}}),[D]);return v.createElement(Z.Provider,{value:ee},function(){var e,i=J("layout-sider",n),m=(0,d.default)(A,["collapsed"]),g=D?H:R,h=(0,p.default)(g)?"".concat(g,"px"):String(g),y=0===parseFloat(String(H||0))?v.createElement("span",{onClick:$,className:(0,f.default)("".concat(i,"-zero-width-trigger"),"".concat(i,"-zero-width-trigger-").concat(M?"right":"left")),style:L},a||v.createElement(l.default,null)):null,Z={expanded:M?v.createElement(u.default,null):v.createElement(s.default,null),collapsed:M?v.createElement(s.default,null):v.createElement(u.default,null)}[D?"collapsed":"expanded"],x=null!==a?y||v.createElement("div",{className:"".concat(i,"-trigger"),onClick:$,style:{width:h}},a||Z):null,w=(0,c.default)((0,c.default)({},P),{flex:"0 0 ".concat(h),maxWidth:h,minWidth:h,width:h}),b=(0,f.default)(i,"".concat(i,"-").concat(N),(e={},(0,o.default)(e,"".concat(i,"-collapsed"),!!D),(0,o.default)(e,"".concat(i,"-has-trigger"),k&&null!==a&&!y),(0,o.default)(e,"".concat(i,"-below"),!!Y),(0,o.default)(e,"".concat(i,"-zero-width"),0===parseFloat(h)),e),r);return v.createElement("aside",(0,c.default)({className:b},m,{style:w,ref:t}),v.createElement("div",{className:"".concat(i,"-children")},C),k||Y&&y?x:null)}())}));t.ZP=C},62704:function(e,t,n){var r=n(75263).default,a=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LayoutContext=t.Header=t.Footer=t.Content=void 0;var o=a(n(861)),c=a(n(38416)),i=a(n(27424)),l=a(n(10434)),s=a(n(94184)),u=r(n(67294)),f=n(31929),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0),(0,c.default)(n,"".concat(h,"-rtl"),"rtl"===r),n),y),E=u.useMemo((function(){return{siderHook:{addSider:function(e){g((function(t){return[].concat((0,o.default)(t),[e])}))},removeSider:function(e){g((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return u.createElement(v.Provider,{value:E},u.createElement(C,(0,l.default)({ref:t,className:b},w),Z))})),h=m({suffixCls:"layout",tagName:"section",displayName:"Layout"})(g),y=m({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(p);t.Header=y;var Z=m({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(p);t.Footer=Z;var x=m({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(p);t.Content=x;var C=h;t.default=C},82670:function(e,t,n){function r(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n.d(t,{Z:function(){return r}})}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/embed/video-43f8d4d055defc6f.js b/static/web/_next/static/chunks/pages/embed/video-66965a750b6ec698.js similarity index 93% rename from static/web/_next/static/chunks/pages/embed/video-43f8d4d055defc6f.js rename to static/web/_next/static/chunks/pages/embed/video-66965a750b6ec698.js index eb56d6d80..e26b50ed5 100644 --- a/static/web/_next/static/chunks/pages/embed/video-43f8d4d055defc6f.js +++ b/static/web/_next/static/chunks/pages/embed/video-66965a750b6ec698.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3126],{61357:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/video",function(){return s(95565)}])},95565:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return a}});var t=s(85893),i=(s(67294),s(4480)),o=s(1899),c=s(1698),r=s(43125),u=s(83818);function a(){var e=(0,i.sJ)(o.RI),n=(0,i.sJ)(o.g1),s=n.name,a=n.offlineMessage,l=e.viewerCount,m=e.lastConnectTime,f=e.lastDisconnectTime,d=(0,i.sJ)(o.YW);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.me,{}),(0,t.jsxs)("div",{className:"video-embed",children:[d&&(0,t.jsx)(u.M,{source:"/hls/stream.m3u8",online:d}),!d&&(0,t.jsx)(c.R,{streamName:s,customText:a,notificationsEnabled:!1}),d&&(0,t.jsx)(r.X,{online:d,lastConnectTime:m,lastDisconnectTime:f,viewerCount:l})]})]})}}},function(e){e.O(0,[2544,5938,9372,5859,1899,2854,9774,2888,179],(function(){return n=61357,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3126],{61357:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/embed/video",function(){return s(95565)}])},95565:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return a}});var t=s(85893),i=(s(67294),s(4480)),o=s(1899),c=s(1698),r=s(43125),u=s(83818);function a(){var e=(0,i.sJ)(o.RI),n=(0,i.sJ)(o.g1),s=n.name,a=n.offlineMessage,l=e.viewerCount,m=e.lastConnectTime,f=e.lastDisconnectTime,d=(0,i.sJ)(o.YW);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.me,{}),(0,t.jsxs)("div",{className:"video-embed",children:[d&&(0,t.jsx)(u.M,{source:"/hls/stream.m3u8",online:d}),!d&&(0,t.jsx)(c.R,{streamName:s,customText:a,notificationsEnabled:!1}),d&&(0,t.jsx)(r.X,{online:d,lastConnectTime:m,lastDisconnectTime:f,viewerCount:l})]})]})}}},function(e){e.O(0,[2544,5938,9372,6373,1899,2854,9774,2888,179],(function(){return n=61357,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/index-5ed8e7b96f57c353.js b/static/web/_next/static/chunks/pages/index-5ed8e7b96f57c353.js deleted file mode 100644 index d29646ec4..000000000 --- a/static/web/_next/static/chunks/pages/index-5ed8e7b96f57c353.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(72685)}])},8119:function(e,n,t){"use strict";t.d(n,{h:function(){return E},Z:function(){return H}});var o=t(85893),r=t(97183),i=t(94199),s=t(20550),a=t(828),l=t(66516),c=t(38504),u=t(71577),d=t(26713),m=t(86548),h=t(94149),f=t(38545),p=t(87547),x=t(39398),g=t(4480),j=t(67294),v=t(49218),_=t(5152),w=t.n(_),y=t(1899),C=t(47093),b=t.n(C),N=w()((function(){return t.e(2365).then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),k=w()((function(){return Promise.all([t.e(8939),t.e(8225)]).then(t.bind(t,98225)).then((function(e){return e.NameChangeModal}))}),{loadableGenerated:{webpack:function(){return[98225]}}}),S=w()((function(){return Promise.all([t.e(4381),t.e(9674)]).then(t.bind(t,9674)).then((function(e){return e.AuthModal}))}),{loadableGenerated:{webpack:function(){return[9674]}}}),Z=function(e){var n=e.username,t=void 0===n?void 0:n,r=(0,j.useState)(!1),i=r[0],s=r[1],_=(0,j.useState)(!1),w=_[0],C=_[1],Z=(0,a.Z)((0,g.FV)(y.ZA),2),F=Z[0],A=Z[1],T=(0,g.sJ)(y.Q),M=function(){A(!F)};(0,v.y1)("c",M,{enableOnContentEditable:!1},[F]);var E=(0,g.sJ)(y.db);if(!E)return null;var H=E.displayName,L=t||H,z=(0,o.jsxs)(l.Z,{children:[(0,o.jsx)(l.Z.Item,{icon:(0,o.jsx)(m.Z,{}),onClick:function(){s(!0)},children:"Change name"},"0"),(0,o.jsx)(l.Z.Item,{icon:(0,o.jsx)(h.Z,{}),onClick:function(){return C(!0)},children:"Authenticate"},"1"),T.chatAvailable&&(0,o.jsx)(l.Z.Item,{icon:(0,o.jsx)(f.Z,{}),onClick:function(){return M()},children:"Toggle chat"},"3")]});return(0,o.jsxs)("div",{className:"".concat(b().root),children:[(0,o.jsx)(c.Z,{overlay:z,trigger:["click"],children:(0,o.jsx)(u.Z,{type:"primary",icon:(0,o.jsx)(p.Z,{style:{marginRight:".5rem"}}),children:(0,o.jsxs)(d.Z,{children:[L,(0,o.jsx)(x.Z,{})]})})}),(0,o.jsx)(N,{title:"Change Chat Display Name",open:i,handleCancel:function(){return s(!1)},children:(0,o.jsx)(k,{})}),(0,o.jsx)(N,{title:"Authenticate",open:w,handleCancel:function(){return C(!1)},children:(0,o.jsx)(S,{})})]})},F=t(60113),A=t(92910),T=t.n(A),M=r.Z.Header,E=function(e){var n=e.name,t=void 0===n?"Your stream title":n,r=e.chatAvailable,a=e.chatDisabled;return(0,o.jsxs)(M,{className:"".concat(T().header),children:[(0,o.jsxs)("div",{className:"".concat(T().logo),children:[(0,o.jsx)(F.C,{variant:"contrast"}),(0,o.jsx)("span",{children:t})]}),r&&!a&&(0,o.jsx)(Z,{}),!r&&!a&&(0,o.jsx)(i.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,o.jsx)(s.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})},H=E},32365:function(e,n,t){"use strict";t.r(n),t.d(n,{Modal:function(){return u}});var o=t(85893),r=t(85402),i=t(26303),s=t(11382),a=t(67294),l=t(78890),c=t.n(l),u=function(e){var n=e.title,t=e.url,l=e.open,u=e.handleOk,d=e.handleCancel,m=e.afterClose,h=e.height,f=e.width,p=e.children,x=(0,a.useState)(!!t),g=x[0],j=x[1],v={padding:"0px",minHeight:h,height:null!==h&&void 0!==h?h:"100%"},_=t&&(0,o.jsx)("iframe",{title:n,src:t,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,onLoad:function(){return j(!1)}}),w=g?"none":"inline";return(0,o.jsx)(r.Z,{title:n,open:l,onOk:u,onCancel:d,afterClose:m,bodyStyle:v,width:f,zIndex:9999,footer:null,centered:!0,destroyOnClose:!0,children:(0,o.jsxs)(o.Fragment,{children:[g&&(0,o.jsx)(i.Z,{active:g,style:{padding:"10px"},paragraph:{rows:10}}),_&&(0,o.jsx)("div",{style:{display:w},children:_}),p&&(0,o.jsx)("div",{className:c().content,children:p}),g&&(0,o.jsx)(s.Z,{className:c().spinner,spinning:g,size:"large"})]})})};n.default=u,u.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0,height:"40vh",width:"70%"}},72685:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ye}});var o=t(85893),r=t(828),i=t(97183),s=t(4480),a=t(9008),l=t.n(a),c=t(67294),u=t(1899),d=t(26042),m=t(69396),h=t(84381),f=t(11382),p=t(94184),x=t.n(p),g=t(5152),j=t.n(g),v=t(73682),_=t(35603),w=t.n(_),y=function(e){var n=e.version;return(0,o.jsxs)("div",{className:w().footer,children:[(0,o.jsxs)("div",{className:w().text,children:["Powered by ",(0,o.jsx)("a",{href:"https://owncast.online",children:n})]}),(0,o.jsxs)("div",{className:w().links,children:[(0,o.jsx)("div",{className:w().item,children:(0,o.jsx)("a",{href:"https://owncast.online/docs",target:"_blank",rel:"noreferrer",children:"Documentation"})}),(0,o.jsx)("div",{className:w().item,children:(0,o.jsx)("a",{href:"https://owncast.online/help",target:"_blank",rel:"noreferrer",children:"Contribute"})}),(0,o.jsx)("div",{className:w().item,children:(0,o.jsx)("a",{href:"https://github.com/owncast/owncast",target:"_blank",rel:"noreferrer",children:"Source"})})]})]})},C=t(28105),b=t.n(C),N=function(e){var n=e.content,t=(0,s.sJ)(u.hz),r=(0,s.sJ)(u.g1).version;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:b().pageContentContainer,children:(0,o.jsx)("div",{className:b().customPageContent,dangerouslySetInnerHTML:{__html:n}})}),t&&(0,o.jsx)(y,{version:r})]})},k=t(83818),S=t(63291),Z=t.n(S),F=t(87412),A=t(32382),T=t(75347),M=t.n(T),E=function(){var e=(0,s.sJ)(u.db),n=(0,s.sJ)(u.pH);if(!e)return null;var t=e.id,r=e.isModerator,i=e.displayName;return(0,o.jsx)(F.ZP,{className:M().root,collapsedWidth:0,width:320,children:(0,o.jsx)(A.ChatContainer,{messages:n,usernameToHighlight:i,chatUserId:t,isModerator:r})})},H=t(69767),L=t.n(H),z=function(e){var n=e.children;return(0,o.jsx)("div",{className:"".concat(L().row),children:n})},I=t(71577),J=t(36879),D=t.n(J),P=function(e){var n=e.action,t=e.primary,r=void 0===t||t,i=e.externalActionSelected,s=n.title,a=n.description,l=n.icon,c=n.color;return(0,o.jsxs)(I.Z,{type:r?"primary":"default",className:"".concat(D().button),onClick:function(){return i(n)},style:{backgroundColor:c},children:[l&&(0,o.jsx)("img",{src:l,className:"".concat(D().icon),alt:a}),s]})},U=t(1698),R=t(7263),O=t(52437),B=t(53731),G=t(79216),Y=t(7918),V=t.n(Y),q=function(e){var n=e.src;return(0,o.jsx)("div",{className:V().root,children:(0,o.jsx)("div",{className:V().container,children:(0,o.jsx)(G.Z,{src:n,alt:"Logo",className:V().image,rootClassName:V().image})})})},W=t(52740),Q=t.n(W),K=function(e){var n=e.links;return(0,o.jsx)("div",{className:Q().links,children:n.map((function(e){return(0,o.jsx)("a",{href:e.url,className:Q().link,target:"_blank",rel:"noreferrer",children:(0,o.jsx)("img",{src:e.icon||"/img/platformlogos/default.svg",alt:e.platform,title:e.platform,className:Q().link})},e.platform)}))})},X=t(74688),$=t.n(X),ee=function(e){var n=e.name,t=e.title,r=e.summary,i=e.logo,s=e.tags,a=e.links;return(0,o.jsx)("div",{className:$().root,children:(0,o.jsxs)("div",{className:$().logoTitleSection,children:[(0,o.jsx)("div",{className:$().logo,children:(0,o.jsx)(q,{src:i})}),(0,o.jsxs)("div",{className:$().titleSection,children:[(0,o.jsx)("div",{className:x()($().title,$().row),children:n}),(0,o.jsx)("div",{className:x()($().subtitle,$().row),children:(0,o.jsx)(B.Z,{children:t||r})}),(0,o.jsx)("div",{className:x()($().tagList,$().row),children:s.length>0&&s.map((function(e){return(0,o.jsxs)("span",{children:["#",e,"\xa0"]},e)}))}),(0,o.jsx)("div",{className:x()($().socialLinks,$().row),children:(0,o.jsx)(K,{links:a})})]})]})})},ne=t(43125),te=t(47568),oe=t(70655),re=t(25968),ie=t(6226),se=t(3698),ae=t(24093),le=t(40305),ce=t.n(le),ue=function(e){var n=e.follower;return(0,o.jsx)("div",{className:ce().follower,children:(0,o.jsx)("a",{href:n.link,target:"_blank",rel:"noreferrer",children:(0,o.jsxs)(re.Z,{wrap:!1,children:[(0,o.jsx)(ie.Z,{span:6,children:(0,o.jsx)(ae.C,{src:n.image,alt:"Avatar",className:ce().avatar,children:(0,o.jsx)("img",{src:"/logo",alt:"Logo",className:ce().placeholder})})}),(0,o.jsxs)(ie.Z,{children:[(0,o.jsx)(re.Z,{children:n.name}),(0,o.jsx)(re.Z,{className:ce().account,children:n.username})]})]})})})},de=t(12103),me=t.n(de),he=function(e){var n=e.name,t=(0,c.useState)([]),r=t[0],i=t[1],s=(0,c.useState)(0),a=s[0],l=s[1],u=(0,c.useState)(1),d=u[0],m=u[1],h=Math.ceil(a/24),f=function(){var e=(0,te.Z)((function(){var e,n,t,o;return(0,oe.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,fetch("".concat("/api/followers","?page=").concat(d))];case 1:return[4,r.sent().json()];case 2:return e=r.sent(),n=e.results,t=e.total,i(n),l(t),[3,4];case 3:return o=r.sent(),console.error(o),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){f()}),[]),(0,c.useEffect)((function(){f()}),[d]);var p=(0,o.jsxs)("div",{className:me().noFollowers,children:[(0,o.jsx)("h2",{children:"Be the first follower!"}),(0,o.jsxs)("p",{children:["Owncast"!==n?n:"This server"," is a part of the"," ",(0,o.jsx)("a",{href:"https://owncast.online/join-fediverse",children:"Fediverse"}),", an interconnected network of independent users and servers."]}),(0,o.jsxs)("p",{children:["By following ","Owncast"!==n?n:"this server"," you'll be able to get updates from the stream, share it with others, and and show your appreciation when it goes live, all from your own Fediverse account."]}),(0,o.jsx)(R.e,{})]});return(null===r||void 0===r?void 0:r.length)?(0,o.jsxs)("div",{className:me().followers,children:[(0,o.jsx)(re.Z,{wrap:!0,gutter:[10,10],children:r.map((function(e){return(0,o.jsx)(ie.Z,{children:(0,o.jsx)(ue,{follower:e},e.link)})}))}),(0,o.jsx)(se.Z,{current:d,pageSize:24,total:h||1,onChange:function(e){m(e)},hideOnSinglePage:!0})]}):p},fe=t(32365),pe=t(66516),xe=t(38504),ge=t(49647),je=t(60198),ve=t(89705),_e=t(81998),we=t.n(_e),ye="notify",Ce="follow",be=function(e){var n=e.actions,t=e.externalActionSelected,r=e.notifyItemSelected,i=e.followItemSelected,s=e.showFollowItem,a=e.showNotifyItem,l=n.map((function(e){return{key:e.url,label:(0,o.jsxs)("span",{className:we().item,children:[e.icon&&(0,o.jsx)("img",{className:we().icon,src:e.icon,alt:e.title})," ",e.title]})}}));s&&l.unshift({key:Ce,label:(0,o.jsxs)("span",{className:we().item,children:[(0,o.jsx)(ge.Z,{className:we().icon})," Follow this stream"]})}),a&&l.unshift({key:ye,label:(0,o.jsxs)("span",{className:we().item,children:[(0,o.jsx)(je.Z,{className:we().icon}),"Notify when live"]})});var c=(0,o.jsx)(pe.Z,{items:l,onClick:function(e){if(e.key!==ye)if(e.key!==Ce){var o=n.find((function(n){return n.url===e.key}));t(o)}else i();else r()}});return(0,o.jsx)(xe.Z,{overlay:c,placement:"bottomRight",trigger:["click"],className:we().menu,children:(0,o.jsx)("div",{className:we().buttonWrap,children:(0,o.jsx)(I.Z,{type:"default",onClick:function(e){return e.preventDefault()},size:"large",icon:(0,o.jsx)(ve.Z,{size:6,style:{rotate:"90deg"}})})})})},Ne=t(26713),ke=t(14670),Se=t(69677),Ze=t(13840),Fe=t.n(Ze);var Ae=function(e){var n=e.handleClose,t=e.account,r=e.name,i=(0,c.useState)(null),s=i[0],a=i[1],l=(0,c.useState)(!1),u=l[0],d=l[1],m=(0,c.useState)(!1),h=m[0],p=m[1],x=(0,c.useState)(null),g=x[0],j=x[1],v=function(e){a(e),!function(e){var n=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(n).toLowerCase())}(e)?d(!1):d(!0)},_=function(){var e=(0,te.Z)((function(){var e,t,o,r;return(0,oe.__generator)(this,(function(i){switch(i.label){case 0:if(!u)return[2];p(!0),i.label=1;case 1:return i.trys.push([1,4,,5]),e=s.replace(/^@+/,""),t={account:e},[4,fetch("/api/remotefollow",{method:"POST",body:JSON.stringify(t)})];case 2:return[4,i.sent().json()];case 3:return(o=i.sent()).redirectUrl&&(window.open(o.redirectUrl,"_blank"),n()),o.success?o.redirectUrl?[3,5]:(j("Unable to follow."),p(!1),[2]):(j(o.message),p(!1),[2]);case 4:return r=i.sent(),j(r.message),[3,5];case 5:return p(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,o.jsxs)(Ne.Z,{direction:"vertical",children:[(0,o.jsxs)("div",{className:Fe().header,children:["By following this stream you'll get notified on the Fediverse when it goes live. Now is a great time to",(0,o.jsx)("a",{href:"https://owncast.online/join-fediverse",target:"_blank",rel:"noreferrer",children:"learn about the Fediverse"}),"if it's new to you."]}),(0,o.jsxs)(f.Z,{spinning:h,children:[g&&(0,o.jsx)(ke.Z,{message:"Follow Error",description:g,type:"error",showIcon:!0}),(0,o.jsxs)("div",{className:Fe().account,children:[(0,o.jsx)("img",{src:"/logo",alt:"logo",className:Fe().logo}),(0,o.jsxs)("div",{className:Fe().username,children:[(0,o.jsx)("div",{className:Fe().name,children:r}),(0,o.jsx)("div",{children:t})]})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:Fe().instructions,children:"Enter your username @server to follow"}),(0,o.jsx)(Se.Z,{value:s,size:"large",onChange:function(e){return v(e.target.value)},placeholder:"Your fediverse account @account@server",defaultValue:s}),(0,o.jsx)("div",{className:Fe().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,o.jsxs)(Ne.Z,{className:Fe().buttons,children:[(0,o.jsx)(I.Z,{disabled:!u,type:"primary",onClick:_,children:"Follow"}),(0,o.jsx)(I.Z,{onClick:function(){window.open("https://owncast.online/join-fediverse","_blank")},type:"primary",children:"Join the Fediverse"})]})]})]})},Te=i.Z.Content,Me=j()((function(){return t.e(5135).then(t.bind(t,5135)).then((function(e){return e.BrowserNotifyModal}))}),{loadableGenerated:{webpack:function(){return[5135]}}}),Ee=j()((function(){return t.e(7735).then(t.bind(t,57735)).then((function(e){return e.NotifyReminderPopup}))}),{loadableGenerated:{webpack:function(){return[57735]}}}),He=j()((function(){return Promise.resolve().then(t.bind(t,32382)).then((function(e){return e.ChatContainer}))}),{loadableGenerated:{webpack:function(){return[32382]}}}),Le=function(e){var n=e.name,t=e.streamTitle,r=e.summary,i=e.tags,s=e.socialHandles,a=e.extraPageContent,l=[{label:"About",key:"2",children:(0,o.jsx)(N,{content:a})},{label:"Followers",key:"3",children:(0,o.jsx)(he,{name:n})}];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:Z().lowerHalf,children:(0,o.jsx)(ee,{name:n,title:t,summary:r,tags:i,links:s,logo:"/logo"})}),(0,o.jsx)("div",{className:Z().lowerSection,children:(0,o.jsx)(h.Z,{defaultActiveKey:"0",items:l})})]})};var ze=function(e){var n=e.name,t=e.streamTitle,r=e.summary,i=e.tags,s=e.socialHandles,a=e.extraPageContent,l=e.messages,u=e.currentUser,f=e.showChat,p=e.actions,g=e.setExternalActionToDisplay,j=e.setShowNotifyPopup,v=e.setShowFollowModal;if(!u)return null;var _=(0,c.useRef)(),w=u.id,y=u.displayName,C=[f&&{label:"Chat",key:"0",children:f&&(0,o.jsx)(He,{messages:l,usernameToHighlight:y,chatUserId:w,isModerator:!1})},{label:"About",key:"2",children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ee,{name:n,title:t,summary:r,tags:i,links:s,logo:"/logo"}),(0,o.jsx)(N,{content:a})]})},{label:"Followers",key:"3",children:(0,o.jsx)(he,{name:n})}],b="".concat(function(e){var n=(0,c.useState)(0),t=n[0],o=n[1],r=function(){if(e.current){var n=e.current.getBoundingClientRect().top,t=window.innerHeight;o(t-n)}};return(0,c.useEffect)((function(){return r(),window.addEventListener("resize",r),function(){window.removeEventListener("resize",r)}}),[]),t}(_),"px");return(0,o.jsx)("div",{className:x()(Z().lowerSectionMobile),ref:_,style:{height:b},children:(0,o.jsx)(h.Z,{defaultActiveKey:"0",items:C,renderTabBar:function(e,n){return(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"start"},children:[(0,o.jsx)(n,(0,m.Z)((0,d.Z)({},e),{style:{width:"85%"}})),(0,o.jsx)(be,{showFollowItem:!0,showNotifyItem:!0,actions:p,externalActionSelected:g,notifyItemSelected:function(){return j(!0)},followItemSelected:function(){return v(!0)}})]})}})})},Ie=function(e){var n=e.externalActionToDisplay,t=e.setExternalActionToDisplay,r=n.title,i=n.description,s=n.url;return(0,o.jsx)(fe.Modal,{title:i||r,url:s,open:!!n,height:"80vh",handleCancel:function(){return t(null)}})},Je=function(){var e=(0,s.sJ)(u.Q),n=(0,s.sJ)(u.g1),t=(0,s.sJ)(u.pT),i=(0,s.sJ)(u.di),a=(0,s.sJ)(u.db),l=(0,r.Z)((0,s.FV)(u.hz),2),d=l[0],m=l[1],h=(0,s.sJ)(u.j$),p=(0,s.sJ)(u.YW),x=(0,s.sJ)(u.RI),g=x.viewerCount,j=x.lastConnectTime,_=x.lastDisconnectTime,w=x.streamTitle,y=n.extraPageContent,C=(n.version,n.name),b=n.summary,N=n.socialHandles,S=n.tags,F=n.externalActions,A=n.offlineMessage,T=n.chatDisabled,M=n.federation,H=n.notifications,L=(0,c.useState)(!1),I=L[0],J=L[1],D=(0,c.useState)(!1),B=D[0],G=D[1],Y=(0,c.useState)(!1),V=Y[0],q=Y[1],W=M.account,Q=H.browser.enabled,K=(0,c.useState)(null),X=K[0],$=K[1],ee=function(e){var n=e.openExternally,t=e.url;n?window.open(t,"_blank"):$(e)},te=F.map((function(e){return(0,o.jsx)(P,{action:e,externalActionSelected:ee},e.url)})),oe=function(){G(!1),J(!1),(0,v.qQ)(v.dA.hasDisplayedNotificationModal,!0)},re=function(){var e=window.innerWidth;void 0===d&&m(e<=768),!d&&e<=768&&m(!0),d&&e>768&&m(!1)};(0,c.useEffect)((function(){return function(){var e=parseInt((0,v.$o)(v.dA.userVisitCount),10);Number.isNaN(e)&&(e=0),(0,v.qQ)(v.dA.userVisitCount,e+1),e>2&&!(0,v.$o)(v.dA.hasDisplayedNotificationModal)&&J(!0)}(),re(),window.addEventListener("resize",re),function(){window.removeEventListener("resize",re)}}),[]);var ie=!T&&i&&t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:Z().main,children:[(0,o.jsx)(f.Z,{wrapperClassName:Z().loadingSpinner,size:"large",spinning:e.appLoading,children:(0,o.jsxs)(Te,{className:Z().root,children:[(0,o.jsxs)("div",{className:Z().mainSection,children:[(0,o.jsxs)("div",{className:Z().topSection,children:[p&&(0,o.jsx)(k.M,{source:"/hls/stream.m3u8",online:p}),!p&&!e.appLoading&&(0,o.jsx)(U.R,{streamName:C,customText:A,notificationsEnabled:Q,fediverseAccount:W,lastLive:_,onNotifyClick:function(){return G(!0)}}),p&&(0,o.jsx)(ne.X,{online:p,lastConnectTime:j,lastDisconnectTime:_,viewerCount:g})]}),(0,o.jsx)("div",{className:Z().midSection,children:(0,o.jsxs)("div",{className:Z().buttonsLogoTitleSection,children:[!d&&(0,o.jsxs)(z,{children:[te,(0,o.jsx)(R.e,{size:"small",onClick:function(){return q(!0)}}),(0,o.jsx)(Ee,{open:I,notificationClicked:function(){return G(!0)},notificationClosed:function(){return oe()},children:(0,o.jsx)(O.E,{onClick:function(){return G(!0)}})})]}),(0,o.jsx)(fe.Modal,{title:"Notify",open:B,afterClose:function(){return oe()},handleCancel:function(){return oe()},children:(0,o.jsx)(Me,{})})]})}),d?(0,o.jsx)(ze,{name:C,streamTitle:w,summary:b,tags:S,socialHandles:N,extraPageContent:y,messages:h,currentUser:a,showChat:ie,actions:F,setExternalActionToDisplay:ee,setShowNotifyPopup:G,setShowFollowModal:q}):(0,o.jsx)(Le,{name:C,streamTitle:w,summary:b,tags:S,socialHandles:N,extraPageContent:y})]}),ie&&!d&&(0,o.jsx)(E,{})]})}),!d&&!1]}),X&&(0,o.jsx)(Ie,{externalActionToDisplay:X,setExternalActionToDisplay:$}),(0,o.jsx)(fe.Modal,{title:"Follow ".concat(C),open:V,handleCancel:function(){return q(!1)},width:"550px",children:(0,o.jsx)(Ae,{account:W,name:C,handleClose:function(){return q(!1)}})})]})},De=t(8119),Pe=t(85402),Ue=function(e){var n=e.title,t=e.message;return(0,o.jsx)(Pe.Z,{title:n,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,o.jsx)("p",{style:{fontSize:"1.3rem"},children:t})})},Re=t(82670);var Oe=function(){var e=(0,s.sJ)(u.j$),n=(0,s.sJ)(u.RI),t=!1,o="",r=function(){t=!0,o=window.document.title},i=function(){t=!1,window.document.title=o};return(0,c.useEffect)((function(){return o=window.document.title,window.addEventListener("blur",r),window.addEventListener("focus",i),function(){window.removeEventListener("focus",i),window.removeEventListener("blur",r)}}),[]),(0,c.useEffect)((function(){var e=n.online;t&&e&&(window.document.title="\ud83d\udcac :: ".concat(o))}),[e]),(0,c.useEffect)((function(){if(t){var e=n.online;e?window.document.title=" \ud83d\udfe2 :: ".concat(o):e||(window.document.title=" \ud83d\udd34 :: ".concat(o))}}),[u.RI]),null},Be=function(){return(0,o.jsx)("script",{id:"server-side-hydration",dangerouslySetInnerHTML:{__html:"\n\twindow.configHydration = {{.ServerConfigJSON}};\n\twindow.statusHydration = {{.StatusJSON}};\n\t"}})},Ge=function(){var e=(0,r.Z)((0,s.FV)(u.hz),1)[0],n=(0,s.sJ)(u.g1),t=n.name,a=n.title,d=n.customStyles,m=n.version,h=(0,s.sJ)(u.di),f=(0,s.sJ)(u.ap),p=(0,c.useRef)(null),x=n.chatDisabled;(0,c.useEffect)((function(){!function(e){var n=function(e){e.setAttribute("rel","noopener noreferrer ")};e.querySelectorAll("a").forEach((function(e){return n(e)})),new MutationObserver((function(e){var t=!0,o=!1,r=void 0;try{for(var i,s=e[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var a=i.value,l=!0,c=!1,u=void 0;try{for(var d,m=a.addedNodes[Symbol.iterator]();!(l=(d=m.next()).done);l=!0){var h=d.value;(0,Re.Z)(h,HTMLElement)&&"a"===h.tagName.toLowerCase()&&n(h)}}catch(f){c=!0,u=f}finally{try{l||null==m.return||m.return()}finally{if(c)throw u}}}}catch(f){o=!0,r=f}finally{try{t||null==s.return||s.return()}finally{if(o)throw r}}})).observe(e,{attributes:!1,childList:!0,subtree:!0})}(p.current)}),[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(l(),{children:[(0,o.jsx)(Be,{}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/favicon/apple-icon-57x57.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/favicon/apple-icon-60x60.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/favicon/apple-icon-72x72.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/favicon/apple-icon-76x76.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/favicon/apple-icon-114x114.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/favicon/apple-icon-120x120.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/favicon/apple-icon-144x144.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/favicon/apple-icon-152x152.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-icon-180x180.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/favicon/android-icon-192x192.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/favicon/favicon-96x96.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,o.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,o.jsx)("link",{href:"/api/auth/provider/indieauth"}),(0,o.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,o.jsx)("meta",{name:"msapplication-TileImage",content:"/img/favicon/ms-icon-144x144.png"}),(0,o.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,o.jsx)("style",{children:d}),(0,o.jsx)("base",{target:"_blank"})]}),(0,o.jsxs)(l(),{children:[t?(0,o.jsx)("title",{children:t}):(0,o.jsx)("title",{children:"{{.Name}}"}),(0,o.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,o.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"og:type",content:"video.other"}),(0,o.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,o.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,o.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}/embed/video"}),(0,o.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}/embed/video"}),(0,o.jsx)("meta",{property:"og:video:height",content:"315"}),(0,o.jsx)("meta",{property:"og:video:width",content:"560"}),(0,o.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,o.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,o.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,o.jsx)("meta",{property:"twitter:card",content:"player"}),(0,o.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}/embed/video"}),(0,o.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,o.jsx)("meta",{property:"twitter:player:height",content:"315"})]}),(0,o.jsx)(u.me,{}),(0,o.jsx)(Oe,{}),(0,o.jsxs)(i.Z,{ref:p,style:{minHeight:"100vh"},children:[(0,o.jsx)(De.h,{name:a||t,chatAvailable:h,chatDisabled:x}),(0,o.jsx)(Je,{}),f&&(0,o.jsx)(Ue,{title:f.title,message:f.message}),!e&&(0,o.jsx)(y,{version:m})]})]})};function Ye(){return(0,o.jsx)(Ge,{})}},81998:function(e){e.exports={item:"ActionButtonMenu_item__OJQdr",buttonWrap:"ActionButtonMenu_buttonWrap__WQ9kt",icon:"ActionButtonMenu_icon__edY1D",menu:"ActionButtonMenu_menu__GChDk"}},69767:function(e){e.exports={row:"ActionButtonRow_row__SiEGe"}},74688:function(e){e.exports={root:"ContentHeader_root__HaUG0",row:"ContentHeader_row__9Q8gH",logoTitleSection:"ContentHeader_logoTitleSection__Z8pUc",logo:"ContentHeader_logo__wo_HN",titleSection:"ContentHeader_titleSection___6Y15",title:"ContentHeader_title__E_DsI",subtitle:"ContentHeader_subtitle__n1Wew",tagList:"ContentHeader_tagList__rx3jY"}},47093:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},13840:function(e){e.exports={header:"FollowModal_header__la1ji",buttons:"FollowModal_buttons__tt4Mc",instructions:"FollowModal_instructions__HiKFF",footer:"FollowModal_footer__AjucH",account:"FollowModal_account__cmHkm",logo:"FollowModal_logo__Ew8xK",username:"FollowModal_username__A_OTw",name:"FollowModal_name__Sf_TP"}},63291:function(e){e.exports={root:"Content_root__h1mNK",mainSection:"Content_mainSection__Gk78Y",topSection:"Content_topSection__JIZi0",lowerSection:"Content_lowerSection__BZHYI",lowerSectionMobile:"Content_lowerSectionMobile__hRr0_",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC",main:"Content_main__XVf63"}},28105:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},35603:function(e){e.exports={footer:"Footer_footer__mPuvf",links:"Footer_links__7bBxV",item:"Footer_item__rXxSr"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},7918:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},78890:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}},75347:function(e){e.exports={root:"Sidebar_root__8HE0A"}},52740:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}},12103:function(e){e.exports={followers:"FollowerCollection_followers__e_EUS",noFollowers:"FollowerCollection_noFollowers__UaCVW"}},40305:function(e){e.exports={follower:"SingleFollower_follower__EyBDI",avatar:"SingleFollower_avatar__V9jHG",account:"SingleFollower_account__Z66vo",placeholder:"SingleFollower_placeholder__CgsfJ"}}},function(e){e.O(0,[1272,8700,2544,8939,3903,4267,4381,5938,9372,7364,2429,5859,1082,8559,1899,2382,2854,9774,2888,179],(function(){return n=48312,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/index-659cfc1343f929cc.js b/static/web/_next/static/chunks/pages/index-659cfc1343f929cc.js new file mode 100644 index 000000000..863ac18b0 --- /dev/null +++ b/static/web/_next/static/chunks/pages/index-659cfc1343f929cc.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(13906)}])},8119:function(e,n,t){"use strict";t.d(n,{h:function(){return E},Z:function(){return H}});var o=t(85893),r=t(97183),i=t(94199),s=t(20550),a=t(828),l=t(66516),c=t(38504),u=t(71577),d=t(26713),m=t(86548),f=t(94149),h=t(38545),p=t(87547),x=t(39398),j=t(4480),g=t(67294),v=t(49218),_=t(5152),w=t.n(_),y=t(1899),C=t(47093),b=t.n(C),N=w()((function(){return t.e(2365).then(t.bind(t,32365)).then((function(e){return e.Modal}))}),{loadableGenerated:{webpack:function(){return[32365]}}}),k=w()((function(){return Promise.all([t.e(8939),t.e(8225)]).then(t.bind(t,98225)).then((function(e){return e.NameChangeModal}))}),{loadableGenerated:{webpack:function(){return[98225]}}}),S=w()((function(){return Promise.all([t.e(4381),t.e(9674)]).then(t.bind(t,9674)).then((function(e){return e.AuthModal}))}),{loadableGenerated:{webpack:function(){return[9674]}}}),Z=function(e){var n=e.username,t=void 0===n?void 0:n,r=(0,g.useState)(!1),i=r[0],s=r[1],_=(0,g.useState)(!1),w=_[0],C=_[1],Z=(0,a.Z)((0,j.FV)(y.ZA),2),F=Z[0],A=Z[1],T=(0,j.sJ)(y.Q),M=function(){A(!F)};(0,v.y1)("c",M,{enableOnContentEditable:!1},[F]);var E=(0,j.sJ)(y.db);if(!E)return null;var H=E.displayName,L=t||H,z=(0,o.jsxs)(l.Z,{children:[(0,o.jsx)(l.Z.Item,{icon:(0,o.jsx)(m.Z,{}),onClick:function(){s(!0)},children:"Change name"},"0"),(0,o.jsx)(l.Z.Item,{icon:(0,o.jsx)(f.Z,{}),onClick:function(){return C(!0)},children:"Authenticate"},"1"),T.chatAvailable&&(0,o.jsx)(l.Z.Item,{icon:(0,o.jsx)(h.Z,{}),onClick:function(){return M()},children:"Toggle chat"},"3")]});return(0,o.jsxs)("div",{className:"".concat(b().root),children:[(0,o.jsx)(c.Z,{overlay:z,trigger:["click"],children:(0,o.jsx)(u.Z,{type:"primary",icon:(0,o.jsx)(p.Z,{style:{marginRight:".5rem"}}),children:(0,o.jsxs)(d.Z,{children:[L,(0,o.jsx)(x.Z,{})]})})}),(0,o.jsx)(N,{title:"Change Chat Display Name",open:i,handleCancel:function(){return s(!1)},children:(0,o.jsx)(k,{})}),(0,o.jsx)(N,{title:"Authenticate",open:w,handleCancel:function(){return C(!1)},children:(0,o.jsx)(S,{})})]})},F=t(60113),A=t(92910),T=t.n(A),M=r.Z.Header,E=function(e){var n=e.name,t=void 0===n?"Your stream title":n,r=e.chatAvailable,a=e.chatDisabled;return(0,o.jsxs)(M,{className:"".concat(T().header),children:[(0,o.jsxs)("div",{className:"".concat(T().logo),children:[(0,o.jsx)(F.C,{variant:"contrast"}),(0,o.jsx)("span",{children:t})]}),r&&!a&&(0,o.jsx)(Z,{}),!r&&!a&&(0,o.jsx)(i.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,o.jsx)(s.Z,{style:{cursor:"pointer"},children:"Chat offline"})})]})},H=E},32365:function(e,n,t){"use strict";t.r(n),t.d(n,{Modal:function(){return u}});var o=t(85893),r=t(85402),i=t(26303),s=t(11382),a=t(67294),l=t(78890),c=t.n(l),u=function(e){var n=e.title,t=e.url,l=e.open,u=e.handleOk,d=e.handleCancel,m=e.afterClose,f=e.height,h=e.width,p=e.children,x=(0,a.useState)(!!t),j=x[0],g=x[1],v={padding:"0px",minHeight:f,height:null!==f&&void 0!==f?f:"100%"},_=t&&(0,o.jsx)("iframe",{title:n,src:t,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,onLoad:function(){return g(!1)}}),w=j?"none":"inline";return(0,o.jsx)(r.Z,{title:n,open:l,onOk:u,onCancel:d,afterClose:m,bodyStyle:v,width:h,zIndex:9999,footer:null,centered:!0,destroyOnClose:!0,children:(0,o.jsxs)(o.Fragment,{children:[j&&(0,o.jsx)(i.Z,{active:j,style:{padding:"10px"},paragraph:{rows:10}}),_&&(0,o.jsx)("div",{style:{display:w},children:_}),p&&(0,o.jsx)("div",{className:c().content,children:p}),j&&(0,o.jsx)(s.Z,{className:c().spinner,spinning:j,size:"large"})]})})};n.default=u,u.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0,height:"40vh",width:"70%"}},13906:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return qe}});var o=t(85893),r=t(828),i=t(97183),s=t(4480),a=t(9008),l=t.n(a),c=t(67294),u=t(1899),d=t(26042),m=t(69396),f=t(84381),h=t(11382),p=t(94184),x=t.n(p),j=t(5152),g=t.n(j),v=t(73682),_=t(35603),w=t.n(_),y=function(e){var n=e.version;return(0,o.jsxs)("div",{className:w().footer,children:[(0,o.jsxs)("div",{className:w().text,children:["Powered by ",(0,o.jsx)("a",{href:"https://owncast.online",children:n})]}),(0,o.jsxs)("div",{className:w().links,children:[(0,o.jsx)("div",{className:w().item,children:(0,o.jsx)("a",{href:"https://owncast.online/docs",target:"_blank",rel:"noreferrer",children:"Documentation"})}),(0,o.jsx)("div",{className:w().item,children:(0,o.jsx)("a",{href:"https://owncast.online/help",target:"_blank",rel:"noreferrer",children:"Contribute"})}),(0,o.jsx)("div",{className:w().item,children:(0,o.jsx)("a",{href:"https://github.com/owncast/owncast",target:"_blank",rel:"noreferrer",children:"Source"})})]})]})},C=t(28105),b=t.n(C),N=function(e){var n=e.content,t=(0,s.sJ)(u.hz),r=(0,s.sJ)(u.g1).version;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:b().pageContentContainer,children:(0,o.jsx)("div",{className:b().customPageContent,dangerouslySetInnerHTML:{__html:n}})}),t&&(0,o.jsx)(y,{version:r})]})},k=t(83818),S=t(63291),Z=t.n(S),F=t(87412),A=t(32382),T=t(75347),M=t.n(T),E=function(){var e=(0,s.sJ)(u.db),n=(0,s.sJ)(u.pH);if(!e)return null;var t=e.id,r=e.isModerator,i=e.displayName;return(0,o.jsx)(F.ZP,{className:M().root,collapsedWidth:0,width:320,children:(0,o.jsx)(A.ChatContainer,{messages:n,usernameToHighlight:i,chatUserId:t,isModerator:r})})},H=t(69767),L=t.n(H),z=function(e){var n=e.children;return(0,o.jsx)("div",{className:"".concat(L().row),children:n})},I=t(71577),J=t(36879),P=t.n(J),D=function(e){var n=e.action,t=e.primary,r=void 0===t||t,i=e.externalActionSelected,s=n.title,a=n.description,l=n.icon,c=n.color;return(0,o.jsxs)(I.Z,{type:r?"primary":"default",className:"".concat(P().button),onClick:function(){return i(n)},style:{backgroundColor:c},children:[l&&(0,o.jsx)("img",{src:l,className:"".concat(P().icon),alt:a}),s]})},U=t(1698),R=t(34447),O=function(e){var n=e.onClick,t=e.props;return(0,o.jsx)(I.Z,(0,m.Z)((0,d.Z)({},t),{type:"primary",className:P().button,icon:(0,o.jsx)(R.Z,{}),onClick:n,children:"Follow"}))},B=t(71578),G=function(e){var n=e.onClick,t=e.text;return(0,o.jsx)(I.Z,{type:"primary",className:"".concat(P().button),icon:(0,o.jsx)(B.Z,{}),onClick:n,children:t||"Notify"})},Y=t(53731),V=t(79216),q=t(7918),Q=t.n(q),W=function(e){var n=e.src;return(0,o.jsx)("div",{className:Q().root,children:(0,o.jsx)("div",{className:Q().container,children:(0,o.jsx)(V.Z,{src:n,alt:"Logo",className:Q().image,rootClassName:Q().image})})})},K=t(52740),X=t.n(K),$=function(e){var n=e.links;return(0,o.jsx)("div",{className:X().links,children:n.map((function(e){return(0,o.jsx)("a",{href:e.url,className:X().link,target:"_blank",rel:"noreferrer",children:(0,o.jsx)("img",{src:e.icon||"/img/platformlogos/default.svg",alt:e.platform,title:e.platform,className:X().link})},e.platform)}))})},ee=t(74688),ne=t.n(ee),te=function(e){var n=e.name,t=e.title,r=e.summary,i=e.logo,s=e.tags,a=e.links;return(0,o.jsx)("div",{className:ne().root,children:(0,o.jsxs)("div",{className:ne().logoTitleSection,children:[(0,o.jsx)("div",{className:ne().logo,children:(0,o.jsx)(W,{src:i})}),(0,o.jsxs)("div",{className:ne().titleSection,children:[(0,o.jsx)("div",{className:x()(ne().title,ne().row),children:n}),(0,o.jsx)("div",{className:x()(ne().subtitle,ne().row),children:(0,o.jsx)(Y.Z,{children:t||r})}),(0,o.jsx)("div",{className:x()(ne().tagList,ne().row),children:s.length>0&&s.map((function(e){return(0,o.jsxs)("span",{children:["#",e,"\xa0"]},e)}))}),(0,o.jsx)("div",{className:x()(ne().socialLinks,ne().row),children:(0,o.jsx)($,{links:a})})]})]})})},oe=t(43125),re=t(47568),ie=t(70655),se=t(25968),ae=t(6226),le=t(3698),ce=t(24093),ue=t(40305),de=t.n(ue),me=function(e){var n=e.follower;return(0,o.jsx)("div",{className:de().follower,children:(0,o.jsx)("a",{href:n.link,target:"_blank",rel:"noreferrer",children:(0,o.jsxs)(se.Z,{wrap:!1,children:[(0,o.jsx)(ae.Z,{span:6,children:(0,o.jsx)(ce.C,{src:n.image,alt:"Avatar",className:de().avatar,children:(0,o.jsx)("img",{src:"/logo",alt:"Logo",className:de().placeholder})})}),(0,o.jsxs)(ae.Z,{children:[(0,o.jsx)(se.Z,{children:n.name}),(0,o.jsx)(se.Z,{className:de().account,children:n.username})]})]})})})},fe=t(12103),he=t.n(fe),pe=function(e){var n=e.name,t=(0,c.useState)([]),r=t[0],i=t[1],s=(0,c.useState)(0),a=s[0],l=s[1],u=(0,c.useState)(1),d=u[0],m=u[1],f=Math.ceil(a/24),h=function(){var e=(0,re.Z)((function(){var e,n,t,o;return(0,ie.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,fetch("".concat("/api/followers","?page=").concat(d))];case 1:return[4,r.sent().json()];case 2:return e=r.sent(),n=e.results,t=e.total,i(n),l(t),[3,4];case 3:return o=r.sent(),console.error(o),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){h()}),[]),(0,c.useEffect)((function(){h()}),[d]);var p=(0,o.jsxs)("div",{className:he().noFollowers,children:[(0,o.jsx)("h2",{children:"Be the first follower!"}),(0,o.jsxs)("p",{children:["Owncast"!==n?n:"This server"," is a part of the"," ",(0,o.jsx)("a",{href:"https://owncast.online/join-fediverse",children:"Fediverse"}),", an interconnected network of independent users and servers."]}),(0,o.jsxs)("p",{children:["By following ","Owncast"!==n?n:"this server"," you'll be able to get updates from the stream, share it with others, and and show your appreciation when it goes live, all from your own Fediverse account."]}),(0,o.jsx)(O,{})]});return(null===r||void 0===r?void 0:r.length)?(0,o.jsxs)("div",{className:he().followers,children:[(0,o.jsx)(se.Z,{wrap:!0,gutter:[10,10],children:r.map((function(e){return(0,o.jsx)(ae.Z,{children:(0,o.jsx)(me,{follower:e},e.link)})}))}),(0,o.jsx)(le.Z,{current:d,pageSize:24,total:f||1,onChange:function(e){m(e)},hideOnSinglePage:!0})]}):p},xe=t(32365),je=t(66516),ge=t(38504),ve=t(49647),_e=t(60198),we=t(89705),ye=t(81998),Ce=t.n(ye),be="notify",Ne="follow",ke=function(e){var n=e.actions,t=e.externalActionSelected,r=e.notifyItemSelected,i=e.followItemSelected,s=e.showFollowItem,a=e.showNotifyItem,l=n.map((function(e){return{key:e.url,label:(0,o.jsxs)("span",{className:Ce().item,children:[e.icon&&(0,o.jsx)("img",{className:Ce().icon,src:e.icon,alt:e.title})," ",e.title]})}}));s&&l.unshift({key:Ne,label:(0,o.jsxs)("span",{className:Ce().item,children:[(0,o.jsx)(ve.Z,{className:Ce().icon})," Follow this stream"]})}),a&&l.unshift({key:be,label:(0,o.jsxs)("span",{className:Ce().item,children:[(0,o.jsx)(_e.Z,{className:Ce().icon}),"Notify when live"]})});var c=(0,o.jsx)(je.Z,{items:l,onClick:function(e){if(e.key!==be)if(e.key!==Ne){var o=n.find((function(n){return n.url===e.key}));t(o)}else i();else r()}});return(0,o.jsx)(ge.Z,{overlay:c,placement:"bottomRight",trigger:["click"],className:Ce().menu,children:(0,o.jsx)("div",{className:Ce().buttonWrap,children:(0,o.jsx)(I.Z,{type:"default",onClick:function(e){return e.preventDefault()},size:"large",icon:(0,o.jsx)(we.Z,{size:6,style:{rotate:"90deg"}})})})})},Se=t(26713),Ze=t(14670),Fe=t(69677),Ae=t(13840),Te=t.n(Ae);var Me=function(e){var n=e.handleClose,t=e.account,r=e.name,i=(0,c.useState)(null),s=i[0],a=i[1],l=(0,c.useState)(!1),u=l[0],d=l[1],m=(0,c.useState)(!1),f=m[0],p=m[1],x=(0,c.useState)(null),j=x[0],g=x[1],v=function(e){a(e),!function(e){var n=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(n).toLowerCase())}(e)?d(!1):d(!0)},_=function(){var e=(0,re.Z)((function(){var e,t,o,r;return(0,ie.__generator)(this,(function(i){switch(i.label){case 0:if(!u)return[2];p(!0),i.label=1;case 1:return i.trys.push([1,4,,5]),e=s.replace(/^@+/,""),t={account:e},[4,fetch("/api/remotefollow",{method:"POST",body:JSON.stringify(t)})];case 2:return[4,i.sent().json()];case 3:return(o=i.sent()).redirectUrl&&(window.open(o.redirectUrl,"_blank"),n()),o.success?o.redirectUrl?[3,5]:(g("Unable to follow."),p(!1),[2]):(g(o.message),p(!1),[2]);case 4:return r=i.sent(),g(r.message),[3,5];case 5:return p(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,o.jsxs)(Se.Z,{direction:"vertical",children:[(0,o.jsxs)("div",{className:Te().header,children:["By following this stream you'll get notified on the Fediverse when it goes live. Now is a great time to",(0,o.jsx)("a",{href:"https://owncast.online/join-fediverse",target:"_blank",rel:"noreferrer",children:"learn about the Fediverse"}),"if it's new to you."]}),(0,o.jsxs)(h.Z,{spinning:f,children:[j&&(0,o.jsx)(Ze.Z,{message:"Follow Error",description:j,type:"error",showIcon:!0}),(0,o.jsxs)("div",{className:Te().account,children:[(0,o.jsx)("img",{src:"/logo",alt:"logo",className:Te().logo}),(0,o.jsxs)("div",{className:Te().username,children:[(0,o.jsx)("div",{className:Te().name,children:r}),(0,o.jsx)("div",{children:t})]})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:Te().instructions,children:"Enter your username @server to follow"}),(0,o.jsx)(Fe.Z,{value:s,size:"large",onChange:function(e){return v(e.target.value)},placeholder:"Your fediverse account @account@server",defaultValue:s}),(0,o.jsx)("div",{className:Te().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,o.jsxs)(Se.Z,{className:Te().buttons,children:[(0,o.jsx)(I.Z,{disabled:!u,type:"primary",onClick:_,children:"Follow"}),(0,o.jsx)(I.Z,{onClick:function(){window.open("https://owncast.online/join-fediverse","_blank")},type:"primary",children:"Join the Fediverse"})]})]})]})},Ee=i.Z.Content,He=g()((function(){return t.e(5135).then(t.bind(t,5135)).then((function(e){return e.BrowserNotifyModal}))}),{loadableGenerated:{webpack:function(){return[5135]}}}),Le=g()((function(){return t.e(7735).then(t.bind(t,57735)).then((function(e){return e.NotifyReminderPopup}))}),{loadableGenerated:{webpack:function(){return[57735]}}}),ze=g()((function(){return Promise.resolve().then(t.bind(t,32382)).then((function(e){return e.ChatContainer}))}),{loadableGenerated:{webpack:function(){return[32382]}}}),Ie=function(e){var n=e.name,t=e.streamTitle,r=e.summary,i=e.tags,s=e.socialHandles,a=e.extraPageContent,l=[{label:"About",key:"2",children:(0,o.jsx)(N,{content:a})},{label:"Followers",key:"3",children:(0,o.jsx)(pe,{name:n})}];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:Z().lowerHalf,children:(0,o.jsx)(te,{name:n,title:t,summary:r,tags:i,links:s,logo:"/logo"})}),(0,o.jsx)("div",{className:Z().lowerSection,children:(0,o.jsx)(f.Z,{defaultActiveKey:"0",items:l})})]})};var Je=function(e){var n=e.name,t=e.streamTitle,r=e.summary,i=e.tags,s=e.socialHandles,a=e.extraPageContent,l=e.messages,u=e.currentUser,h=e.showChat,p=e.actions,j=e.setExternalActionToDisplay,g=e.setShowNotifyPopup,v=e.setShowFollowModal;if(!u)return null;var _=(0,c.useRef)(),w=u.id,y=u.displayName,C=[h&&{label:"Chat",key:"0",children:h&&(0,o.jsx)(ze,{messages:l,usernameToHighlight:y,chatUserId:w,isModerator:!1})},{label:"About",key:"2",children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(te,{name:n,title:t,summary:r,tags:i,links:s,logo:"/logo"}),(0,o.jsx)(N,{content:a})]})},{label:"Followers",key:"3",children:(0,o.jsx)(pe,{name:n})}],b="".concat(function(e){var n=(0,c.useState)(0),t=n[0],o=n[1],r=function(){if(e.current){var n=e.current.getBoundingClientRect().top,t=window.innerHeight;o(t-n)}};return(0,c.useEffect)((function(){return r(),window.addEventListener("resize",r),function(){window.removeEventListener("resize",r)}}),[]),t}(_),"px");return(0,o.jsx)("div",{className:x()(Z().lowerSectionMobile),ref:_,style:{height:b},children:(0,o.jsx)(f.Z,{defaultActiveKey:"0",items:C,renderTabBar:function(e,n){return(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"start"},children:[(0,o.jsx)(n,(0,m.Z)((0,d.Z)({},e),{style:{width:"85%"}})),(0,o.jsx)(ke,{showFollowItem:!0,showNotifyItem:!0,actions:p,externalActionSelected:j,notifyItemSelected:function(){return g(!0)},followItemSelected:function(){return v(!0)}})]})}})})},Pe=function(e){var n=e.externalActionToDisplay,t=e.setExternalActionToDisplay,r=n.title,i=n.description,s=n.url;return(0,o.jsx)(xe.Modal,{title:i||r,url:s,open:!!n,height:"80vh",handleCancel:function(){return t(null)}})},De=function(){var e=(0,s.sJ)(u.Q),n=(0,s.sJ)(u.g1),t=(0,s.sJ)(u.pT),i=(0,s.sJ)(u.di),a=(0,s.sJ)(u.db),l=(0,r.Z)((0,s.FV)(u.hz),2),d=l[0],m=l[1],f=(0,s.sJ)(u.j$),p=(0,s.sJ)(u.YW),x=(0,s.sJ)(u.RI),j=x.viewerCount,g=x.lastConnectTime,_=x.lastDisconnectTime,w=x.streamTitle,y=n.extraPageContent,C=(n.version,n.name),b=n.summary,N=n.socialHandles,S=n.tags,F=n.externalActions,A=n.offlineMessage,T=n.chatDisabled,M=n.federation,H=n.notifications,L=(0,c.useState)(!1),I=L[0],J=L[1],P=(0,c.useState)(!1),R=P[0],B=P[1],Y=(0,c.useState)(!1),V=Y[0],q=Y[1],Q=M.account,W=H.browser.enabled,K=(0,c.useState)(null),X=K[0],$=K[1],ee=function(e){var n=e.openExternally,t=e.url;n?window.open(t,"_blank"):$(e)},ne=F.map((function(e){return(0,o.jsx)(D,{action:e,externalActionSelected:ee},e.url)})),te=function(){B(!1),J(!1),(0,v.qQ)(v.dA.hasDisplayedNotificationModal,!0)},re=function(){var e=window.innerWidth;void 0===d&&m(e<=768),!d&&e<=768&&m(!0),d&&e>768&&m(!1)};(0,c.useEffect)((function(){return function(){var e=parseInt((0,v.$o)(v.dA.userVisitCount),10);Number.isNaN(e)&&(e=0),(0,v.qQ)(v.dA.userVisitCount,e+1),e>2&&!(0,v.$o)(v.dA.hasDisplayedNotificationModal)&&J(!0)}(),re(),window.addEventListener("resize",re),function(){window.removeEventListener("resize",re)}}),[]);var ie=!T&&i&&t;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:Z().main,children:[(0,o.jsx)(h.Z,{wrapperClassName:Z().loadingSpinner,size:"large",spinning:e.appLoading,children:(0,o.jsxs)(Ee,{className:Z().root,children:[(0,o.jsxs)("div",{className:Z().mainSection,children:[(0,o.jsxs)("div",{className:Z().topSection,children:[p&&(0,o.jsx)(k.M,{source:"/hls/stream.m3u8",online:p}),!p&&!e.appLoading&&(0,o.jsx)(U.R,{streamName:C,customText:A,notificationsEnabled:W,fediverseAccount:Q,lastLive:_,onNotifyClick:function(){return B(!0)},onFollowClick:function(){return q(!0)}}),p&&(0,o.jsx)(oe.X,{online:p,lastConnectTime:g,lastDisconnectTime:_,viewerCount:j})]}),(0,o.jsx)("div",{className:Z().midSection,children:(0,o.jsxs)("div",{className:Z().buttonsLogoTitleSection,children:[!d&&(0,o.jsxs)(z,{children:[ne,(0,o.jsx)(O,{size:"small",onClick:function(){return q(!0)}}),(0,o.jsx)(Le,{open:I,notificationClicked:function(){return B(!0)},notificationClosed:function(){return te()},children:(0,o.jsx)(G,{onClick:function(){return B(!0)}})})]}),(0,o.jsx)(xe.Modal,{title:"Notify",open:R,afterClose:function(){return te()},handleCancel:function(){return te()},children:(0,o.jsx)(He,{})})]})}),d?(0,o.jsx)(Je,{name:C,streamTitle:w,summary:b,tags:S,socialHandles:N,extraPageContent:y,messages:f,currentUser:a,showChat:ie,actions:F,setExternalActionToDisplay:ee,setShowNotifyPopup:B,setShowFollowModal:q}):(0,o.jsx)(Ie,{name:C,streamTitle:w,summary:b,tags:S,socialHandles:N,extraPageContent:y})]}),ie&&!d&&(0,o.jsx)(E,{})]})}),!d&&!1]}),X&&(0,o.jsx)(Pe,{externalActionToDisplay:X,setExternalActionToDisplay:$}),(0,o.jsx)(xe.Modal,{title:"Follow ".concat(C),open:V,handleCancel:function(){return q(!1)},width:"550px",children:(0,o.jsx)(Me,{account:Q,name:C,handleClose:function(){return q(!1)}})})]})},Ue=t(8119),Re=t(85402),Oe=function(e){var n=e.title,t=e.message;return(0,o.jsx)(Re.Z,{title:n,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:(0,o.jsx)("p",{style:{fontSize:"1.3rem"},children:t})})},Be=t(82670);var Ge=function(){var e=(0,s.sJ)(u.j$),n=(0,s.sJ)(u.RI),t=!1,o="",r=function(){t=!0,o=window.document.title},i=function(){t=!1,window.document.title=o};return(0,c.useEffect)((function(){return o=window.document.title,window.addEventListener("blur",r),window.addEventListener("focus",i),function(){window.removeEventListener("focus",i),window.removeEventListener("blur",r)}}),[]),(0,c.useEffect)((function(){var e=n.online;t&&e&&(window.document.title="\ud83d\udcac :: ".concat(o))}),[e]),(0,c.useEffect)((function(){if(t){var e=n.online;e?window.document.title=" \ud83d\udfe2 :: ".concat(o):e||(window.document.title=" \ud83d\udd34 :: ".concat(o))}}),[u.RI]),null},Ye=function(){return(0,o.jsx)("script",{id:"server-side-hydration",dangerouslySetInnerHTML:{__html:"\n\twindow.configHydration = {{.ServerConfigJSON}};\n\twindow.statusHydration = {{.StatusJSON}};\n\t"}})},Ve=function(){var e=(0,r.Z)((0,s.FV)(u.hz),1)[0],n=(0,s.sJ)(u.g1),t=n.name,a=n.title,d=n.customStyles,m=n.version,f=(0,s.sJ)(u.di),h=(0,s.sJ)(u.ap),p=(0,c.useRef)(null),x=n.chatDisabled;(0,c.useEffect)((function(){!function(e){var n=function(e){e.setAttribute("rel","noopener noreferrer ")};e.querySelectorAll("a").forEach((function(e){return n(e)})),new MutationObserver((function(e){var t=!0,o=!1,r=void 0;try{for(var i,s=e[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var a=i.value,l=!0,c=!1,u=void 0;try{for(var d,m=a.addedNodes[Symbol.iterator]();!(l=(d=m.next()).done);l=!0){var f=d.value;(0,Be.Z)(f,HTMLElement)&&"a"===f.tagName.toLowerCase()&&n(f)}}catch(h){c=!0,u=h}finally{try{l||null==m.return||m.return()}finally{if(c)throw u}}}}catch(h){o=!0,r=h}finally{try{t||null==s.return||s.return()}finally{if(o)throw r}}})).observe(e,{attributes:!1,childList:!0,subtree:!0})}(p.current)}),[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(l(),{children:[(0,o.jsx)(Ye,{}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/favicon/apple-icon-57x57.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/favicon/apple-icon-60x60.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/favicon/apple-icon-72x72.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/favicon/apple-icon-76x76.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/favicon/apple-icon-114x114.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/favicon/apple-icon-120x120.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/favicon/apple-icon-144x144.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/favicon/apple-icon-152x152.png"}),(0,o.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-icon-180x180.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/favicon/android-icon-192x192.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/favicon/favicon-96x96.png"}),(0,o.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,o.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,o.jsx)("link",{href:"/api/auth/provider/indieauth"}),(0,o.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,o.jsx)("meta",{name:"msapplication-TileImage",content:"/img/favicon/ms-icon-144x144.png"}),(0,o.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,o.jsx)("style",{children:d}),(0,o.jsx)("base",{target:"_blank"})]}),(0,o.jsxs)(l(),{children:[t?(0,o.jsx)("title",{children:t}):(0,o.jsx)("title",{children:"{{.Name}}"}),(0,o.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,o.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"og:type",content:"video.other"}),(0,o.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,o.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,o.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,o.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}/embed/video"}),(0,o.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}/embed/video"}),(0,o.jsx)("meta",{property:"og:video:height",content:"315"}),(0,o.jsx)("meta",{property:"og:video:width",content:"560"}),(0,o.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,o.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,o.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,o.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,o.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,o.jsx)("meta",{property:"twitter:card",content:"player"}),(0,o.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}/embed/video"}),(0,o.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,o.jsx)("meta",{property:"twitter:player:height",content:"315"})]}),(0,o.jsx)(u.me,{}),(0,o.jsx)(Ge,{}),(0,o.jsxs)(i.Z,{ref:p,style:{minHeight:"100vh"},children:[(0,o.jsx)(Ue.h,{name:a||t,chatAvailable:f,chatDisabled:x}),(0,o.jsx)(De,{}),h&&(0,o.jsx)(Oe,{title:h.title,message:h.message}),!e&&(0,o.jsx)(y,{version:m})]})]})};function qe(){return(0,o.jsx)(Ve,{})}},36879:function(e){e.exports={button:"ActionButton_button__z5Z2c",icon:"ActionButton_icon__EPp7Q"}},81998:function(e){e.exports={item:"ActionButtonMenu_item__OJQdr",buttonWrap:"ActionButtonMenu_buttonWrap__WQ9kt",icon:"ActionButtonMenu_icon__edY1D",menu:"ActionButtonMenu_menu__GChDk"}},69767:function(e){e.exports={row:"ActionButtonRow_row__SiEGe"}},74688:function(e){e.exports={root:"ContentHeader_root__HaUG0",row:"ContentHeader_row__9Q8gH",logoTitleSection:"ContentHeader_logoTitleSection__Z8pUc",logo:"ContentHeader_logo__wo_HN",titleSection:"ContentHeader_titleSection___6Y15",title:"ContentHeader_title__E_DsI",subtitle:"ContentHeader_subtitle__n1Wew",tagList:"ContentHeader_tagList__rx3jY"}},47093:function(e){e.exports={root:"UserDropdown_root__IdxfQ","ant-space":"UserDropdown_ant-space__XJTZ3","ant-space-item":"UserDropdown_ant-space-item__w4nC2"}},13840:function(e){e.exports={header:"FollowModal_header__la1ji",buttons:"FollowModal_buttons__tt4Mc",instructions:"FollowModal_instructions__HiKFF",footer:"FollowModal_footer__AjucH",account:"FollowModal_account__cmHkm",logo:"FollowModal_logo__Ew8xK",username:"FollowModal_username__A_OTw",name:"FollowModal_name__Sf_TP"}},63291:function(e){e.exports={root:"Content_root__h1mNK",mainSection:"Content_mainSection__Gk78Y",topSection:"Content_topSection__JIZi0",lowerSection:"Content_lowerSection__BZHYI",lowerSectionMobile:"Content_lowerSectionMobile__hRr0_",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC",main:"Content_main__XVf63"}},28105:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},35603:function(e){e.exports={footer:"Footer_footer__mPuvf",links:"Footer_links__7bBxV",item:"Footer_item__rXxSr"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},7918:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},78890:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}},75347:function(e){e.exports={root:"Sidebar_root__8HE0A"}},52740:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}},12103:function(e){e.exports={followers:"FollowerCollection_followers__e_EUS",noFollowers:"FollowerCollection_noFollowers__UaCVW"}},40305:function(e){e.exports={follower:"SingleFollower_follower__EyBDI",avatar:"SingleFollower_avatar__V9jHG",account:"SingleFollower_account__Z66vo",placeholder:"SingleFollower_placeholder__CgsfJ"}}},function(e){e.O(0,[1272,8700,2544,8939,3903,4267,4381,5938,9372,7364,2429,6373,1082,5824,1899,2382,2854,9774,2888,179],(function(){return n=48312,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/webpack-0e3b82ec91fce913.js b/static/web/_next/static/chunks/webpack-86cfc2ed132df7e5.js similarity index 97% rename from static/web/_next/static/chunks/webpack-0e3b82ec91fce913.js rename to static/web/_next/static/chunks/webpack-86cfc2ed132df7e5.js index 7eb85bda1..8de9be557 100644 --- a/static/web/_next/static/chunks/webpack-0e3b82ec91fce913.js +++ b/static/web/_next/static/chunks/webpack-86cfc2ed132df7e5.js @@ -1 +1 @@ -!function(){"use strict";var e={},t={};function a(n){var f=t[n];if(void 0!==f)return f.exports;var c=t[n]={id:n,loaded:!1,exports:{}},d=!0;try{e[n].call(c.exports,c,c.exports,a),d=!1}finally{d&&delete t[n]}return c.loaded=!0,c.exports}a.m=e,a.amdO={},function(){var e=[];a.O=function(t,n,f,c){if(!n){var d=1/0;for(i=0;i=c)&&Object.keys(a.O).every((function(e){return a.O[e](n[b])}))?n.splice(b--,1):(r=!1,c0&&e[i-1][2]>c;i--)e[i]=e[i-1];e[i]=[n,f,c]}}(),a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};a.t=function(n,f){if(1&f&&(n=this(n)),8&f)return n;if("object"===typeof n&&n){if(4&f&&n.__esModule)return n;if(16&f&&"function"===typeof n.then)return n}var c=Object.create(null);a.r(c);var d={};e=e||[null,t({}),t([]),t(t)];for(var r=2&f&&n;"object"==typeof r&&!~e.indexOf(r);r=t(r))Object.getOwnPropertyNames(r).forEach((function(e){d[e]=function(){return n[e]}}));return d.default=function(){return n},a.d(c,d),c}}(),a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,n){return a.f[n](e,t),t}),[]))},a.u=function(e){return 8939===e?"static/chunks/8939-2c7dd78bd2286b4d.js":3903===e?"static/chunks/3903-97c724332d1a5798.js":4267===e?"static/chunks/4267-0d1cbd98a57df9e3.js":3626===e?"static/chunks/3626-d074077c8897dd8b.js":8091===e?"static/chunks/8091-d7457a988f3f1d54.js":4381===e?"static/chunks/4381-ff441df8dbf283c8.js":"static/chunks/"+e+"."+{177:"07e81c876c150d56",228:"7008583a6edcaf6f",305:"81addcdd22dac87e",370:"52e16b019e72e3e7",402:"d2b366579300ae3b",617:"933158da5fda9b65",673:"ece53c2daf22e93d",758:"4e6dace4695912fa",786:"bda6a234b010d76b",870:"2ed8d4e2260b0131",889:"ae582629b4ddeada",1053:"cadcccb1887d1655",1084:"5b7bb8501d49b84f",1300:"4b32175d5676e8df",1390:"e28c81f99b757880",1446:"d4716947e754971e",1650:"8909ff4ee9be21d8",1660:"2e69d7651d99fffa",1770:"e9d167a359425734",1873:"a756dbdabb15f510",1920:"c33b94a1a93e947a",2040:"8c1f1efa3891bda8",2119:"33ee19dcc774b7b3",2136:"87902004824e59b3",2314:"0c7ba9cb309bbcae",2365:"c33291db1edfd5d7",2386:"7849afb31fdbcbe9",2406:"fdc2fd9471c9277c",2542:"d87f01354fa8625b",2602:"23ec287cba38919e",2675:"c188080c2b5d4a3d",2750:"64ce3f9e097bda01",3203:"4a03f08cc075a41a",3283:"508ea7a82a17eb6f",3314:"21f4d993f672bac4",3465:"3b01362997e94018",3482:"123b2f3fc81ff758",3509:"3932ae3634ee5b2e",3519:"7b44cdadfa3dccf8",3883:"2fb7f03e2ca3529a",3993:"128027dd7265a783",4144:"ac42c8b1f09df8f9",4163:"1b16f58fd432f4da",4212:"f665078601f914de",4293:"9a6146c4cd92c0ea",4323:"88655b5982d04133",4439:"4f04bf9f401b13af",4511:"c20b329de4a94d30",4732:"abe153cd9e74cf8c",4778:"fe124557ac27707c",4796:"59ffa2aa8de67c8d",4879:"ff6296c6446eb972",4920:"5562dd5144a4a0c6",5122:"c94bd6aa99c27f1e",5134:"8c40f920826939fb",5135:"6541163f583921e6",5372:"1cbe35d74e4ddd0e",5379:"aade0a3e0e516604",5648:"6417f99e99d45d4c",5753:"369aa818f4fa0dae",5815:"d2bce212c3134600",5819:"d24a858591bd5c3c",5879:"1b55d2b462afebf3",6062:"99b0d3c3b2722798",6092:"cb997822d5ad9a36",6121:"3d67c2fae8774daa",6395:"21f59417b457c6b2",6443:"dd7e5cd2e659f21f",6471:"a1b969913a20a449",6665:"9b4fa1f8176c8faf",6692:"4c47b40a842bfe37",6732:"a90326e23dac20d0",6991:"015225d9c5454e6b",7001:"e576736a60e3567b",7047:"7055375b97eebebc",7213:"0c5bd78e1f87e6ff",7315:"6f5ab7ef11af96d8",7365:"f54e467b2f4523d1",7370:"f49ab049acf16289",7421:"06e86f299b78a3d3",7475:"b1546a7ebfa28cbb",7525:"938d02cfd66dc876",7590:"efdde8b2997b09a1",7601:"5a327eee5530fbe2",7663:"b3b1c64004576939",7735:"5528314f888ca32d",7741:"177818bb3887216e",7762:"7bae3e40001587ab",7781:"14a2c2b76a923720",7917:"04781deb6d0da1e1",7988:"0a5a4bd779cbda3e",8007:"36e212ff50d5c34a",8029:"ca20148827905307",8088:"a5222fe3814956a0",8142:"fca9502f471ae841",8171:"97a5e3c90df36fc7",8225:"b1ad83c90140af1a",8283:"914dfaa8316d16d7",8393:"ac707cc39cd5aab8",8561:"281bc4ce77b8995a",8770:"719a9f10f1781d66",8910:"0be92050586e05f6",8915:"0a35c35fa8764138",9071:"d812295ab2a73c24",9121:"5c4711a92893fca9",9232:"400b581440faecc1",9296:"b186db185a29360d",9558:"cfa96280a9f9d439",9607:"ff46198deba68fd1",9674:"b05bbbd95d75faba",9713:"0ca649eec80739b4",9781:"6915afce38fb4e27",9809:"b5973362b6234d26",9831:"a0808ada0e3f0bcc",9972:"dcde2a016a9a80ee"}[e]+".js"},a.miniCssF=function(e){return"static/css/"+{955:"836decc457006cbf",2365:"19d74602c45ee60b",2888:"d81b367abfe617eb",3126:"4e16c63b431ddd13",5135:"edb3f793b986286c",5405:"a97e1fdb349cf296",5859:"7c735c05af084bb2",7735:"4d949a8f962451f2",7781:"b92b45b3f2e03f44",8399:"12c1bf3c7fd206d0",9674:"ed28f196ebbc4ea9"}[e]+".css"},a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";a.l=function(n,f,c,d){if(e[n])e[n].push(f);else{var r,b;if(void 0!==c)for(var o=document.getElementsByTagName("script"),i=0;i=c)&&Object.keys(a.O).every((function(e){return a.O[e](n[b])}))?n.splice(b--,1):(r=!1,c0&&e[i-1][2]>c;i--)e[i]=e[i-1];e[i]=[n,f,c]}}(),a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};a.t=function(n,f){if(1&f&&(n=this(n)),8&f)return n;if("object"===typeof n&&n){if(4&f&&n.__esModule)return n;if(16&f&&"function"===typeof n.then)return n}var c=Object.create(null);a.r(c);var d={};e=e||[null,t({}),t([]),t(t)];for(var r=2&f&&n;"object"==typeof r&&!~e.indexOf(r);r=t(r))Object.getOwnPropertyNames(r).forEach((function(e){d[e]=function(){return n[e]}}));return d.default=function(){return n},a.d(c,d),c}}(),a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,n){return a.f[n](e,t),t}),[]))},a.u=function(e){return 8939===e?"static/chunks/8939-2c7dd78bd2286b4d.js":3903===e?"static/chunks/3903-97c724332d1a5798.js":4267===e?"static/chunks/4267-0d1cbd98a57df9e3.js":3626===e?"static/chunks/3626-d074077c8897dd8b.js":8091===e?"static/chunks/8091-d7457a988f3f1d54.js":4381===e?"static/chunks/4381-ff441df8dbf283c8.js":"static/chunks/"+e+"."+{177:"07e81c876c150d56",228:"7008583a6edcaf6f",305:"81addcdd22dac87e",370:"52e16b019e72e3e7",402:"d2b366579300ae3b",617:"933158da5fda9b65",673:"ece53c2daf22e93d",758:"4e6dace4695912fa",786:"bda6a234b010d76b",870:"2ed8d4e2260b0131",889:"ae582629b4ddeada",1053:"cadcccb1887d1655",1084:"5b7bb8501d49b84f",1300:"4b32175d5676e8df",1390:"e28c81f99b757880",1446:"d4716947e754971e",1650:"8909ff4ee9be21d8",1660:"2e69d7651d99fffa",1770:"e9d167a359425734",1873:"a756dbdabb15f510",1920:"c33b94a1a93e947a",2040:"8c1f1efa3891bda8",2119:"33ee19dcc774b7b3",2136:"87902004824e59b3",2314:"0c7ba9cb309bbcae",2365:"c33291db1edfd5d7",2386:"7849afb31fdbcbe9",2406:"fdc2fd9471c9277c",2542:"d87f01354fa8625b",2602:"23ec287cba38919e",2675:"c188080c2b5d4a3d",2750:"64ce3f9e097bda01",3203:"4a03f08cc075a41a",3283:"508ea7a82a17eb6f",3314:"21f4d993f672bac4",3465:"3b01362997e94018",3482:"123b2f3fc81ff758",3509:"3932ae3634ee5b2e",3519:"7b44cdadfa3dccf8",3883:"2fb7f03e2ca3529a",3993:"128027dd7265a783",4144:"ac42c8b1f09df8f9",4163:"1b16f58fd432f4da",4212:"f665078601f914de",4293:"9a6146c4cd92c0ea",4323:"88655b5982d04133",4439:"4f04bf9f401b13af",4511:"c20b329de4a94d30",4732:"abe153cd9e74cf8c",4778:"fe124557ac27707c",4796:"59ffa2aa8de67c8d",4879:"ff6296c6446eb972",4920:"5562dd5144a4a0c6",5122:"c94bd6aa99c27f1e",5134:"8c40f920826939fb",5135:"6541163f583921e6",5372:"1cbe35d74e4ddd0e",5379:"aade0a3e0e516604",5648:"6417f99e99d45d4c",5753:"369aa818f4fa0dae",5815:"d2bce212c3134600",5819:"d24a858591bd5c3c",5879:"1b55d2b462afebf3",6062:"99b0d3c3b2722798",6092:"cb997822d5ad9a36",6121:"3d67c2fae8774daa",6395:"21f59417b457c6b2",6443:"dd7e5cd2e659f21f",6471:"a1b969913a20a449",6665:"9b4fa1f8176c8faf",6692:"4c47b40a842bfe37",6732:"a90326e23dac20d0",6991:"015225d9c5454e6b",7001:"e576736a60e3567b",7047:"7055375b97eebebc",7213:"0c5bd78e1f87e6ff",7315:"6f5ab7ef11af96d8",7365:"f54e467b2f4523d1",7370:"f49ab049acf16289",7421:"06e86f299b78a3d3",7475:"b1546a7ebfa28cbb",7525:"938d02cfd66dc876",7590:"efdde8b2997b09a1",7601:"5a327eee5530fbe2",7663:"b3b1c64004576939",7735:"5528314f888ca32d",7741:"177818bb3887216e",7762:"7bae3e40001587ab",7781:"14a2c2b76a923720",7917:"04781deb6d0da1e1",7988:"0a5a4bd779cbda3e",8007:"36e212ff50d5c34a",8029:"ca20148827905307",8088:"a5222fe3814956a0",8142:"fca9502f471ae841",8171:"97a5e3c90df36fc7",8225:"b1ad83c90140af1a",8283:"914dfaa8316d16d7",8393:"ac707cc39cd5aab8",8561:"281bc4ce77b8995a",8770:"719a9f10f1781d66",8910:"0be92050586e05f6",8915:"0a35c35fa8764138",9071:"d812295ab2a73c24",9121:"5c4711a92893fca9",9232:"400b581440faecc1",9296:"b186db185a29360d",9558:"cfa96280a9f9d439",9607:"ff46198deba68fd1",9674:"b05bbbd95d75faba",9713:"0ca649eec80739b4",9781:"6915afce38fb4e27",9809:"b5973362b6234d26",9831:"a0808ada0e3f0bcc",9972:"dcde2a016a9a80ee"}[e]+".js"},a.miniCssF=function(e){return"static/css/"+{955:"836decc457006cbf",2365:"19d74602c45ee60b",2888:"d81b367abfe617eb",3126:"df2265f42be36c15",5135:"edb3f793b986286c",5405:"a85f6a8b9b428d9b",6373:"7c735c05af084bb2",7735:"4d949a8f962451f2",7781:"b92b45b3f2e03f44",8399:"12c1bf3c7fd206d0",9674:"ed28f196ebbc4ea9"}[e]+".css"},a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";a.l=function(n,f,c,d){if(e[n])e[n].push(f);else{var r,b;if(void 0!==c)for(var o=document.getElementsByTagName("script"),i=0;ip{margin:0}.ChatTextField_emojiButton__ON_Cu,.ChatTextField_sendButton__MOmD4{border:none;background:none;cursor:pointer;padding:0 1rem}.ChatTextField_sendButton__MOmD4{display:none}@media only screen and (min-width:768px){.ChatTextField_sendButton__MOmD4{display:block}}.ChatModeratorNotification_chatModerationNotification__kgFWe{background-color:var(--theme-background-primary);margin:5px;border-radius:15px;border:1px solid rgba(0,0,0,.3);padding:10px;max-width:400px;display:flex;justify-content:center;align-items:center}.ChatModeratorNotification_chatModerationNotification__kgFWe .ChatModeratorNotification_icon__7FdGg{margin-right:10px;width:20px;height:20px}.ChatSystemMessage_chatSystemMessage__c6XEN{background:var(--theme-color-background-main);background:linear-gradient(70deg,#4e3672,#411c8b 40%,#534382 80%);margin:5px;border-radius:5px;border-width:1px;border-style:solid;padding:12px;max-width:400px}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_user__6yHSJ{display:flex;align-items:center;font-family:var(--theme-text-display-font-family);font-weight:700;color:#fff}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g{color:#fff}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g p{color:#fff;margin:unset}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g mark{padding-left:.35em;padding-right:.35em;background-color:var(--theme-color-palette-12)}.ChatJoinMessage_root__vuVXa{padding:10px 0;text-align:center;font-size:.8rem;font-style:italic}.ChatContainer_chatHeader__EJsYI{text-align:center;font-weight:700;padding:5px 0;color:var(--text-color-secondary);border-bottom:1px solid var(--color-owncast-gray-700);font-variant:small-caps}.ChatContainer_toBottomWrap__3V5wa{display:flex;width:100%;justify-content:center;position:absolute;bottom:50px;color:var(--text-color-secondary)}.ChatContainer_toBottomWrap__3V5wa .ChatContainer_toBottomWrap__3V5wa .ChatContainer_toBottomBtn__453AG{border:none;background-color:gray}.ChatContainer_nameChangeView__ziyXN{display:flex;font-size:.9rem;border-radius:var(--theme-rounded-corners);padding:5px 15px;color:var(--color-owncast-gray-300);background-color:var(--color-owncast-background)}.ChatContainer_nameChangeView__ziyXN .ChatContainer_nameChangeText__yXG__{font-weight:700;font-family:var(--theme-text-display-font-family)}.ChatContainer_nameChangeView__ziyXN .ChatContainer_nameChangeText__yXG__ .ChatContainer_plain__IPS19{font-weight:400;font-family:var(--theme-text-body-font-family)!important}.ChatContainer_chatContainer__O2lYN{display:flex;flex-direction:column;background-color:var(--theme-color-background-chat);height:100%}.ChatContainer_virtuoso__OS9Kz{width:auto;flex-grow:1;overflow-y:scroll;overflow-x:hidden}.ChatActionMessage_chatAction__x9Xsg{padding:5px;text-align:center}.Sidebar_root__8HE0A{background-color:var(--theme-color-background-chat);display:none}@media only screen and (min-width:768px){.Sidebar_root__8HE0A{position:sticky;display:block}}.Sidebar_root__8HE0A>div{display:flex;flex-flow:column nowrap;flex-grow:1!important;height:100%!important}.ActionButtonRow_row__SiEGe{padding:.3rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end}.ActionButtonRow_row__SiEGe button{margin-left:.3rem;margin-right:.3rem}.ActionButton_button__z5Z2c{margin:3px;font-weight:400;font-family:var(--theme-text-display-font-family)}.ActionButton_button__z5Z2c .ActionButton_icon__EPp7Q{width:20px;margin-right:3px}.OfflineBanner_outerContainer__3AbsB{display:flex;justify-content:center}.OfflineBanner_innerContainer__zTm13{width:clamp(0px,100%,600px);display:flex;flex-direction:column;color:var(--theme-color-components-text-on-light);background-color:var(--theme-color-background-main);margin:1rem auto;border-radius:var(--theme-rounded-corners);padding:1rem;font-size:1.2rem;border:1px solid #d3d3d3}.OfflineBanner_bodyText__nNNy0{line-height:1.5rem}.OfflineBanner_separator___j_Ss{margin-top:15px;margin-bottom:15px}.OfflineBanner_lastLiveDate___UZdO{margin-top:15px;font-size:1rem;opacity:.5}.OfflineBanner_lastLiveDate___UZdO .OfflineBanner_clockIcon__s0DB_{margin-right:5px}.OfflineBanner_header__Vu20o{font-weight:700}.OfflineBanner_footer__o3Zl5{margin-top:15px}.Logo_root__jKiJC{display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;margin-right:.5rem;width:96px;height:96px;border-radius:50%;border-width:5px;border-style:solid;border-color:var(--theme-color-palette-0);background-color:var(--theme-color-palette-4)}.Logo_container__A4UYT{width:90%;height:90%;border-radius:50%;overflow:hidden}.Logo_image__Ahkom{width:100%;height:100%;background-size:cover;background-position:50%;overflow:hidden}.SocialLinks_link___CcSm{width:1.8em;margin-right:16px}.SocialLinks_links__gOAb7{display:flex;align-items:center;justify-content:flex-start;margin-top:5px}.ContentHeader_root__HaUG0{position:relative;display:grid;padding:1.4rem}.ContentHeader_row__9Q8gH{margin-bottom:7px}.ContentHeader_logoTitleSection__Z8pUc{display:flex;flex-direction:column}.ContentHeader_logoTitleSection__Z8pUc .ContentHeader_logo__wo_HN{margin:auto .6rem}@media only screen and (min-width:768px){.ContentHeader_logoTitleSection__Z8pUc{flex-direction:row}.ContentHeader_logoTitleSection__Z8pUc .ContentHeader_logo__wo_HN{margin:.6rem}}.ContentHeader_titleSection___6Y15{display:flex;flex-direction:column;margin-left:.6rem}.ContentHeader_titleSection___6Y15 .ContentHeader_title__E_DsI{font-family:var(--theme-text-display-font-family);color:var(--theme-color-palette-0);font-size:1.7rem;font-weight:700;line-height:30px}.ContentHeader_titleSection___6Y15 .ContentHeader_subtitle__n1Wew{font-size:1.2rem;font-weight:400;line-height:1.3;color:var(--theme-color-background-header);max-width:900px}.ContentHeader_tagList__rx3jY{color:var(--theme-color-palette-10)}.ContentHeader_tagList__rx3jY span{display:inline-block;margin-right:.5rem;font-size:.9rem;font-weight:500}.Statusbar_statusbar__AtVnB{display:flex;align-items:center;font-size:.8rem;justify-content:space-between;height:2rem;width:100%;padding:var(--content-padding);color:var(--theme-color-components-text-on-light);background-color:var(--component-background);font-family:var(--theme-text-display-font-family);font-weight:600}.SingleFollower_follower__EyBDI{border:1px solid rgba(0,0,0,.3);padding:10px;border-radius:15px;height:75px;width:250px;font-size:.8rem;overflow:hidden}.SingleFollower_follower__EyBDI:hover{border-color:var(--theme-text-link)}.SingleFollower_follower__EyBDI .SingleFollower_avatar__V9jHG{height:50px;width:50px;border:1px solid rgba(0,0,0,.3)}.SingleFollower_follower__EyBDI .SingleFollower_account__Z66vo{color:var(--theme-text-secondary);text-overflow:ellipsis}.SingleFollower_follower__EyBDI .SingleFollower_placeholder__CgsfJ{width:100%;height:100%}.FollowerCollection_followers__e_EUS{width:100%;background-color:var(--theme-color-background-light);padding:5px}.FollowerCollection_noFollowers__UaCVW{padding:calc(2*var(--content-padding));border-radius:var(--theme-rounded-corners);width:100%;background-color:var(--theme-color-background-light)}.Modal_spinner__GiSS0{position:absolute;top:50%;left:50%}.Modal_content__h9my9{display:block;height:100%;padding:2vw;background-color:var(--theme-color-components-modal-content-background);color:var(--theme-color-components-modal-content-text)}.ActionButtonMenu_item__OJQdr{display:flex;align-items:center}.ActionButtonMenu_buttonWrap__WQ9kt{display:flex;align-items:center;height:100%;padding-bottom:16px}.ActionButtonMenu_buttonWrap__WQ9kt button{height:100%}.ActionButtonMenu_icon__edY1D{height:15px;margin-right:5px}.ActionButtonMenu_menu__GChDk{color:currentColor}.FollowModal_header__la1ji{font-family:var(--theme-text-display-font-family);font-size:.8rem}.FollowModal_buttons__tt4Mc{display:flex;justify-content:flex-end;margin-top:10px}.FollowModal_instructions__HiKFF{font-family:var(--theme-text-display-font-family);font-size:.7rem;font-weight:600}.FollowModal_footer__AjucH{font-size:.5rem}.FollowModal_account__cmHkm{display:flex;flex-direction:row;margin-top:5px;margin-bottom:10px;font-size:.8rem}.FollowModal_account__cmHkm .FollowModal_logo__Ew8xK{border-radius:50%;width:4em;height:4em}.FollowModal_account__cmHkm .FollowModal_username__A_OTw{display:flex;flex-direction:column;margin-left:10px;margin-top:5px}.FollowModal_account__cmHkm .FollowModal_username__A_OTw .FollowModal_name__Sf_TP{font-weight:600}.Content_root__h1mNK{display:grid;grid-template-columns:1fr auto;width:100%;background-color:var(--theme-color-background-main)}@media only screen and (min-width:768px){.Content_root__h1mNK{height:var(--content-height)}}.Content_root__h1mNK .Content_mainSection__Gk78Y{display:flex;overflow-y:scroll;flex-direction:column}.Content_root__h1mNK .Content_topSection__JIZi0{padding:0;background-color:var(--theme-color-components-video-background)}.Content_root__h1mNK .Content_lowerSection__BZHYI{padding:0 2%;margin-bottom:2em}.Content_root__h1mNK .Content_lowerSectionMobile__hRr0_{padding:.3em}.Content_leftCol__U2TDq{display:flex;flex-direction:column}.Content_loadingSpinner__mDlYC{display:grid}.Content_main__XVf63{display:grid;flex:1 1;height:100%;grid-template-rows:1fr auto}.UserDropdown_root__IdxfQ button{border:none}.UserDropdown_root__IdxfQ button .UserDropdown_ant-space__XJTZ3 .UserDropdown_ant-space-item__w4nC2{color:var(--theme-unknown-2)}.Header_header__U4Ro1{position:sticky;top:0;height:var(--header-height)!important;justify-content:space-between;z-index:20;padding:.4rem .7rem;box-shadow:0 1px 3px 1px rgba(0,0,0,.1);background-color:var(--theme-color-background-header)}.Header_header__U4Ro1,.Header_header__U4Ro1 .Header_logo__HLZ6Z{display:flex;align-items:center}.Header_header__U4Ro1 .Header_logo__HLZ6Z span{color:var(--theme-color-components-text-on-dark);font-family:var(--theme-text-display-font-family);margin-left:.5rem;font-size:clamp(1rem,4vw,2rem);font-weight:600} \ No newline at end of file +.Footer_footer__mPuvf{display:flex;align-items:center;height:var(--footer-height);justify-content:space-between;flex-direction:row;background-color:var(--theme-color-background-header);width:100%;color:var(--theme-color-components-text-on-dark);font-family:var(--theme-text-body-font-family);padding:0 .6rem;font-size:.8rem;font-weight:600;border-top:1px solid hsla(0,4%,83%,.5)}.Footer_footer__mPuvf a{color:var(--theme-text-secondary)}.Footer_footer__mPuvf .Footer_links__7bBxV{display:flex;justify-content:space-between;flex-direction:row}.Footer_footer__mPuvf .Footer_links__7bBxV .Footer_item__rXxSr{margin-left:1.2em}.CustomPageContent_pageContentContainer__EG4tU{display:flex;justify-content:center;align-items:center}.CustomPageContent_customPageContent__Mr981{font-size:1rem;line-height:1.6em;color:var(--theme-color-palette-0);padding:calc(2*var(--content-padding));border-radius:var(--theme-rounded-corners);width:100%;background-color:var(--theme-color-background-light)}.CustomPageContent_customPageContent__Mr981 hr{margin:1.35em 0;border:0;border-top:1px solid var(--theme-text-secondary)}.CustomPageContent_customPageContent__Mr981 div.CustomPageContent_summary___Zgps{font-size:.9rem}.CustomPageContent_customPageContent__Mr981 p{margin:unset}.VideoJS_player__GT8FN{height:auto!important;width:100%}.VideoJS_player__GT8FN video{position:static!important}@media only screen and (min-width:768px){.VideoJS_player__GT8FN{height:30vh!important}}.VideoJS_poster__nlmqm{width:100%;height:100%}.VideoPoster_poster__RDkSk{background-color:#000;display:flex;justify-content:center;width:100%;height:100%}.ChatUserBadge_badge__1EdUp{font-family:var(--theme-text-display-font-family);font-weight:500;font-size:.6rem;text-transform:uppercase;padding:0 1px 1px;border-radius:3px;border-width:1px;border-style:solid;margin-left:3px}.ChatUserMessage_root__79heB{border-left:3px solid;position:relative;font-size:.9rem;padding:0 8px 8px}.ChatUserMessage_root__79heB *{z-index:100}.ChatUserMessage_root__79heB .ChatUserMessage_user__xUEp9{display:flex;align-items:center;font-family:var(--theme-text-display-font-family);font-weight:600}.ChatUserMessage_root__79heB .ChatUserMessage_message__MJ9LD{overflow:hidden;overflow-wrap:anywhere;font-weight:500}.ChatUserMessage_root__79heB .ChatUserMessage_message__MJ9LD mark{padding-left:.35em;padding-right:.35em;color:var(--theme-color-palette-12)}.ChatUserMessage_root__79heB.ChatUserMessage_ownMessage__d28A3{border-left:none;border-right:3px solid}.ChatUserMessage_root__79heB.ChatUserMessage_ownMessage__d28A3 .ChatUserMessage_background__Tfghp{position:absolute;z-index:-1;top:0;left:0;width:100%;height:100%;background-color:currentColor;opacity:.07;border-radius:.25rem;overflow:hidden}.ChatUserMessage_root__79heB .ChatUserMessage_modMenuWrapper__7fblv{position:absolute;display:none;top:0;right:10px}.ChatUserMessage_root__79heB .ChatUserMessage_modMenuWrapper__7fblv button:active,.ChatUserMessage_root__79heB .ChatUserMessage_modMenuWrapper__7fblv button:focus{display:block!important}.ChatUserMessage_root__79heB:hover .ChatUserMessage_modMenuWrapper__7fblv{display:block}.ChatUserMessage_messagePadding__Xp1F6{padding:.4rem 0 0}.ChatUserMessage_messagePaddingCollapsed__qxN0E{padding:0}.ChatTextField_root__4oUkJ{position:relative;display:flex;bottom:0;width:100%;padding:5px 1vw;overflow-x:hidden}.ChatTextField_root__4oUkJ .ChatTextField_inputWrap__1mAjD{position:relative;display:flex;color:var(--theme-color-components-form-field-text);background-color:var(--theme-color-palette-3);border-radius:var(--theme-rounded-corners);bottom:0;width:100%;padding:.3rem;overflow-x:hidden;transition:box-shadow 90ms ease-in-out}.ChatTextField_root__4oUkJ .ChatTextField_inputWrap__1mAjD:focus-within{background-color:var(--theme-color-components-form-field-background);box-shadow:inset 0 0 2px 2px var(--theme-color-palette-3)}.ChatTextField_root__4oUkJ .ChatTextField_maxCharacters__yGT4s{border:1px solid red}.ChatTextField_root__4oUkJ div[role=textbox]{font-size:.9rem;padding:.3rem;background-color:inherit;border-color:var(--theme-color-components-form-field-border);box-shadow:0;transition:box-shadow 50ms ease-in-out}.ChatTextField_root__4oUkJ div[role=textbox]:focus{outline:1px solid var(--color-owncast-gray-500)!important}.ChatTextField_root__4oUkJ div[role=textbox]>p{margin:0}.ChatTextField_emojiButton__ON_Cu,.ChatTextField_sendButton__MOmD4{border:none;background:none;cursor:pointer;padding:0 1rem}.ChatTextField_sendButton__MOmD4{display:none}@media only screen and (min-width:768px){.ChatTextField_sendButton__MOmD4{display:block}}.ChatModeratorNotification_chatModerationNotification__kgFWe{background-color:var(--theme-background-primary);margin:5px;border-radius:15px;border:1px solid rgba(0,0,0,.3);padding:10px;max-width:400px;display:flex;justify-content:center;align-items:center}.ChatModeratorNotification_chatModerationNotification__kgFWe .ChatModeratorNotification_icon__7FdGg{margin-right:10px;width:20px;height:20px}.ChatSystemMessage_chatSystemMessage__c6XEN{background:var(--theme-color-background-main);background:linear-gradient(70deg,#4e3672,#411c8b 40%,#534382 80%);margin:5px;border-radius:5px;border-width:1px;border-style:solid;padding:12px;max-width:400px}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_user__6yHSJ{display:flex;align-items:center;font-family:var(--theme-text-display-font-family);font-weight:700;color:#fff}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g{color:#fff}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g p{color:#fff;margin:unset}.ChatSystemMessage_chatSystemMessage__c6XEN .ChatSystemMessage_message__ySq5g mark{padding-left:.35em;padding-right:.35em;background-color:var(--theme-color-palette-12)}.ChatJoinMessage_root__vuVXa{padding:10px 0;text-align:center;font-size:.8rem;font-style:italic}.ChatContainer_chatHeader__EJsYI{text-align:center;font-weight:700;padding:5px 0;color:var(--text-color-secondary);border-bottom:1px solid var(--color-owncast-gray-700);font-variant:small-caps}.ChatContainer_toBottomWrap__3V5wa{display:flex;width:100%;justify-content:center;position:absolute;bottom:50px;color:var(--text-color-secondary)}.ChatContainer_toBottomWrap__3V5wa .ChatContainer_toBottomWrap__3V5wa .ChatContainer_toBottomBtn__453AG{border:none;background-color:gray}.ChatContainer_nameChangeView__ziyXN{display:flex;font-size:.9rem;border-radius:var(--theme-rounded-corners);padding:5px 15px;color:var(--color-owncast-gray-300);background-color:var(--color-owncast-background)}.ChatContainer_nameChangeView__ziyXN .ChatContainer_nameChangeText__yXG__{font-weight:700;font-family:var(--theme-text-display-font-family)}.ChatContainer_nameChangeView__ziyXN .ChatContainer_nameChangeText__yXG__ .ChatContainer_plain__IPS19{font-weight:400;font-family:var(--theme-text-body-font-family)!important}.ChatContainer_chatContainer__O2lYN{display:flex;flex-direction:column;background-color:var(--theme-color-background-chat);height:100%}.ChatContainer_virtuoso__OS9Kz{width:auto;flex-grow:1;overflow-y:scroll;overflow-x:hidden}.ChatActionMessage_chatAction__x9Xsg{padding:5px;text-align:center}.Sidebar_root__8HE0A{background-color:var(--theme-color-background-chat);display:none}@media only screen and (min-width:768px){.Sidebar_root__8HE0A{position:sticky;display:block}}.Sidebar_root__8HE0A>div{display:flex;flex-flow:column nowrap;flex-grow:1!important;height:100%!important}.ActionButtonRow_row__SiEGe{padding:.3rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end}.ActionButtonRow_row__SiEGe button{margin-left:.3rem;margin-right:.3rem}.ActionButton_button__z5Z2c{margin:3px;font-weight:400;font-family:var(--theme-text-display-font-family)}.ActionButton_button__z5Z2c .ActionButton_icon__EPp7Q{width:20px;margin-right:3px}.OfflineBanner_outerContainer__3AbsB{display:flex;justify-content:center}.OfflineBanner_innerContainer__zTm13{width:clamp(0px,100%,600px);display:flex;flex-direction:column;color:var(--theme-color-components-text-on-light);background-color:var(--theme-color-background-main);margin:1rem auto;border-radius:var(--theme-rounded-corners);padding:1rem;font-size:1.2rem;border:1px solid #d3d3d3}.OfflineBanner_bodyText__nNNy0{line-height:1.5rem}.OfflineBanner_separator___j_Ss{margin-top:15px;margin-bottom:15px}.OfflineBanner_lastLiveDate___UZdO{margin-top:15px;font-size:1rem;opacity:.5}.OfflineBanner_lastLiveDate___UZdO .OfflineBanner_clockIcon__s0DB_{margin-right:5px}.OfflineBanner_header__Vu20o{font-weight:700}.OfflineBanner_footer__o3Zl5{margin-top:15px}.OfflineBanner_actionLink__b4Mwa{color:var(--theme-color-action);text-decoration:underline;cursor:pointer}.OfflineBanner_actionLink__b4Mwa:hover{color:var(--color-owncast-palette-7)}.Logo_root__jKiJC{display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;margin-right:.5rem;width:96px;height:96px;border-radius:50%;border-width:5px;border-style:solid;border-color:var(--theme-color-palette-0);background-color:var(--theme-color-palette-4)}.Logo_container__A4UYT{width:90%;height:90%;border-radius:50%;overflow:hidden}.Logo_image__Ahkom{width:100%;height:100%;background-size:cover;background-position:50%;overflow:hidden}.SocialLinks_link___CcSm{width:1.8em;margin-right:16px}.SocialLinks_links__gOAb7{display:flex;align-items:center;justify-content:flex-start;margin-top:5px}.ContentHeader_root__HaUG0{position:relative;display:grid;padding:1.4rem}.ContentHeader_row__9Q8gH{margin-bottom:7px}.ContentHeader_logoTitleSection__Z8pUc{display:flex;flex-direction:column}.ContentHeader_logoTitleSection__Z8pUc .ContentHeader_logo__wo_HN{margin:auto .6rem}@media only screen and (min-width:768px){.ContentHeader_logoTitleSection__Z8pUc{flex-direction:row}.ContentHeader_logoTitleSection__Z8pUc .ContentHeader_logo__wo_HN{margin:.6rem}}.ContentHeader_titleSection___6Y15{display:flex;flex-direction:column;margin-left:.6rem}.ContentHeader_titleSection___6Y15 .ContentHeader_title__E_DsI{font-family:var(--theme-text-display-font-family);color:var(--theme-color-palette-0);font-size:1.7rem;font-weight:700;line-height:30px}.ContentHeader_titleSection___6Y15 .ContentHeader_subtitle__n1Wew{font-size:1.2rem;font-weight:400;line-height:1.3;color:var(--theme-color-background-header);max-width:900px}.ContentHeader_tagList__rx3jY{color:var(--theme-color-palette-10)}.ContentHeader_tagList__rx3jY span{display:inline-block;margin-right:.5rem;font-size:.9rem;font-weight:500}.Statusbar_statusbar__AtVnB{display:flex;align-items:center;font-size:.8rem;justify-content:space-between;height:2rem;width:100%;padding:var(--content-padding);color:var(--theme-color-components-text-on-light);background-color:var(--component-background);font-family:var(--theme-text-display-font-family);font-weight:600}.SingleFollower_follower__EyBDI{border:1px solid rgba(0,0,0,.3);padding:10px;border-radius:15px;height:75px;width:250px;font-size:.8rem;overflow:hidden}.SingleFollower_follower__EyBDI:hover{border-color:var(--theme-text-link)}.SingleFollower_follower__EyBDI .SingleFollower_avatar__V9jHG{height:50px;width:50px;border:1px solid rgba(0,0,0,.3)}.SingleFollower_follower__EyBDI .SingleFollower_account__Z66vo{color:var(--theme-text-secondary);text-overflow:ellipsis}.SingleFollower_follower__EyBDI .SingleFollower_placeholder__CgsfJ{width:100%;height:100%}.FollowerCollection_followers__e_EUS{width:100%;background-color:var(--theme-color-background-light);padding:5px}.FollowerCollection_noFollowers__UaCVW{padding:calc(2*var(--content-padding));border-radius:var(--theme-rounded-corners);width:100%;background-color:var(--theme-color-background-light)}.Modal_spinner__GiSS0{position:absolute;top:50%;left:50%}.Modal_content__h9my9{display:block;height:100%;padding:2vw;background-color:var(--theme-color-components-modal-content-background);color:var(--theme-color-components-modal-content-text)}.ActionButtonMenu_item__OJQdr{display:flex;align-items:center}.ActionButtonMenu_buttonWrap__WQ9kt{display:flex;align-items:center;height:100%;padding-bottom:16px}.ActionButtonMenu_buttonWrap__WQ9kt button{height:100%}.ActionButtonMenu_icon__edY1D{height:15px;margin-right:5px}.ActionButtonMenu_menu__GChDk{color:currentColor}.FollowModal_header__la1ji{font-family:var(--theme-text-display-font-family);font-size:.8rem}.FollowModal_buttons__tt4Mc{display:flex;justify-content:flex-end;margin-top:10px}.FollowModal_instructions__HiKFF{font-family:var(--theme-text-display-font-family);font-size:.7rem;font-weight:600}.FollowModal_footer__AjucH{font-size:.5rem}.FollowModal_account__cmHkm{display:flex;flex-direction:row;margin-top:5px;margin-bottom:10px;font-size:.8rem}.FollowModal_account__cmHkm .FollowModal_logo__Ew8xK{border-radius:50%;width:4em;height:4em}.FollowModal_account__cmHkm .FollowModal_username__A_OTw{display:flex;flex-direction:column;margin-left:10px;margin-top:5px}.FollowModal_account__cmHkm .FollowModal_username__A_OTw .FollowModal_name__Sf_TP{font-weight:600}.Content_root__h1mNK{display:grid;grid-template-columns:1fr auto;width:100%;background-color:var(--theme-color-background-main)}@media only screen and (min-width:768px){.Content_root__h1mNK{height:var(--content-height)}}.Content_root__h1mNK .Content_mainSection__Gk78Y{display:flex;overflow-y:scroll;flex-direction:column}.Content_root__h1mNK .Content_topSection__JIZi0{padding:0;background-color:var(--theme-color-components-video-background)}.Content_root__h1mNK .Content_lowerSection__BZHYI{padding:0 2%;margin-bottom:2em}.Content_root__h1mNK .Content_lowerSectionMobile__hRr0_{padding:.3em}.Content_leftCol__U2TDq{display:flex;flex-direction:column}.Content_loadingSpinner__mDlYC{display:grid}.Content_main__XVf63{display:grid;flex:1 1;height:100%;grid-template-rows:1fr auto}.UserDropdown_root__IdxfQ button{border:none}.UserDropdown_root__IdxfQ button .UserDropdown_ant-space__XJTZ3 .UserDropdown_ant-space-item__w4nC2{color:var(--theme-unknown-2)}.Header_header__U4Ro1{position:sticky;top:0;height:var(--header-height)!important;justify-content:space-between;z-index:20;padding:.4rem .7rem;box-shadow:0 1px 3px 1px rgba(0,0,0,.1);background-color:var(--theme-color-background-header)}.Header_header__U4Ro1,.Header_header__U4Ro1 .Header_logo__HLZ6Z{display:flex;align-items:center}.Header_header__U4Ro1 .Header_logo__HLZ6Z span{color:var(--theme-color-components-text-on-dark);font-family:var(--theme-text-display-font-family);margin-left:.5rem;font-size:clamp(1rem,4vw,2rem);font-weight:600} \ No newline at end of file diff --git a/static/web/_next/static/css/df2265f42be36c15.css b/static/web/_next/static/css/df2265f42be36c15.css new file mode 100644 index 000000000..fe5ccca57 --- /dev/null +++ b/static/web/_next/static/css/df2265f42be36c15.css @@ -0,0 +1 @@ +.OfflineBanner_outerContainer__3AbsB{display:flex;justify-content:center}.OfflineBanner_innerContainer__zTm13{width:clamp(0px,100%,600px);display:flex;flex-direction:column;color:var(--theme-color-components-text-on-light);background-color:var(--theme-color-background-main);margin:1rem auto;border-radius:var(--theme-rounded-corners);padding:1rem;font-size:1.2rem;border:1px solid #d3d3d3}.OfflineBanner_bodyText__nNNy0{line-height:1.5rem}.OfflineBanner_separator___j_Ss{margin-top:15px;margin-bottom:15px}.OfflineBanner_lastLiveDate___UZdO{margin-top:15px;font-size:1rem;opacity:.5}.OfflineBanner_lastLiveDate___UZdO .OfflineBanner_clockIcon__s0DB_{margin-right:5px}.OfflineBanner_header__Vu20o{font-weight:700}.OfflineBanner_footer__o3Zl5{margin-top:15px}.OfflineBanner_actionLink__b4Mwa{color:var(--theme-color-action);text-decoration:underline;cursor:pointer}.OfflineBanner_actionLink__b4Mwa:hover{color:var(--color-owncast-palette-7)}.Statusbar_statusbar__AtVnB{display:flex;align-items:center;font-size:.8rem;justify-content:space-between;height:2rem;width:100%;padding:var(--content-padding);color:var(--theme-color-components-text-on-light);background-color:var(--component-background);font-family:var(--theme-text-display-font-family);font-weight:600}.VideoJS_player__GT8FN{height:auto!important;width:100%}.VideoJS_player__GT8FN video{position:static!important}@media only screen and (min-width:768px){.VideoJS_player__GT8FN{height:30vh!important}}.VideoJS_poster__nlmqm{width:100%;height:100%}.VideoPoster_poster__RDkSk{background-color:#000;display:flex;justify-content:center;width:100%;height:100%} \ No newline at end of file diff --git a/static/web/admin/access-tokens/index.html b/static/web/admin/access-tokens/index.html index 24feb7ebd..0dc937430 100644 --- a/static/web/admin/access-tokens/index.html +++ b/static/web/admin/access-tokens/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file diff --git a/static/web/admin/actions/index.html b/static/web/admin/actions/index.html index ae3ff9202..fefc3c27c 100644 --- a/static/web/admin/actions/index.html +++ b/static/web/admin/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file diff --git a/static/web/admin/chat/messages/index.html b/static/web/admin/chat/messages/index.html index 472f170ec..8e755bd44 100644 --- a/static/web/admin/chat/messages/index.html +++ b/static/web/admin/chat/messages/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file diff --git a/static/web/admin/chat/users/index.html b/static/web/admin/chat/users/index.html index d80b999f5..25d751a00 100644 --- a/static/web/admin/chat/users/index.html +++ b/static/web/admin/chat/users/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file diff --git a/static/web/admin/config-chat/index.html b/static/web/admin/config-chat/index.html index 7911103aa..3134022f9 100644 --- a/static/web/admin/config-chat/index.html +++ b/static/web/admin/config-chat/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/config-federation/index.html b/static/web/admin/config-federation/index.html index 4af5e17db..4546cdb87 100644 --- a/static/web/admin/config-federation/index.html +++ b/static/web/admin/config-federation/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/config-notify/index.html b/static/web/admin/config-notify/index.html index 58e1313a3..2f2c4f0a3 100644 --- a/static/web/admin/config-notify/index.html +++ b/static/web/admin/config-notify/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file diff --git a/static/web/admin/config-public-details/index.html b/static/web/admin/config-public-details/index.html index a20c037f8..fd7262e68 100644 --- a/static/web/admin/config-public-details/index.html +++ b/static/web/admin/config-public-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file diff --git a/static/web/admin/config-server-details/index.html b/static/web/admin/config-server-details/index.html index 8d60f629d..f897fd957 100644 --- a/static/web/admin/config-server-details/index.html +++ b/static/web/admin/config-server-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file diff --git a/static/web/admin/config-social-items/index.html b/static/web/admin/config-social-items/index.html index 9bc5a2d85..1e78b074b 100644 --- a/static/web/admin/config-social-items/index.html +++ b/static/web/admin/config-social-items/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file diff --git a/static/web/admin/config-storage/index.html b/static/web/admin/config-storage/index.html index 7c3822b57..62c060015 100644 --- a/static/web/admin/config-storage/index.html +++ b/static/web/admin/config-storage/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file diff --git a/static/web/admin/config-video/index.html b/static/web/admin/config-video/index.html index 6650d3910..89a8f0f8c 100644 --- a/static/web/admin/config-video/index.html +++ b/static/web/admin/config-video/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file diff --git a/static/web/admin/federation/actions/index.html b/static/web/admin/federation/actions/index.html index 78c0c535a..708a9ffae 100644 --- a/static/web/admin/federation/actions/index.html +++ b/static/web/admin/federation/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No Data
\ No newline at end of file diff --git a/static/web/admin/federation/followers/index.html b/static/web/admin/federation/followers/index.html index 55a441ce2..8b37f9340 100644 --- a/static/web/admin/federation/followers/index.html +++ b/static/web/admin/federation/followers/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No Data
\ No newline at end of file diff --git a/static/web/admin/hardware-info/index.html b/static/web/admin/hardware-info/index.html index eb04773d8..564978c19 100644 --- a/static/web/admin/hardware-info/index.html +++ b/static/web/admin/hardware-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file diff --git a/static/web/admin/help/index.html b/static/web/admin/help/index.html index f3d46cabf..d26245d33 100644 --- a/static/web/admin/help/index.html +++ b/static/web/admin/help/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file diff --git a/static/web/admin/index.html b/static/web/admin/index.html index 7db7e475e..0e6264af6 100644 --- a/static/web/admin/index.html +++ b/static/web/admin/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file diff --git a/static/web/admin/logs/index.html b/static/web/admin/logs/index.html index 25f06999b..888c7bbef 100644 --- a/static/web/admin/logs/index.html +++ b/static/web/admin/logs/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/stream-health/index.html b/static/web/admin/stream-health/index.html index b158f2a77..e58274859 100644 --- a/static/web/admin/stream-health/index.html +++ b/static/web/admin/stream-health/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file diff --git a/static/web/admin/upgrade/index.html b/static/web/admin/upgrade/index.html index 8d9518168..b85f6209e 100644 --- a/static/web/admin/upgrade/index.html +++ b/static/web/admin/upgrade/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file diff --git a/static/web/admin/viewer-info/index.html b/static/web/admin/viewer-info/index.html index f844fc1da..b4a792bdf 100644 --- a/static/web/admin/viewer-info/index.html +++ b/static/web/admin/viewer-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file diff --git a/static/web/admin/webhooks/index.html b/static/web/admin/webhooks/index.html index e523a597f..d2959392e 100644 --- a/static/web/admin/webhooks/index.html +++ b/static/web/admin/webhooks/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file diff --git a/static/web/embed/chat/readonly/index.html b/static/web/embed/chat/readonly/index.html index 69e3f611e..3ff5f1dfe 100644 --- a/static/web/embed/chat/readonly/index.html +++ b/static/web/embed/chat/readonly/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/chat/readwrite/index.html b/static/web/embed/chat/readwrite/index.html index bce7a4656..c0e42a14f 100644 --- a/static/web/embed/chat/readwrite/index.html +++ b/static/web/embed/chat/readwrite/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/video/index.html b/static/web/embed/video/index.html index f28ad68f7..7ac69b3e2 100644 --- a/static/web/embed/video/index.html +++ b/static/web/embed/video/index.html @@ -1 +1 @@ -
This stream is offline. Check back soon!
\ No newline at end of file +
This stream is offline. Check back soon!
\ No newline at end of file diff --git a/static/web/index.html b/static/web/index.html index 07cea41c3..11816d758 100644 --- a/static/web/index.html +++ b/static/web/index.html @@ -1,4 +1,4 @@ {{.Name}}
Chat offline
Logo
Preview
\ No newline at end of file + {{.Name}}
Chat offline
Logo
Preview
\ No newline at end of file