@openremote/or-timeline 1.8.0-snapshot.20250725074716 → 1.8.0-snapshot.20250725120000

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/dist/umd/index.js CHANGED
@@ -1,189 +1,189 @@
1
1
  !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("moment")):"function"==typeof define&&define.amd?define(["moment"],e):"object"==typeof exports?exports.ORTimeline=e(require("moment")):t.ORTimeline=e(t.moment)}(self,t=>(()=>{"use strict";var e={192:function(e){e.exports=t}},i={};function r(t){var s=i[t];if(void 0!==s)return s.exports;var n=i[t]={exports:{}};return e[t](n,n.exports,r),n.exports}return r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{let t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),s=new WeakMap;class n{constructor(t,e,r){if(this._$cssResult$=!0,r!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,i=this.t;if(e&&void 0===t){let e=void 0!==i&&1===i.length;e&&(t=s.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&s.set(i,t))}return t}toString(){return this.cssText}}let o=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return(t=>new n("string"==typeof t?t:t+"",void 0,i))(e)})(t):t,l=window,a=l.trustedTypes,h=a?a.emptyScript:"",d=l.reactiveElementPolyfillSupport,p={toAttribute(t,e){switch(e){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},c=(t,e)=>e!==t&&(e==e||t==t),u={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:c},v="finalized";class $ extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!=(e=this.h)?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((e,i)=>{let r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))}),t}static createProperty(t,e=u){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let i="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){let s=this[t];this[e]=r,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||u}static finalize(){if(this.hasOwnProperty(v))return!1;this[v]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties;for(let e of[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)])this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t))for(let i of new Set(t.flat(1/0).reverse()))e.unshift(o(i));else void 0!==t&&e.push(o(t));return e}static _$Ep(t,e){let i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null==(t=this.constructor.h)||t.forEach(t=>t(this))}addController(t){var e,i;(null!=(e=this._$ES)?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$ES)||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var i,r;let s=null!=(i=this.shadowRoot)?i:this.attachShadow(this.constructor.shadowRootOptions);return r=this.constructor.elementStyles,e?s.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):r.forEach(e=>{let i=document.createElement("style"),r=t.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,s.appendChild(i)}),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)})}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=u){var r;let s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){let n=(void 0!==(null==(r=i.converter)?void 0:r.toAttribute)?i.converter:p).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;let r=this.constructor,s=r._$Ev.get(t);if(void 0!==s&&this._$El!==s){let t=r.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:p;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||c)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((t,e)=>this[e]=t),this._$Ei=void 0);let e=!1,i=this._$AL;try{(e=this.shouldUpdate(i))?(this.willUpdate(i),null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)}),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$ES)||e.forEach(t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach((t,e)=>this._$EO(e,this[e],t)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}$[v]=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:$}),(null!=(tm=l.reactiveElementVersions)?tm:l.reactiveElementVersions=[]).push("1.6.3");let f=window,m=f.trustedTypes,_=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,y="$lit$",g=`lit$${(Math.random()+"").slice(9)}$`,b="?"+g,E=`<${b}>`,A=document,x=()=>A.createComment(""),S=t=>null===t||"object"!=typeof t&&"function"!=typeof t,w=Array.isArray,C="[ \n\f\r]",k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,U=/>/g,O=RegExp(`>|${C}(?:([^\\s"'>=/]+)(${C}*=${C}*(?:[^
2
- \f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,H=/"/g,N=/^(?:script|style|textarea|title)$/i,M=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),T=M(1),z=(M(2),Symbol.for("lit-noChange")),j=Symbol.for("lit-nothing"),L=new WeakMap,D=A.createTreeWalker(A,129,null,!1);function B(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==_?_.createHTML(e):e}class I{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let s=0,n=0,o=t.length-1,l=this.parts,[a,h]=((t,e)=>{let i=t.length-1,r=[],s,n=2===e?"<svg>":"",o=k;for(let e=0;e<i;e++){let i=t[e],l,a,h=-1,d=0;for(;d<i.length&&(o.lastIndex=d,null!==(a=o.exec(i)));)d=o.lastIndex,o===k?"!--"===a[1]?o=P:void 0!==a[1]?o=U:void 0!==a[2]?(N.test(a[2])&&(s=RegExp("</"+a[2],"g")),o=O):void 0!==a[3]&&(o=O):o===O?">"===a[0]?(o=null!=s?s:k,h=-1):void 0===a[1]?h=-2:(h=o.lastIndex-a[2].length,l=a[1],o=void 0===a[3]?O:'"'===a[3]?H:R):o===H||o===R?o=O:o===P||o===U?o=k:(o=O,s=void 0);let p=o===O&&t[e+1].startsWith("/>")?" ":"";n+=o===k?i+E:h>=0?(r.push(l),i.slice(0,h)+y+i.slice(h)+g+p):i+g+(-2===h?(r.push(void 0),e):p)}return[B(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),r]})(t,e);if(this.el=I.createElement(a,i),D.currentNode=this.el.content,2===e){let t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=D.nextNode())&&l.length<o;){if(1===r.nodeType){if(r.hasAttributes()){let t=[];for(let e of r.getAttributeNames())if(e.endsWith(y)||e.startsWith(g)){let i=h[n++];if(t.push(e),void 0!==i){let t=r.getAttribute(i.toLowerCase()+y).split(g),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?G:"@"===e[1]?Z:F})}else l.push({type:6,index:s})}for(let e of t)r.removeAttribute(e)}if(N.test(r.tagName)){let t=r.textContent.split(g),e=t.length-1;if(e>0){r.textContent=m?m.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],x()),D.nextNode(),l.push({type:2,index:++s});r.append(t[e],x())}}}else if(8===r.nodeType)if(r.data===b)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=r.data.indexOf(g,t+1));)l.push({type:7,index:s}),t+=g.length-1}s++}}static createElement(t,e){let i=A.createElement("template");return i.innerHTML=t,i}}function V(t,e,i=t,r){var s,n,o;if(e===z)return e;let l=void 0!==r?null==(s=i._$Co)?void 0:s[r]:i._$Cl,a=S(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==a&&(null==(n=null==l?void 0:l._$AO)||n.call(l,!1),void 0===a?l=void 0:(l=new a(t))._$AT(t,i,r),void 0!==r?(null!=(o=i._$Co)?o:i._$Co=[])[r]=l:i._$Cl=l),void 0!==l&&(e=V(t,l._$AS(t,e.values),l,r)),e}class q{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;let{el:{content:i},parts:r}=this._$AD,s=(null!=(e=null==t?void 0:t.creationScope)?e:A).importNode(i,!0);D.currentNode=s;let n=D.nextNode(),o=0,l=0,a=r[0];for(;void 0!==a;){if(o===a.index){let e;2===a.type?e=new W(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new Q(n,this,t)),this._$AV.push(e),a=r[++l]}o!==(null==a?void 0:a.index)&&(n=D.nextNode(),o++)}return D.currentNode=A,s}v(t){let e=0;for(let i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class W{constructor(t,e,i,r){var s;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=null==(s=null==r?void 0:r.isConnected)||s}get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){let i;S(t=V(this,t,e))?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==z&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):w(i=t)||"function"==typeof(null==i?void 0:i[Symbol.iterator])?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==j&&S(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;let{values:i,_$litType$:r}=t,s="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=I.createElement(B(r.h,r.h[0]),this.options)),r);if((null==(e=this._$AH)?void 0:e._$AD)===s)this._$AH.v(i);else{let t=new q(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new I(t)),e}T(t){w(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,r=0;for(let s of t)r===e.length?e.push(i=new W(this.k(x()),this.k(x()),this,this.options)):i=e[r],i._$AI(s),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t&&t!==this._$AB;){let e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null==(e=this._$AP)||e.call(this,t))}}class F{constructor(t,e,i,r,s){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=j}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){let s=this.strings,n=!1;if(void 0===s)(n=!S(t=V(this,t,e,0))||t!==this._$AH&&t!==z)&&(this._$AH=t);else{let r,o,l=t;for(t=s[0],r=0;r<s.length-1;r++)(o=V(this,l[i+r],e,r))===z&&(o=this._$AH[r]),n||(n=!S(o)||o!==this._$AH[r]),o===j?t=j:t!==j&&(t+=(null!=o?o:"")+s[r+1]),this._$AH[r]=o}n&&!r&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends F{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}}let J=m?m.emptyScript:"";class G extends F{constructor(){super(...arguments),this.type=4}j(t){t&&t!==j?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}class Z extends F{constructor(t,e,i,r,s){super(t,e,i,r,s),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=V(this,t,e,0))?i:j)===z)return;let r=this._$AH,s=t===j&&r!==j||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==j&&(r===j||s);s&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(e=this.options)?void 0:e.host)?i:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}}let X=f.litHtmlPolyfillSupport;null==X||X(I,W),(null!=(t_=f.litHtmlVersions)?t_:f.litHtmlVersions=[]).push("2.8.0");let Y=window,tt=Y.ShadowRoot&&(void 0===Y.ShadyCSS||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,te=Symbol(),ti=new WeakMap;class tr{constructor(t,e,i){if(this._$cssResult$=!0,i!==te)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(tt&&void 0===t){let i=void 0!==e&&1===e.length;i&&(t=ti.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ti.set(e,t))}return t}toString(){return this.cssText}}let ts=tt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return(t=>new tr("string"==typeof t?t:t+"",void 0,te))(e)})(t):t,tn=window,to=tn.trustedTypes,tl=to?to.emptyScript:"",ta=tn.reactiveElementPolyfillSupport,th={toAttribute(t,e){switch(e){case Boolean:t=t?tl:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},td=(t,e)=>e!==t&&(e==e||t==t),tp={attribute:!0,type:String,converter:th,reflect:!1,hasChanged:td},tc="finalized";class tu extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!=(e=this.h)?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((e,i)=>{let r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))}),t}static createProperty(t,e=tp){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let i="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){let s=this[t];this[e]=r,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||tp}static finalize(){if(this.hasOwnProperty(tc))return!1;this[tc]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties;for(let e of[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)])this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t))for(let i of new Set(t.flat(1/0).reverse()))e.unshift(ts(i));else void 0!==t&&e.push(ts(t));return e}static _$Ep(t,e){let i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null==(t=this.constructor.h)||t.forEach(t=>t(this))}addController(t){var e,i;(null!=(e=this._$ES)?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$ES)||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t,e;let i=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return e=this.constructor.elementStyles,tt?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let e=document.createElement("style"),r=Y.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=t.cssText,i.appendChild(e)}),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)})}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=tp){var r;let s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){let n=(void 0!==(null==(r=i.converter)?void 0:r.toAttribute)?i.converter:th).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;let r=this.constructor,s=r._$Ev.get(t);if(void 0!==s&&this._$El!==s){let t=r.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:th;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||td)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((t,e)=>this[e]=t),this._$Ei=void 0);let e=!1,i=this._$AL;try{(e=this.shouldUpdate(i))?(this.willUpdate(i),null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)}),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$ES)||e.forEach(t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach((t,e)=>this._$EO(e,this[e],t)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}tu[tc]=!0,tu.elementProperties=new Map,tu.elementStyles=[],tu.shadowRootOptions={mode:"open"},null==ta||ta({ReactiveElement:tu}),(null!=(ty=tn.reactiveElementVersions)?ty:tn.reactiveElementVersions=[]).push("1.6.3");class tv extends tu{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;let e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var r,s;let n=null!=(r=null==i?void 0:i.renderBefore)?r:e,o=n._$litPart$;if(void 0===o){let t=null!=(s=null==i?void 0:i.renderBefore)?s:null;n._$litPart$=o=new W(e.insertBefore(x(),t),t,void 0,null!=i?i:{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return z}}tv.finalized=!0,tv._$litElement$=!0,null==(tg=globalThis.litElementHydrateSupport)||tg.call(globalThis,{LitElement:tv});let t$=globalThis.litElementPolyfillSupport;function tf(t){return(e,i)=>void 0!==i?void e.constructor.createProperty(i,t):"method"!==e.kind||!e.descriptor||"value"in e.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}}:{...e,finisher(i){i.createProperty(e.key,t)}}}null==t$||t$({LitElement:tv}),(null!=(tb=globalThis.litElementVersions)?tb:globalThis.litElementVersions=[]).push("3.3.3"),null!=(null==(tE=window.HTMLSlotElement)?void 0:tE.prototype.assignedElements)||((t,e)=>t.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE));var tm,t_,ty,tg,tb,tE,tA=r(192),tx=r.n(tA),tS=function(t,e,i,r){var s,n=arguments.length,o=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o};let tw=class extends tv{constructor(){super(),this.current=0,this.value=0,this.maxRange=360,this.minRange=0,this.step=5}moveBubble(t=null,e=null){let i;if(t?i=t.target:this.shadowRoot&&(i=this.shadowRoot.getElementById("or-timeline-slider")),i){let t;e?this.current=parseInt(e):this.current=parseInt(i.value);let r=i.offsetWidth,s=this.current/this.maxRange;if(s<0?t=0:s>1?t=r-15:(t=(r-15)*s)<0&&(t=0),this.shadowRoot){let e=this.shadowRoot.getElementById("range-value");e&&(e.style.left=t+"px")}}}valueChange(t){this.moveBubble(t),this.onChange()}render(){return T`
3
- <style>
4
- :host {
5
- position: relative;
6
- }
7
- .timeline-container {
8
- display: block;
9
- height: 52px;
10
- background-color: var(--app-white, #FFFFFF);
11
-
12
- -webkit-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.28);
13
- -moz-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.28);
14
- box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.28);
15
-
16
- padding-top: 20px;
17
- }
18
- .slidecontainer {
19
- position: relative;
20
- margin: -5px 44px 0 19px;
21
- }
22
-
23
- /* The slider itself */
24
- .slider {
25
- color: var(--timeline-accent, #1D5632);
26
- box-sizing: border-box;
27
- -webkit-appearance: none;
28
- outline: none;
29
- width: 100%;
30
- }
31
- .slider::-webkit-slider-runnable-track {
32
- cursor: pointer;
33
- border: transparent;
34
- background: #bdbdbd;
35
- border-radius: 6px;
36
- height: 12px;
37
- }
38
- .slider::-webkit-slider-thumb {
39
- height: 18px;
40
- width: 18px;
41
- border-radius: 50%;
42
- cursor: pointer;
43
- -webkit-appearance: none;
44
- background-color: var(--timeline-accent, #1D5632); /* Green background */
45
- pointer-events: all;
46
- margin-top: -2px;
47
- }
48
-
49
- .slider::-moz-range-track {
50
- cursor: pointer;
51
- border: transparent;
52
- background: #bdbdbd;
53
- border-radius: 6px;
54
- height: 12px;
55
- }
56
- .slider::-moz-range-thumb {
57
- border: 0 none;
58
- height: 18px;
59
- width: 18px;
60
- border-radius: 50%;
61
- cursor: pointer;
62
- -webkit-appearance: none;
63
- background-color: var(--timeline-accent, #1D5632); /* Green background */
64
- pointer-events: all;
65
- margin-top: -2px;
66
- }
67
- .slider::-moz-range-progress {
68
- background-color: var(--timeline-accent, #1D5632);
69
- height: 12px;
70
- border-radius: 6px;
71
- }
72
-
73
- .slider::-ms-track {
74
- cursor: pointer;
75
- border: transparent;
76
- background: #bdbdbd;
77
- border-radius: 6px;
78
- height: 12px;
79
- }
80
- .slider::-ms-thumb {
81
- border: 0 none;
82
- height: 18px;
83
- width: 18px;
84
- border-radius: 50%;
85
- cursor: pointer;
86
- -webkit-appearance: none;
87
- background-color: var(--timeline-accent, currentColor); /* Bug in Edge set colour on slider itself */
88
- pointer-events: all;
89
- margin-top: -2px;
90
- }
91
-
92
- .slider::-ms-fill-lower {
93
- background-color: var(--timeline-accent, currentColor);
94
- border: 0 none;
95
- border-radius: 6px;
96
- }
97
-
98
- .slider::-ms-fill-upper {
99
- background: transparent;
100
- border: 0 none;
101
- }
102
-
103
- #timelineHourMarkers {
104
- position: relative;
105
- display: -webkit-box;
106
- display: -moz-box;
107
- display: -ms-flexbox;
108
- display: -webkit-flex;
109
- display: flex;
110
- -webkit-box-orient: horizontal;
111
- -moz-box-orient: horizontal;
112
- -webkit-box-direction: normal;
113
- -moz-box-direction: normal;
114
- -webkit-flex-direction: row;
115
- -ms-flex-direction: row;
116
- flex-direction: row;
117
-
118
- margin: 0 50px 0 30px;
119
- }
120
-
121
- #timelineHourMarkers > .timelineHourMark{
122
- display: flex;
123
- flex: 1 100%;
124
- flex-grow: 1;
125
- flex-shrink: 1;
126
- flex-basis: 100%;
127
-
128
- overflow: visible;
129
- color: var(--timeline-grey, darkgrey);
130
- border-left: 1px solid var(--timeline-grey, darkgrey);
131
- font-size: 12px;
132
- -webkit-user-select: none;
133
- -moz-user-select: none;
134
- -ms-user-select: none;
135
- user-select: none;
136
- padding-left: 4px;
137
- padding-bottom: 4px;
138
- }
139
- #timelineHourMarkers .timelineHourMark:last-child {
140
- position: absolute;
141
- right: -25px;
142
- }
143
-
144
- #range-value {
145
- position: absolute;
146
- background-color: var(--timeline-accent, #1D5632);
147
- height: 30px;
148
- width: 60px;
149
- margin-left: -30px;
150
- text-align: center;
151
- color: white;
152
- display: inline-block;
153
- left: 0;
154
- font-size: 12px;
155
- font-weight: bold;
156
- line-height: 30px;
157
- }
158
-
159
- .time-value-container {
160
- width: calc(100% - 80px);
161
- display: block;
162
- position: relative;
163
- height: 30px;
164
- margin: 0 50px 0 30px;
165
- }
166
- </style>
167
-
168
-
169
- <div class="time-value-container">
170
- <div id="range-value">${0===this.current?"LIVE":tx()().add(this.current,"minutes").format("HH:mm")}</div>
171
- </div>
172
- <div class="timeline-container">
173
- <div id="timelineHourMarkers" class="layout horizontal justified style-scope controller-timeline">
174
- ${Array(this.maxRange/60+1).fill(0).map((t,e)=>T`
175
- ${0===e?T`
176
- <div class="timelineHourMark style-scope controller-timeline">Nu</div>
177
- `:T`
178
- <div class="timelineHourMark style-scope controller-timeline">+${e}u</div>
179
- `}
180
- `)}
181
- </div>
182
-
183
- <div class="slidecontainer">
184
- <input id="or-timeline-slider" class="slider" type="range" @input="${this.moveBubble}" @change="${this.valueChange}" value="${this.current}" min="${this.minRange}" max="${this.maxRange}" step="${this.step}">
185
- </div>
186
- </div>
187
-
2
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,H=/"/g,N=/^(?:script|style|textarea|title)$/i,M=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),T=M(1),z=(M(2),Symbol.for("lit-noChange")),j=Symbol.for("lit-nothing"),L=new WeakMap,D=A.createTreeWalker(A,129,null,!1);function B(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==_?_.createHTML(e):e}class I{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let s=0,n=0,o=t.length-1,l=this.parts,[a,h]=((t,e)=>{let i=t.length-1,r=[],s,n=2===e?"<svg>":"",o=k;for(let e=0;e<i;e++){let i=t[e],l,a,h=-1,d=0;for(;d<i.length&&(o.lastIndex=d,null!==(a=o.exec(i)));)d=o.lastIndex,o===k?"!--"===a[1]?o=P:void 0!==a[1]?o=U:void 0!==a[2]?(N.test(a[2])&&(s=RegExp("</"+a[2],"g")),o=O):void 0!==a[3]&&(o=O):o===O?">"===a[0]?(o=null!=s?s:k,h=-1):void 0===a[1]?h=-2:(h=o.lastIndex-a[2].length,l=a[1],o=void 0===a[3]?O:'"'===a[3]?H:R):o===H||o===R?o=O:o===P||o===U?o=k:(o=O,s=void 0);let p=o===O&&t[e+1].startsWith("/>")?" ":"";n+=o===k?i+E:h>=0?(r.push(l),i.slice(0,h)+y+i.slice(h)+g+p):i+g+(-2===h?(r.push(void 0),e):p)}return[B(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),r]})(t,e);if(this.el=I.createElement(a,i),D.currentNode=this.el.content,2===e){let t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=D.nextNode())&&l.length<o;){if(1===r.nodeType){if(r.hasAttributes()){let t=[];for(let e of r.getAttributeNames())if(e.endsWith(y)||e.startsWith(g)){let i=h[n++];if(t.push(e),void 0!==i){let t=r.getAttribute(i.toLowerCase()+y).split(g),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?G:"@"===e[1]?Z:F})}else l.push({type:6,index:s})}for(let e of t)r.removeAttribute(e)}if(N.test(r.tagName)){let t=r.textContent.split(g),e=t.length-1;if(e>0){r.textContent=m?m.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],x()),D.nextNode(),l.push({type:2,index:++s});r.append(t[e],x())}}}else if(8===r.nodeType)if(r.data===b)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=r.data.indexOf(g,t+1));)l.push({type:7,index:s}),t+=g.length-1}s++}}static createElement(t,e){let i=A.createElement("template");return i.innerHTML=t,i}}function V(t,e,i=t,r){var s,n,o;if(e===z)return e;let l=void 0!==r?null==(s=i._$Co)?void 0:s[r]:i._$Cl,a=S(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==a&&(null==(n=null==l?void 0:l._$AO)||n.call(l,!1),void 0===a?l=void 0:(l=new a(t))._$AT(t,i,r),void 0!==r?(null!=(o=i._$Co)?o:i._$Co=[])[r]=l:i._$Cl=l),void 0!==l&&(e=V(t,l._$AS(t,e.values),l,r)),e}class q{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;let{el:{content:i},parts:r}=this._$AD,s=(null!=(e=null==t?void 0:t.creationScope)?e:A).importNode(i,!0);D.currentNode=s;let n=D.nextNode(),o=0,l=0,a=r[0];for(;void 0!==a;){if(o===a.index){let e;2===a.type?e=new W(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new Q(n,this,t)),this._$AV.push(e),a=r[++l]}o!==(null==a?void 0:a.index)&&(n=D.nextNode(),o++)}return D.currentNode=A,s}v(t){let e=0;for(let i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class W{constructor(t,e,i,r){var s;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=null==(s=null==r?void 0:r.isConnected)||s}get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){let i;S(t=V(this,t,e))?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==z&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):w(i=t)||"function"==typeof(null==i?void 0:i[Symbol.iterator])?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==j&&S(this._$AH)?this._$AA.nextSibling.data=t:this.$(A.createTextNode(t)),this._$AH=t}g(t){var e;let{values:i,_$litType$:r}=t,s="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=I.createElement(B(r.h,r.h[0]),this.options)),r);if((null==(e=this._$AH)?void 0:e._$AD)===s)this._$AH.v(i);else{let t=new q(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new I(t)),e}T(t){w(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,r=0;for(let s of t)r===e.length?e.push(i=new W(this.k(x()),this.k(x()),this,this.options)):i=e[r],i._$AI(s),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t&&t!==this._$AB;){let e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null==(e=this._$AP)||e.call(this,t))}}class F{constructor(t,e,i,r,s){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=j}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){let s=this.strings,n=!1;if(void 0===s)(n=!S(t=V(this,t,e,0))||t!==this._$AH&&t!==z)&&(this._$AH=t);else{let r,o,l=t;for(t=s[0],r=0;r<s.length-1;r++)(o=V(this,l[i+r],e,r))===z&&(o=this._$AH[r]),n||(n=!S(o)||o!==this._$AH[r]),o===j?t=j:t!==j&&(t+=(null!=o?o:"")+s[r+1]),this._$AH[r]=o}n&&!r&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends F{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}}let J=m?m.emptyScript:"";class G extends F{constructor(){super(...arguments),this.type=4}j(t){t&&t!==j?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}class Z extends F{constructor(t,e,i,r,s){super(t,e,i,r,s),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=V(this,t,e,0))?i:j)===z)return;let r=this._$AH,s=t===j&&r!==j||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==j&&(r===j||s);s&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(e=this.options)?void 0:e.host)?i:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}}let X=f.litHtmlPolyfillSupport;null==X||X(I,W),(null!=(t_=f.litHtmlVersions)?t_:f.litHtmlVersions=[]).push("2.8.0");let Y=window,tt=Y.ShadowRoot&&(void 0===Y.ShadyCSS||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,te=Symbol(),ti=new WeakMap;class tr{constructor(t,e,i){if(this._$cssResult$=!0,i!==te)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(tt&&void 0===t){let i=void 0!==e&&1===e.length;i&&(t=ti.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ti.set(e,t))}return t}toString(){return this.cssText}}let ts=tt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return(t=>new tr("string"==typeof t?t:t+"",void 0,te))(e)})(t):t,tn=window,to=tn.trustedTypes,tl=to?to.emptyScript:"",ta=tn.reactiveElementPolyfillSupport,th={toAttribute(t,e){switch(e){case Boolean:t=t?tl:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},td=(t,e)=>e!==t&&(e==e||t==t),tp={attribute:!0,type:String,converter:th,reflect:!1,hasChanged:td},tc="finalized";class tu extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!=(e=this.h)?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((e,i)=>{let r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))}),t}static createProperty(t,e=tp){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){let i="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){let s=this[t];this[e]=r,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||tp}static finalize(){if(this.hasOwnProperty(tc))return!1;this[tc]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties;for(let e of[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)])this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let e=[];if(Array.isArray(t))for(let i of new Set(t.flat(1/0).reverse()))e.unshift(ts(i));else void 0!==t&&e.push(ts(t));return e}static _$Ep(t,e){let i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null==(t=this.constructor.h)||t.forEach(t=>t(this))}addController(t){var e,i;(null!=(e=this._$ES)?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$ES)||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t,e;let i=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return e=this.constructor.elementStyles,tt?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let e=document.createElement("style"),r=Y.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=t.cssText,i.appendChild(e)}),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)})}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=tp){var r;let s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){let n=(void 0!==(null==(r=i.converter)?void 0:r.toAttribute)?i.converter:th).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;let r=this.constructor,s=r._$Ev.get(t);if(void 0!==s&&this._$El!==s){let t=r.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:th;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||td)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((t,e)=>this[e]=t),this._$Ei=void 0);let e=!1,i=this._$AL;try{(e=this.shouldUpdate(i))?(this.willUpdate(i),null==(t=this._$ES)||t.forEach(t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)}),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$ES)||e.forEach(t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach((t,e)=>this._$EO(e,this[e],t)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}tu[tc]=!0,tu.elementProperties=new Map,tu.elementStyles=[],tu.shadowRootOptions={mode:"open"},null==ta||ta({ReactiveElement:tu}),(null!=(ty=tn.reactiveElementVersions)?ty:tn.reactiveElementVersions=[]).push("1.6.3");class tv extends tu{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;let e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var r,s;let n=null!=(r=null==i?void 0:i.renderBefore)?r:e,o=n._$litPart$;if(void 0===o){let t=null!=(s=null==i?void 0:i.renderBefore)?s:null;n._$litPart$=o=new W(e.insertBefore(x(),t),t,void 0,null!=i?i:{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return z}}tv.finalized=!0,tv._$litElement$=!0,null==(tg=globalThis.litElementHydrateSupport)||tg.call(globalThis,{LitElement:tv});let t$=globalThis.litElementPolyfillSupport;function tf(t){return(e,i)=>void 0!==i?void e.constructor.createProperty(i,t):"method"!==e.kind||!e.descriptor||"value"in e.descriptor?{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}}:{...e,finisher(i){i.createProperty(e.key,t)}}}null==t$||t$({LitElement:tv}),(null!=(tb=globalThis.litElementVersions)?tb:globalThis.litElementVersions=[]).push("3.3.3"),null!=(null==(tE=window.HTMLSlotElement)?void 0:tE.prototype.assignedElements)||((t,e)=>t.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE));var tm,t_,ty,tg,tb,tE,tA=r(192),tx=r.n(tA),tS=function(t,e,i,r){var s,n=arguments.length,o=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,r);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o};let tw=class extends tv{constructor(){super(),this.current=0,this.value=0,this.maxRange=360,this.minRange=0,this.step=5}moveBubble(t=null,e=null){let i;if(t?i=t.target:this.shadowRoot&&(i=this.shadowRoot.getElementById("or-timeline-slider")),i){let t;e?this.current=parseInt(e):this.current=parseInt(i.value);let r=i.offsetWidth,s=this.current/this.maxRange;if(s<0?t=0:s>1?t=r-15:(t=(r-15)*s)<0&&(t=0),this.shadowRoot){let e=this.shadowRoot.getElementById("range-value");e&&(e.style.left=t+"px")}}}valueChange(t){this.moveBubble(t),this.onChange()}render(){return T`
3
+ <style>
4
+ :host {
5
+ position: relative;
6
+ }
7
+ .timeline-container {
8
+ display: block;
9
+ height: 52px;
10
+ background-color: var(--app-white, #FFFFFF);
11
+
12
+ -webkit-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.28);
13
+ -moz-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.28);
14
+ box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.28);
15
+
16
+ padding-top: 20px;
17
+ }
18
+ .slidecontainer {
19
+ position: relative;
20
+ margin: -5px 44px 0 19px;
21
+ }
22
+
23
+ /* The slider itself */
24
+ .slider {
25
+ color: var(--timeline-accent, #1D5632);
26
+ box-sizing: border-box;
27
+ -webkit-appearance: none;
28
+ outline: none;
29
+ width: 100%;
30
+ }
31
+ .slider::-webkit-slider-runnable-track {
32
+ cursor: pointer;
33
+ border: transparent;
34
+ background: #bdbdbd;
35
+ border-radius: 6px;
36
+ height: 12px;
37
+ }
38
+ .slider::-webkit-slider-thumb {
39
+ height: 18px;
40
+ width: 18px;
41
+ border-radius: 50%;
42
+ cursor: pointer;
43
+ -webkit-appearance: none;
44
+ background-color: var(--timeline-accent, #1D5632); /* Green background */
45
+ pointer-events: all;
46
+ margin-top: -2px;
47
+ }
48
+
49
+ .slider::-moz-range-track {
50
+ cursor: pointer;
51
+ border: transparent;
52
+ background: #bdbdbd;
53
+ border-radius: 6px;
54
+ height: 12px;
55
+ }
56
+ .slider::-moz-range-thumb {
57
+ border: 0 none;
58
+ height: 18px;
59
+ width: 18px;
60
+ border-radius: 50%;
61
+ cursor: pointer;
62
+ -webkit-appearance: none;
63
+ background-color: var(--timeline-accent, #1D5632); /* Green background */
64
+ pointer-events: all;
65
+ margin-top: -2px;
66
+ }
67
+ .slider::-moz-range-progress {
68
+ background-color: var(--timeline-accent, #1D5632);
69
+ height: 12px;
70
+ border-radius: 6px;
71
+ }
72
+
73
+ .slider::-ms-track {
74
+ cursor: pointer;
75
+ border: transparent;
76
+ background: #bdbdbd;
77
+ border-radius: 6px;
78
+ height: 12px;
79
+ }
80
+ .slider::-ms-thumb {
81
+ border: 0 none;
82
+ height: 18px;
83
+ width: 18px;
84
+ border-radius: 50%;
85
+ cursor: pointer;
86
+ -webkit-appearance: none;
87
+ background-color: var(--timeline-accent, currentColor); /* Bug in Edge set colour on slider itself */
88
+ pointer-events: all;
89
+ margin-top: -2px;
90
+ }
91
+
92
+ .slider::-ms-fill-lower {
93
+ background-color: var(--timeline-accent, currentColor);
94
+ border: 0 none;
95
+ border-radius: 6px;
96
+ }
97
+
98
+ .slider::-ms-fill-upper {
99
+ background: transparent;
100
+ border: 0 none;
101
+ }
102
+
103
+ #timelineHourMarkers {
104
+ position: relative;
105
+ display: -webkit-box;
106
+ display: -moz-box;
107
+ display: -ms-flexbox;
108
+ display: -webkit-flex;
109
+ display: flex;
110
+ -webkit-box-orient: horizontal;
111
+ -moz-box-orient: horizontal;
112
+ -webkit-box-direction: normal;
113
+ -moz-box-direction: normal;
114
+ -webkit-flex-direction: row;
115
+ -ms-flex-direction: row;
116
+ flex-direction: row;
117
+
118
+ margin: 0 50px 0 30px;
119
+ }
120
+
121
+ #timelineHourMarkers > .timelineHourMark{
122
+ display: flex;
123
+ flex: 1 100%;
124
+ flex-grow: 1;
125
+ flex-shrink: 1;
126
+ flex-basis: 100%;
127
+
128
+ overflow: visible;
129
+ color: var(--timeline-grey, darkgrey);
130
+ border-left: 1px solid var(--timeline-grey, darkgrey);
131
+ font-size: 12px;
132
+ -webkit-user-select: none;
133
+ -moz-user-select: none;
134
+ -ms-user-select: none;
135
+ user-select: none;
136
+ padding-left: 4px;
137
+ padding-bottom: 4px;
138
+ }
139
+ #timelineHourMarkers .timelineHourMark:last-child {
140
+ position: absolute;
141
+ right: -25px;
142
+ }
143
+
144
+ #range-value {
145
+ position: absolute;
146
+ background-color: var(--timeline-accent, #1D5632);
147
+ height: 30px;
148
+ width: 60px;
149
+ margin-left: -30px;
150
+ text-align: center;
151
+ color: white;
152
+ display: inline-block;
153
+ left: 0;
154
+ font-size: 12px;
155
+ font-weight: bold;
156
+ line-height: 30px;
157
+ }
158
+
159
+ .time-value-container {
160
+ width: calc(100% - 80px);
161
+ display: block;
162
+ position: relative;
163
+ height: 30px;
164
+ margin: 0 50px 0 30px;
165
+ }
166
+ </style>
167
+
168
+
169
+ <div class="time-value-container">
170
+ <div id="range-value">${0===this.current?"LIVE":tx()().add(this.current,"minutes").format("HH:mm")}</div>
171
+ </div>
172
+ <div class="timeline-container">
173
+ <div id="timelineHourMarkers" class="layout horizontal justified style-scope controller-timeline">
174
+ ${Array(this.maxRange/60+1).fill(0).map((t,e)=>T`
175
+ ${0===e?T`
176
+ <div class="timelineHourMark style-scope controller-timeline">Nu</div>
177
+ `:T`
178
+ <div class="timelineHourMark style-scope controller-timeline">+${e}u</div>
179
+ `}
180
+ `)}
181
+ </div>
182
+
183
+ <div class="slidecontainer">
184
+ <input id="or-timeline-slider" class="slider" type="range" @input="${this.moveBubble}" @change="${this.valueChange}" value="${this.current}" min="${this.minRange}" max="${this.maxRange}" step="${this.step}">
185
+ </div>
186
+ </div>
187
+
188
188
  `}};tS([tf({type:Number})],tw.prototype,"current",void 0),tS([tf({type:Function})],tw.prototype,"onChange",void 0),tS([tf({type:Number})],tw.prototype,"value",void 0),tS([tf({type:Number})],tw.prototype,"maxRange",void 0),tS([tf({type:Number})],tw.prototype,"minRange",void 0),tS([tf({type:Number})],tw.prototype,"step",void 0),tw=tS([(t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{let{kind:i,elements:r}=e;return{kind:i,elements:r,finisher(e){customElements.define(t,e)}}})(t,e))("or-timeline")],tw)})(),{}})());
189
189
  //# sourceMappingURL=index.js.map