define(["exports","../lit-html","../directive-helpers","../directive"],(function(exports,litHtml,directiveHelpers,directive){"use strict";
/**
	 * @license
	 * Copyright 2017 Google LLC
	 * SPDX-License-Identifier: BSD-3-Clause
	 */const d=directive.directive(class extends directive.Directive{constructor(t){super(t),this.tt=new WeakMap}render(t){return[t]}update(s,[e]){if(directiveHelpers.isTemplateResult(this.it)&&(!directiveHelpers.isTemplateResult(e)||this.it.strings!==e.strings)){const e=directiveHelpers.getCommittedValue(s).pop();let o=this.tt.get(this.it.strings);if(void 0===o){const s=document.createDocumentFragment();o=litHtml.render(litHtml.nothing,s),o.setConnected(!1),this.tt.set(this.it.strings,o)}directiveHelpers.setCommittedValue(o,[e]),directiveHelpers.insertPart(o,void 0,e)}if(directiveHelpers.isTemplateResult(e)){if(!directiveHelpers.isTemplateResult(this.it)||this.it.strings!==e.strings){const t=this.tt.get(e.strings);if(void 0!==t){const i=directiveHelpers.getCommittedValue(t).pop();directiveHelpers.clearPart(s),directiveHelpers.insertPart(s,void 0,i),directiveHelpers.setCommittedValue(s,[i])}}this.it=e}else this.it=void 0;return this.render(e)}});exports.cache=d,Object.defineProperty(exports,"__esModule",{value:!0})}));
