iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 5.12 kB
JavaScript
export const __webpack_ids__=["37602"];export const __webpack_modules__={55428:function(t,e,n){n.d(e,{j:()=>o});let r={};function o(){return r}},34151:function(t,e,n){function r(t){return e=>{const n=(t?Math[t]:Math.trunc)(e);return 0===n?0:n}}n.d(e,{u:()=>r})},18492:function(t,e,n){n.d(e,{d:()=>o});n(9359),n(1331),n(70104);var r=n(53907);function o(t,...e){const n=r.L.bind(null,t||e.find((t=>"object"==typeof t)));return e.map(n)}},76808:function(t,e,n){n.d(e,{I7:()=>a,dP:()=>o,jE:()=>r,vh:()=>u,yJ:()=>i});Math.pow(10,8);const r=6048e5,o=864e5,i=6e4,u=36e5,a=Symbol.for("constructDateFrom")},53907:function(t,e,n){n.d(e,{L:()=>o});var r=n(76808);function o(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&r.I7 in t?t[r.I7](e):t instanceof Date?new t.constructor(e):new Date(e)}},78052:function(t,e,n){n.d(e,{w:()=>c});var r=n(18112);function o(t){const e=(0,r.Q)(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}var i=n(18492),u=n(76808),a=n(7591);function c(t,e,n){const[r,c]=(0,i.d)(n?.in,t,e),s=(0,a.b)(r),l=(0,a.b)(c),f=+s-o(s),d=+l-o(l);return Math.round((f-d)/u.dP)}},13809:function(t,e,n){n.d(e,{j:()=>i});var r=n(18492),o=n(78052);function i(t,e,n){const[i,a]=(0,r.d)(n?.in,t,e),c=u(i,a),s=Math.abs((0,o.w)(i,a));i.setDate(i.getDate()-c*s);const l=c*(s-Number(u(i,a)===-c));return 0===l?0:l}function u(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}},94763:function(t,e,n){n.d(e,{p:()=>i});var r=n(34151),o=n(13809);function i(t,e,n){const i=(0,o.j)(t,e,n)/7;return(0,r.u)(n?.roundingMethod)(i)}},74760:function(t,e,n){n.d(e,{D:()=>u});var r=n(76808),o=n(53907),i=n(18112);function u(t,e){const n=()=>(0,o.L)(e?.in,NaN),u=e?.additionalDigits??2,m=function(t){const e={},n=t.split(a.dateTimeDelimiter);let r;if(n.length>2)return e;/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],a.timeZoneDelimiter.test(e.date)&&(e.date=t.split(a.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length)));if(r){const t=a.timezone.exec(r);t?(e.time=r.replace(t[1],""),e.timezone=t[1]):e.time=r}return e}(t);let N;if(m.date){const t=function(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:t.slice((r[1]||r[2]).length)}}(m.date,u);N=function(t,e){if(null===e)return new Date(NaN);const n=t.match(c);if(!n)return new Date(NaN);const r=!!n[4],o=f(n[1]),i=f(n[2])-1,u=f(n[3]),a=f(n[4]),s=f(n[5])-1;if(r)return function(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}(0,a,s)?function(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const o=r.getUTCDay()||7,i=7*(e-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(e,a,s):new Date(NaN);{const t=new Date(0);return function(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(g[e]||(D(t)?29:28))}(e,i,u)&&function(t,e){return e>=1&&e<=(D(t)?366:365)}(e,o)?(t.setUTCFullYear(e,i,Math.max(o,u)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!N||isNaN(+N))return n();const p=+N;let h,w=0;if(m.time&&(w=function(t){const e=t.match(s);if(!e)return NaN;const n=d(e[1]),o=d(e[2]),i=d(e[3]);if(!function(t,e,n){if(24===t)return 0===e&&0===n;return n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}(n,o,i))return NaN;return n*r.vh+o*r.yJ+1e3*i}(m.time),isNaN(w)))return n();if(!m.timezone){const t=new Date(p+w),n=(0,i.Q)(0,e?.in);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}return h=function(t){if("Z"===t)return 0;const e=t.match(l);if(!e)return 0;const n="+"===e[1]?-1:1,o=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;if(!function(t,e){return e>=0&&e<=59}(0,i))return NaN;return n*(o*r.vh+i*r.yJ)}(m.timezone),isNaN(h)?n():(0,i.Q)(p+w+h,e?.in)}const a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function f(t){return t?parseInt(t):1}function d(t){return t&&parseFloat(t.replace(",","."))||0}const g=[31,null,31,30,31,30,31,31,30,31,30,31];function D(t){return t%400==0||t%4==0&&t%100!=0}},7591:function(t,e,n){n.d(e,{b:()=>o});var r=n(18112);function o(t,e){const n=(0,r.Q)(t,e?.in);return n.setHours(0,0,0,0),n}},29558:function(t,e,n){n.d(e,{z:()=>i});var r=n(55428),o=n(18112);function i(t,e){const n=(0,r.j)(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,u=(0,o.Q)(t,e?.in),a=u.getDay(),c=(a<i?7:0)+a-i;return u.setDate(u.getDate()-c),u.setHours(0,0,0,0),u}},18112:function(t,e,n){n.d(e,{Q:()=>o});var r=n(53907);function o(t,e){return(0,r.L)(e||t,t)}}};
//# sourceMappingURL=37602.9480c863d283c920.js.map