UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

2 lines 20.6 kB
/*! For license information please see 84038.3dcb275c9b0ce87c.js.LICENSE.txt */ "use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[84038],{35370:function(t,e,o){var i=o(26198);t.exports=function(t,e,o){for(var n=0,r=arguments.length>2?o:i(e),s=new t(r);r>n;)s[n]=e[n++];return s}},77957:function(t,e,o){var i=o(76080),n=o(79504),r=o(47055),s=o(48981),l=o(56969),a=o(26198),u=o(2360),c=o(35370),h=Array,d=n([].push);t.exports=function(t,e,o,n){for(var p,f,b,v=s(t),w=r(v),m=i(e,o),g=u(null),y=a(w),k=0;y>k;k++)b=w[k],(f=l(m(b,k,v)))in g?d(g[f],b):g[f]=[b];if(n&&(p=n(v))!==h)for(f in g)g[f]=c(p,g[f]);return g}},46058:function(t,e,o){var i=o(46518),n=o(77957),r=o(6469);i({target:"Array",proto:!0},{group:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),r("group")},30006:function(t,e,o){o.a(t,async function(t,e){try{o(74423),o(27495),o(62953);var i=o(5124),n=o(67576),r=o(6412),s=o(63672),l=o(34514),a=o(37541),u=o(40991),c=o(92070),h=o(28225),d=o(41268),p=o(9395),f=o(62676),b=o(15477),v=o(31896),w=o(17060),m=(o(38625),o(96272)),g=t([w]);w=(g.then?(await g)():g)[0];let x,C,A,M,_,Z,z,q=t=>t;var y=Object.defineProperty,k=Object.getOwnPropertyDescriptor,$=(t,e,o,i)=>{for(var n,r=i>1?void 0:i?k(e,o):e,s=t.length-1;s>=0;s--)(n=t[s])&&(r=(i?n(e,o,r):n(r))||r);return i&&r&&y(e,o,r),r};let S=class extends f.q{static get validators(){return[...super.validators,(0,d.i)()]}get value(){var t;return this.valueHasChanged?this._value:null!==(t=this._value)&&void 0!==t?t:this.defaultValue}set value(t){this._value!==t&&(this.valueHasChanged=!0,this._value=t)}handleSizeChange(){(0,u.b)(this.localName,this.size)}handleChange(t){this.value=this.input.value,this.relayNativeEvent(t,{bubbles:!0,composed:!0})}clear(){""!==this.value&&(this.value="",this.updateComplete.then(()=>{this.dispatchEvent(new a.I),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})),this.input.focus()}handleClearClick(t){t.preventDefault(),this.clear()}handleInput(){this.value=this.input.value}handleKeyDown(t){(0,h.U)(t,this)}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}updated(t){if(super.updated(t),t.has("value")||t.has("defaultValue")||t.has("type")){const t=["number","date","time","datetime-local"];this.input&&t.includes(this.type)&&this.value&&this.input.value!==this.value&&(this._value=this.input.value),this.customStates.set("blank",!this.value),this.updateValidity()}}handleStepChange(){this.input.step=String(this.step),this.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,o="none"){this.input.setSelectionRange(t,e,o)}setRangeText(t,e,o,i="preserve"){const n=null!=e?e:this.input.selectionStart,r=null!=o?o:this.input.selectionEnd;this.input.setRangeText(t,n,r,i),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}formResetCallback(){this.value=null,this.input&&(this.input.value=this.value),super.formResetCallback()}render(){var t;const e=this.hasUpdated?this.hasSlotController.test("label"):this.withLabel,o=this.hasUpdated?this.hasSlotController.test("hint"):this.withHint,n=!!this.label||!!e,a=!!this.hint||!!o,u=this.withClear&&!this.disabled&&!this.readonly,c=(i.S$||this.hasUpdated)&&u&&("number"==typeof this.value||this.value&&this.value.length>0);return(0,i.qy)(x||(x=q` <label part="form-control-label label" class="${0}" for="input" aria-hidden="${0}"> <slot name="label">${0}</slot> </label> <div part="base" class="text-field"> <slot name="start" part="start" class="start"></slot> <input part="input" id="input" class="control" type="${0}" title="${0}" name="${0}" ?disabled="${0}" ?readonly="${0}" ?required="${0}" placeholder="${0}" minlength="${0}" maxlength="${0}" min="${0}" max="${0}" step="${0}" .value="${0}" autocapitalize="${0}" autocomplete="${0}" autocorrect="${0}" ?autofocus="${0}" spellcheck="${0}" pattern="${0}" enterkeyhint="${0}" inputmode="${0}" aria-describedby="hint" @change="${0}" @input="${0}" @keydown="${0}"> ${0} ${0} <slot name="end" part="end" class="end"></slot> </div> <slot id="hint" part="hint" name="hint" class="${0}" aria-hidden="${0}">${0}</slot> `),(0,r.H)({label:!0,"has-label":n}),n?"false":"true",this.label,"password"===this.type&&this.passwordVisible?"text":this.type,this.title,(0,s.J)(this.name),this.disabled,this.readonly,this.required,(0,s.J)(this.placeholder),(0,s.J)(this.minlength),(0,s.J)(this.maxlength),(0,s.J)(this.min),(0,s.J)(this.max),(0,s.J)(this.step),(0,l.V)(null!==(t=this.value)&&void 0!==t?t:""),(0,s.J)(this.autocapitalize),(0,s.J)(this.autocomplete),this.autocorrect?"on":"off",this.autofocus,this.spellcheck,(0,s.J)(this.pattern),(0,s.J)(this.enterkeyhint),(0,s.J)(this.inputmode),this.handleChange,this.handleInput,this.handleKeyDown,c?(0,i.qy)(C||(C=q` <slot name="clear-button"> <button part="clear-button" class="clear" type="button" aria-label="${0}" @click="${0}" tabindex="-1"> <slot name="clear-icon"> <wa-icon name="circle-xmark" library="system" variant="regular"></wa-icon> </slot> </button> </slot> `),this.localize.term("clearEntry"),this.handleClearClick):"",this.passwordToggle&&!this.disabled?(0,i.qy)(A||(A=q` <slot name="password-toggle-button"> <button part="password-toggle-button" class="password-toggle" type="button" aria-label="${0}" @click="${0}" tabindex="-1"> ${0} </button> </slot> `),this.localize.term(this.passwordVisible?"hidePassword":"showPassword"),this.handlePasswordToggle,this.passwordVisible?(0,i.qy)(_||(_=q` <slot name="hide-password-icon"> <wa-icon name="eye-slash" library="system" variant="regular"></wa-icon> </slot> `)):(0,i.qy)(M||(M=q` <slot name="show-password-icon"> <wa-icon name="eye" library="system" variant="regular"></wa-icon> </slot> `))):"",(0,r.H)({"has-slotted":a}),a?"false":"true",this.hint)}constructor(){super(...arguments),this.assumeInteractionOn=["blur","input"],this.hasSlotController=new c.X(this,"hint","label"),this.localize=new w.c(this),this.title="",this.type="text",this._value=null,this.defaultValue=this.getAttribute("value")||null,this.size="m",this.appearance="outlined",this.pill=!1,this.label="",this.hint="",this.withClear=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.withoutSpinButtons=!1,this.required=!1,this.spellcheck=!0,this.withLabel=!1,this.withHint=!1}};S.css=[v.A,b.A,m.A],S.shadowRootOptions=Object.assign(Object.assign({},f.q.shadowRootOptions),{},{delegatesFocus:!0}),$([(0,n.P)("input")],S.prototype,"input",2),$([(0,n.MZ)()],S.prototype,"title",2),$([(0,n.MZ)({reflect:!0})],S.prototype,"type",2),$([(0,n.wk)()],S.prototype,"value",1),$([(0,n.MZ)({attribute:"value",reflect:!0})],S.prototype,"defaultValue",2),$([(0,n.MZ)({reflect:!0})],S.prototype,"size",2),$([(0,p.w)("size")],S.prototype,"handleSizeChange",1),$([(0,n.MZ)({reflect:!0})],S.prototype,"appearance",2),$([(0,n.MZ)({type:Boolean,reflect:!0})],S.prototype,"pill",2),$([(0,n.MZ)()],S.prototype,"label",2),$([(0,n.MZ)({attribute:"hint"})],S.prototype,"hint",2),$([(0,n.MZ)({attribute:"with-clear",type:Boolean})],S.prototype,"withClear",2),$([(0,n.MZ)()],S.prototype,"placeholder",2),$([(0,n.MZ)({type:Boolean,reflect:!0})],S.prototype,"readonly",2),$([(0,n.MZ)({attribute:"password-toggle",type:Boolean})],S.prototype,"passwordToggle",2),$([(0,n.MZ)({attribute:"password-visible",type:Boolean})],S.prototype,"passwordVisible",2),$([(0,n.MZ)({attribute:"without-spin-buttons",type:Boolean,reflect:!0})],S.prototype,"withoutSpinButtons",2),$([(0,n.MZ)({type:Boolean,reflect:!0})],S.prototype,"required",2),$([(0,n.MZ)()],S.prototype,"pattern",2),$([(0,n.MZ)({type:Number})],S.prototype,"minlength",2),$([(0,n.MZ)({type:Number})],S.prototype,"maxlength",2),$([(0,n.MZ)()],S.prototype,"min",2),$([(0,n.MZ)()],S.prototype,"max",2),$([(0,n.MZ)()],S.prototype,"step",2),$([(0,n.MZ)()],S.prototype,"autocapitalize",2),$([(0,n.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"off"===t),toAttribute:t=>t?"on":"off"}})],S.prototype,"autocorrect",2),$([(0,n.MZ)()],S.prototype,"autocomplete",2),$([(0,n.MZ)({type:Boolean})],S.prototype,"autofocus",2),$([(0,n.MZ)()],S.prototype,"enterkeyhint",2),$([(0,n.MZ)({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],S.prototype,"spellcheck",2),$([(0,n.MZ)()],S.prototype,"inputmode",2),$([(0,n.MZ)({attribute:"with-label",type:Boolean})],S.prototype,"withLabel",2),$([(0,n.MZ)({attribute:"with-hint",type:Boolean})],S.prototype,"withHint",2),$([(0,p.w)("step",{waitUntilFirstUpdate:!0})],S.prototype,"handleStepChange",1),S=$([(0,n.EM)("wa-input")],S),null===(Z=(z=S).disableWarning)||void 0===Z||Z.call(z,"change-in-update"),e()}catch(x){e(x)}})},96272:function(t,e,o){o.d(e,{A:function(){return n}});let i;var n=(0,o(5124).AH)(i||(i=(t=>t)`:host{border-width:0}:host(:focus){outline:0}.text-field{display:flex;align-items:stretch;justify-content:start;position:relative;transition:inherit;height:var(--wa-form-control-height);border-color:var(--wa-form-control-border-color);border-radius:var(--wa-form-control-border-radius);border-style:var(--wa-form-control-border-style);border-width:var(--wa-form-control-border-width);cursor:text;color:var(--wa-form-control-value-color);font-size:var(--wa-form-control-value-font-size);font-family:inherit;font-weight:var(--wa-form-control-value-font-weight);line-height:var(--wa-form-control-value-line-height);vertical-align:middle;width:100%;transition:background-color var(--wa-transition-normal),border-color var(--wa-transition-normal),outline-color var(--wa-transition-fast);transition-timing-function:var(--wa-transition-easing);background-color:var(--wa-form-control-background-color);box-shadow:var(--box-shadow);padding:0 var(--wa-form-control-padding-inline);outline:var(--wa-focus-ring-style) var(--wa-focus-ring-width) transparent;outline-offset:var(--wa-focus-ring-offset)}.text-field:focus-within{outline-color:var(--wa-color-focus)}.text-field:has(:disabled){cursor:not-allowed;opacity:.5}:host([appearance=outlined]) .text-field{background-color:var(--wa-form-control-background-color);border-color:var(--wa-form-control-border-color)}:host([appearance=filled]) .text-field{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-color-neutral-fill-quiet)}:host([appearance=filled-outlined]) .text-field{background-color:var(--wa-color-neutral-fill-quiet);border-color:var(--wa-form-control-border-color)}:host([pill]) .text-field{border-radius:var(--wa-border-radius-pill)!important}.text-field:has(:-webkit-autofill),.text-field:has(:autofill){background-color:var(--wa-color-brand-fill-quiet)!important}.text-field input,.text-field textarea{height:100%;padding:0;border:none;outline:0;box-shadow:none;margin:0;cursor:inherit;-webkit-appearance:none;font:inherit}:is(.text-field input,.text-field textarea):-webkit-autofill,:is(.text-field input,.text-field textarea):-webkit-autofill:active,:is(.text-field input,.text-field textarea):-webkit-autofill:focus,:is(.text-field input,.text-field textarea):-webkit-autofill:hover{-webkit-background-clip:text;background-color:transparent;-webkit-text-fill-color:inherit}input{flex:1 1 auto;min-width:0;height:100%;transition:inherit;background-color:rgb(118 118 118 / 0);height:calc(var(--wa-form-control-height) - var(--border-width) * 2);padding-block:0;color:inherit}input:autofill,input:autofill:active,input:autofill:focus,input:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}input::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-webkit-search-results-button,input::-webkit-search-results-decoration{-webkit-appearance:none}input:focus{outline:0}textarea:autofill,textarea:autofill:active,textarea:autofill:focus,textarea:autofill:hover{box-shadow:none;caret-color:var(--wa-form-control-value-color)}textarea::placeholder{color:var(--wa-form-control-placeholder-color);user-select:none;-webkit-user-select:none}.end,.start{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default}:is(.start,.end)::slotted(wa-icon){color:var(--wa-color-neutral-on-quiet)}.start::slotted(*){margin-inline-end:var(--wa-form-control-padding-inline)}.end::slotted(*){margin-inline-start:var(--wa-form-control-padding-inline)}.clear,.password-toggle{display:inline-flex;align-items:center;justify-content:center;font-size:inherit;color:var(--wa-color-neutral-on-quiet);border:none;background:0 0;padding:0;transition:var(--wa-transition-normal) color;cursor:pointer;margin-inline-start:var(--wa-form-control-padding-inline)}@media (hover:hover){:is(.clear,.password-toggle):hover{color:color-mix(in oklab,currentColor,var(--wa-color-mix-hover))}}:is(.clear,.password-toggle):active{color:color-mix(in oklab,currentColor,var(--wa-color-mix-active))}:is(.clear,.password-toggle):focus{outline:0}::-ms-reveal{display:none}:host([without-spin-buttons]) input[type=number]{-moz-appearance:textfield}:host([without-spin-buttons]) input[type=number]::-webkit-inner-spin-button,:host([without-spin-buttons]) input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;display:none}`))},37541:function(t,e,o){o.d(e,{I:function(){return i}});class i extends Event{constructor(){super("wa-clear",{bubbles:!0,cancelable:!1,composed:!0})}}},95010:function(t,e,o){o.d(e,{q:function(){return n},N:function(){return r}});o(54743),o(11745),o(16573),o(78100),o(77936),o(21489),o(48140),o(75044),o(21903),o(91134),o(28845),o(373),o(37467),o(44732),o(79577),o(16632),o(34226),o(9486),o(20456);let i=(t=21)=>{let e="",o=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&o[t]];return e};function n(t,e,o){const i=t=>Object.is(t,-0)?0:t;return i(t<e?e:t>o?o:t)}function r(t=""){return`${t}${i()}`}},4444:function(t,e,o){o.d(e,{JG:function(){return n},Rt:function(){return s},I7:function(){return r}});o(27495),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(25440),o(62953);const i=new Set;function n(t){if(i.add(t),!document.documentElement.classList.contains("wa-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}()+function(){const t=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(t)||!t?0:t}();let e=getComputedStyle(document.documentElement).scrollbarGutter;e&&"auto"!==e||(e="stable"),t<2&&(e=""),document.documentElement.style.setProperty("--wa-scroll-lock-gutter",e),document.documentElement.classList.add("wa-scroll-lock"),document.documentElement.style.setProperty("--wa-scroll-lock-size",`${t}px`)}}function r(t){i.delete(t),0===i.size&&(document.documentElement.classList.remove("wa-scroll-lock"),document.documentElement.style.removeProperty("--wa-scroll-lock-size"))}function s(t,e,o="vertical",i="smooth"){const n=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),r=n.top+e.scrollTop,s=n.left+e.scrollLeft,l=e.scrollLeft,a=e.scrollLeft+e.offsetWidth,u=e.scrollTop,c=e.scrollTop+e.offsetHeight;"horizontal"!==o&&"both"!==o||(s<l?e.scrollTo({left:s,behavior:i}):s+t.clientWidth>a&&e.scrollTo({left:s-e.offsetWidth+t.clientWidth,behavior:i})),"vertical"!==o&&"both"!==o||(r<u?e.scrollTo({top:r,behavior:i}):r+t.clientHeight>c&&e.scrollTo({top:r-e.offsetHeight+t.clientHeight,behavior:i}))}},28225:function(t,e,o){o.d(e,{U:function(){return i}});o(74423),o(62953);function i(t,e){const o=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"!==t.key||o||setTimeout(()=>{t.defaultPrevented||t.isComposing||function(t){let e=null;"form"in t&&(e=t.form);!e&&"getForm"in t&&(e=t.getForm());if(!e)return;const o=[...e.elements];if(1===o.length)return void e.requestSubmit(null);const i=o.find(t=>"submit"===t.type&&!t.matches(":disabled"));if(!i)return;["input","button"].includes(i.localName)?e.requestSubmit(i):i.click()}(e)})}},88696:function(t,e,o){o.a(t,async function(t,i){try{o.d(e,{P:function(){return a}});var n=o(69235),r=(o(3362),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(62953),o(37540)),s=o(42017),l=t([n]);n=(l.then?(await l)():l)[0];class a{handleChanges(t){var e;this.value=null===(e=this.callback)||void 0===e?void 0:e.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}target(t){return u(this,t)}constructor(t,{target:e,config:o,callback:i,skipInitial:n}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(null!=e?e:t),this.l=o,this.o=null!=n?n:this.o,this.callback=i,window.ResizeObserver?(this.u=new ResizeObserver(t=>{this.handleChanges(t),this.h.requestUpdate()}),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}}const u=(0,s.u$)(class extends r.Kq{render(t,e){}update(t,[e,o]){this.controller=e,this.part=t,this.observe=o,!1===o?(e.unobserve(t.element),this.observing=!1):!1===this.observing&&(e.observe(t.element),this.observing=!0)}disconnected(){var t;null!==(t=this.controller)&&void 0!==t&&t.unobserve(this.part.element),this.observing=!1}reconnected(){var t;!1!==this.observe&&!1===this.observing&&(null!==(t=this.controller)&&void 0!==t&&t.observe(this.part.element),this.observing=!0)}constructor(){super(...arguments),this.observing=!1}});i()}catch(a){i(a)}})},37540:function(t,e,o){o.d(e,{Kq:function(){return h}});o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(62953);var i=o(63937),n=o(42017);const r=(t,e)=>{const o=t._$AN;if(void 0===o)return!1;for(const n of o){var i;null!==(i=n._$AO)&&void 0!==i&&i.call(n,e,!1),r(n,e)}return!0},s=t=>{let e,o;do{var i;if(void 0===(e=t._$AM))break;o=e._$AN,o.delete(t),t=e}while(0===(null===(i=o)||void 0===i?void 0:i.size))},l=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(void 0===o)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),c(e)}};function a(t){void 0!==this._$AN?(s(this),this._$AM=t,l(this)):this._$AM=t}function u(t,e=!1,o=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let l=o;l<i.length;l++)r(i[l],!1),s(i[l]);else null!=i&&(r(i,!1),s(i));else r(this,t)}const c=t=>{var e,o;t.type==n.OA.CHILD&&(null!==(e=t._$AP)&&void 0!==e||(t._$AP=u),null!==(o=t._$AQ)&&void 0!==o||(t._$AQ=a))};class h extends n.WL{_$AT(t,e,o){super._$AT(t,e,o),l(this),this.isConnected=t._$AU}_$AO(t,e=!0){var o,i;t!==this.isConnected&&(this.isConnected=t,t?null===(o=this.reconnected)||void 0===o||o.call(this):null===(i=this.disconnected)||void 0===i||i.call(this)),e&&(r(this,t),s(this))}setValue(t){if((0,i.Rt)(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(){}constructor(){super(...arguments),this._$AN=void 0}}},89784:function(t,e,o){o.d(e,{W:function(){return l}});o(16280),o(74423),o(72712),o(18111),o(18237),o(27495),o(17642),o(58004),o(33853),o(45876),o(32475),o(15024),o(31698),o(25440),o(62953);var i=o(5055),n=o(42017);const r="important",s=" !"+r,l=(0,n.u$)(class extends n.WL{render(t){return Object.keys(t).reduce((e,o)=>{const i=t[o];return null==i?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)null==e[i]&&(this.ft.delete(i),i.includes("-")?o.removeProperty(i):o[i]=null);for(const i in e){const t=e[i];if(null!=t){this.ft.add(i);const e="string"==typeof t&&t.endsWith(s);i.includes("-")||e?o.setProperty(i,e?t.slice(0,-11):t,e?r:""):o[i]=t}}return i.c0}constructor(t){var e;if(super(t),t.type!==n.OA.ATTRIBUTE||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}})}}]);