owncast/static/web/_next/static/chunks/271-340423503b9c3629.js
2023-06-06 04:41:15 +00:00

1 line
23 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[271],{27049:function(e,t,n){var a=n(87462),r=n(4942),i=n(94184),o=n.n(i),u=n(67294),s=n(53124),c=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};t.Z=function(e){var t,n=u.useContext(s.E_),i=n.getPrefixCls,l=n.direction,d=e.prefixCls,f=e.type,m=void 0===f?"horizontal":f,h=e.orientation,v=void 0===h?"center":h,g=e.orientationMargin,y=e.className,p=e.children,b=e.dashed,w=e.plain,Z=c(e,["prefixCls","type","orientation","orientationMargin","className","children","dashed","plain"]),M=i("divider",d),k=v.length>0?"-".concat(v):v,C=!!p,E="left"===v&&null!=g,N="right"===v&&null!=g,x=o()(M,"".concat(M,"-").concat(m),(t={},(0,r.Z)(t,"".concat(M,"-with-text"),C),(0,r.Z)(t,"".concat(M,"-with-text").concat(k),C),(0,r.Z)(t,"".concat(M,"-dashed"),!!b),(0,r.Z)(t,"".concat(M,"-plain"),!!w),(0,r.Z)(t,"".concat(M,"-rtl"),"rtl"===l),(0,r.Z)(t,"".concat(M,"-no-default-orientation-margin-left"),E),(0,r.Z)(t,"".concat(M,"-no-default-orientation-margin-right"),N),t),y),P=(0,a.Z)((0,a.Z)({},E&&{marginLeft:g}),N&&{marginRight:g});return u.createElement("div",(0,a.Z)({className:x},Z,{role:"separator"}),p&&"vertical"!==m&&u.createElement("span",{className:"".concat(M,"-inner-text"),style:P},p))}},26303:function(e,t,n){n.d(t,{Z:function(){return M}});var a=n(4942),r=n(87462),i=n(71002),o=n(94184),u=n.n(o),s=n(67294),c=n(53124),l=n(98423),d=function(e){var t,n,i=e.prefixCls,o=e.className,c=e.style,l=e.size,d=e.shape,f=u()((t={},(0,a.Z)(t,"".concat(i,"-lg"),"large"===l),(0,a.Z)(t,"".concat(i,"-sm"),"small"===l),t)),m=u()((n={},(0,a.Z)(n,"".concat(i,"-circle"),"circle"===d),(0,a.Z)(n,"".concat(i,"-square"),"square"===d),(0,a.Z)(n,"".concat(i,"-round"),"round"===d),n)),h=s.useMemo(function(){return"number"==typeof l?{width:l,height:l,lineHeight:"".concat(l,"px")}:{}},[l]);return s.createElement("span",{className:u()(i,f,m,o),style:(0,r.Z)((0,r.Z)({},h),c)})},f=n(1413),m={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"},h=n(42135),v=function(e,t){return s.createElement(h.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:t,icon:m}))};v.displayName="DotChartOutlined";var g=s.forwardRef(v),y=n(74902),p=function(e){var t=function(t){var n=e.width,a=e.rows;return Array.isArray(n)?n[t]:(void 0===a?2:a)-1===t?n:void 0},n=e.prefixCls,a=e.className,r=e.style,i=e.rows,o=(0,y.Z)(Array(i)).map(function(e,n){return s.createElement("li",{key:n,style:{width:t(n)}})});return s.createElement("ul",{className:u()(n,a),style:r},o)},b=function(e){var t=e.prefixCls,n=e.className,a=e.width,i=e.style;return s.createElement("h3",{className:u()(t,n),style:(0,r.Z)({width:a},i)})};function w(e){return e&&"object"===(0,i.Z)(e)?e:{}}var Z=function(e){var t=e.prefixCls,n=e.loading,i=e.className,o=e.style,l=e.children,f=e.avatar,m=void 0!==f&&f,h=e.title,v=void 0===h||h,g=e.paragraph,y=void 0===g||g,Z=e.active,M=e.round,k=s.useContext(c.E_),C=k.getPrefixCls,E=k.direction,N=C("skeleton",t);if(n||!("loading"in e)){var x=!!m,P=!!v,W=!!y;if(x){var S=(0,r.Z)((0,r.Z)({prefixCls:"".concat(N,"-avatar")},P&&!W?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),w(m));D=s.createElement("div",{className:"".concat(N,"-header")},s.createElement(d,(0,r.Z)({},S)))}if(P||W){if(P){var A,D,j,O,z,L=(0,r.Z)((0,r.Z)({prefixCls:"".concat(N,"-title")},!x&&W?{width:"38%"}:x&&W?{width:"50%"}:{}),w(v));O=s.createElement(b,(0,r.Z)({},L))}if(W){var T,q=(0,r.Z)((0,r.Z)({prefixCls:"".concat(N,"-paragraph")},(T={},x&&P||(T.width="61%"),!x&&P?T.rows=3:T.rows=2,T)),w(y));z=s.createElement(p,(0,r.Z)({},q))}j=s.createElement("div",{className:"".concat(N,"-content")},O,z)}var F=u()(N,(A={},(0,a.Z)(A,"".concat(N,"-with-avatar"),x),(0,a.Z)(A,"".concat(N,"-active"),Z),(0,a.Z)(A,"".concat(N,"-rtl"),"rtl"===E),(0,a.Z)(A,"".concat(N,"-round"),M),A),i);return s.createElement("div",{className:F,style:o},D,j)}return void 0!==l?l:null};Z.Button=function(e){var t,n=e.prefixCls,i=e.className,o=e.active,f=e.block,m=e.size,h=(0,s.useContext(c.E_).getPrefixCls)("skeleton",n),v=(0,l.Z)(e,["prefixCls"]),g=u()(h,"".concat(h,"-element"),(t={},(0,a.Z)(t,"".concat(h,"-active"),o),(0,a.Z)(t,"".concat(h,"-block"),void 0!==f&&f),t),i);return s.createElement("div",{className:g},s.createElement(d,(0,r.Z)({prefixCls:"".concat(h,"-button"),size:void 0===m?"default":m},v)))},Z.Avatar=function(e){var t=e.prefixCls,n=e.className,i=e.active,o=e.shape,f=e.size,m=(0,s.useContext(c.E_).getPrefixCls)("skeleton",t),h=(0,l.Z)(e,["prefixCls","className"]),v=u()(m,"".concat(m,"-element"),(0,a.Z)({},"".concat(m,"-active"),i),n);return s.createElement("div",{className:v},s.createElement(d,(0,r.Z)({prefixCls:"".concat(m,"-avatar"),shape:void 0===o?"circle":o,size:void 0===f?"default":f},h)))},Z.Input=function(e){var t,n=e.prefixCls,i=e.className,o=e.active,f=e.block,m=e.size,h=(0,s.useContext(c.E_).getPrefixCls)("skeleton",n),v=(0,l.Z)(e,["prefixCls"]),g=u()(h,"".concat(h,"-element"),(t={},(0,a.Z)(t,"".concat(h,"-active"),o),(0,a.Z)(t,"".concat(h,"-block"),f),t),i);return s.createElement("div",{className:g},s.createElement(d,(0,r.Z)({prefixCls:"".concat(h,"-input"),size:void 0===m?"default":m},v)))},Z.Image=function(e){var t=e.prefixCls,n=e.className,r=e.style,i=e.active,o=(0,s.useContext(c.E_).getPrefixCls)("skeleton",t),l=u()(o,"".concat(o,"-element"),(0,a.Z)({},"".concat(o,"-active"),i),n);return s.createElement("div",{className:l},s.createElement("div",{className:u()("".concat(o,"-image"),n),style:r},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(o,"-image-svg")},s.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(o,"-image-path")}))))},Z.Node=function(e){var t=e.prefixCls,n=e.className,r=e.style,i=e.active,o=e.children,l=(0,s.useContext(c.E_).getPrefixCls)("skeleton",t),d=u()(l,"".concat(l,"-element"),(0,a.Z)({},"".concat(l,"-active"),i),n),f=null!=o?o:s.createElement(g,null);return s.createElement("div",{className:d},s.createElement("div",{className:u()("".concat(l,"-image"),n),style:r},f))};var M=Z},86559:function(e,t,n){n.d(t,{Z:function(){return l}});var a,r={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"}};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({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:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return function(t,n){var a;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):r;a=e.formattingValues[i]||e.formattingValues[r]}else{var o=e.defaultWidth,u=null!=n&&n.width?String(n.width):e.defaultWidth;a=e.values[u]||e.values[o]}return a[e.argumentCallback?e.argumentCallback(t):t]}}function c(e){return function(t){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var u=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(s,function(e){return e.test(u)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(s,function(e){return e.test(u)});return n=e.valueCallback?e.valueCallback(c):c,{value:n=a.valueCallback?a.valueCallback(n):n,rest:t.slice(u.length)}}}var l={code:"en-US",formatDistance:function(e,t,n){var a,i=r[e];return(a="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},formatLong:o,formatRelative:function(e,t,n,a){return u[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:s({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:s({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:s({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"})},match:{ordinalNumber:(a={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(a.matchPattern);if(!n)return null;var r=n[0],i=e.match(a.parsePattern);if(!i)return null;var o=a.valueCallback?a.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:c({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:c({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(e){return e+1}}),month:c({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:c({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:c({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"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(e,t,n){n.d(t,{j:function(){return r}});var a={};function r(){return a}},24262:function(e,t,n){n.d(t,{Z:function(){return a}});function a(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}},83946:function(e,t,n){n.d(t,{Z:function(){return a}});function a(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}},77349:function(e,t,n){n.d(t,{Z:function(){return o}});var a=n(83946),r=n(19013),i=n(13882);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,a.Z)(t);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}},11640:function(e,t,n){n.d(t,{Z:function(){return o}});var a=n(83946),r=n(19013),i=n(13882);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,a.Z)(t);if(isNaN(o))return new Date(NaN);if(!o)return n;var u=n.getDate(),s=new Date(n.getTime());return(s.setMonth(n.getMonth()+o+1,0),u>=s.getDate())?s:(n.setFullYear(s.getFullYear(),s.getMonth(),u),n)}},75401:function(e,t,n){n.d(t,{Z:function(){return u}});var a=n(24262),r=n(19013),i=n(13882);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(0,0,0,0),t}function u(e,t){(0,i.Z)(2,arguments);var n=o(e),r=o(t);return Math.round((n.getTime()-(0,a.Z)(n)-(r.getTime()-(0,a.Z)(r)))/864e5)}},68730:function(e,t,n){n.d(t,{Z:function(){return y}});var a=n(49474),r=n(71002),i=n(77349),o=n(11640),u=n(19013),s=n(13882),c=n(83946);function l(e,t){if((0,s.Z)(2,arguments),!t||"object"!==(0,r.Z)(t))return new Date(NaN);var n=t.years?(0,c.Z)(t.years):0,a=t.months?(0,c.Z)(t.months):0,l=t.weeks?(0,c.Z)(t.weeks):0,d=t.days?(0,c.Z)(t.days):0,f=t.hours?(0,c.Z)(t.hours):0,m=t.minutes?(0,c.Z)(t.minutes):0,h=t.seconds?(0,c.Z)(t.seconds):0,v=(0,u.Z)(e),g=a||n?(0,o.Z)(v,a+12*n):v,y=d||l?(0,i.Z)(g,d+7*l):g;return new Date(y.getTime()+1e3*(h+60*(m+60*f)))}var d=n(75401);function f(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}var m=n(59910),h=n(93645),v=n(82161),g=n(11699);function y(e){(0,s.Z)(1,arguments);var t=(0,u.Z)(e.start),n=(0,u.Z)(e.end);if(isNaN(t.getTime()))throw RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw RangeError("End Date is invalid");var r={};r.years=Math.abs(function(e,t){(0,s.Z)(2,arguments);var n=(0,u.Z)(e),r=(0,u.Z)(t),i=(0,a.Z)(n,r),o=Math.abs(function(e,t){(0,s.Z)(2,arguments);var n=(0,u.Z)(e),a=(0,u.Z)(t);return n.getFullYear()-a.getFullYear()}(n,r));n.setFullYear(1584),r.setFullYear(1584);var c=(0,a.Z)(n,r)===-i,l=i*(o-Number(c));return 0===l?0:l}(n,t));var i=(0,a.Z)(n,t),o=l(t,{years:i*r.years});r.months=Math.abs((0,v.Z)(n,o));var c=l(o,{months:i*r.months});r.days=Math.abs(function(e,t){(0,s.Z)(2,arguments);var n=(0,u.Z)(e),a=(0,u.Z)(t),r=f(n,a),i=Math.abs((0,d.Z)(n,a));n.setDate(n.getDate()-r*i);var o=Number(f(n,a)===-r),c=r*(i-o);return 0===c?0:c}(n,c));var y=l(c,{days:i*r.days});r.hours=Math.abs(function(e,t,n){(0,s.Z)(2,arguments);var a=(0,m.Z)(e,t)/36e5;return(0,h.u)(null==n?void 0:n.roundingMethod)(a)}(n,y));var p=l(y,{hours:i*r.hours});r.minutes=Math.abs(function(e,t,n){(0,s.Z)(2,arguments);var a=(0,m.Z)(e,t)/6e4;return(0,h.u)(null==n?void 0:n.roundingMethod)(a)}(n,p));var b=l(p,{minutes:i*r.minutes});return r.seconds=Math.abs((0,g.Z)(n,b)),r}},46977:function(e,t,n){n.d(t,{y1:function(){return b}});var a=n(67294);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}n(85893);var i=["shift","alt","meta","mod","ctrl"],o={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function u(e){return(o[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function s(e,t){return void 0===t&&(t=","),e.split(t)}function c(e,t,n){void 0===t&&(t="+");var a=e.toLocaleLowerCase().split(t).map(function(e){return u(e)});return r({},{alt:a.includes("alt"),ctrl:a.includes("ctrl")||a.includes("control"),shift:a.includes("shift"),meta:a.includes("meta"),mod:a.includes("mod")},{keys:a.filter(function(e){return!i.includes(e)}),description:n})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(e){void 0!==e.key&&d([u(e.key),u(e.code)])}),document.addEventListener("keyup",function(e){void 0!==e.key&&f([u(e.key),u(e.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){l.clear()});var l=new Set;function d(e){var t=Array.isArray(e)?e:[e];l.has("meta")&&l.forEach(function(e){return!i.includes(e)&&l.delete(e.toLowerCase())}),t.forEach(function(e){return l.add(e.toLowerCase())})}function f(e){var t=Array.isArray(e)?e:[e];"meta"===e?l.clear():t.forEach(function(e){return l.delete(e.toLowerCase())})}function m(e,t){var n=e.target;void 0===t&&(t=!1);var a=n&&n.tagName;return t instanceof Array?!!(a&&t&&t.some(function(e){return e.toLowerCase()===a.toLowerCase()})):!!(a&&t&&!0===t)}var h=function(e,t,n){void 0===n&&(n=!1);var a,r=t.alt,i=t.meta,o=t.mod,s=t.shift,c=t.ctrl,d=t.keys,f=e.key,m=e.code,h=e.ctrlKey,v=e.metaKey,g=e.shiftKey,y=e.altKey,p=u(m),b=f.toLowerCase();if(!n){if(!y===r&&"alt"!==b||!g===s&&"shift"!==b)return!1;if(o){if(!v&&!h)return!1}else if(!v===i&&"meta"!==b&&"os"!==b||!h===c&&"ctrl"!==b&&"control"!==b)return!1}return!!(d&&1===d.length&&(d.includes(b)||d.includes(p)))||(d?(void 0===a&&(a=","),(Array.isArray(d)?d:d.split(a)).every(function(e){return l.has(e.trim().toLowerCase())})):!d)},v=(0,a.createContext)(void 0),g=(0,a.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),y=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},p="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;function b(e,t,n,r){var i,o=(0,a.useRef)(null),l=(0,a.useRef)(!1),b=n instanceof Array?r instanceof Array?void 0:r:n,w=e instanceof Array?e.join(null==b?void 0:b.splitKey):e,Z=n instanceof Array?n:r instanceof Array?r:void 0,M=(0,a.useCallback)(t,null!=Z?Z:[]),k=(0,a.useRef)(M);Z?k.current=M:k.current=t;var C=(!function e(t,n){return t&&n&&"object"==typeof t&&"object"==typeof n?Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce(function(a,r){return a&&e(t[r],n[r])},!0):t===n}((i=(0,a.useRef)(void 0)).current,b)&&(i.current=b),i.current),E=(0,a.useContext)(g).enabledScopes,N=(0,a.useContext)(v);return p(function(){if((null==C?void 0:C.enabled)!==!1&&(e=null==C?void 0:C.scopes,0===E.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!!(!e||E.some(function(t){return e.includes(t)})||E.includes("*")))){var e,t=function(e,t){var n;if(void 0===t&&(t=!1),!(m(e,["input","textarea","select"])&&!m(e,null==C?void 0:C.enableOnFormTags)||null!=C&&null!=C.ignoreEventWhen&&C.ignoreEventWhen(e))){if(null!==o.current&&document.activeElement!==o.current&&!o.current.contains(document.activeElement)){y(e);return}(null==(n=e.target)||!n.isContentEditable||null!=C&&C.enableOnContentEditable)&&s(w,null==C?void 0:C.splitKey).forEach(function(n){var a,r,i,o=c(n,null==C?void 0:C.combinationKey);if(h(e,o,null==C?void 0:C.ignoreModifiers)||null!=(i=o.keys)&&i.includes("*")){if(t&&l.current)return;if(("function"==typeof(a=null==C?void 0:C.preventDefault)&&a(e,o)||!0===a)&&e.preventDefault(),"function"==typeof(r=null==C?void 0:C.enabled)?!r(e,o):!0!==r&&void 0!==r){y(e);return}k.current(e,o),t||(l.current=!0)}})}},n=function(e){void 0!==e.key&&(d(u(e.code)),((null==C?void 0:C.keydown)===void 0&&(null==C?void 0:C.keyup)!==!0||null!=C&&C.keydown)&&t(e))},a=function(e){void 0!==e.key&&(f(u(e.code)),l.current=!1,null!=C&&C.keyup&&t(e,!0))},r=o.current||(null==b?void 0:b.document)||document;return r.addEventListener("keyup",a),r.addEventListener("keydown",n),N&&s(w,null==C?void 0:C.splitKey).forEach(function(e){return N.addHotkey(c(e,null==C?void 0:C.combinationKey,null==C?void 0:C.description))}),function(){r.removeEventListener("keyup",a),r.removeEventListener("keydown",n),N&&s(w,null==C?void 0:C.splitKey).forEach(function(e){return N.removeHotkey(c(e,null==C?void 0:C.combinationKey,null==C?void 0:C.description))})}}},[w,C,E]),o}}}]);