iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 9.97 kB
JavaScript
/*! For license information please see 92290.58e28ddb711605b6.js.LICENSE.txt */
;(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["92290"],{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,r){var e=r(61896),i=String,a=TypeError;t.exports=function(t){if(void 0===t||e(t))return t;throw new a(i(t)+" is not an object or undefined")}},87038:function(t,n,r){var e=r(59069),i=TypeError;t.exports=function(t){if("Uint8Array"===e(t))return t;throw new i("Argument is not an Uint8Array")}},15419:function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n+"+/",e=n+"-_",i=function(t){for(var n={},r=0;r<64;r++)n[t.charAt(r)]=r;return n};t.exports={i2c:r,c2i:i(r),i2cUrl:e,c2iUrl:i(e)}},93474:function(t){var n=TypeError;t.exports=function(t){var r=t&&t.alphabet;if(void 0===r||"base64"===r||"base64url"===r)return r||"base64";throw new n("Incorrect `alphabet` option")}},30338:function(t,n,r){var e=r(97934),i=r(71998),a=r(4576),o=r(36760);t.exports=function(t,n){n&&"string"==typeof t||i(t);var r=o(t);return a(i(void 0!==r?e(r,t):t))}},47057:function(t,n,r){var e=r(1569),i=r(72878),a=r(87265),o=r(78344),s=r(39129),c=r(15419),u=r(93474),f=r(38511),l=c.c2i,h=c.c2iUrl,p=e.SyntaxError,g=e.TypeError,d=i("".charAt),v=function(t,n){for(var r=t.length;n<r;n++){var e=d(t,n);if(" "!==e&&"\t"!==e&&"\n"!==e&&"\f"!==e&&"\r"!==e)break}return n},y=function(t,n,r){var e=t.length;e<4&&(t+=2===e?"AA":"A");var i=(n[d(t,0)]<<18)+(n[d(t,1)]<<12)+(n[d(t,2)]<<6)+n[d(t,3)],a=[i>>16&255,i>>8&255,255&i];if(2===e){if(r&&0!==a[1])throw new p("Extra bits");return[a[0]]}if(3===e){if(r&&0!==a[2])throw new p("Extra bits");return[a[0],a[1]]}return a},w=function(t,n,r){for(var e=n.length,i=0;i<e;i++)t[r+i]=n[i];return r+e};t.exports=function(t,n,r,e){o(t),a(n);var i="base64"===u(n)?l:h,c=n?n.lastChunkHandling:void 0;if(void 0===c&&(c="loose"),"loose"!==c&&"strict"!==c&&"stop-before-partial"!==c)throw new g("Incorrect `lastChunkHandling` option");r&&f(r.buffer);var b=r||[],m=0,E=0,A="",k=0;if(e)for(;;){if((k=v(t,k))===t.length){if(A.length>0){if("stop-before-partial"===c)break;if("loose"!==c)throw new p("Missing padding");if(1===A.length)throw new p("Malformed padding: exactly one additional character");m=w(b,y(A,i,!1),m)}E=t.length;break}var x=d(t,k);if(++k,"="===x){if(A.length<2)throw new p("Padding is too early");if(k=v(t,k),2===A.length){if(k===t.length){if("stop-before-partial"===c)break;throw new p("Malformed padding: only one =")}"="===d(t,k)&&(++k,k=v(t,k))}if(k<t.length)throw new p("Unexpected character after padding");m=w(b,y(A,i,"strict"===c),m),E=t.length;break}if(!s(i,x))throw new p("Unexpected character");var S=e-m;if(1===S&&2===A.length||2===S&&3===A.length)break;if(4===(A+=x).length&&(m=w(b,y(A,i,!1),m),A="",E=k,m===e))break}return{bytes:b,read:E,written:m}}},35303:function(t,n,r){var e=r(1569),i=r(72878),a=e.Uint8Array,o=e.SyntaxError,s=e.parseInt,c=Math.min,u=/[^\da-f]/i,f=i(u.exec),l=i("".slice);t.exports=function(t,n){var r=t.length;if(r%2!=0)throw new o("String should be an even number of characters");for(var e=n?c(n.length,r/2):r/2,i=n||new a(e),h=0,p=0;p<e;){var g=l(t,h,h+=2);if(f(u,g))throw new o("String should only contain hex characters");i[p++]=s(g,16)}return{bytes:i,read:h}}},60933:function(t,n,r){var e=r(40810),i=r(57877),a=r(63983),o=r(12360),s=r(13053),c=r(47645);e({target:"Array",proto:!0},{flatMap:function(t){var n,r=o(this),e=s(r);return a(t),(n=c(r,0)).length=i(n,r,r,e,0,1,t,arguments.length>1?arguments[1]:void 0),n}})},32126:function(t,n,r){r(35709)("flatMap")},25677:function(t,n,r){var e=r(40810),i=r(97934),a=r(63983),o=r(71998),s=r(4576),c=r(30338),u=r(79995),f=r(14181),l=r(92288),h=u((function(){for(var t,n,r=this.iterator,e=this.mapper;;){if(n=this.inner)try{if(!(t=o(i(n.next,n.iterator))).done)return t.value;this.inner=null}catch(a){f(r,"throw",a)}if(t=o(i(this.next,r)),this.done=!!t.done)return;try{this.inner=c(e(t.value,this.counter++),!1)}catch(a){f(r,"throw",a)}}}));e({target:"Iterator",proto:!0,real:!0,forced:l},{flatMap:function(t){return o(this),a(t),new h(s(this),{mapper:t,inner:null})}})},92789:function(t,n,r){r(13492)("Uint8",(function(t){return function(n,r,e){return t(this,n,r,e)}}))},21917:function(t,n,r){var e=r(40810),i=r(1569),a=r(47057),o=r(87038);i.Uint8Array&&e({target:"Uint8Array",proto:!0},{setFromBase64:function(t){o(this);var n=a(t,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:n.read,written:n.written}}})},56193:function(t,n,r){var e=r(40810),i=r(1569),a=r(78344),o=r(87038),s=r(38511),c=r(35303);i.Uint8Array&&e({target:"Uint8Array",proto:!0},{setFromHex:function(t){o(this),a(t),s(this.buffer);var n=c(t,this).read;return{read:n,written:n/2}}})},25020:function(t,n,r){var e=r(40810),i=r(1569),a=r(72878),o=r(87265),s=r(87038),c=r(38511),u=r(15419),f=r(93474),l=u.i2c,h=u.i2cUrl,p=a("".charAt);i.Uint8Array&&e({target:"Uint8Array",proto:!0},{toBase64:function(){var t=s(this),n=arguments.length?o(arguments[0]):void 0,r="base64"===f(n)?l:h,e=!!n&&!!n.omitPadding;c(this.buffer);for(var i,a="",u=0,g=t.length,d=function(t){return p(r,i>>6*t&63)};u+2<g;u+=3)i=(t[u]<<16)+(t[u+1]<<8)+t[u+2],a+=d(3)+d(2)+d(1)+d(0);return u+2===g?(i=(t[u]<<16)+(t[u+1]<<8),a+=d(3)+d(2)+d(1)+(e?"":"=")):u+1===g&&(i=t[u]<<16,a+=d(3)+d(2)+(e?"":"==")),a}})},86913:function(t,n,r){var e=r(40810),i=r(1569),a=r(72878),o=r(87038),s=r(38511),c=a(1..toString);i.Uint8Array&&e({target:"Uint8Array",proto:!0},{toHex:function(){o(this),s(this.buffer);for(var t="",n=0,r=this.length;n<r;n++){var e=c(this[n],16);t+=1===e.length?"0"+e:e}return t}})},75351:function(t,n,r){r.d(n,{Ud:()=>h});r(63721),r(52247),r(71695),r(52805),r(43451),r(9359),r(70104),r(48136),r(19423),r(40251),r(69235),r(12385),r(19134),r(5740),r(11740),r(46692),r(47021);const e=Symbol("Comlink.proxy"),i=Symbol("Comlink.endpoint"),a=Symbol("Comlink.releaseProxy"),o=Symbol("Comlink.finalizer"),s=Symbol("Comlink.thrown"),c=t=>"object"==typeof t&&null!==t||"function"==typeof t,u=new Map([["proxy",{canHandle:t=>c(t)&&t[e],serialize(t){const{port1:n,port2:r}=new MessageChannel;return f(t,n),[r,[r]]},deserialize(t){return t.start(),h(t)}}],["throw",{canHandle:t=>c(t)&&s in t,serialize({value:t}){let n;return n=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[n,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function f(t,n=globalThis,r=["*"]){n.addEventListener("message",(function i(a){if(!a||!a.data)return;if(!function(t,n){for(const r of t){if(n===r||"*"===r)return!0;if(r instanceof RegExp&&r.test(n))return!0}return!1}(r,a.origin))return void console.warn(`Invalid origin '${a.origin}' for comlink proxy`);const{id:c,type:u,path:h}=Object.assign({path:[]},a.data),p=(a.data.argumentList||[]).map(E);let g;try{const n=h.slice(0,-1).reduce(((t,n)=>t[n]),t),r=h.reduce(((t,n)=>t[n]),t);switch(u){case"GET":g=r;break;case"SET":n[h.slice(-1)[0]]=E(a.data.value),g=!0;break;case"APPLY":g=r.apply(n,p);break;case"CONSTRUCT":g=function(t){return Object.assign(t,{[e]:!0})}(new r(...p));break;case"ENDPOINT":{const{port1:n,port2:r}=new MessageChannel;f(t,r),g=function(t,n){return b.set(t,n),t}(n,[n])}break;case"RELEASE":g=void 0;break;default:return}}catch(d){g={value:d,[s]:0}}Promise.resolve(g).catch((t=>({value:t,[s]:0}))).then((r=>{const[e,a]=m(r);n.postMessage(Object.assign(Object.assign({},e),{id:c}),a),"RELEASE"===u&&(n.removeEventListener("message",i),l(n),o in t&&"function"==typeof t[o]&&t[o]())})).catch((t=>{const[r,e]=m({value:new TypeError("Unserializable return value"),[s]:0});n.postMessage(Object.assign(Object.assign({},r),{id:c}),e)}))})),n.start&&n.start()}function l(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function h(t,n){const r=new Map;return t.addEventListener("message",(function(t){const{data:n}=t;if(!n||!n.id)return;const e=r.get(n.id);if(e)try{e(n)}finally{r.delete(n.id)}})),y(t,r,[],n)}function p(t){if(t)throw new Error("Proxy has been released and is not useable")}function g(t){return A(t,new Map,{type:"RELEASE"}).then((()=>{l(t)}))}const d=new WeakMap,v="FinalizationRegistry"in globalThis&&new FinalizationRegistry((t=>{const n=(d.get(t)||0)-1;d.set(t,n),0===n&&g(t)}));function y(t,n,r=[],e=function(){}){let o=!1;const s=new Proxy(e,{get(e,i){if(p(o),i===a)return()=>{!function(t){v&&v.unregister(t)}(s),g(t),n.clear(),o=!0};if("then"===i){if(0===r.length)return{then:()=>s};const e=A(t,n,{type:"GET",path:r.map((t=>t.toString()))}).then(E);return e.then.bind(e)}return y(t,n,[...r,i])},set(e,i,a){p(o);const[s,c]=m(a);return A(t,n,{type:"SET",path:[...r,i].map((t=>t.toString())),value:s},c).then(E)},apply(e,a,s){p(o);const c=r[r.length-1];if(c===i)return A(t,n,{type:"ENDPOINT"}).then(E);if("bind"===c)return y(t,n,r.slice(0,-1));const[u,f]=w(s);return A(t,n,{type:"APPLY",path:r.map((t=>t.toString())),argumentList:u},f).then(E)},construct(e,i){p(o);const[a,s]=w(i);return A(t,n,{type:"CONSTRUCT",path:r.map((t=>t.toString())),argumentList:a},s).then(E)}});return function(t,n){const r=(d.get(n)||0)+1;d.set(n,r),v&&v.register(t,n,t)}(s,t),s}function w(t){const n=t.map(m);return[n.map((t=>t[0])),(r=n.map((t=>t[1])),Array.prototype.concat.apply([],r))];var r}const b=new WeakMap;function m(t){for(const[n,r]of u)if(r.canHandle(t)){const[e,i]=r.serialize(t);return[{type:"HANDLER",name:n,value:e},i]}return[{type:"RAW",value:t},b.get(t)||[]]}function E(t){switch(t.type){case"HANDLER":return u.get(t.name).deserialize(t.value);case"RAW":return t.value}}function A(t,n,r,e){return new Promise((i=>{const a=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");n.set(a,i),t.start&&t.start(),t.postMessage(Object.assign({id:a},r),e)}))}}}]);
//# sourceMappingURL=92290.58e28ddb711605b6.js.map