@getontime/cli
Version:
Time keeping for live events
2 lines • 37.8 kB
JavaScript
System.register(["./jsx-runtime-legacy-DMkDNnVj.js","./constants-legacy-CvecvM28.js"],function(e,t){var n,r,i,o,a,s,u,c,l,d,f,h,p,m,y,g,v,S,b,w,k,x,E,O,T,D,M,C,R,_,P,N,A,I,Q,j,q,L,W,U,K,H,F,$,V,G,B,z,J,X,Y,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,de,fe,he,pe,me,ye,ge,ve,Se,be,we,ke,xe,Ee,Oe,Te,De,Me,Ce,Re,_e,Pe,Ne,Ae,Ie,Qe,je,qe,Le,We,Ue,Ke,He,Fe,$e,Ve,Ge,Be,ze,Je,Xe,Ye,Ze,et,tt,nt,rt,it,ot,at,st,ut,ct,lt,dt;function ft(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),l.batch(()=>{U(B,this).forEach(t=>{t.onMutationUpdate(e)}),U(z,this).notify({mutation:this,type:"updated",action:e})})}function ht(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}function pt(e){return e.options.scope?.id}function mt(e,t=Ce){const n=Me.useSyncExternalStore(e.subscribe,Me.useCallback(()=>t(e.getState()),[e,t]),Me.useCallback(()=>t(e.getInitialState()),[e,t]));return Me.useDebugValue(n),n}function yt(e){return String(e).padStart(2,"0")}function gt(e,t){if(null==e)return t?.fallback??"...";const n=e<0,r=Math.abs(function(e,t=me.CountDown){if(null===e)return 0;let n=0;return t===me.CountDown&&(n=Math.ceil(e/Pe)),t===me.CountUp&&(n=Math.floor(e/Pe)),0===n?0:n}(e,t?.direction)),i=r%60,o=function(e){return Math.floor(e/60)}(r)%60,a=function(e){return Math.floor(e/3600)}(r);return`${n?"-":""}${[a,o,i].map(yt).join(":")}`}function vt(e,t){if(e<0)return;const n=new Date(e),r=n.getUTCHours().toString().padStart(2,"0"),i=n.getUTCHours().toString(),o=n.getUTCMinutes().toString().padStart(2,"0"),a=n.getUTCMinutes().toString(),s=n.getUTCSeconds().toString().padStart(2,"0"),u=n.getUTCSeconds().toString(),c=n.getUTCMilliseconds().toString().padStart(3,"0"),l=(n.getUTCHours()%12||12).toString();return d=t,f={HH:r,H:i,hh:l.padStart(2,"0"),h:l,mm:o,m:a,ss:s,s:u,S:c,a:n.getUTCHours()>=12?"PM":"AM"},Object.keys(f).reduce((e,t)=>{const n=new RegExp(`\\b${t}\\b`,"g");return e.replace(n,f[t])},d);var d,f}function St(e,t){const{timeStart:n,dayOffset:r,delay:i}=e,{currentDay:o,totalGap:a,isLinkedToLoaded:s,offset:u,mode:c,actualStart:l,plannedStart:d}=t,f=r-o,h=Math.max(0,n+i)+f*Ie;let p=0;c===we.Relative&&(p=(l??0)+o*Ie-(d??0));const m=h+p,y=m+u;return s?y:a>u?m:y-a}function bt(e,t,n){if(e.countToEnd){const r=e.dayOffset-n,i=e.timeStart+e.duration+r*Ie;return Math.max(t,i)}return t+e.duration}function wt(e){return c?`${c}-${e}`:e}function kt(e){He.getState().setName(e)}function xt(){return He.getState().id}function Et(e,t=Ge,n){const r=Ve(e.subscribe,e.getState,e.getInitialState,t,n);return Me.useDebugValue(r),r}function Ot(e,t){const n=Ye.getState();n[e]=t,Ye.setState({...n})}function Tt(){const e=new Date;let t=e.getHours()*Ae;return t+=e.getMinutes()*Ne,t+=e.getSeconds()*Pe,t+=e.getMilliseconds(),t}function Dt(){return et.getQueryData(I)?.timeFormat??"24"}function Mt(e,t){const n=new URL(document.location.href).searchParams.get("timeformat");return n||("12"===Dt()?e:t)}function Ct(e){if(T.isAxiosError(e)){const t=e.response?.statusText??"";let n=e.response?.data??"";return"object"==typeof n&&(n="message"in n?JSON.stringify(n.message):JSON.stringify(n)),`${t}: ${n}`}return e instanceof Error?e.message:"string"!=typeof e?JSON.stringify(e):e}async function Rt(){await et.invalidateQueries()}function _t(e){rt.getState().setDialog(e)}function Pt(e,t){it&&it.readyState===WebSocket.OPEN&&it.send(JSON.stringify({tag:e,payload:t}))}function Nt(e){}function At(e){const t=e?1:-1;Ot("ping",t),Nt()}return e({At:function(e,t){return e in t},Et:function(e){return e?Math.floor(e%Ne/Pe):0},Ft:function(e){return e?.type===pe.Group},G:function(e,t){const n=URL.createObjectURL(e),r=document.createElement("a");r.setAttribute("href",n),r.setAttribute("download",t),document.body.appendChild(r),r.click(),URL.revokeObjectURL(n)},H:_t,It:function(e){return e?.type===pe.Milestone},J:Ct,K:Rt,Lt:function(e){return!e.skip},Mt:function(e){return"ontime"===e.type},Nt:function(e){return e?.type===pe.Delay},Pt:function(e){return e?.type===pe.Event},Q:function(e,t=!0){if(e<=0)return"0m";const n=Math.floor(e/Ae),r=Math.floor(e%Ae/Ne);let i="";if(n>0&&(i+=`${n}h`),r>0&&(i+=`${r}m`),!t){const t=e%Ne/Pe,n=Math.min(59,Math.ceil(t));n>0&&(i+=`${n}s`)}return i},V:Pt,W:function(e,t){return new Blob([e],{type:t})},Y:function(e){return e instanceof Error?e.message:"string"!=typeof e?JSON.stringify(e):e},Zt:ht,_t:gt,bt:function(e){return e.endsWith(":00")?e.slice(0,-3):e},et:function(e,t=We,n=Ue){return"12"===e?t:n},gt:vt,ht:St,it:function(e,t){const{offset:n,currentDay:r,mode:i,actualStart:o,plannedStart:a,clock:s}=dt();return null===e?0:St({...e},{...t,currentDay:r,offset:n,mode:i,actualStart:o,plannedStart:a})-s},jt:function(e){return"osc"===e.type},kt:function(e){return"http"===e.type},lt:function(e,t){const n=localStorage.getItem(e);return n?"true"===n:(localStorage.setItem(e,String(t)),t)},mt:bt,nt:Dt,q:function(e,t){const n=`${e}: ${Ct(t)}`;nt({id:Le(),origin:"SERVER",time:gt(Tt()),level:ve.Error,text:n})},rt:function(e){const t=e%Ie;return t<0?t+Ie:t},tt:function(e,t){if(null===e)return{expectedStart:0,timeToStart:0,expectedEnd:0,plannedEnd:0};const n=St({timeStart:e.timeStart,delay:e.delay,dayOffset:e.dayOffset},{totalGap:e.totalGap,isLinkedToLoaded:e.isLinkedToLoaded,...t}),r=bt(e,n,t.currentDay),i=e.timeStart+e.duration+e.delay;return{expectedStart:n,timeToStart:n-t.clock,expectedEnd:r,plannedEnd:i}},ut:wt,vt:function(e){return e.startsWith("00:0")?e.slice(4):e.startsWith("00:")?e.slice(3):e.startsWith("-00:0")?`-${e.slice(5)}`:e.startsWith("-00:")?`-${e.slice(4)}`:e},yt:function(e){return e.slice(0,-3)}}),{setters:[function(e){n=e.a,r=e.n,i=e.r},function(e){o=e.An,a=e.Bn,s=e.Cn,u=e.Dn,c=e.E,l=e.En,d=e.F,f=e.H,h=e.Hn,p=e.Ln,m=e.Mn,y=e.Nn,g=e.On,v=e.Pn,S=e.Rn,b=e.S,w=e.Sn,k=e.Tn,x=e.Un,E=e.Vn,O=e._,T=e._n,D=e.c,M=e.d,e.g,C=e.h,R=e.jn,_=e.kn,P=e.l,N=e.m,e.o,A=e.p,I=e.r,Q=e.s,j=e.v,q=e.wn,L=e.xn,W=e.y,U=e.zn}],execute:function(){!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"f14ad0099eab1969fdd065b56af5fdd3cf530de6"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6dc9327d-9633-4c9e-b490-e76a5d63bf4b",e._sentryDebugIdIdentifier="sentry-dbid-6dc9327d-9633-4c9e-b490-e76a5d63bf4b")}catch(e){}}(),K=i(e=>{var t=r();function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var o={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},a=Symbol.for("react.portal"),s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,e.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=o.p;try{if(s.T=null,o.p=2,e)return e()}finally{s.T=t,o.p=n,o.d.f()}},e.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,o.d.C(e,t))},e.prefetchDNS=function(e){"string"==typeof e&&o.d.D(e)},e.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,a="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?o.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:a}):"script"===n&&o.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:a,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},e.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=u(t.as,t.crossOrigin);o.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else t??o.d.M(e)},e.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=u(n,t.crossOrigin);o.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},e.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=u(t.as,t.crossOrigin);o.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else o.d.m(e)},e.requestFormReset=function(e){o.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version="19.2.7"}),e("en",i((e,t)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),t.exports=K()})),H=i(e=>{var t=r(),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=t.useState,o=t.useEffect,a=t.useLayoutEffect,s=t.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(i){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,l=r[1];return a(function(){c.value=n,c.getSnapshot=t,u(c)&&l({inst:c})},[e,n,t]),o(function(){return u(c)&&l({inst:c}),e(function(){u(c)&&l({inst:c})})},[e]),s(n),n};e.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:c}),e("$t",F=i((e,t)=>{t.exports=H()})),$=i(e=>{var t=r(),n=F(),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,a=t.useRef,s=t.useEffect,u=t.useMemo,c=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u(function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==l&&f.hasValue){var t=f.value;if(l(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==l&&l(t,n)?(o=e,t):(o=e,a=n)}var o,a,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,l]);var h=o(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=h},[h]),c(h),h}}),e("Qt",V=i((e,t)=>{t.exports=$()})),G=new WeakMap,B=new WeakMap,z=new WeakMap,J=new WeakMap,X=new WeakSet,Y=class extends s{constructor(e){super(),w(this,X),h(this,G,void 0),h(this,B,void 0),h(this,z,void 0),h(this,J,void 0),a(G,this,e.client),this.mutationId=e.mutationId,a(z,this,e.mutationCache),a(B,this,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){U(B,this).includes(e)||(U(B,this).push(e),this.clearGcTimeout(),U(z,this).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){a(B,this,U(B,this).filter(t=>t!==e)),this.scheduleGc(),U(z,this).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){U(B,this).length||("pending"===this.state.status?this.scheduleGc():U(z,this).remove(this))}continue(){return U(J,this)?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{E(X,this,ft).call(this,{type:"continue"})},n={client:U(G,this),meta:this.options.meta,mutationKey:this.options.mutationKey};a(J,this,q({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{E(X,this,ft).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{E(X,this,ft).call(this,{type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(z,this).canRun(this)}));const r="pending"===this.state.status,i=!U(J,this).canStart();try{if(r)t();else{E(X,this,ft).call(this,{type:"pending",variables:e,isPaused:i}),U(z,this).config.onMutate&&await U(z,this).config.onMutate(e,this,n);const t=await(this.options.onMutate?.(e,n));t!==this.state.context&&E(X,this,ft).call(this,{type:"pending",context:t,variables:e,isPaused:i})}const o=await U(J,this).start();return await(U(z,this).config.onSuccess?.(o,e,this.state.context,this,n)),await(this.options.onSuccess?.(o,e,this.state.context,n)),await(U(z,this).config.onSettled?.(o,null,this.state.variables,this.state.context,this,n)),await(this.options.onSettled?.(o,null,e,this.state.context,n)),E(X,this,ft).call(this,{type:"success",data:o}),o}catch(o){try{await(U(z,this).config.onError?.(o,e,this.state.context,this,n))}catch(s){Promise.reject(s)}try{await(this.options.onError?.(o,e,this.state.context,n))}catch(s){Promise.reject(s)}try{await(U(z,this).config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n))}catch(s){Promise.reject(s)}try{await(this.options.onSettled?.(void 0,o,e,this.state.context,n))}catch(s){Promise.reject(s)}throw E(X,this,ft).call(this,{type:"error",error:o}),o}finally{U(z,this).runNext(this)}}},Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=class extends x{constructor(e={}){super(),h(this,Z,void 0),h(this,ee,void 0),h(this,te,void 0),this.config=e,a(Z,this,new Set),a(ee,this,new Map),a(te,this,0)}build(e,t,n){var r;const i=new Y({client:e,mutationCache:this,mutationId:a(te,this,(r=U(te,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){U(Z,this).add(e);const t=pt(e);if("string"==typeof t){const n=U(ee,this).get(t);n?n.push(e):U(ee,this).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(U(Z,this).delete(e)){const t=pt(e);if("string"==typeof t){const n=U(ee,this).get(t);if(n)if(n.length>1){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&U(ee,this).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=pt(e);if("string"==typeof t){const n=U(ee,this).get(t)?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=pt(e);return"string"==typeof t?U(ee,this).get(t)?.find(t=>t!==e&&t.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){l.batch(()=>{U(Z,this).forEach(e=>{this.notify({type:"removed",mutation:e})}),U(Z,this).clear(),U(ee,this).clear()})}getAll(){return Array.from(U(Z,this))}find(e){const t={exact:!0,...e};return this.getAll().find(e=>o(t,e))}findAll(e={}){return this.getAll().filter(t=>o(e,t))}notify(e){l.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return l.batch(()=>Promise.all(e.map(e=>e.continue().catch(m))))}},re=new WeakMap,ie=class extends x{constructor(e={}){super(),h(this,re,void 0),this.config=e,a(re,this,new Map)}build(e,t,n){const r=t.queryKey,i=t.queryHash??_(r,t);let o=this.get(i);return o||(o=new L({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){U(re,this).has(e.queryHash)||(U(re,this).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=U(re,this).get(e.queryHash);t&&(e.destroy(),t===e&&U(re,this).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){l.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return U(re,this).get(e)}getAll(){return[...U(re,this).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>R(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>R(e,t)):t}notify(e){l.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){l.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){l.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},oe=new WeakMap,ae=new WeakMap,se=new WeakMap,ue=new WeakMap,ce=new WeakMap,le=new WeakMap,de=new WeakMap,fe=new WeakMap,he=class{constructor(e={}){h(this,oe,void 0),h(this,ae,void 0),h(this,se,void 0),h(this,ue,void 0),h(this,ce,void 0),h(this,le,void 0),h(this,de,void 0),h(this,fe,void 0),a(oe,this,e.queryCache||new ie),a(ae,this,e.mutationCache||new ne),a(se,this,e.defaultOptions||{}),a(ue,this,new Map),a(ce,this,new Map),a(le,this,0)}mount(){var e;a(le,this,(e=U(le,this),++e)),1===U(le,this)&&(a(de,this,S.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(oe,this).onFocus())})),a(fe,this,k.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(oe,this).onOnline())})))}unmount(){var e;a(le,this,(e=U(le,this),--e)),0===U(le,this)&&(U(de,this)?.call(this),a(de,this,void 0),U(fe,this)?.call(this),a(fe,this,void 0))}isFetching(e){return U(oe,this).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return U(ae,this).findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return U(oe,this).get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=U(oe,this).build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(v(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return U(oe,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=U(oe,this).get(r.queryHash)?.state.data,o=u(t,i);if(void 0!==o)return U(oe,this).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return l.batch(()=>U(oe,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return U(oe,this).get(t.queryHash)?.state}removeQueries(e){const t=U(oe,this);l.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=U(oe,this);return l.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=l.batch(()=>U(oe,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(m).catch(m)}invalidateQueries(e,t={}){return l.batch(()=>(U(oe,this).findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=l.batch(()=>U(oe,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(m)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(m)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=U(oe,this).build(this,t);return n.isStaleByTime(v(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(m).catch(m)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(m).catch(m)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return k.isOnline()?U(ae,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(oe,this)}getMutationCache(){return U(ae,this)}getDefaultOptions(){return U(se,this)}setDefaultOptions(e){a(se,this,e)}setQueryDefaults(e,t){U(ue,this).set(g(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...U(ue,this).values()],n={};return t.forEach(t=>{y(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){U(ce,this).set(g(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...U(ce,this).values()],n={};return t.forEach(t=>{y(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...U(se,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=_(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===p&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...U(se,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){U(oe,this).clear(),U(ae,this).clear()}},e("Xt",function(e){return e.LoadNext="load-next",e.None="none",e.PlayNext="play-next",e}({})),e("Yt",pe=function(e){return e.Event="event",e.Delay="delay",e.Group="group",e.Milestone="milestone",e}({})),e("Jt",function(e){return e.LockEnd="lock-end",e.LockDuration="lock-duration",e}({})),e("qt",me=function(e){return e.CountDown="count-down",e.CountUp="count-up",e.Clock="clock",e.None="none",e}({})),e("Kt",function(e){return e.Editor="editor",e.Cuesheet="cuesheet",e.Operator="op",e.Timer="timer",e.Backstage="backstage",e.Timeline="timeline",e.StudioClock="studio",e.Countdown="countdown",e.ProjectInfo="info",e.Teleprompter="teleprompter",e}({})),e("Gt",ye=function(e){return e.Ping="ping",e.Pong="pong",e.ClientInit="client-init",e.ClientSet="client-set",e.ClientSetPath="client-set-path",e.ClientRename="client-rename",e.ClientRedirect="client-redirect",e.ClientList="client-list",e.Dialog="dialog",e.Log="log",e.RuntimeData="runtime-data",e.Refetch="refetch",e}({})),ge=function(e){return e.All="all",e.CustomFields="custom-fields",e.ProjectData="project-data",e.ProjectRundowns="project-rundowns",e.Report="report",e.Rundown="rundown",e.UrlPresets="url-presets",e.ViewSettings="view-settings",e.CssOverride="css-override",e.Translation="translation",e.Settings="settings",e}({}),ve=function(e){return e.Info="INFO",e.Warn="WARN",e.Error="ERROR",e.Severe="SEVERE",e}({}),e("Wt",function(e){return e.Client="CLIENT",e.Playback="PLAYBACK",e.Rx="RX",e.Server="SERVER",e.Tx="TX",e.User="USER",e}({})),e("Ut",Se=function(e){return e.Roll="roll",e.Play="play",e.Pause="pause",e.Stop="stop",e.Armed="armed",e}({})),e("Ht",be=function(e){return e.onLoad="onLoad",e.onStart="onStart",e.onPause="onPause",e.onStop="onStop",e.onClock="onClock",e.onUpdate="onUpdate",e.onFinish="onFinish",e.onWarning="onWarning",e.onDanger="onDanger",e}({})),Object.keys(be),e("Vt",we=function(e){return e.Absolute="absolute",e.Relative="relative",e}({})),e("Bt",ke=function(e){return e.Start="start",e.Pause="pause",e.Stop="stop",e}({})),e("zt",xe=function(e){return e.CountUp="count-up",e.CountDown="count-down",e}({})),e("Rt",Ee=function(e){return e.None="none",e.Default="default",e.Warning="warning",e.Danger="danger",e.Overtime="overtime",e.Pending="pending",e}({})),Oe={clock:0,timer:{addedTime:0,current:null,duration:null,elapsed:null,expectedFinish:null,phase:Ee.None,playback:Se.Stop,secondaryTimer:null,startedAt:null},message:{timer:{text:"",visible:!1,blink:!1,blackout:!1,secondarySource:null},secondary:""},rundown:{selectedEventIndex:null,numEvents:0,plannedStart:0,plannedEnd:0,actualStart:null,actualGroupStart:null,currentDay:null},offset:{absolute:0,relative:0,mode:we.Absolute,expectedFlagStart:null,expectedGroupEnd:null,expectedRundownEnd:null},groupNow:null,eventNow:null,eventNext:null,eventFlag:null,auxtimer1:{current:0,direction:xe.CountUp,duration:0,playback:ke.Stop},auxtimer2:{current:0,direction:xe.CountUp,duration:0,playback:ke.Stop},auxtimer3:{current:0,direction:xe.CountUp,duration:0,playback:ke.Stop},ping:1},e("Ot",{"common.expected_finish":"Expected Finish","common.minutes":"min","common.seconds":"sec","common.now":"Now","common.next":"Next","common.scheduled_start":"Scheduled start","common.scheduled_end":"Scheduled end","common.expected_start":"Expected start","common.expected_end":"Expected end","common.timer_message":"Timer message","common.secondary_message":"Secondary message","common.stage_timer":"Stage Timer","common.started_at":"Started At","common.time_now":"Time now","common.no_data":"No data","countdown.ended":"Event ended at","countdown.running":"Event running","countdown.group_running":"Event in group running","countdown.loaded":"Event loaded","countdown.select_event":"Select an event to follow","countdown.to_start":"Time to start","countdown.waiting":"Waiting for event start","countdown.overtime":"in overtime","countdown.all_have_finished":"All selected events have finished","timeline.live":"live","timeline.done":"done","timeline.due":"due","timeline.followedby":"Followed by","timeline.standby":"Standby","project.title":"Title","project.description":"Description","project.info":"Project Info","project.url":"Project URL"}),Te=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,i,o);return o},De=e=>e?Te(e):Te,Me=n(r(),1),Ce=e=>e,Re=e=>{const t=De(e),n=e=>mt(t,e);return Object.assign(n,t),n},e("Dt",_e=e=>e?Re(e):Re),e("wt",Pe=1e3),e("Ct",Ne=6e4),e("St",Ae=36e5),e("Tt",Ie=864e5),Qe=e=>crypto.getRandomValues(new Uint8Array(e)),je=(e,t,n)=>{let r=256-256%e.length;if(256===r){let r=e.length-1;return(i=t)=>{if(!i)return"";let o="";for(;;){let t=n(i),a=i;for(;a--;)if(o+=e[t[a]&r],o.length>=i)return o}}}let i=Math.ceil(409.6*t/r);return(o=t)=>{if(!o)return"";let a="";for(;;){let t=n(i),s=i;for(;s--;)if(t[s]<r&&(a+=e[t[s]%e.length],a.length>=o))return a}}},qe=((e,t=21)=>je(e,0|t,Qe))("1234567890abcdef",6),e("xt",Le=()=>qe()),e("pt",[{url:"timer",label:"Timer"},{url:"backstage",label:"Backstage"},{url:"timeline",label:"Timeline"},{url:"studio",label:"Studio Clock"},{url:"countdown",label:"Countdown"},{url:"teleprompter",label:"Teleprompter"},{url:"info",label:"Project Info"}]),e("dt",We="h:mm:ss a"),e("ft",Ue="HH:mm:ss"),Ke=wt("client-name"),e("ct",He=_e(e=>({name:localStorage.getItem(Ke)??void 0,setName:t=>e(()=>{var e;return e=t,localStorage.setItem(Ke,e),{name:t}}),id:"",setId:t=>e({id:t}),redirect:"",setRedirect:t=>e({redirect:t}),clients:{},setClients:t=>e({clients:t})}))),Fe=i((e,t)=>{var n="undefined"!=typeof Element,r="function"==typeof Map,i="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var s,u,c,l;if(Array.isArray(e)){if((s=e.length)!=t.length)return!1;for(u=s;0!==u--;)if(!a(e[u],t[u]))return!1;return!0}if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!t.has(u.value[0]))return!1;for(l=e.entries();!(u=l.next()).done;)if(!a(u.value[1],t.get(u.value[0])))return!1;return!0}if(i&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!t.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((s=e.length)!=t.length)return!1;for(u=s;0!==u--;)if(e[u]!==t[u])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(t,c[u]))return!1;if(n&&e instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!e.$$typeof)&&!a(e[c[u]],t[c[u]]))return!1;return!0}return e!=e&&t!=t}t.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}}),$e=n(V(),1),({useSyncExternalStoreWithSelector:Ve}=$e.default),Ge=e=>e,Be=(e,t)=>{const n=De(e),r=(e,r=t)=>Et(n,e,r);return Object.assign(r,n),r},ze=(e,t)=>e?Be(e,t):Be,Je=n(Fe(),1),e("ot",Ye=ze(()=>({...Oe}),Xe=(e,t)=>(0,Je.default)(e,t))),e("st",Ze=e=>Et(Ye,e,Xe)),e("at",et=new he({defaultOptions:{queries:{gcTime:10*Ne,networkMode:d?"online":"always",refetchOnWindowFocus:!1,retry:(e,t)=>!T.isCancel(t)&&e<5,retryDelay:e=>Math.min(1e3*2**e,5e3)},mutations:{networkMode:d?"online":"always",retry:0}}})),e("$",(e,t,n=Mt)=>{if(null===e)return"...";const r=t?.override??n(t?.format12??"h:mm:ss a",t?.format24??"HH:mm:ss");return`${e<0?"-":""}${vt(Math.abs(e),r)}`}),tt=De(()=>({logs:[]})),e("Z",()=>mt(tt)),nt=e=>tt.setState(t=>({logs:[e,...t.logs]})),e("X",()=>tt.setState({logs:[]})),e("U",rt=_e(e=>({showDialog:null,clearDialog:()=>e({showDialog:null}),setDialog:t=>e({showDialog:t})}))),it=null,ot=null,at={reconnectBaseInterval:1e3,reconnectMaxInterval:3e4,reconnectMinInterval:500,reconnectJitter:.25,offlineAttemptsThreshold:2},e("z",()=>st),e("B",()=>ut),st=!1,ut=0,e("R",ct=()=>{it=new WebSocket(f);const e=He.getState().name;it.onopen=()=>{const t=st;ot&&(clearTimeout(ot),ot=null),st=!0,ut=0,Pt(ye.ClientSet,{type:"ontime",origin:window.location.origin,path:window.location.pathname+window.location.search,name:e}),t&&Rt(),At(!0)},it.onclose=()=>{console.warn("WebSocket disconnected"),ot&&(clearTimeout(ot),ot=null);const e=Math.min(at.reconnectBaseInterval*2**ut,at.reconnectMaxInterval),t=e*at.reconnectJitter*(2*Math.random()-1),n=Math.max(at.reconnectMinInterval,Math.round(e+t));ot=setTimeout(()=>{ot=null,ut>at.offlineAttemptsThreshold&&At(!1),console.warn(`WebSocket: reconnecting now (#${ut+1}, waited ${n}ms)`),it&&it.readyState===WebSocket.CLOSED&&(ut+=1,ct())},n)},it.onerror=e=>{console.error("WebSocket error:",e)},it.onmessage=async t=>{try{const{tag:o,payload:a}=JSON.parse(t.data);if(!o)return;switch(o){case ye.Pong:{const e=.5*((new Date).getTime()-new Date(a).getTime());Ot("ping",e),Nt();break}case ye.ClientInit:i=a.clientId,He.getState().setId(i),e||kt(a.clientName);break;case ye.ClientRename:{const e=xt();a.target===e&&kt(a.name);break}case ye.ClientRedirect:{const e=xt();a.target===e&&(r=a.path,He.getState().setRedirect(r));break}case ye.ClientList:n=a,He.getState().setClients(n);break;case ye.Dialog:"welcome"===a.dialog&&_t("welcome");break;case ye.Log:nt(a);break;case ye.RuntimeData:!function(e){const t=Ye.getState();Ye.setState({...t,...e})}(a),Nt();break;case ye.Refetch:{const{target:e,revision:t,rundownId:n}=a;switch(e){case ge.All:Rt();break;case ge.CustomFields:et.invalidateQueries({queryKey:P});break;case ge.ProjectData:et.invalidateQueries({queryKey:M});break;case ge.Report:et.invalidateQueries({queryKey:N});break;case ge.Rundown:!function(e,t){if(!t)return et.invalidateQueries({queryKey:C}),void et.invalidateQueries({queryKey:D,exact:!0});const n=b(t);if(e===et.getQueryData(n)?.revision)return;et.invalidateQueries({queryKey:n,exact:!0});const r=et.getQueryData(A)?.loaded;r&&r!==t||et.invalidateQueries({queryKey:D,exact:!0})}(t,n);break;case ge.UrlPresets:et.invalidateQueries({queryKey:j});break;case ge.ViewSettings:et.invalidateQueries({queryKey:W});break;case ge.CssOverride:et.invalidateQueries({queryKey:Q});break;case ge.Translation:et.invalidateQueries({queryKey:O});break;case ge.Settings:et.invalidateQueries({queryKey:I});break;case ge.ProjectRundowns:et.invalidateQueries({queryKey:A})}break}}}catch(o){}var n,r,i}}),lt=e=>()=>Ze(e),e("n",{setIdentify:e=>Pt("client",e),setRedirect:e=>{Pt("client",e)},setClientName:e=>Pt("client",e)}),e("D",lt(e=>({playback:e.timer.playback,selectedEventId:e.eventNow?.id??null,nextEventId:e.eventNext?.id??null}))),e("L",lt(e=>({blackout:e.message.timer.blackout,blink:e.message.timer.blink,secondarySource:e.message.timer.secondarySource}))),e("P",lt(e=>({text:e.message.timer.text,visible:e.message.timer.visible}))),e("m",lt(e=>({text:e.message.secondary,visible:"secondary"===e.message.timer.secondarySource}))),e("v",lt(e=>({blink:e.message.timer.blink,blackout:e.message.timer.blackout,phase:e.timer.phase,secondarySource:e.message.timer.secondarySource,showTimerMessage:e.message.timer.visible&&Boolean(e.message.timer.text),timerType:e.eventNow?.timerType??null,countToEnd:e.eventNow?.countToEnd??!1}))),e("i",{timerText:e=>Pt("message",{timer:{text:e}}),timerVisible:e=>Pt("message",{timer:{visible:e}}),secondaryMessage:e=>Pt("message",{secondary:e}),timerBlink:e=>Pt("message",{timer:{blink:e}}),timerBlackout:e=>Pt("message",{timer:{blackout:e}}),timerSecondarySource:e=>Pt("message",{timer:{secondarySource:e}})}),e("w",lt(e=>({playback:e.timer.playback,selectedEventIndex:e.rundown.selectedEventIndex,numEvents:e.rundown.numEvents,timerPhase:e.timer.phase}))),e("o",{start:()=>Pt("start",void 0),pause:()=>Pt("pause",void 0),roll:()=>Pt("roll",void 0),startNext:()=>Pt("start","next"),previous:()=>{Pt("load","previous")},next:()=>{Pt("load","next")},stop:()=>{Pt("stop",void 0)},reload:()=>{Pt("reload",void 0)},addTime:e=>{Pt("addtime",e)}}),e("l",lt(e=>({aux1:e.auxtimer1.current,aux2:e.auxtimer2.current,aux3:e.auxtimer3.current}))),e("c",e=>lt(t=>1===e?t.auxtimer1.current:2===e?t.auxtimer2.current:t.auxtimer3.current)()),e("s",e=>lt(t=>1===e?{playback:t.auxtimer1.playback,direction:t.auxtimer1.direction}:2===e?{playback:t.auxtimer2.playback,direction:t.auxtimer2.direction}:{playback:t.auxtimer3.playback,direction:t.auxtimer3.direction})()),e("t",{start:e=>Pt("auxtimer",{[e]:ke.Start}),pause:e=>Pt("auxtimer",{[e]:ke.Pause}),stop:e=>Pt("auxtimer",{[e]:ke.Stop}),setDirection:(e,t)=>Pt("auxtimer",{[e]:{direction:t}}),setDuration:(e,t)=>Pt("auxtimer",{[e]:{duration:t}})}),e("k",lt(e=>e.eventNow?.id??null)),e("f",lt(e=>e.groupNow?.id??null)),e("r",{loadEvent:e=>Pt("load",{id:e}),startEvent:e=>Pt("start",{id:e}),start:()=>Pt("start",void 0),pause:()=>Pt("pause",void 0)}),e("F",lt(e=>({playback:e.timer.playback,phase:e.timer.phase,addedTime:e.timer.addedTime,secondaryTimer:e.timer.secondaryTimer,current:e.timer.current,expectedFinish:e.timer.expectedFinish,startedAt:e.timer.startedAt,isCountToEnd:e.eventNow?.countToEnd??!1}))),e("N",lt(e=>({...e.timer}))),e("y",lt(e=>({id:e.eventFlag?.id??null,expectedStart:e.offset.expectedFlagStart}))),e("T",lt(e=>({current:e.timer.current,duration:e.timer.duration,eventId:e.eventNow?.id??null,timeWarning:e.eventNow?.timeWarning??null,timeDanger:e.eventNow?.timeDanger??null}))),e("p",dt=lt(e=>({offset:e.offset.mode===we.Absolute?e.offset.absolute:e.offset.relative,mode:e.offset.mode,currentDay:e.rundown.currentDay??0,actualStart:e.rundown.actualStart,plannedStart:e.rundown.plannedStart,clock:e.clock}))),e("S",lt(e=>e.ping)),e("_",lt(e=>e.ping>0)),e("b",lt(e=>e.offset.mode)),e("a",e=>Pt("offsetmode",e)),e("C",lt(e=>e.timer.playback)),e("A",lt(e=>({plannedStart:e.rundown.plannedStart,actualStart:e.rundown.actualStart,plannedEnd:e.rundown.plannedEnd}))),e("O",lt(e=>e.offset.expectedRundownEnd)),e("E",lt(e=>({numEvents:e.rundown.numEvents,selectedEventIndex:e.rundown.selectedEventIndex}))),e("x",lt(e=>({offset:e.offset.mode===we.Absolute?e.offset.absolute:e.offset.relative,playback:e.timer.playback}))),e("g",lt(e=>({clock:e.clock,mode:e.offset.mode,groupExpectedEnd:e.offset.expectedGroupEnd,actualGroupStart:e.rundown.actualGroupStart,currentDay:e.rundown.currentDay??0,playback:e.timer.playback,phase:e.timer.phase}))),e("h",lt(e=>({clock:e.clock,mode:e.offset.mode,actualStart:e.rundown.actualStart,plannedStart:e.rundown.plannedStart,currentDay:e.rundown.currentDay??0,playback:e.timer.playback,phase:e.timer.phase}))),e("I",lt(e=>({eventNext:e.eventNext,eventNow:e.eventNow,message:e.message,time:e.timer,clock:e.clock,timerTypeNow:e.eventNow?.timerType??me.CountDown,countToEndNow:e.eventNow?.countToEnd??!1,auxTimer:{aux1:e.auxtimer1.current,aux2:e.auxtimer2.current,aux3:e.auxtimer3.current}}))),e("d",lt(e=>({playback:e.timer.playback,current:e.timer.current,clock:e.clock}))),e("u",lt(e=>({eventNext:e.eventNext,eventNow:e.eventNow,rundown:e.rundown,selectedEventId:e.eventNow?.id??null,time:e.timer}))),e("j",lt(e=>({clock:e.clock,playback:e.timer.playback}))),e("M",lt(e=>({eventNext:e.eventNext,eventNow:e.eventNow,message:e.message,time:e.timer,offset:e.offset.mode===we.Absolute?e.offset.absolute:e.offset.relative,rundown:e.rundown,expectedRundownEnd:e.offset.expectedRundownEnd})))}}});
//# sourceMappingURL=useSocket-legacy-C772wu7w.js.map