"use strict";(self.webpackChunk_1js_files_in_taskbar=self.webpackChunk_1js_files_in_taskbar||[]).push([[3889],{73889:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});var s=n(24626),a=n(46222),i=n(57516),c=n(90373),o=n(78472);const r=["stateretention","until-container-sync-reconnect"];var u=n(49777);const v=window.setTimeout,d=new WeakMap;function l(t,e){const n=t.getAttribute(r[0])===r[1],l=(0,a.Ay)(t,(0,i.A)((0,c.A)((()=>{var t,n,s;return[null===(s=e.context.commanding)||void 0===s||null===(n=s.currentCommand)||void 0===n||null===(t=n.values)||void 0===t?void 0:t[0]]}),(t=>{e.dispatchEvent(new CustomEvent(u._1,{detail:t||""}))})),(0,c.A)((()=>[e.context.state.active]),(t=>{e.dispatchEvent(new Event(t?u.Yh:u.Zx))}))));return(0,a.Ay)(t,(0,o.A)(e,[[s.A,l]])),d.has(t)||e.context.state.active&&e.dispatchEvent(new Event(u.Yh)),()=>{if((0,a.zr)(t),!e.isConnected&&n){const e=v((()=>d.delete(t)));d.set(t,e)}}}}}]);