@fluid-topics/ft-reader-topic-title 0.3.58 → 0.3.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,24 +2,24 @@
2
2
  .title {
3
3
  font-family: ${o.fontFamily};
4
4
  }
5
- `;var l=function(t,i,s,e){for(var o,n=arguments.length,l=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e,r=t.length-1;r>=0;r--)(o=t[r])&&(l=(n<3?o(l):n>3?o(i,s,l):o(i,s))||l);return n>3&&l&&Object.defineProperty(i,s,l),l};class r extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class h extends(function(t){class i extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new r)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return l([e.state()],i.prototype,"stateManager",void 0),i}(i.FtLitElementRedux)){}var c,d=function(t,i,s,e){for(var o,n=arguments.length,l=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e,r=t.length-1;r>=0;r--)(o=t[r])&&(l=(n<3?o(l):n>3?o(i,s,l):o(i,s))||l);return n>3&&l&&Object.defineProperty(i,s,l),l};class u extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class v extends(function(t){class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new u)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return d([e.state()],i.prototype,"tocNode",void 0),d([e.state()],i.prototype,"disableContextInteractions",void 0),i}(h)){}
5
+ `;var r=function(t,i,s,e){for(var o,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e,l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(i,s,r):o(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};class l extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class h extends(function(t){class i extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new l)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r([e.state()],i.prototype,"stateManager",void 0),i}(i.FtLitElementRedux)){}var c,d=function(t,i,s,e){for(var o,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e,l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(i,s,r):o(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};class u extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class v extends(function(t){class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new u)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return d([e.state()],i.prototype,"tocNode",void 0),d([e.state()],i.prototype,"disableContextInteractions",void 0),i}(h)){}
6
6
  /**
7
7
  * @license
8
8
  * Copyright 2017 Google LLC
9
9
  * SPDX-License-Identifier: BSD-3-Clause
10
- */const a=window,f=a.trustedTypes,$=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,g="?"+p,y=`<${g}>`,b=document,w=(t="")=>b.createComment(t),m=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,j=/>/g,C=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,M=/"/g,O=/^(?:script|style|textarea|title)$/i,S=(t=>(i,...s)=>({_$litType$:t,strings:i,values:s}))(1),E=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),N=new WeakMap,R=b.createTreeWalker(b,129,null,!1),I=(t,i)=>{const s=t.length-1,e=[];let o,n=2===i?"<svg>":"",l=_;for(let i=0;i<s;i++){const s=t[i];let r,h,c=-1,d=0;for(;d<s.length&&(l.lastIndex=d,h=l.exec(s),null!==h);)d=l.lastIndex,l===_?"!--"===h[1]?l=A:void 0!==h[1]?l=j:void 0!==h[2]?(O.test(h[2])&&(o=RegExp("</"+h[2],"g")),l=C):void 0!==h[3]&&(l=C):l===C?">"===h[0]?(l=null!=o?o:_,c=-1):void 0===h[1]?c=-2:(c=l.lastIndex-h[2].length,r=h[1],l=void 0===h[3]?C:'"'===h[3]?M:T):l===M||l===T?l=C:l===A||l===j?l=_:(l=C,o=void 0);const u=l===C&&t[i+1].startsWith("/>")?" ":"";n+=l===_?s+y:c>=0?(e.push(r),s.slice(0,c)+"$lit$"+s.slice(c)+p+u):s+p+(-2===c?(e.push(void 0),i):u)}const r=n+(t[s]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(r):r,e]};class U{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let o=0,n=0;const l=t.length-1,r=this.parts,[h,c]=I(t,i);if(this.el=U.createElement(h,s),R.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=R.nextNode())&&r.length<l;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(p)){const s=c[n++];if(t.push(i),void 0!==s){const t=e.getAttribute(s.toLowerCase()+"$lit$").split(p),i=/([.?@])?(.*)/.exec(s);r.push({type:1,index:o,name:i[2],strings:t,ctor:"."===i[1]?F:"?"===i[1]?L:"@"===i[1]?W:D})}else r.push({type:6,index:o})}for(const i of t)e.removeAttribute(i)}if(O.test(e.tagName)){const t=e.textContent.split(p),i=t.length-1;if(i>0){e.textContent=f?f.emptyScript:"";for(let s=0;s<i;s++)e.append(t[s],w()),R.nextNode(),r.push({type:2,index:++o});e.append(t[i],w())}}}else if(8===e.nodeType)if(e.data===g)r.push({type:2,index:o});else{let t=-1;for(;-1!==(t=e.data.indexOf(p,t+1));)r.push({type:7,index:o}),t+=p.length-1}o++}}static createElement(t,i){const s=b.createElement("template");return s.innerHTML=t,s}}function G(t,i,s=t,e){var o,n,l,r;if(i===E)return i;let h=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const c=m(i)?void 0:i._$litDirective$;return(null==h?void 0:h.constructor)!==c&&(null===(n=null==h?void 0:h._$AO)||void 0===n||n.call(h,!1),void 0===c?h=void 0:(h=new c(t),h._$AT(t,s,e)),void 0!==e?(null!==(l=(r=s)._$Co)&&void 0!==l?l:r._$Co=[])[e]=h:s._$Cl=h),void 0!==h&&(i=G(t,h._$AS(t,i.values),h,e)),i}class z{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:b).importNode(s,!0);R.currentNode=o;let n=R.nextNode(),l=0,r=0,h=e[0];for(;void 0!==h;){if(l===h.index){let i;2===h.type?i=new Z(n,n.nextSibling,this,t):1===h.type?i=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(i=new q(n,this,t)),this.u.push(i),h=e[++r]}l!==(null==h?void 0:h.index)&&(n=R.nextNode(),l++)}return o}p(t){let i=0;for(const s of this.u)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class Z{constructor(t,i,s,e){var o;this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cm=null===(o=null==e?void 0:e.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=G(this,t,i),m(t)?t===k||null==t||""===t?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==E&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>x(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==k&&m(this._$AH)?this._$AA.nextSibling.data=t:this.T(b.createTextNode(t)),this._$AH=t}$(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=U.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.p(s);else{const t=new z(o,this),i=t.v(this.options);t.p(s),this.T(i),this._$AH=t}}_$AC(t){let i=N.get(t.strings);return void 0===i&&N.set(t.strings,i=new U(t)),i}k(t){x(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new Z(this.O(w()),this.O(w()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class D{constructor(t,i,s,e,o){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=k}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=G(this,t,i,0),n=!m(t)||t!==this._$AH&&t!==E,n&&(this._$AH=t);else{const e=t;let l,r;for(t=o[0],l=0;l<o.length-1;l++)r=G(this,e[s+l],i,l),r===E&&(r=this._$AH[l]),n||(n=!m(r)||r!==this._$AH[l]),r===k?t=k:t!==k&&(t+=(null!=r?r:"")+o[l+1]),this._$AH[l]=r}n&&!e&&this.j(t)}j(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class F extends D{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===k?void 0:t}}const H=f?f.emptyScript:"";class L extends D{constructor(){super(...arguments),this.type=4}j(t){t&&t!==k?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}}class W extends D{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=G(this,t,i,0))&&void 0!==s?s:k)===E)return;const e=this._$AH,o=t===k&&e!==k||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==k&&(e===k||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class q{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const B=a.litHtmlPolyfillSupport;null==B||B(U,Z),(null!==(c=a.litHtmlVersions)&&void 0!==c?c:a.litHtmlVersions=[]).push("2.4.0");
10
+ */const a=window,f=a.trustedTypes,$=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,g="?"+p,y=`<${g}>`,b=document,w=(t="")=>b.createComment(t),m=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,j=/>/g,C=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,M=/"/g,O=/^(?:script|style|textarea|title)$/i,S=(t=>(i,...s)=>({_$litType$:t,strings:i,values:s}))(1),E=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),N=new WeakMap,R=b.createTreeWalker(b,129,null,!1),I=(t,i)=>{const s=t.length-1,e=[];let o,n=2===i?"<svg>":"",r=_;for(let i=0;i<s;i++){const s=t[i];let l,h,c=-1,d=0;for(;d<s.length&&(r.lastIndex=d,h=r.exec(s),null!==h);)d=r.lastIndex,r===_?"!--"===h[1]?r=A:void 0!==h[1]?r=j:void 0!==h[2]?(O.test(h[2])&&(o=RegExp("</"+h[2],"g")),r=C):void 0!==h[3]&&(r=C):r===C?">"===h[0]?(r=null!=o?o:_,c=-1):void 0===h[1]?c=-2:(c=r.lastIndex-h[2].length,l=h[1],r=void 0===h[3]?C:'"'===h[3]?M:T):r===M||r===T?r=C:r===A||r===j?r=_:(r=C,o=void 0);const u=r===C&&t[i+1].startsWith("/>")?" ":"";n+=r===_?s+y:c>=0?(e.push(l),s.slice(0,c)+"$lit$"+s.slice(c)+p+u):s+p+(-2===c?(e.push(void 0),i):u)}const l=n+(t[s]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(l):l,e]};class U{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let o=0,n=0;const r=t.length-1,l=this.parts,[h,c]=I(t,i);if(this.el=U.createElement(h,s),R.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=R.nextNode())&&l.length<r;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(p)){const s=c[n++];if(t.push(i),void 0!==s){const t=e.getAttribute(s.toLowerCase()+"$lit$").split(p),i=/([.?@])?(.*)/.exec(s);l.push({type:1,index:o,name:i[2],strings:t,ctor:"."===i[1]?F:"?"===i[1]?L:"@"===i[1]?W:D})}else l.push({type:6,index:o})}for(const i of t)e.removeAttribute(i)}if(O.test(e.tagName)){const t=e.textContent.split(p),i=t.length-1;if(i>0){e.textContent=f?f.emptyScript:"";for(let s=0;s<i;s++)e.append(t[s],w()),R.nextNode(),l.push({type:2,index:++o});e.append(t[i],w())}}}else if(8===e.nodeType)if(e.data===g)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=e.data.indexOf(p,t+1));)l.push({type:7,index:o}),t+=p.length-1}o++}}static createElement(t,i){const s=b.createElement("template");return s.innerHTML=t,s}}function G(t,i,s=t,e){var o,n,r,l;if(i===E)return i;let h=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const c=m(i)?void 0:i._$litDirective$;return(null==h?void 0:h.constructor)!==c&&(null===(n=null==h?void 0:h._$AO)||void 0===n||n.call(h,!1),void 0===c?h=void 0:(h=new c(t),h._$AT(t,s,e)),void 0!==e?(null!==(r=(l=s)._$Co)&&void 0!==r?r:l._$Co=[])[e]=h:s._$Cl=h),void 0!==h&&(i=G(t,h._$AS(t,i.values),h,e)),i}class z{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:b).importNode(s,!0);R.currentNode=o;let n=R.nextNode(),r=0,l=0,h=e[0];for(;void 0!==h;){if(r===h.index){let i;2===h.type?i=new Z(n,n.nextSibling,this,t):1===h.type?i=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(i=new q(n,this,t)),this.u.push(i),h=e[++l]}r!==(null==h?void 0:h.index)&&(n=R.nextNode(),r++)}return o}p(t){let i=0;for(const s of this.u)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class Z{constructor(t,i,s,e){var o;this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cm=null===(o=null==e?void 0:e.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=G(this,t,i),m(t)?t===k||null==t||""===t?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==E&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>x(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==k&&m(this._$AH)?this._$AA.nextSibling.data=t:this.T(b.createTextNode(t)),this._$AH=t}$(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=U.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.p(s);else{const t=new z(o,this),i=t.v(this.options);t.p(s),this.T(i),this._$AH=t}}_$AC(t){let i=N.get(t.strings);return void 0===i&&N.set(t.strings,i=new U(t)),i}k(t){x(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new Z(this.O(w()),this.O(w()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class D{constructor(t,i,s,e,o){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=k}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=G(this,t,i,0),n=!m(t)||t!==this._$AH&&t!==E,n&&(this._$AH=t);else{const e=t;let r,l;for(t=o[0],r=0;r<o.length-1;r++)l=G(this,e[s+r],i,r),l===E&&(l=this._$AH[r]),n||(n=!m(l)||l!==this._$AH[r]),l===k?t=k:t!==k&&(t+=(null!=l?l:"")+o[r+1]),this._$AH[r]=l}n&&!e&&this.j(t)}j(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class F extends D{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===k?void 0:t}}const H=f?f.emptyScript:"";class L extends D{constructor(){super(...arguments),this.type=4}j(t){t&&t!==k?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}}class W extends D{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=G(this,t,i,0))&&void 0!==s?s:k)===E)return;const e=this._$AH,o=t===k&&e!==k||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==k&&(e===k||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class q{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const B=a.litHtmlPolyfillSupport;null==B||B(U,Z),(null!==(c=a.litHtmlVersions)&&void 0!==c?c:a.litHtmlVersions=[]).push("2.4.0");
11
11
  /**
12
12
  * @license
13
13
  * Copyright 2020 Google LLC
14
14
  * SPDX-License-Identifier: BSD-3-Clause
15
15
  */
16
- const J=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t._$litStatic$},P=t=>({_$litStatic$:t,r:J}),Q=new Map,V=(t=>(i,...s)=>{const e=s.length;let o,n;const l=[],r=[];let h,c=0,d=!1;for(;c<e;){for(h=i[c];c<e&&void 0!==(n=s[c],o=K(n));)h+=o+i[++c],d=!0;r.push(n),l.push(h),c++}if(c===e&&l.push(i[e]),d){const t=l.join("$$lit$$");void 0===(i=Q.get(t))&&(l.raw=l,Q.set(t,i=l)),s=r}return t(i,...s)})(S);var X=function(t,i,s,e){for(var o,n=arguments.length,l=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e,r=t.length-1;r>=0;r--)(o=t[r])&&(l=(n<3?o(l):n>3?o(i,s,l):o(i,s))||l);return n>3&&l&&Object.defineProperty(i,s,l),l};class Y extends v{render(){var t,i,e,o,n,l;if(!this.map||!this.tocNode)return s.nothing;const r=`h${Math.min((null===(t=this.tocNode)||void 0===t?void 0:t.depth)||1,6)}`,h=null!==(e=null===(i=this.map)||void 0===i?void 0:i.contentStyles.customCssClasses.join(" "))&&void 0!==e?e:"",c=null===(o=this.map)||void 0===o?void 0:o.lang;return V`
16
+ const J=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t._$litStatic$},P=t=>({_$litStatic$:t,r:J}),Q=new Map,V=(t=>(i,...s)=>{const e=s.length;let o,n;const r=[],l=[];let h,c=0,d=!1;for(;c<e;){for(h=i[c];c<e&&void 0!==(n=s[c],o=K(n));)h+=o+i[++c],d=!0;l.push(n),r.push(h),c++}if(c===e&&r.push(i[e]),d){const t=r.join("$$lit$$");void 0===(i=Q.get(t))&&(r.raw=r,Q.set(t,i=r)),s=l}return t(i,...s)})(S);var X=function(t,i,s,e){for(var o,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e,l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(i,s,r):o(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};class Y extends v{render(){var t,i,e,o,n,r;if(!this.map||!this.tocNode)return s.nothing;const l=`h${Math.min((null===(t=this.tocNode)||void 0===t?void 0:t.depth)||1,6)}`,h=null!==(e=null===(i=this.map)||void 0===i?void 0:i.contentStyles.customCssClasses.join(" "))&&void 0!==e?e:"",c=null===(o=this.map)||void 0===o?void 0:o.lang;return V`
17
17
  <style>
18
18
  @import "${null===(n=this.map)||void 0===n?void 0:n.contentStyles.titleStylesheetUrl}";
19
19
  </style>
20
20
  <section class="title" lang="${c}">
21
- <div class="depth-${null===(l=this.tocNode)||void 0===l?void 0:l.depth} content-locale-${c} ${h}">
22
- <${P(r)}>${this.tocNode.title}</${P(r)}>
21
+ <div class="depth-${null===(r=this.tocNode)||void 0===r?void 0:r.depth} content-locale-${c} ${h}">
22
+ <${P(l)}>${this.tocNode.title}</${P(l)}>
23
23
  </div>
24
24
  </section>
25
25
  `}}Y.styles=n,X([i.redux()],Y.prototype,"map",void 0),i.customElement("ft-reader-topic-title")(Y),t.FtReaderTopicTitle=Y,t.FtReaderTopicTitleCssVariables=o,t.styles=n,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators);
@@ -98,7 +98,7 @@ var rt,at;class lt extends C{constructor(){super(...arguments),this.renderOption
98
98
  .title {
99
99
  font-family: ${xt.fontFamily};
100
100
  }
101
- `;var gt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ot extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class St extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Ot)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return gt([o()],e.prototype,"stateManager",void 0),e}(vt)){}var Ct=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Nt extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class Rt extends(function(t){class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new Nt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return Ct([o()],e.prototype,"tocNode",void 0),Ct([o()],e.prototype,"disableContextInteractions",void 0),e}(St)){}
101
+ `;var gt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ot extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class St extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Ot)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return gt([o()],e.prototype,"stateManager",void 0),e}(vt)){}var Ct=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Nt extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class Rt extends(function(t){class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new Nt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return Ct([o()],e.prototype,"tocNode",void 0),Ct([o()],e.prototype,"disableContextInteractions",void 0),e}(St)){}
102
102
  /**
103
103
  * @license
104
104
  * Copyright 2020 Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-title",
3
- "version": "0.3.58",
3
+ "version": "0.3.60",
4
4
  "description": "Title of a topic in integrated reader.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-reader-topic-context": "0.3.58",
23
- "@fluid-topics/ft-wc-utils": "0.3.58",
24
- "@fluid-topics/public-api": "1.0.31",
22
+ "@fluid-topics/ft-reader-topic-context": "0.3.60",
23
+ "@fluid-topics/ft-wc-utils": "0.3.60",
24
+ "@fluid-topics/public-api": "1.0.32",
25
25
  "lit": "2.2.8"
26
26
  },
27
- "gitHead": "c053ee1216238ba6b2c62e5add329343f735c77e"
27
+ "gitHead": "43e7dcf7c9d88ea2c23f4425629f013d704c5111"
28
28
  }