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