@vkontakte/videoplayer-core 2.0.179-dev.63c89cea1.0 → 2.0.179-dev.e57738f45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs +16 -16
- package/es2015.esm.js +16 -16
- package/es2015.index-cr5tw2xy.esm.js +6 -0
- package/es2015.index-t72w9xv7.esm.js +6 -0
- package/es2015.index-wknsr6rg.esm.js +6 -0
- package/esnext.cjs +15 -15
- package/esnext.esm.js +15 -15
- package/esnext.index-2891gk74.esm.js +6 -0
- package/esnext.index-cyvrx4m5.esm.js +6 -0
- package/esnext.index-hbbvp6j9.esm.js +6 -0
- package/evergreen.esm.js +15 -15
- package/evergreen.index-15ghkwj6.esm.js +6 -0
- package/evergreen.index-cbv5dxy5.esm.js +6 -0
- package/evergreen.index-hh52jbk9.esm.js +6 -0
- package/package.json +2 -2
- package/types/index.d.ts +6 -0
- package/types/lazy-logger/index.d.ts +3 -0
- package/types/lazy-worker/index.d.ts +1 -0
- package/types/lazy-worker/worker.d.ts +1 -0
- package/types/player/Player.d.ts +1 -1
- package/types/player/types.d.ts +2 -0
- package/types/providers/DashProviderVirtual/lib/player/basePlayer.d.ts +3 -2
- package/types/providers/types.d.ts +2 -2
- package/types/utils/buffer/isPositionBuffered.d.ts +1 -0
- package/types/utils/tuningConfig.d.ts +1 -0
- package/videoplayer-lazy-worker.esm.js +6 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vkontakte/videoplayer-core v2.0.179-dev.e57738f45.0
|
|
3
|
+
* Wed, 14 Oct 2026 08:33:51 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/2-0-179/doc/
|
|
5
|
+
*/
|
|
6
|
+
var e=Object.create,t=Object.getPrototypeOf,n=Object.defineProperty,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty;function a(e){return this[e]}var o,s,c=(c,l,u)=>{var d=typeof c==`object`&&!!c;if(d){var f=l?o??=new WeakMap:s??=new WeakMap,p=f.get(c);if(p)return p}u=c==null?{}:e(t(c));let m=l||!c||!c.__esModule||!i.call(c,`default`)?n(u,`default`,{value:c,enumerable:!0}):u;if(c&&typeof c==`object`||typeof c==`function`)for(let e of r(c))i.call(m,e)||n(m,e,{get:a.bind(c,e),enumerable:!0});return d&&f.set(c,m),m},l=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),u,d,f,p=(e,t)=>{for(var[n,r,i]of u||[])for(var a=[e],o=globalThis,s=o.document,c,l,p,m,h;l=a.pop();)if(!d[l]&&(p=r[l])){for(d[l]=1,m=1;m<p.length;m++)a.push(i[p[m]]);!t&&l!==e&&(c=s&&s.head)&&(f===void 0&&(f=(m=s.querySelector(`meta[property=csp-nonce]`))&&(m.nonce||m.getAttribute(`nonce`))||``),h=s.createElement(`link`),h.rel=`modulepreload`,h.crossOrigin=``,f&&(h.nonce=f),h.href=new o.URL(p[0],n),c.appendChild(h))}},m=(e,t,n,r)=>{for(var i={},a=0;a<t.length;a++)i[t[a]]=n[a];(u||=[]).push([e,i,t]),d||={},p(t[r],1)};export{c as __toESM,l as __commonJS,p as __preload,m as __chunks};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vkontakte/videoplayer-core v2.0.179-dev.e57738f45.0
|
|
3
|
+
* Wed, 14 Oct 2026 08:33:51 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/2-0-179/doc/
|
|
5
|
+
*/
|
|
6
|
+
function e(){return new Promise((e,t)=>{let n;try{n=new Worker(new URL(`./videoplayer-lazy-worker.esm.js`,import.meta.url),{type:`module`})}catch(e){t(e);return}n.onmessage=t=>{n.terminate();let r=`${t.data.message} at ${t.data.stamp}`;console.log(r),e(r)},n.onerror=e=>{n.terminate(),t(Error(`lazy worker failed to start: ${e.message}`))},n.postMessage(`ping`)})}export{e as loadLazyWorker};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vkontakte/videoplayer-core v2.0.179-dev.e57738f45.0
|
|
3
|
+
* Wed, 14 Oct 2026 08:33:51 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/2-0-179/doc/
|
|
5
|
+
*/
|
|
6
|
+
import{__toESM as e,__commonJS as t}from"./evergreen.index-15ghkwj6.esm.js";var n=e(t(function(e,t){(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var{date:t,utc:n}=e;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,{weekdays:c,months:l,meridiem:u}=n,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach(function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w})})(),1),r=`Hello world from lazy chunk`;console.log(r);function i(){return r}function a(){return n.default().format(`YYYY-MM-DD`)}export{r as LAZY_CHUNK_MESSAGE,a as chunkVendorStamp,i as hello};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer-core",
|
|
3
|
-
"version": "2.0.179-dev.
|
|
3
|
+
"version": "2.0.179-dev.e57738f45.0",
|
|
4
4
|
"author": "vk.ru",
|
|
5
5
|
"description": "Videoplayer core library based on the vk.ru platform",
|
|
6
6
|
"homepage": "https://vk.ru",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"**/*.d.ts"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@vkontakte/videoplayer-shared": "1.0.108-dev.
|
|
45
|
+
"@vkontakte/videoplayer-shared": "1.0.108-dev.e57738f45.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -17,3 +17,9 @@ import { Subscription, Observable, Subject, ValueSubject, VideoQuality } from "@
|
|
|
17
17
|
declare const SDK_VERSION: string;
|
|
18
18
|
export type { IPlayer, IPlayerInfo, IPlayerEvents, IConfig, IOptionalTuningConfig, ILogEntry, ISources, IExternalTextTrack, ITextTrack, ISubscription, IUnsubscriber, IObservable, IEmitter, IValueObservable, IValue, IOperator, IListener, IMpegSource, IDashSource, IDashURLSource, IHLSSource, IHLSLiveSource, URLSource, RawSource, URLSourceWithSeek, ExactVideoQuality, IRange, ISeekRequest, ICueSettings, PlaybackRate, IVideoStream, IAudioStream, StartEnd, HttpConnectionMetrics, HttpDownloadMetrics };
|
|
19
19
|
export { Player, PlaybackState, ChromecastState, HttpConnectionType, Surface, Subscription, VideoFormat, VideoQuality, Observable, Subject, ValueSubject, VERSION, SDK_VERSION, PredefinedQualityLimits, VideoCodec, VideoCodecName };
|
|
20
|
+
export interface LazyLoggerModule {
|
|
21
|
+
hello(): string;
|
|
22
|
+
chunkVendorStamp(): string;
|
|
23
|
+
}
|
|
24
|
+
export declare function loadLazyLogger(): Promise<LazyLoggerModule>;
|
|
25
|
+
export declare function loadLazyWorker(): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function loadLazyWorker(): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/types/player/Player.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export default class Player implements IPlayer {
|
|
|
30
30
|
experimental: PlayerExperimentalImpl;
|
|
31
31
|
private devNullLog;
|
|
32
32
|
private collectDecodingInfoDestroyCb;
|
|
33
|
-
private
|
|
33
|
+
private releaseTimers;
|
|
34
34
|
constructor(tuning?: IOptionalTuningConfig, tracer?: ITracer, playerOptions?: IPlayerOptions);
|
|
35
35
|
private readonly doInit;
|
|
36
36
|
/**
|
package/types/player/types.d.ts
CHANGED
|
@@ -315,12 +315,14 @@ export interface PlayerInfoValues {
|
|
|
315
315
|
*
|
|
316
316
|
* default value: `undefined`
|
|
317
317
|
*/
|
|
318
|
+
currentVirtualVideoBuffer$: StartEnd<Seconds> | undefined;
|
|
318
319
|
currentVideoBuffer$: StartEnd<Seconds> | undefined;
|
|
319
320
|
/**
|
|
320
321
|
* Текущий аудио-буффер плеера (тот; который содержит текущую позицию воспроизведения)
|
|
321
322
|
*
|
|
322
323
|
* default value: `undefined`
|
|
323
324
|
*/
|
|
325
|
+
currentVirtualAudioBuffer$: StartEnd<Seconds> | undefined;
|
|
324
326
|
currentAudioBuffer$: StartEnd<Seconds> | undefined;
|
|
325
327
|
/**
|
|
326
328
|
* Текущий браузерный видео-буффер (тот; который содержит текущую позицию воспроизведения)
|
|
@@ -64,10 +64,11 @@ export declare abstract class BasePlayer {
|
|
|
64
64
|
liveSeekableDuration$: IValueSubject<Milliseconds>;
|
|
65
65
|
liveAvailabilityStartTime$: IValueSubject<Milliseconds>;
|
|
66
66
|
liveStreamStatus$: IValueSubject<LiveStreamStatus | undefined>;
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
currentVirtualVideoBuffer$: IValueSubject<IRange<Seconds>>;
|
|
68
|
+
currentVirtualAudioBuffer$: IValueSubject<IRange<Seconds>>;
|
|
69
69
|
bufferLength$: IValueSubject<Milliseconds>;
|
|
70
70
|
nativeBufferLength$: IValueSubject<Milliseconds>;
|
|
71
|
+
nativeVideoBufferLength$: IValueSubject<IRange<Seconds>>;
|
|
71
72
|
nativeAudioBufferLength$: IValueSubject<IRange<Seconds>>;
|
|
72
73
|
liveLatency$: IValueSubject<Milliseconds | undefined>;
|
|
73
74
|
liveLoadBufferLength$: IValueSubject<Milliseconds>;
|
|
@@ -81,8 +81,8 @@ export interface IProviderOutput {
|
|
|
81
81
|
autoVideoTrackLimits$: IValueSubject<QualityLimits | undefined>;
|
|
82
82
|
autoVideoTrackLimitingAvailable$: IValueSubject<boolean>;
|
|
83
83
|
canChangePlaybackSpeed$: IValueSubject<boolean | undefined>;
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
currentVirtualVideoBuffer$: IValueSubject<IRange<Seconds> | undefined>;
|
|
85
|
+
currentVirtualAudioBuffer$: IValueSubject<IRange<Seconds> | undefined>;
|
|
86
86
|
currentNativeVideoBuffer$: IValueSubject<IRange<Seconds> | undefined>;
|
|
87
87
|
currentNativeAudioBuffer$: IValueSubject<IRange<Seconds> | undefined>;
|
|
88
88
|
totalBufferDuration$: IValueSubject<Milliseconds | undefined>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
2
2
|
declare const _default: (timeRanges: TimeRanges, position: Milliseconds, tolerance?: number) => boolean;
|
|
3
3
|
export default _default;
|
|
4
|
+
export declare const isTimeRangeBuffered: (timeRanges: TimeRanges, from: Milliseconds, to: Milliseconds) => boolean;
|
|
@@ -287,6 +287,7 @@ export type ITuningConfig = {
|
|
|
287
287
|
* При `true` — эксперимент: `switchMutex` не блокирует `maintainNativeBuffer`.
|
|
288
288
|
*/
|
|
289
289
|
enableMaintainNativeBufferSwitchMutexBypass: boolean;
|
|
290
|
+
skipReloadOfFullyBufferedPartiallyEjectedSegments: boolean;
|
|
290
291
|
};
|
|
291
292
|
dashCmafLive: {
|
|
292
293
|
externalStopControl: boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vkontakte/videoplayer-core v2.0.179-dev.e57738f45.0
|
|
3
|
+
* Wed, 14 Oct 2026 08:33:51 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/2-0-179/doc/
|
|
5
|
+
*/
|
|
6
|
+
var e=Object.create,t=Object.getPrototypeOf,n=Object.defineProperty,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty;function a(e){return this[e]}var o,s,c=((c,l,u)=>{var d=typeof c==`object`&&!!c;if(d){var f=l?o??=new WeakMap:s??=new WeakMap,p=f.get(c);if(p)return p}u=c==null?{}:e(t(c));let m=l||!c||!c.__esModule||!i.call(c,`default`)?n(u,`default`,{value:c,enumerable:!0}):u;if(c&&typeof c==`object`||typeof c==`function`)for(let e of r(c))i.call(m,e)||n(m,e,{get:a.bind(c,e),enumerable:!0});return d&&f.set(c,m),m})(((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports))(function(e,t){(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var{date:t,utc:n}=e;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,{weekdays:c,months:l,meridiem:u}=n,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach(function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w})})(),1),l=`Hello world from lazy chunk worker`,u=self;u.onmessage=e=>{e.data===`ping`&&u.postMessage({message:l,stamp:c.default().format(`YYYY-MM-DD`)})};
|