iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 9.95 kB
JavaScript
/*! For license information please see 47686.8911cb161fc37e42.js.LICENSE.txt */
export const __webpack_ids__=["47686"];export const __webpack_modules__={78344:function(t){var n=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new n("Argument is not a string")}},87265:function(t,n,e){var r=e(61896),i=String,o=TypeError;t.exports=function(t){if(void 0===t||r(t))return t;throw new o(i(t)+" is not an object or undefined")}},87038:function(t,n,e){var r=e(59069),i=TypeError;t.exports=function(t){if("Uint8Array"===r(t))return t;throw new i("Argument is not an Uint8Array")}},17743:function(t,n,e){var r=e(13053);t.exports=function(t,n,e){for(var i=0,o=arguments.length>2?e:r(n),s=new t(o);o>i;)s[i]=n[i++];return s}},15419:function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=n+"+/",r=n+"-_",i=function(t){for(var n={},e=0;e<64;e++)n[t.charAt(e)]=e;return n};t.exports={i2c:e,c2i:i(e),i2cUrl:r,c2iUrl:i(r)}},93474:function(t){var n=TypeError;t.exports=function(t){var e=t&&t.alphabet;if(void 0===e||"base64"===e||"base64url"===e)return e||"base64";throw new n("Incorrect `alphabet` option")}},47057:function(t,n,e){var r=e(1569),i=e(72878),o=e(87265),s=e(78344),a=e(39129),c=e(15419),l=e(93474),u=e(38511),f=c.c2i,h=c.c2iUrl,d=r.SyntaxError,v=r.TypeError,_=i("".charAt),$=function(t,n){for(var e=t.length;n<e;n++){var r=_(t,n);if(" "!==r&&"\t"!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break}return n},A=function(t,n,e){var r=t.length;r<4&&(t+=2===r?"AA":"A");var i=(n[_(t,0)]<<18)+(n[_(t,1)]<<12)+(n[_(t,2)]<<6)+n[_(t,3)],o=[i>>16&255,i>>8&255,255&i];if(2===r){if(e&&0!==o[1])throw new d("Extra bits");return[o[0]]}if(3===r){if(e&&0!==o[2])throw new d("Extra bits");return[o[0],o[1]]}return o},p=function(t,n,e){for(var r=n.length,i=0;i<r;i++)t[e+i]=n[i];return e+r};t.exports=function(t,n,e,r){s(t),o(n);var i="base64"===l(n)?f:h,c=n?n.lastChunkHandling:void 0;if(void 0===c&&(c="loose"),"loose"!==c&&"strict"!==c&&"stop-before-partial"!==c)throw new v("Incorrect `lastChunkHandling` option");e&&u(e.buffer);var g=e||[],w=0,b=0,y="",C=0;if(r)for(;;){if((C=$(t,C))===t.length){if(y.length>0){if("stop-before-partial"===c)break;if("loose"!==c)throw new d("Missing padding");if(1===y.length)throw new d("Malformed padding: exactly one additional character");w=p(g,A(y,i,!1),w)}b=t.length;break}var x=_(t,C);if(++C,"="===x){if(y.length<2)throw new d("Padding is too early");if(C=$(t,C),2===y.length){if(C===t.length){if("stop-before-partial"===c)break;throw new d("Malformed padding: only one =")}"="===_(t,C)&&(++C,C=$(t,C))}if(C<t.length)throw new d("Unexpected character after padding");w=p(g,A(y,i,"strict"===c),w),b=t.length;break}if(!a(i,x))throw new d("Unexpected character");var m=r-w;if(1===m&&2===y.length||2===m&&3===y.length)break;if(4===(y+=x).length&&(w=p(g,A(y,i,!1),w),y="",b=C,w===r))break}return{bytes:g,read:b,written:w}}},35303:function(t,n,e){var r=e(1569),i=e(72878),o=r.Uint8Array,s=r.SyntaxError,a=r.parseInt,c=Math.min,l=/[^\da-f]/i,u=i(l.exec),f=i("".slice);t.exports=function(t,n){var e=t.length;if(e%2!=0)throw new s("String should be an even number of characters");for(var r=n?c(n.length,e/2):e/2,i=n||new o(r),h=0,d=0;d<r;){var v=f(t,h,h+=2);if(u(l,v))throw new s("String should only contain hex characters");i[d++]=a(v,16)}return{bytes:i,read:h}}},21917:function(t,n,e){var r=e(40810),i=e(1569),o=e(47057),s=e(87038);i.Uint8Array&&r({target:"Uint8Array",proto:!0},{setFromBase64:function(t){s(this);var n=o(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:n.read,written:n.written}}})},56193:function(t,n,e){var r=e(40810),i=e(1569),o=e(78344),s=e(87038),a=e(38511),c=e(35303);i.Uint8Array&&r({target:"Uint8Array",proto:!0},{setFromHex:function(t){s(this),o(t),a(this.buffer);var n=c(t,this).read;return{read:n,written:n/2}}})},25020:function(t,n,e){var r=e(40810),i=e(1569),o=e(72878),s=e(87265),a=e(87038),c=e(38511),l=e(15419),u=e(93474),f=l.i2c,h=l.i2cUrl,d=o("".charAt);i.Uint8Array&&r({target:"Uint8Array",proto:!0},{toBase64:function(){var t=a(this),n=arguments.length?s(arguments[0]):void 0,e="base64"===u(n)?f:h,r=!!n&&!!n.omitPadding;c(this.buffer);for(var i,o="",l=0,v=t.length,_=function(t){return d(e,i>>6*t&63)};l+2<v;l+=3)i=(t[l]<<16)+(t[l+1]<<8)+t[l+2],o+=_(3)+_(2)+_(1)+_(0);return l+2===v?(i=(t[l]<<16)+(t[l+1]<<8),o+=_(3)+_(2)+_(1)+(r?"":"=")):l+1===v&&(i=t[l]<<16,o+=_(3)+_(2)+(r?"":"==")),o}})},86913:function(t,n,e){var r=e(40810),i=e(1569),o=e(72878),s=e(87038),a=e(38511),c=o(1..toString);i.Uint8Array&&r({target:"Uint8Array",proto:!0},{toHex:function(){s(this),a(this.buffer);for(var t="",n=0,e=this.length;n<e;n++){var r=c(this[n],16);t+=1===r.length?"0"+r:r}return t}})},18492:function(t,n,e){e.d(n,{d:()=>i});e(9359),e(1331),e(70104);var r=e(53907);function i(t,...n){const e=r.L.bind(null,t||n.find((t=>"object"==typeof t)));return n.map(e)}},76808:function(t,n,e){e.d(n,{I7:()=>a,dP:()=>i,jE:()=>r,vh:()=>s,yJ:()=>o});Math.pow(10,8);const r=6048e5,i=864e5,o=6e4,s=36e5,a=Symbol.for("constructDateFrom")},53907:function(t,n,e){e.d(n,{L:()=>i});var r=e(76808);function i(t,n){return"function"==typeof t?t(n):t&&"object"==typeof t&&r.I7 in t?t[r.I7](n):t instanceof Date?new t.constructor(n):new Date(n)}},7591:function(t,n,e){e.d(n,{b:()=>i});var r=e(18112);function i(t,n){const e=(0,r.Q)(t,n?.in);return e.setHours(0,0,0,0),e}},18112:function(t,n,e){e.d(n,{Q:()=>i});var r=e(53907);function i(t,n){return(0,r.L)(n||t,t)}},27608:function(t,n,e){e.d(n,{MT:()=>i,RV:()=>r,U2:()=>a,ZH:()=>l,t8:()=>c});e(92745),e(9359),e(31526),e(70104);function r(t){return new Promise(((n,e)=>{t.oncomplete=t.onsuccess=()=>n(t.result),t.onabort=t.onerror=()=>e(t.error)}))}function i(t,n){const e=indexedDB.open(t);e.onupgradeneeded=()=>e.result.createObjectStore(n);const i=r(e);return(t,e)=>i.then((r=>e(r.transaction(n,t).objectStore(n))))}let o;function s(){return o||(o=i("keyval-store","keyval")),o}function a(t,n=s()){return n("readonly",(n=>r(n.get(t))))}function c(t,n,e=s()){return e("readwrite",(e=>(e.put(n,t),r(e.transaction))))}function l(t=s()){return t("readwrite",(t=>(t.clear(),r(t.transaction))))}},1714:function(t,n,e){e.d(n,{sR:()=>f});e(92519),e(42179),e(89256),e(24931),e(88463),e(57449),e(19814);var r=e(53232),i=e(45779);const o=(t,n)=>{var e,r;const i=t._$AN;if(void 0===i)return!1;for(const t of i)null===(r=(e=t)._$AO)||void 0===r||r.call(e,n,!1),o(t,n);return!0},s=t=>{let n,e;do{if(void 0===(n=t._$AM))break;e=n._$AN,e.delete(t),t=n}while(0===(null==e?void 0:e.size))},a=t=>{for(let n;n=t._$AM;t=n){let e=n._$AN;if(void 0===e)n._$AN=e=new Set;else if(e.has(t))break;e.add(t),u(n)}};function c(t){void 0!==this._$AN?(s(this),this._$AM=t,a(this)):this._$AM=t}function l(t,n=!1,e=0){const r=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(n)if(Array.isArray(r))for(let t=e;t<r.length;t++)o(r[t],!1),s(r[t]);else null!=r&&(o(r,!1),s(r));else o(this,t)}const u=t=>{var n,e,r,o;t.type==i.pX.CHILD&&(null!==(n=(r=t)._$AP)&&void 0!==n||(r._$AP=l),null!==(e=(o=t)._$AQ)&&void 0!==e||(o._$AQ=c))};class f extends i.Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,n,e){super._$AT(t,n,e),a(this),this.isConnected=t._$AU}_$AO(t,n=!0){var e,r;t!==this.isConnected&&(this.isConnected=t,t?null===(e=this.reconnected)||void 0===e||e.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),n&&(o(this,t),s(this))}setValue(t){if((0,r.OR)(this._$Ct))this._$Ct._$AI(t,this);else{const n=[...this._$Ct._$AH];n[this._$Ci]=t,this._$Ct._$AI(n,this,0)}}disconnected(){}reconnected(){}}},53232:function(t,n,e){e.d(n,{E_:()=>$,OR:()=>c,_Y:()=>u,dZ:()=>a,fk:()=>f,hN:()=>s,hl:()=>d,i9:()=>v,pt:()=>o,ws:()=>_});var r=e(2841);const{I:i}=r.Al,o=t=>null===t||"object"!=typeof t&&"function"!=typeof t,s=(t,n)=>void 0===n?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===n,a=t=>{var n;return null!=(null===(n=null==t?void 0:t._$litType$)||void 0===n?void 0:n.h)},c=t=>void 0===t.strings,l=()=>document.createComment(""),u=(t,n,e)=>{var r;const o=t._$AA.parentNode,s=void 0===n?t._$AB:n._$AA;if(void 0===e){const n=o.insertBefore(l(),s),r=o.insertBefore(l(),s);e=new i(n,r,t,t.options)}else{const n=e._$AB.nextSibling,i=e._$AM,a=i!==t;if(a){let n;null===(r=e._$AQ)||void 0===r||r.call(e,t),e._$AM=t,void 0!==e._$AP&&(n=t._$AU)!==i._$AU&&e._$AP(n)}if(n!==s||a){let t=e._$AA;for(;t!==n;){const n=t.nextSibling;o.insertBefore(t,s),t=n}}}return e},f=(t,n,e=t)=>(t._$AI(n,e),t),h={},d=(t,n=h)=>t._$AH=n,v=t=>t._$AH,_=t=>{var n;null===(n=t._$AP)||void 0===n||n.call(t,!1,!0);let e=t._$AA;const r=t._$AB.nextSibling;for(;e!==r;){const t=e.nextSibling;e.remove(),e=t}},$=t=>{t._$AR()}},94571:function(t,n,e){e.d(n,{C:()=>h});e(9359),e(1331);var r=e(2841),i=e(53232),o=e(1714);class s{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}}class a{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 c=e(45779);const l=t=>!(0,i.pt)(t)&&"function"==typeof t.then,u=1073741823;class f extends o.sR{constructor(){super(...arguments),this._$C_t=u,this._$Cwt=[],this._$Cq=new s(this),this._$CK=new a}render(...t){var n;return null!==(n=t.find((t=>!l(t))))&&void 0!==n?n:r.Jb}update(t,n){const e=this._$Cwt;let i=e.length;this._$Cwt=n;const o=this._$Cq,s=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<n.length&&!(t>this._$C_t);t++){const r=n[t];if(!l(r))return this._$C_t=t,r;t<i&&r===e[t]||(this._$C_t=u,i=0,Promise.resolve(r).then((async t=>{for(;s.get();)await s.get();const n=o.deref();if(void 0!==n){const e=n._$Cwt.indexOf(r);e>-1&&e<n._$C_t&&(n._$C_t=e,n.setValue(t))}})))}return r.Jb}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}}const h=(0,c.XM)(f)}};
//# sourceMappingURL=47686.8911cb161fc37e42.js.map