iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 8.11 kB
JavaScript
/*! For license information please see 90994.f6e99395616bdbba.js.LICENSE.txt */
export const __webpack_ids__=["90994"];export const __webpack_modules__={88977:function(t,e,n){n.d(e,{L:()=>i});const o={en:"US",hi:"IN",deva:"IN",te:"IN",mr:"IN",ta:"IN",gu:"IN",kn:"IN",or:"IN",ml:"IN",pa:"IN",bho:"IN",awa:"IN",as:"IN",mwr:"IN",mai:"IN",mag:"IN",bgc:"IN",hne:"IN",dcc:"IN",bn:"BD",beng:"BD",rkt:"BD",dz:"BT",tibt:"BT",tn:"BW",am:"ET",ethi:"ET",om:"ET",quc:"GT",id:"ID",jv:"ID",su:"ID",mad:"ID",ms_arab:"ID",he:"IL",hebr:"IL",jam:"JM",ja:"JP",jpan:"JP",km:"KH",khmr:"KH",ko:"KR",kore:"KR",lo:"LA",laoo:"LA",mh:"MH",my:"MM",mymr:"MM",mt:"MT",ne:"NP",fil:"PH",ceb:"PH",ilo:"PH",ur:"PK",pa_arab:"PK",lah:"PK",ps:"PK",sd:"PK",skr:"PK",gn:"PY",th:"TH",thai:"TH",tts:"TH",zh_hant:"TW",hant:"TW",sm:"WS",zu:"ZA",sn:"ZW",arq:"DZ",ar:"EG",arab:"EG",arz:"EG",fa:"IR",az_arab:"IR",dv:"MV",thaa:"MV"};const s={AG:0,ATG:0,28:0,AS:0,ASM:0,16:0,BD:0,BGD:0,50:0,BR:0,BRA:0,76:0,BS:0,BHS:0,44:0,BT:0,BTN:0,64:0,BW:0,BWA:0,72:0,BZ:0,BLZ:0,84:0,CA:0,CAN:0,124:0,CO:0,COL:0,170:0,DM:0,DMA:0,212:0,DO:0,DOM:0,214:0,ET:0,ETH:0,231:0,GT:0,GTM:0,320:0,GU:0,GUM:0,316:0,HK:0,HKG:0,344:0,HN:0,HND:0,340:0,ID:0,IDN:0,360:0,IL:0,ISR:0,376:0,IN:0,IND:0,356:0,JM:0,JAM:0,388:0,JP:0,JPN:0,392:0,KE:0,KEN:0,404:0,KH:0,KHM:0,116:0,KR:0,KOR:0,410:0,LA:0,LA0:0,418:0,MH:0,MHL:0,584:0,MM:0,MMR:0,104:0,MO:0,MAC:0,446:0,MT:0,MLT:0,470:0,MX:0,MEX:0,484:0,MZ:0,MOZ:0,508:0,NI:0,NIC:0,558:0,NP:0,NPL:0,524:0,PA:0,PAN:0,591:0,PE:0,PER:0,604:0,PH:0,PHL:0,608:0,PK:0,PAK:0,586:0,PR:0,PRI:0,630:0,PT:0,PRT:0,620:0,PY:0,PRY:0,600:0,SA:0,SAU:0,682:0,SG:0,SGP:0,702:0,SV:0,SLV:0,222:0,TH:0,THA:0,764:0,TT:0,TTO:0,780:0,TW:0,TWN:0,158:0,UM:0,UMI:0,581:0,US:0,USA:0,840:0,VE:0,VEN:0,862:0,VI:0,VIR:0,850:0,WS:0,WSM:0,882:0,YE:0,YEM:0,887:0,ZA:0,ZAF:0,710:0,ZW:0,ZWE:0,716:0,AE:6,ARE:6,784:6,AF:6,AFG:6,4:6,BH:6,BHR:6,48:6,DJ:6,DJI:6,262:6,DZ:6,DZA:6,12:6,EG:6,EGY:6,818:6,IQ:6,IRQ:6,368:6,IR:6,IRN:6,364:6,JO:6,JOR:6,400:6,KW:6,KWT:6,414:6,LY:6,LBY:6,434:6,OM:6,OMN:6,512:6,QA:6,QAT:6,634:6,SD:6,SDN:6,729:6,SY:6,SYR:6,760:6,MV:5,MDV:5,462:5};function i(t){return function(t,e,n){if(t){var o,s=t.toLowerCase().split(/[-_]/),i=s[0],r=i;if(s[1]&&4===s[1].length?(r+="_"+s[1],o=s[2]):o=s[1],o||(o=e[r]||e[i]),o)return function(t,e){var n=e["string"==typeof t?t.toUpperCase():t];return"number"==typeof n?n:1}(o.match(/^\d+$/)?Number(o):o,n)}return 1}(t,o,s)}},55428:function(t,e,n){n.d(e,{j:()=>s});let o={};function s(){return o}},34151:function(t,e,n){function o(t){return e=>{const n=(t?Math[t]:Math.trunc)(e);return 0===n?0:n}}n.d(e,{u:()=>o})},18492:function(t,e,n){n.d(e,{d:()=>s});n(9359),n(1331),n(70104);var o=n(53907);function s(t,...e){const n=o.L.bind(null,t||e.find((t=>"object"==typeof t)));return e.map(n)}},76808:function(t,e,n){n.d(e,{I7:()=>c,dP:()=>s,jE:()=>o,vh:()=>r,yJ:()=>i});Math.pow(10,8);const o=6048e5,s=864e5,i=6e4,r=36e5,c=Symbol.for("constructDateFrom")},53907:function(t,e,n){n.d(e,{L:()=>s});var o=n(76808);function s(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&o.I7 in t?t[o.I7](e):t instanceof Date?new t.constructor(e):new Date(e)}},78052:function(t,e,n){n.d(e,{w:()=>u});var o=n(18112);function s(t){const e=(0,o.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),r=n(76808),c=n(7591);function u(t,e,n){const[o,u]=(0,i.d)(n?.in,t,e),a=(0,c.b)(o),d=(0,c.b)(u),h=+a-s(a),l=+d-s(d);return Math.round((h-l)/r.dP)}},13809:function(t,e,n){n.d(e,{j:()=>i});var o=n(18492),s=n(78052);function i(t,e,n){const[i,c]=(0,o.d)(n?.in,t,e),u=r(i,c),a=Math.abs((0,s.w)(i,c));i.setDate(i.getDate()-u*a);const d=u*(a-Number(r(i,c)===-u));return 0===d?0:d}function r(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 o=n(34151),s=n(13809);function i(t,e,n){const i=(0,s.j)(t,e,n)/7;return(0,o.u)(n?.roundingMethod)(i)}},7591:function(t,e,n){n.d(e,{b:()=>s});var o=n(18112);function s(t,e){const n=(0,o.Q)(t,e?.in);return n.setHours(0,0,0,0),n}},29558:function(t,e,n){n.d(e,{z:()=>i});var o=n(55428),s=n(18112);function i(t,e){const n=(0,o.j)(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=(0,s.Q)(t,e?.in),c=r.getDay(),u=(c<i?7:0)+c-i;return r.setDate(r.getDate()-u),r.setHours(0,0,0,0),r}},18112:function(t,e,n){n.d(e,{Q:()=>s});var o=n(53907);function s(t,e){return(0,o.L)(e||t,t)}},27608:function(t,e,n){n.d(e,{MT:()=>s,RV:()=>o,U2:()=>c,ZH:()=>a,t8:()=>u});n(92745),n(9359),n(31526),n(70104);function o(t){return new Promise(((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)}))}function s(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const s=o(n);return(t,n)=>s.then((o=>n(o.transaction(e,t).objectStore(e))))}let i;function r(){return i||(i=s("keyval-store","keyval")),i}function c(t,e=r()){return e("readonly",(e=>o(e.get(t))))}function u(t,e,n=r()){return n("readwrite",(n=>(n.put(e,t),o(n.transaction))))}function a(t=r()){return t("readwrite",(t=>(t.clear(),o(t.transaction))))}},1714:function(t,e,n){n.d(e,{sR:()=>h});n(92519),n(42179),n(89256),n(24931),n(88463),n(57449),n(19814);var o=n(53232),s=n(45779);const i=(t,e)=>{var n,o;const s=t._$AN;if(void 0===s)return!1;for(const t of s)null===(o=(n=t)._$AO)||void 0===o||o.call(n,e,!1),i(t,e);return!0},r=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===(null==n?void 0:n.size))},c=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),d(e)}};function u(t){void 0!==this._$AN?(r(this),this._$AM=t,c(this)):this._$AM=t}function a(t,e=!1,n=0){const o=this._$AH,s=this._$AN;if(void 0!==s&&0!==s.size)if(e)if(Array.isArray(o))for(let t=n;t<o.length;t++)i(o[t],!1),r(o[t]);else null!=o&&(i(o,!1),r(o));else i(this,t)}const d=t=>{var e,n,o,i;t.type==s.pX.CHILD&&(null!==(e=(o=t)._$AP)&&void 0!==e||(o._$AP=a),null!==(n=(i=t)._$AQ)&&void 0!==n||(i._$AQ=u))};class h extends s.Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),c(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,o;t!==this.isConnected&&(this.isConnected=t,t?null===(n=this.reconnected)||void 0===n||n.call(this):null===(o=this.disconnected)||void 0===o||o.call(this)),e&&(i(this,t),r(this))}setValue(t){if((0,o.OR)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}},94571:function(t,e,n){n.d(e,{C:()=>l});n(9359),n(1331);var o=n(2841),s=n(53232),i=n(1714);class r{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class c{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){var t;null!==(t=this.Y)&&void 0!==t||(this.Y=new Promise((t=>this.Z=t)))}resume(){var t;null===(t=this.Z)||void 0===t||t.call(this),this.Y=this.Z=void 0}}var u=n(45779);const a=t=>!(0,s.pt)(t)&&"function"==typeof t.then,d=1073741823;class h extends i.sR{constructor(){super(...arguments),this._$C_t=d,this._$Cwt=[],this._$Cq=new r(this),this._$CK=new c}render(...t){var e;return null!==(e=t.find((t=>!a(t))))&&void 0!==e?e:o.Jb}update(t,e){const n=this._$Cwt;let s=n.length;this._$Cwt=e;const i=this._$Cq,r=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$C_t);t++){const o=e[t];if(!a(o))return this._$C_t=t,o;t<s&&o===n[t]||(this._$C_t=d,s=0,Promise.resolve(o).then((async t=>{for(;r.get();)await r.get();const e=i.deref();if(void 0!==e){const n=e._$Cwt.indexOf(o);n>-1&&n<e._$C_t&&(e._$C_t=n,e.setValue(t))}})))}return o.Jb}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const l=(0,u.XM)(h)}};
//# sourceMappingURL=90994.f6e99395616bdbba.js.map