mirror of
https://github.com/owncast/owncast.git
synced 2025-01-07 09:07:31 +03:00
1 line
No EOL
9 KiB
JavaScript
Vendored
1 line
No EOL
9 KiB
JavaScript
Vendored
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6179],{48983:function(e,t,n){var a=n(40371)("length");e.exports=a},40371:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},18190:function(e){var t=Math.floor;e.exports=function(e,n){var a="";if(!e||n<1||n>9007199254740991)return a;do n%2&&(a+=e),(n=t(n/2))&&(e+=e);while(n);return a}},78302:function(e,t,n){var a=n(18190),r=n(80531),c=n(40180),o=n(62689),l=n(88016),i=n(83140),u=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":r(t)).length;if(n<2)return n?a(t,e):t;var s=a(t,u(e/l(t)));return o(t)?c(i(s),0,e).join(""):s.slice(0,e)}},88016:function(e,t,n){var a=n(48983),r=n(62689),c=n(21903);e.exports=function(e){return r(e)?c(e):a(e)}},21903:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\ud83c[\udffb-\udfff]",r="[^"+t+"]",c="(?:\ud83c[\udde6-\uddff]){2}",o="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+n+"|"+a+")?",i="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[r,c,o].join("|")+")"+i+l+")*",s=RegExp(a+"(?="+a+")|(?:"+[r+n+"?",n,c,o,"["+t+"]"].join("|")+")"+(i+l+u),"g");e.exports=function(e){for(var t=s.lastIndex=0;s.test(e);)++t;return t}},11726:function(e,t,n){var a=n(78302),r=n(88016),c=n(40554),o=n(79833);e.exports=function(e,t,n){e=o(e);var l=(t=c(t))?r(e):0;return t&&l<t?e+a(t-l,n):e}},32475:function(e,t,n){var a=n(78302),r=n(88016),c=n(40554),o=n(79833);e.exports=function(e,t,n){e=o(e);var l=(t=c(t))?r(e):0;return t&&l<t?a(t-l,n)+e:e}},18601:function(e,t,n){var a=n(14841),r=1/0;e.exports=function(e){return e?(e=a(e))===r||e===-r?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},40554:function(e,t,n){var a=n(18601);e.exports=function(e){var t=a(e),n=t%1;return t==t?n?t-n:t:0}},3816:function(e,t,n){"use strict";n.d(t,{default:function(){return g}});var a=n(4942),r=n(87462),c=n(93967),o=n.n(c),l=n(97485),i=n(67294),u=n(17399),s=n(23173),f=n(62828),d=n(89307),v=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n},m=function(e){var t=e.prefixCls,n=e.className,c=e.hoverable,l=void 0===c||c,s=v(e,["prefixCls","className","hoverable"]);return i.createElement(u.C,null,function(e){var c=(0,e.getPrefixCls)("card",t),u=o()("".concat(c,"-grid"),n,(0,a.Z)({},"".concat(c,"-grid-hoverable"),l));return i.createElement("div",(0,r.Z)({},s,{className:u}))})},p=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n},y=i.forwardRef(function(e,t){var n,c,v=i.useContext(u.E_),y=v.getPrefixCls,b=v.direction,g=i.useContext(s.Z),h=e.prefixCls,E=e.className,x=e.extra,N=e.headStyle,Z=e.bodyStyle,C=e.title,O=e.loading,w=e.bordered,S=e.size,j=e.type,P=e.cover,k=e.actions,M=e.tabList,T=e.children,D=e.activeTabKey,I=e.defaultActiveTabKey,K=e.tabBarExtraContent,R=e.hoverable,_=e.tabProps,B=p(e,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),L=y("card",h),z=i.createElement(f.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},T),A=void 0!==D,H=(0,r.Z)((0,r.Z)({},void 0===_?{}:_),(0,a.Z)((0,a.Z)({},A?"activeKey":"defaultActiveKey",A?D:I),"tabBarExtraContent",K)),G=M&&M.length?i.createElement(d.Z,(0,r.Z)({size:"large"},H,{className:"".concat(L,"-head-tabs"),onChange:function(t){var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:M.map(function(e){var t;return{label:e.tab,key:e.key,disabled:null!==(t=e.disabled)&&void 0!==t&&t}})})):null;(C||x||G)&&(c=i.createElement("div",{className:"".concat(L,"-head"),style:void 0===N?{}:N},i.createElement("div",{className:"".concat(L,"-head-wrapper")},C&&i.createElement("div",{className:"".concat(L,"-head-title")},C),x&&i.createElement("div",{className:"".concat(L,"-extra")},x)),G));var F=P?i.createElement("div",{className:"".concat(L,"-cover")},P):null,Y=i.createElement("div",{className:"".concat(L,"-body"),style:void 0===Z?{}:Z},O?z:T),$=k&&k.length?i.createElement("ul",{className:"".concat(L,"-actions")},k.map(function(e,t){return i.createElement("li",{style:{width:"".concat(100/k.length,"%")},key:"action-".concat(t)},i.createElement("span",null,e))})):null,q=(0,l.Z)(B,["onTabChange"]),J=S||g,Q=o()(L,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(L,"-loading"),O),"".concat(L,"-bordered"),void 0===w||w),"".concat(L,"-hoverable"),R),"".concat(L,"-contain-grid"),(i.Children.forEach(e.children,function(e){e&&e.type&&e.type===m&&(n=!0)}),n)),"".concat(L,"-contain-tabs"),M&&M.length),"".concat(L,"-").concat(J),J),"".concat(L,"-type-").concat(j),!!j),"".concat(L,"-rtl"),"rtl"===b),E);return i.createElement("div",(0,r.Z)({ref:t},q,{className:Q}),c,F,Y,$)}),b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)0>t.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};y.Grid=m,y.Meta=function(e){return i.createElement(u.C,null,function(t){var n=t.getPrefixCls,a=e.prefixCls,c=e.className,l=e.avatar,u=e.title,s=e.description,f=b(e,["prefixCls","className","avatar","title","description"]),d=n("card",a),v=o()("".concat(d,"-meta"),c),m=l?i.createElement("div",{className:"".concat(d,"-meta-avatar")},l):null,p=u?i.createElement("div",{className:"".concat(d,"-meta-title")},u):null,y=s?i.createElement("div",{className:"".concat(d,"-meta-description")},s):null,g=p||y?i.createElement("div",{className:"".concat(d,"-meta-detail")},p,y):null;return i.createElement("div",(0,r.Z)({},f,{className:v}),m,g)})};var g=y},75543:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var a=n(87462),r=n(67294),c=n(64773),o=n(84476),l=n(4942),i=n(93967),u=n.n(i),s=n(17399),f=n(62828),d=n(11726),v=n.n(d),m=function(e){var t,n=e.value,a=e.formatter,c=e.precision,o=e.decimalSeparator,l=e.groupSeparator,i=e.prefixCls;if("function"==typeof a)t=a(n);else{var u=String(n),s=u.match(/^(-?)(\d*)(\.(\d+))?$/);if(s&&"-"!==u){var f=s[1],d=s[2]||"0",m=s[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,void 0===l?"":l),"number"==typeof c&&(m=v()(m,c,"0").slice(0,c>0?c:0)),m&&(m="".concat(o).concat(m)),t=[r.createElement("span",{key:"int",className:"".concat(i,"-content-value-int")},f,d),m&&r.createElement("span",{key:"decimal",className:"".concat(i,"-content-value-decimal")},m)]}else t=u}return r.createElement("span",{className:"".concat(i,"-content-value")},t)},p=(0,s.PG)({prefixCls:"statistic"})(function(e){var t=e.prefixCls,n=e.className,c=e.style,o=e.valueStyle,i=e.value,s=e.title,d=e.valueRender,v=e.prefix,p=e.suffix,y=e.loading,b=e.direction,g=e.onMouseEnter,h=e.onMouseLeave,E=e.decimalSeparator,x=e.groupSeparator,N=r.createElement(m,(0,a.Z)({decimalSeparator:void 0===E?".":E,groupSeparator:void 0===x?",":x},e,{value:void 0===i?0:i})),Z=u()(t,(0,l.Z)({},"".concat(t,"-rtl"),"rtl"===b),n);return r.createElement("div",{className:Z,style:c,onMouseEnter:g,onMouseLeave:h},s&&r.createElement("div",{className:"".concat(t,"-title")},s),r.createElement(f.Z,{paragraph:!1,loading:void 0!==y&&y,className:"".concat(t,"-skeleton")},r.createElement("div",{style:o,className:"".concat(t,"-content")},v&&r.createElement("span",{className:"".concat(t,"-content-prefix")},v),d?d(N):N,p&&r.createElement("span",{className:"".concat(t,"-content-suffix")},p))))}),y=n(97685),b=n(32475),g=n.n(b),h=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],E=1e3/30,x=r.memo(function(e){var t=e.value,n=e.format,l=void 0===n?"HH:mm:ss":n,i=e.onChange,u=e.onFinish,s=(0,c.Z)(),f=r.useRef(null),d=function(){null==u||u(),f.current&&(clearInterval(f.current),f.current=null)},v=function(){var e=new Date(t).getTime();e>=Date.now()&&(f.current=setInterval(function(){s(),null==i||i(e-Date.now()),e<Date.now()&&d()},E))};return r.useEffect(function(){return v(),function(){f.current&&(clearInterval(f.current),f.current=null)}},[t]),r.createElement(p,(0,a.Z)({},e,{valueRender:function(e){return(0,o.Tm)(e,{title:void 0})},formatter:function(e,t){var n,r,c,o,i,u,s,f,d;return n=(0,a.Z)((0,a.Z)({},t),{format:l}).format,r=Math.max(new Date(e).getTime()-Date.now(),0),c=void 0===n?"":n,o=r,i=/\[[^\]]*]/g,u=(c.match(i)||[]).map(function(e){return e.slice(1,-1)}),s=c.replace(i,"[]"),f=h.reduce(function(e,t){var n=(0,y.Z)(t,2),a=n[0],r=n[1];if(e.includes(a)){var c=Math.floor(o/r);return o-=c*r,e.replace(RegExp("".concat(a,"+"),"g"),function(e){var t=e.length;return g()(c.toString(),t,"0")})}return e},s),d=0,f.replace(i,function(){var e=u[d];return d+=1,e})}}))});p.Countdown=x;var N=p}}]); |