@fluid-topics/ft-reader-topic-content 0.3.70 → 1.0.0-alpha.0
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.
- package/build/ft-reader-topic-content.css.d.ts +0 -1
- package/build/ft-reader-topic-content.css.js +0 -1
- package/build/ft-reader-topic-content.d.ts +0 -1
- package/build/ft-reader-topic-content.js +2 -2
- package/build/ft-reader-topic-content.light.js +20 -20
- package/build/ft-reader-topic-content.min.js +41 -51
- package/build/ft-reader-topic-content.properties.d.ts +0 -1
- package/build/ft-reader-topic-content.properties.js +0 -1
- package/build/i18n/TopicContentMessages.d.ts +0 -1
- package/build/i18n/TopicContentMessages.js +0 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/package.json +9 -9
|
@@ -12,7 +12,7 @@ import { redux } from "@fluid-topics/ft-wc-utils";
|
|
|
12
12
|
import { state } from "lit/decorators.js";
|
|
13
13
|
import "@fluid-topics/ft-icon";
|
|
14
14
|
import { context } from "./i18n/TopicContentMessages";
|
|
15
|
-
|
|
15
|
+
class FtReaderTopicContent extends FtReaderTopicComponent {
|
|
16
16
|
render() {
|
|
17
17
|
var _a, _b;
|
|
18
18
|
if (!this.map || (!this.error && !this.content)) {
|
|
@@ -92,4 +92,4 @@ __decorate([
|
|
|
92
92
|
__decorate([
|
|
93
93
|
state()
|
|
94
94
|
], FtReaderTopicContent.prototype, "error", void 0);
|
|
95
|
-
|
|
95
|
+
export { FtReaderTopicContent };
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
.topic-loading {
|
|
16
16
|
height: 100vh;
|
|
17
17
|
}
|
|
18
|
-
`;var r=function(t,e,i,s){for(var o,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class l extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}
|
|
18
|
+
`;var r=function(t,e,i,s){for(var o,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class l extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const c=Symbol("registerInterval");class x extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=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[c]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[c]):this.dispatchEvent(new l)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=c,r([s.state()],i.prototype,"stateManager",void 0),i}(e.FtLitElementRedux)){}var h=function(t,e,i,s){for(var o,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class d extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const u=Symbol("registerInterval");class v extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[u]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[u]):this.dispatchEvent(new d)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=u,h([s.state()],i.prototype,"tocNode",void 0),h([s.state()],i.prototype,"disableContextInteractions",void 0),i}(x)){}var p,f;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(p||(p={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(f||(f={})),new Map([...["abw"].map((t=>[t,f.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,f.AUDIO])),...["avi"].map((t=>[t,f.AVI])),...["chm","xhs"].map((t=>[t,f.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,f.CODE])),...["csv"].map((t=>[t,f.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,f.DITA])),...["epub"].map((t=>[t,f.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,f.EXCEL])),...["flac"].map((t=>[t,f.FLAC])),...["gif"].map((t=>[t,f.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,f.GZIP])),...["html","htm","xhtml"].map((t=>[t,f.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,f.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,f.JPEG])),...["json"].map((t=>[t,f.JSON])),...["m4a","m4p"].map((t=>[t,f.M4A])),...["mov","qt"].map((t=>[t,f.MOV])),...["mp3"].map((t=>[t,f.MP3])),...["mp4","m4v"].map((t=>[t,f.MP4])),...["ogg","oga"].map((t=>[t,f.OGG])),...["pdf","ps"].map((t=>[t,f.PDF])),...["png"].map((t=>[t,f.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,f.POWERPOINT])),...["rar"].map((t=>[t,f.RAR])),...["stp"].map((t=>[t,f.STP])),...["txt","rtf","md","mdown"].map((t=>[t,f.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,f.VIDEO])),...["wav"].map((t=>[t,f.WAV])),...["wma"].map((t=>[t,f.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,f.WORD])),...["xml","xsl","rdf"].map((t=>[t,f.XML])),...["yaml","yml","x-yaml"].map((t=>[t,f.YAML])),...["zip"].map((t=>[t,f.ZIP]))]);const m=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),b=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),g=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),w=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),y=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),C=i.css`
|
|
19
19
|
:host, i.ft-icon {
|
|
20
20
|
display: inline-flex;
|
|
21
21
|
align-items: center;
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
:host {
|
|
27
|
-
width: ${
|
|
28
|
-
height: ${
|
|
27
|
+
width: ${m};
|
|
28
|
+
height: ${m};
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
i.ft-icon {
|
|
32
32
|
width: 100%;
|
|
33
33
|
height: 100%;
|
|
34
|
-
font-size: ${
|
|
34
|
+
font-size: ${m};
|
|
35
35
|
line-height: 1;
|
|
36
36
|
font-weight: normal;
|
|
37
37
|
text-transform: none;
|
|
@@ -42,38 +42,38 @@
|
|
|
42
42
|
text-rendering: auto;
|
|
43
43
|
-webkit-font-smoothing: antialiased;
|
|
44
44
|
-moz-osx-font-smoothing: grayscale;
|
|
45
|
-
vertical-align: ${
|
|
45
|
+
vertical-align: ${y};
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
i.ft-icon.ft-icon--fluid-topics {
|
|
49
|
-
font-family: ${
|
|
49
|
+
font-family: ${b}, ft-icons, fticons, sans-serif;
|
|
50
50
|
|
|
51
51
|
/* Ugly fix because font is broken */
|
|
52
|
-
font-size: calc(0.
|
|
52
|
+
font-size: calc(0.75 * ${m});
|
|
53
53
|
position: relative;
|
|
54
|
-
top: -
|
|
54
|
+
top: -4%;
|
|
55
55
|
justify-content: center;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.ft-icon--file-format {
|
|
59
|
-
font-family: ${
|
|
59
|
+
font-family: ${g}, ft-mime, sans-serif;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.ft-icon--material {
|
|
63
|
-
font-family: ${
|
|
63
|
+
font-family: ${w}, "Material Icons", sans-serif;
|
|
64
64
|
}
|
|
65
|
-
`;var
|
|
66
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
65
|
+
`;var j;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(j||(j={}));var $=function(t,e,i,s){for(var o,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class k extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){const t=this.variant&&Object.values(j).includes(this.variant)?this.variant:j.fluid_topics,e=t!==j.material||!!this.value;return i.html`
|
|
66
|
+
<i class="ft-icon ${"ft-icon--"+t}">
|
|
67
67
|
${o.unsafeHTML(this.resolvedIcon)}
|
|
68
|
-
<slot ?hidden=${
|
|
68
|
+
<slot ?hidden=${e}></slot>
|
|
69
69
|
</i>
|
|
70
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let s=this.value||this.textContent;switch(this.variant){case
|
|
71
|
-
`,
|
|
72
|
-
`,
|
|
70
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let s=this.value||this.textContent;switch(this.variant){case j.file_format:this.resolvedIcon=null!==(t=f[s.replace("-","_").toUpperCase()])&&void 0!==t?t:s;break;case j.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=p[s.replace("-","_").toUpperCase()])&&void 0!==e?e:s}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}k.elementDefinitions={},k.styles=C,$([s.property()],k.prototype,"variant",void 0),$([s.property()],k.prototype,"value",void 0),$([s.state()],k.prototype,"resolvedIcon",void 0),$([s.query("slot")],k.prototype,"slottedContent",void 0),e.customElement("ft-icon")(k);const O=i.css`
|
|
71
|
+
`,U=i.css`
|
|
72
|
+
`,I=e.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class N{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=I.getState(),s=null!=t?t:i;if(e&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,s,!0)}static get(t){var e;return null!=t?N.build(t):null!==(e=N.API)&&void 0!==e?e:N.API=N.build()}static await(t){return new Promise((e=>{let i=N.get(t);if(i)e(i);else{const s=I.subscribe((()=>{i=N.get(t),i&&(s(),e(i))}))}}))}}var M;const S=Symbol("clearAfterUnitTest");class T{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={},this.currentUiLocale="",this[M]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=I.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,i){var s;if(t=t.toLowerCase(),Object.keys(i).length>0){const o={...null!==(s=this.defaultMessages[t])&&void 0!==s?s:{},...i};e.deepEqual(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,i,...s){var o,n,a;t=t.toLowerCase(),this.fetchContext(t);const r=null!==(n=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==n?n:{};return new e.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},r).resolve(i,...s)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>e.delay(0).then((()=>t())).catch((()=>null)))))}}M=S,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new T((async(t,e)=>(await N.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new T((async(t,e)=>(await N.await()).getCustomMessageContext(t,e))));const z=window.FluidTopicsI18nService,A=window.FluidTopicsCustomI18nService;var L=function(t,e,i,s){for(var o,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class P extends e.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>N.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return i.html`
|
|
73
73
|
<slot></slot>
|
|
74
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&
|
|
74
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&I.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&I.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&I.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&I.actions.setNoCustom(this.noCustom),t.has("editorMode")&&I.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&I.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&I.actions.setSession(this.session),t.has("availableUiLocales")&&I.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>z.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}P.elementDefinitions={},P.styles=U,L([s.property()],P.prototype,"baseUrl",void 0),L([s.property()],P.prototype,"apiIntegrationIdentifier",void 0),L([s.property()],P.prototype,"uiLocale",void 0),L([e.jsonProperty([])],P.prototype,"availableUiLocales",void 0),L([s.property({type:Boolean})],P.prototype,"editorMode",void 0),L([s.property({type:Boolean})],P.prototype,"noCustom",void 0),L([s.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],P.prototype,"noCustomComponent",void 0),L([s.property({type:Boolean})],P.prototype,"withManualResources",void 0),L([e.jsonProperty([])],P.prototype,"messageContexts",void 0),L([e.jsonProperty(void 0)],P.prototype,"session",void 0),L([s.property({type:Object})],P.prototype,"apiProvider",void 0),e.customElement("ft-app-context")(P);var E=function(t,e,i,s){for(var o,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const G=Symbol("i18nProperties"),R=Symbol("i18nUnsubs");function W(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?A:z}i18n(t,e,...i){var s;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(s=t.args)&&void 0!==s?s:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[G])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[G])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[G]&&new Set([...this[G].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[R].has(t)||this[R].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[R].forEach((t=>t())),this[R].clear()}}return e=R,E([s.property({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class B extends(W(e.FtLitElement)){}class K extends(W(e.FtLitElementRedux)){}var q=function(t,e,i,s){for(var o,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class D extends K{constructor(){super(),this.editorMode=!1,this.addStore(I)}render(){return this.key&&this.context?i.html`
|
|
75
75
|
<span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
|
|
76
|
-
`:this.editorMode?"Select a context and a label key.":i.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}
|
|
76
|
+
`:this.editorMode?"Select a context and a label key.":i.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}D.elementDefinitions={},D.styles=O,q([e.redux()],D.prototype,"editorMode",void 0),q([s.property()],D.prototype,"context",void 0),q([s.property()],D.prototype,"key",void 0),q([e.jsonProperty([])],D.prototype,"args",void 0),q([s.property()],D.prototype,"defaultMessage",void 0);class _{static build(t){return new _(t)}static fromGwt(t){return new _(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>z.resolveMessage(this.name,e,...t)})}}e.customElement("ft-i18n")(D);const F=_.build("designedReaderTopicContent");var Z=function(t,e,i,s){for(var o,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class H extends v{render(){var t,e;return this.map&&(this.error||this.content)?i.html`
|
|
77
77
|
<style>
|
|
78
78
|
@import "${null===(t=this.map)||void 0===t?void 0:t.contentStyles.topicStylesheetUrl}";
|
|
79
79
|
</style>
|
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
<div class="topic-on-error">
|
|
87
87
|
<ft-icon>WARNING</ft-icon>
|
|
88
88
|
<div>
|
|
89
|
-
${this.is404Error()?
|
|
89
|
+
${this.is404Error()?F.messages.topicMissingAdvice():F.messages.somethingWentWrong()}
|
|
90
90
|
</div>
|
|
91
91
|
</div>
|
|
92
92
|
`;const a=null!==(e=null===(t=this.map)||void 0===t?void 0:t.contentStyles.customCssClasses.join(" "))&&void 0!==e?e:"";return i.html`
|
|
93
93
|
<div class="depth-${null===(s=this.tocNode)||void 0===s?void 0:s.depth} content-locale-${null===(n=this.map)||void 0===n?void 0:n.lang} ${a}">
|
|
94
94
|
${o.unsafeHTML(`${this.content}`)}
|
|
95
95
|
</div>
|
|
96
|
-
`}is404Error(){return 404===this.error.status}}
|
|
96
|
+
`}is404Error(){return 404===this.error.status}}H.styles=a,Z([e.redux()],H.prototype,"map",void 0),Z([e.redux()],H.prototype,"scrollTarget",void 0),Z([s.state()],H.prototype,"content",void 0),Z([s.state()],H.prototype,"error",void 0),e.customElement("ft-reader-topic-content")(H),t.FtReaderTopicContent=H,t.FtReaderTopicContentCssVariables=n,t.styles=a}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,n=window.customElements.get,i=window.customElements,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,c=new Set(r.observedAttributes||[]);h(r,c,a);const u={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,u),this._definitionsByClass.set(r,u);let l=n.call(i,t);l||(l=f(t),e.call(i,t,l)),this===window.customElements&&(s.set(r,u),u.standInClass=l);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)o.delete(t),v(t,u,!0)}const p=this._whenDefinedPromises.get(t);return void 0!==p&&(p.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),i.upgrade.apply(i,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let n=this._whenDefinedPromises.get(t);return void 0===n&&(n={},n.promise=new Promise((t=>n.resolve=t)),this._whenDefinedPromises.set(t,n)),n.promise}_upgradeWhenDefined(t,e,n){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),n?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const n=s.get(this.constructor);if(!n)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],n.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,n),e},window.HTMLElement.prototype=t.prototype;const u=t=>t===document||t instanceof ShadowRoot,l=t=>{let e=t.getRootNode();if(!u(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),u(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const n=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(n,HTMLElement.prototype);const i=l(n)||window.customElements,r=i._getDefinition(e);return r?v(n,r):o.set(n,i),n}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,n)=>{if(0===e.size||void 0===n)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);i.call(this,o,r),n.call(this,o,t,r)}else i.call(this,o,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),n.call(this,i,t,null)}else r.call(this,i)})},d=e=>{const n=Object.getPrototypeOf(e);if(n!==window.HTMLElement)return n===t||"HTMLElement"===n?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(n)},v=(t,e,n=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),c=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((n=>{t.hasAttribute(n)&&e.attributeChangedCallback.call(t,n,null,t.getAttribute(n))})),n&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},p=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=p.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const m=(t,e,n=void 0)=>{const i=(n?Object.getPrototypeOf(n):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=i.apply(n||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};m(ShadowRoot,"createElement",document),m(ShadowRoot,"importNode",document),m(Element,"insertAdjacentHTML");const x=(t,e)=>{const n=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...n,set(t){b.push(this),n.set.call(this,t),b.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,n=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...n){const i=e.call(this,...n);return t.set(i,this),i},n.forEach((e=>{const n=window.ElementInternals.prototype,i=n[e];n[e]=function(...e){const n=t.get(this);if(!0!==r.get(n).formAssociated)throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`);i?.call(this,...e)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class o{constructor(t){const e=new Map;t.forEach(((t,n)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+n]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const n of t){const t=r.get(n);t&&!0!==t.formAssociated||e.push(n)}return new o(e)}})}}try{window.customElements.define("custom-element",null)}catch(Un){const t=window.customElements.define;window.customElements.define=(e,n,i)=>{try{t.bind(window.customElements)(e,n,i)}catch(t){console.info(e,n,i,t)}}}class e extends Promise{constructor(t){super(((e,n)=>t((t=>{this.isCanceled?n(new Error("Promise has been canceled")):e(t)}),(t=>{this.isCanceled?n(new Error("Promise has been canceled")):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{constructor(){this.loaders={},this.content={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.content[t]instanceof e&&this.content[t].cancel(),delete this.content[t]}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,n){if(void 0===this.content[t]){if(null==(n=null!=n?n:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=(t=>new e(((e,n)=>t.then(e).catch(n))))(n());return this.content[t]=i,i.then((e=>(this.content[t]=e,e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const n=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of n)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const r=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(
|
|
22
|
+
*/const r=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}};function o(t){return(e,n)=>void 0!==n?((t,e,n)=>{e.constructor.createProperty(n,t)})(t,e,n):r(t,e)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
@@ -35,39 +35,29 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
35
35
|
* Copyright 2021 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
37
|
*/
|
|
38
|
-
var a;function c(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,
|
|
38
|
+
var a;function c(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var n,i,r;if(Array.isArray(t)){if((n=t.length)!=e.length)return!1;for(i=n;0!=i--;)if(!c(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!c(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((n=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=n;0!=i--;){var o=r[i];if(!c(t[o],e[o]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}null===(a=window.HTMLSlotElement)||void 0===a||a.prototype.assignedElements;const u=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function l(t,e){const n=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return n();try{return JSON.parse(t)}catch{return n()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!c(t,e),...null!=e?e:{}})}const f=window,h=f.ShadowRoot&&(void 0===f.ShadyCSS||f.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),v=new WeakMap;
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2019 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/
|
|
43
|
+
*/let p=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(h&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=v.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&v.set(e,t))}return t}toString(){return this.cssText}};const b=t=>new p("string"==typeof t?t:t+"",void 0,d),m=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1]),t[0]);return new p(n,t,d)},x=(t,e)=>{h?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),i=f.litNonce;void 0!==i&&n.setAttribute("nonce",i),n.textContent=e.cssText,t.appendChild(n)}))},y=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return b(e)})(t):t
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2017 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
*/;var w;const g=window,O=g.trustedTypes,S=O?O.emptyScript:"",j=g.reactiveElementPolyfillSupport,
|
|
48
|
+
*/;var w;const g=window,O=g.trustedTypes,S=O?O.emptyScript:"",j=g.reactiveElementPolyfillSupport,E={toAttribute(t,e){switch(e){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},C=(t,e)=>e!==t&&(e==e||t==t),N={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:C};let R=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const i=this._$Ep(n,e);void 0!==i&&(this._$Ev.set(i,n),t.push(i))})),t}static createProperty(t,e=N){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,n,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(i){const r=this[t];this[e]=i,this.requestUpdate(t,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||N}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(y(t))}else void 0!==t&&e.push(y(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return x(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=N){var i;const r=this.constructor._$Ep(t,n);if(void 0!==r&&!0===n.reflect){const o=(void 0!==(null===(i=n.converter)||void 0===i?void 0:i.toAttribute)?n.converter:E).toAttribute(e,n.type);this._$El=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var n;const i=this.constructor,r=i._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=i.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:E;this._$El=r,this[r]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let i=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||C)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
49
49
|
/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*/
|
|
54
|
-
var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==j||j({ReactiveElement:R}),(null!==(w=g.reactiveElementVersions)&&void 0!==w?w:g.reactiveElementVersions=[]).push("1.
|
|
54
|
+
var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==j||j({ReactiveElement:R}),(null!==(w=g.reactiveElementVersions)&&void 0!==w?w:g.reactiveElementVersions=[]).push("1.6.1");const k=window,$=k.trustedTypes,A=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",P=`lit$${(Math.random()+"").slice(9)}$`,F="?"+P,L=`<${F}>`,I=document,T=()=>I.createComment(""),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,W="[ \t\n\f\r]",D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,z=/>/g,H=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),q=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...n)=>({_$litType$:t,strings:e,values:n}))(1),G=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Q=new WeakMap,Y=I.createTreeWalker(I,129,null,!1);class tt{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,o=0;const s=t.length-1,a=this.parts,[c,u]=((t,e)=>{const n=t.length-1,i=[];let r,o=2===e?"<svg>":"",s=D;for(let e=0;e<n;e++){const n=t[e];let a,c,u=-1,l=0;for(;l<n.length&&(s.lastIndex=l,c=s.exec(n),null!==c);)l=s.lastIndex,s===D?"!--"===c[1]?s=K:void 0!==c[1]?s=z:void 0!==c[2]?(J.test(c[2])&&(r=RegExp("</"+c[2],"g")),s=H):void 0!==c[3]&&(s=H):s===H?">"===c[0]?(s=null!=r?r:D,u=-1):void 0===c[1]?u=-2:(u=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?H:'"'===c[3]?V:q):s===V||s===q?s=H:s===K||s===z?s=D:(s=H,r=void 0);const f=s===H&&t[e+1].startsWith("/>")?" ":"";o+=s===D?n+L:u>=0?(i.push(a),n.slice(0,u)+U+n.slice(u)+P+f):n+P+(-2===u?(i.push(void 0),e):f)}const a=o+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==A?A.createHTML(a):a,i]})(t,e);if(this.el=tt.createElement(c,n),Y.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=Y.nextNode())&&a.length<s;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith(U)||e.startsWith(P)){const n=u[o++];if(t.push(e),void 0!==n){const t=i.getAttribute(n.toLowerCase()+U).split(P),e=/([.?@])?(.*)/.exec(n);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?st:"@"===e[1]?at:it})}else a.push({type:6,index:r})}for(const e of t)i.removeAttribute(e)}if(J.test(i.tagName)){const t=i.textContent.split(P),e=t.length-1;if(e>0){i.textContent=$?$.emptyScript:"";for(let n=0;n<e;n++)i.append(t[n],T()),Y.nextNode(),a.push({type:2,index:++r});i.append(t[e],T())}}}else if(8===i.nodeType)if(i.data===F)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(P,t+1));)a.push({type:7,index:r}),t+=P.length-1}r++}}static createElement(t,e){const n=I.createElement("template");return n.innerHTML=t,n}}function et(t,e,n=t,i){var r,o,s,a;if(e===G)return e;let c=void 0!==i?null===(r=n._$Co)||void 0===r?void 0:r[i]:n._$Cl;const u=_(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==u&&(null===(o=null==c?void 0:c._$AO)||void 0===o||o.call(c,!1),void 0===u?c=void 0:(c=new u(t),c._$AT(t,n,i)),void 0!==i?(null!==(s=(a=n)._$Co)&&void 0!==s?s:a._$Co=[])[i]=c:n._$Cl=c),void 0!==c&&(e=et(t,c._$AS(t,e.values),c,i)),e}let nt=class t{constructor(t,e,n,i){var r;this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),_(t)?t===X||null==t||""===t?(this._$AH!==X&&this._$AR(),this._$AH=X):t!==this._$AH&&t!==G&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>B(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==X&&_(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var e;const{values:n,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=tt.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(n);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:n},parts:i}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:I).importNode(n,!0);Y.currentNode=r;let o=Y.nextNode(),s=0,a=0,c=i[0];for(;void 0!==c;){if(s===c.index){let e;2===c.type?e=new nt(o,o.nextSibling,this,t):1===c.type?e=new c.ctor(o,c.name,c.strings,this,t):6===c.type&&(e=new ct(o,this,t)),this._$AV.push(e),c=i[++a]}s!==(null==c?void 0:c.index)&&(o=Y.nextNode(),s++)}return r}v(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}(r,this),e=t.u(this.options);t.v(n),this.$(e),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new tt(t)),e}T(e){B(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,r=0;for(const o of e)r===n.length?n.push(i=new t(this.k(T()),this.k(T()),this,this.options)):i=n[r],i._$AI(o),r++;r<n.length&&(this._$AR(i&&i._$AB.nextSibling,r),n.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},it=class{constructor(t,e,n,i,r){this.type=1,this._$AH=X,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=X}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,i){const r=this.strings;let o=!1;if(void 0===r)t=et(this,t,e,0),o=!_(t)||t!==this._$AH&&t!==G,o&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=et(this,i[n+s],e,s),a===G&&(a=this._$AH[s]),o||(o=!_(a)||a!==this._$AH[s]),a===X?t=X:t!==X&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}o&&!i&&this.j(t)}j(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},rt=class extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===X?void 0:t}};const ot=$?$.emptyScript:"";let st=class extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==X?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}},at=class extends it{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=et(this,t,e,0))&&void 0!==n?n:X)===G)return;const i=this._$AH,r=t===X&&i!==X||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==X&&(i===X||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}},ct=class{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}};const ut=k.litHtmlPolyfillSupport;null==ut||ut(tt,nt),(null!==(M=k.litHtmlVersions)&&void 0!==M?M:k.litHtmlVersions=[]).push("2.7.3");
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var ut,lt;class ht extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,r;const o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=o._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new et(e.insertBefore(_(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Z}}ht.finalized=!0,ht._$litElement$=!0,null===(ut=globalThis.litElementHydrateSupport)||void 0===ut||ut.call(globalThis,{LitElement:ht});const ft=globalThis.litElementPolyfillSupport;null==ft||ft({LitElement:ht}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.2.2");class dt{static create(t,e,i){let n=t=>x(null!=t?t:i),r=b`var(${x(t)}, ${n(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=n,r.get=e=>b`var(${x(t)}, ${n(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),r=b`var(${x(t)}, ${n(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=n,r.get=e=>b`var(${x(t)}, ${n(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):x(null!=e?e:t.defaultValue),n=b`var(${x(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=e=>b`var(${x(t.name)}, ${i(e)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},n}}const vt={colorPrimary:dt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:dt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:dt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:dt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:dt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:dt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:dt.create("--ft-color-error","COLOR","#B00020"),colorOutline:dt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:dt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:dt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:dt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:dt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:dt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:dt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:dt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:dt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:dt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:dt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:dt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:dt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:dt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:dt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:dt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:dt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:dt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:dt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:dt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:dt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:dt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:dt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:dt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:dt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:dt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:dt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:dt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:dt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:dt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:dt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:dt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:dt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:dt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:dt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:dt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:dt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:dt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:dt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:dt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:dt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:dt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:dt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:dt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:dt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:dt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:dt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:dt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:dt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:dt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:dt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:dt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:dt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:dt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:dt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
61
|
-
/**
|
|
62
|
-
* @license
|
|
63
|
-
* Copyright 2021 Google LLC
|
|
64
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/var pt=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class xt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:n}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const r=this.renderOptions.creationScope=this.attachShadow({...n,customElements:t.registry});return m(r,this.constructor.elementStyles),r}}}(ht)){constructor(){super(),this.exportpartsDebouncer=new n(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),J`
|
|
66
|
-
${t.map((t=>J`
|
|
67
|
-
<style>${t}</style>
|
|
68
|
-
`))}
|
|
69
|
-
${this.getTemplate()}
|
|
70
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,n,r,o,s;const a=t=>null!=t&&t.trim().length>0,c=t.filter(a).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const u=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==r?r:[],i=null!==(s=null===(o=t.getAttribute("exportparts"))||void 0===o?void 0:o.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>u.add(t)))}if(0===u.size)return void this.removeAttribute("exportparts");const l=[...u.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...l].join(", "))}}pt([o()],xt.prototype,"exportpartsPrefix",void 0),pt([l([])],xt.prototype,"exportpartsPrefixes",void 0),pt([o()],xt.prototype,"customStylesheet",void 0),b`
|
|
60
|
+
var lt,ft;let ht=class extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,n)=>{var i,r;const o=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:e;let s=o._$litPart$;if(void 0===s){const t=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new nt(e.insertBefore(T(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return G}};ht.finalized=!0,ht._$litElement$=!0,null===(lt=globalThis.litElementHydrateSupport)||void 0===lt||lt.call(globalThis,{LitElement:ht});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ht}),(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.3.2");class vt{static create(t,e,n){let i=t=>b(null!=t?t:n),r=m`var(${b(t)}, ${i(n)})`;return r.name=t,r.category=e,r.defaultValue=n,r.defaultCssValue=i,r.get=e=>m`var(${b(t)}, ${i(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>n,r}static extend(t,e,n){let i=t=>e.get(null!=t?t:n),r=m`var(${b(t)}, ${i(n)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=n,r.defaultCssValue=i,r.get=e=>m`var(${b(t)}, ${i(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>n,r}static external(t,e){let n=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):b(null!=e?e:t.defaultValue),i=m`var(${b(t.name)}, ${n(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=e,i.defaultCssValue=n,i.get=e=>m`var(${b(t.name)}, ${n(e)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>{var e,n;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(n=t.fallbackVariable)||void 0===n?void 0:n.lastResortDefaultValue()},i}}const pt={colorPrimary:vt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:vt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:vt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:vt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:vt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:vt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:vt.create("--ft-color-error","COLOR","#B00020"),colorOutline:vt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:vt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:vt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:vt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:vt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:vt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:vt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:vt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:vt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:vt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:vt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:vt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:vt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:vt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:vt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:vt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:vt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:vt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:vt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:vt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:vt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:vt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:vt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:vt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:vt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:vt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:vt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:vt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:vt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:vt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:vt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:vt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:vt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:vt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:vt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:vt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:vt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:vt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:vt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:vt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:vt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:vt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:vt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:vt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:vt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:vt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:vt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:vt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:vt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:vt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:vt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:vt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:vt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:vt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:vt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class bt extends ht{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,n])=>t.registry.define(e,n))));const e={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(e);return x(n,t.elementStyles),n}}var mt,xt=function(t,e,n,i){for(var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};const yt=Symbol("constructorPrototype"),wt=Symbol("constructorName"),gt=Symbol("exportpartsDebouncer");class Ot extends bt{constructor(){super(),this[mt]=new i(5),this[wt]=this.constructor.name,this[yt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[wt]&&Object.setPrototypeOf(this,this[yt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,n;if((null!==(n=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==n?n:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[gt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,n,i,r,o,s;const a=t=>null!=t&&t.trim().length>0,c=t.filter(a).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const u=new Set;for(let t of null!==(n=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==n?n:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],n=null!==(s=null===(o=t.getAttribute("exportparts"))||void 0===o?void 0:o.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...n).filter(a).map((t=>t.trim())).forEach((t=>u.add(t)))}if(0===u.size)return void this.removeAttribute("exportparts");const l=[...u.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...l].join(", "))}}mt=gt,xt([o()],Ot.prototype,"exportpartsPrefix",void 0),xt([l([])],Ot.prototype,"exportpartsPrefixes",void 0),xt([o()],Ot.prototype,"customStylesheet",void 0),m`
|
|
71
61
|
.ft-no-text-select {
|
|
72
62
|
-webkit-touch-callout: none;
|
|
73
63
|
-webkit-user-select: none;
|
|
@@ -76,7 +66,7 @@ var ut,lt;class ht extends R{constructor(){super(...arguments),this.renderOption
|
|
|
76
66
|
-ms-user-select: none;
|
|
77
67
|
user-select: none;
|
|
78
68
|
}
|
|
79
|
-
`,
|
|
69
|
+
`,m`
|
|
80
70
|
.ft-word-wrap {
|
|
81
71
|
white-space: normal;
|
|
82
72
|
word-wrap: break-word;
|
|
@@ -88,7 +78,7 @@ var ut,lt;class ht extends R{constructor(){super(...arguments),this.renderOption
|
|
|
88
78
|
-webkit-hyphens: auto;
|
|
89
79
|
hyphens: auto
|
|
90
80
|
}
|
|
91
|
-
`,
|
|
81
|
+
`,m`
|
|
92
82
|
.ft-safari-ellipsis-fix {
|
|
93
83
|
margin-right: 0;
|
|
94
84
|
|
|
@@ -99,9 +89,9 @@ var ut,lt;class ht extends R{constructor(){super(...arguments),this.renderOption
|
|
|
99
89
|
display: inline-block;
|
|
100
90
|
width: 0;
|
|
101
91
|
}
|
|
102
|
-
`;class bt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let r=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${t}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function mt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function yt(t){return!!t&&!!t[oe]}function wt(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===se}(t)||Array.isArray(t)||!!t[re]||!!t.constructor[re]||Et(t)||Nt(t))}function gt(t,e,i){void 0===i&&(i=!1),0===Ot(t)?(i?Object.keys:ae)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Ot(t){var e=t[oe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Et(t)?2:Nt(t)?3:0}function St(t,e){return 2===Ot(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function jt(t,e,i){var n=Ot(t);2===n?t.set(e,i):3===n?(t.delete(e),t.add(i)):t[e]=i}function Ct(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Et(t){return te&&t instanceof Map}function Nt(t){return ee&&t instanceof Set}function Rt(t){return t.o||t.t}function Mt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ce(t);delete e[oe];for(var i=ae(e),n=0;n<i.length;n++){var r=i[n],o=e[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function $t(t,e){return void 0===e&&(e=!1),Ut(t)||yt(t)||!wt(t)||(Ot(t)>1&&(t.set=t.add=t.clear=t.delete=kt),Object.freeze(t),e&>(t,(function(t,e){return $t(e,!0)}),!0)),t}function kt(){mt(2)}function Ut(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function At(t){var e=ue[t];return e||mt(18,t),e}function Pt(){return Qt}function Ft(t,e){e&&(At("Patches"),t.u=[],t.s=[],t.v=e)}function Lt(t){_t(t),t.p.forEach(It),t.p=null}function _t(t){t===Qt&&(Qt=t.l)}function Tt(t){return Qt={p:[],l:Qt,h:t,m:!0,_:0}}function It(t){var e=t[oe];0===e.i||1===e.i?e.j():e.O=!0}function Bt(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.g||At("ES5").S(e,t,n),n?(i[oe].P&&(Lt(e),mt(4)),wt(t)&&(t=Dt(e,t),e.l||Kt(e,t)),e.u&&At("Patches").M(i[oe].t,t,e.u,e.s)):t=Dt(e,i,[]),Lt(e),e.u&&e.v(e.u,e.s),t!==ne?t:void 0}function Dt(t,e,i){if(Ut(e))return e;var n=e[oe];if(!n)return gt(e,(function(r,o){return Wt(t,n,e,r,o,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return Kt(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var r=4===n.i||5===n.i?n.o=Mt(n.k):n.o;gt(3===n.i?new Set(r):r,(function(e,o){return Wt(t,n,r,e,o,i)})),Kt(t,r,!1),i&&t.u&&At("Patches").R(n,i,t.u,t.s)}return n.o}function Wt(t,e,i,n,r,o){if(yt(r)){var s=Dt(t,r,o&&e&&3!==e.i&&!St(e.D,n)?o.concat(n):void 0);if(jt(i,n,s),!yt(s))return;t.m=!1}if(wt(r)&&!Ut(r)){if(!t.h.F&&t._<1)return;Dt(t,r),e&&e.A.l||Kt(t,r)}}function Kt(t,e,i){void 0===i&&(i=!1),t.h.F&&t.m&&$t(e,i)}function zt(t,e){var i=t[oe];return(i?Rt(i):t)[e]}function Ht(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function Vt(t){t.P||(t.P=!0,t.l&&Vt(t.l))}function Jt(t){t.o||(t.o=Mt(t.t))}function Zt(t,e,i){var n=Et(e)?At("MapSet").N(e,i):Nt(e)?At("MapSet").T(e,i):t.g?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Pt(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},r=n,o=le;i&&(r=[n],o=he);var s=Proxy.revocable(r,o),a=s.revoke,c=s.proxy;return n.k=c,n.j=a,c}(e,i):At("ES5").J(e,i);return(i?i.A:Pt()).p.push(n),n}function qt(t){return yt(t)||mt(22,t),function t(e){if(!wt(e))return e;var i,n=e[oe],r=Ot(e);if(n){if(!n.P&&(n.i<4||!At("ES5").K(n)))return n.t;n.I=!0,i=Xt(e,r),n.I=!1}else i=Xt(e,r);return gt(i,(function(e,r){n&&function(t,e){return 2===Ot(t)?t.get(e):t[e]}(n.t,e)===r||jt(i,e,t(r))})),3===r?new Set(i):i}(t)}function Xt(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Mt(t)}var Gt,Qt,Yt="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),te="undefined"!=typeof Map,ee="undefined"!=typeof Set,ie="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ne=Yt?Symbol.for("immer-nothing"):((Gt={})["immer-nothing"]=!0,Gt),re=Yt?Symbol.for("immer-draftable"):"__$immer_draftable",oe=Yt?Symbol.for("immer-state"):"__$immer_state",se=""+Object.prototype.constructor,ae="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ce=Object.getOwnPropertyDescriptors||function(t){var e={};return ae(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},ue={},le={get:function(t,e){if(e===oe)return t;var i=Rt(t);if(!St(i,e))return function(t,e,i){var n,r=Ht(e,i);return r?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!wt(n)?n:n===zt(t.t,e)?(Jt(t),t.o[e]=Zt(t.A.h,n,t)):n},has:function(t,e){return e in Rt(t)},ownKeys:function(t){return Reflect.ownKeys(Rt(t))},set:function(t,e,i){var n=Ht(Rt(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var r=zt(Rt(t),e),o=null==r?void 0:r[oe];if(o&&o.t===i)return t.o[e]=i,t.D[e]=!1,!0;if(Ct(i,r)&&(void 0!==i||St(t.t,e)))return!0;Jt(t),Vt(t)}return t.o[e]===i&&"number"!=typeof i&&(void 0!==i||e in t.o)||(t.o[e]=i,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==zt(t.t,e)||e in t.t?(t.D[e]=!1,Jt(t),Vt(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Rt(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){mt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){mt(12)}},he={};gt(le,(function(t,e){he[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),he.deleteProperty=function(t,e){return he.set.call(this,t,e,void 0)},he.set=function(t,e,i){return le.set.call(this,t[0],e,i,t[0])};var fe=function(){function t(t){var e=this;this.g=ie,this.F=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var o=e;return function(t){var e=this;void 0===t&&(t=r);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return o.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&mt(6),void 0!==n&&"function"!=typeof n&&mt(7),wt(t)){var a=Tt(e),c=Zt(e,t,void 0),u=!0;try{s=i(c),u=!1}finally{u?Lt(a):_t(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Ft(a,n),Bt(t,a)}),(function(t){throw Lt(a),t})):(Ft(a,n),Bt(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===ne&&(s=void 0),e.F&&$t(s,!0),n){var l=[],h=[];At("Patches").M(t,s,l,h),n(l,h)}return s}mt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var n,r,o=e.produce(t,i,(function(t,e){n=t,r=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,n,r]})):[o,n,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){wt(t)||mt(8),yt(t)&&(t=qt(t));var e=Tt(this),i=Zt(this,t,void 0);return i[oe].C=!0,_t(e),i},e.finishDraft=function(t,e){var i=(t&&t[oe]).A;return Ft(i,e),Bt(void 0,i)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!ie&&mt(20),this.g=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var r=At("Patches").$;return yt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),de=new fe,ve=de.produce;de.produceWithPatches.bind(de),de.setAutoFreeze.bind(de),de.setUseProxies.bind(de),de.applyPatches.bind(de),de.createDraft.bind(de),de.finishDraft.bind(de);var pe=ve;function xe(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function be(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function me(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?be(Object(i),!0).forEach((function(e){xe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):be(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function ye(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var we="function"==typeof Symbol&&Symbol.observable||"@@observable",ge=function(){return Math.random().toString(36).substring(7).split("").join(".")},Oe={INIT:"@@redux/INIT"+ge(),REPLACE:"@@redux/REPLACE"+ge(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ge()}};function Se(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function je(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ye(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ye(1));return i(je)(t,e)}if("function"!=typeof t)throw new Error(ye(2));var r=t,o=e,s=[],a=s,c=!1;function u(){a===s&&(a=s.slice())}function l(){if(c)throw new Error(ye(3));return o}function h(t){if("function"!=typeof t)throw new Error(ye(4));if(c)throw new Error(ye(5));var e=!0;return u(),a.push(t),function(){if(e){if(c)throw new Error(ye(6));e=!1,u();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(t){if(!Se(t))throw new Error(ye(7));if(void 0===t.type)throw new Error(ye(8));if(c)throw new Error(ye(9));try{c=!0,o=r(o,t)}finally{c=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}function d(t){if("function"!=typeof t)throw new Error(ye(10));r=t,f({type:Oe.REPLACE})}function v(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ye(11));function i(){t.next&&t.next(l())}return i(),{unsubscribe:e(i)}}})[we]=function(){return this},t}return f({type:Oe.INIT}),(n={dispatch:f,subscribe:h,getState:l,replaceReducer:d})[we]=v,n}function Ce(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var r=e[n];"function"==typeof t[r]&&(i[r]=t[r])}var o,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Oe.INIT}))throw new Error(ye(12));if(void 0===i(void 0,{type:Oe.PROBE_UNKNOWN_ACTION()}))throw new Error(ye(13))}))}(i)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var n=!1,r={},a=0;a<s.length;a++){var c=s[a],u=i[c],l=t[c],h=u(l,e);if(void 0===h)throw e&&e.type,new Error(ye(14));r[c]=h,n=n||h!==l}return(n=n||s.length!==Object.keys(t).length)?r:t}}function Ee(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Ne(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(ye(15))},r={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=e.map((function(t){return t(r)}));return n=Ee.apply(void 0,o)(i.dispatch),me(me({},i),{},{dispatch:n})}}}function Re(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,n,t):e(r)}}}}var Me=Re();Me.withExtraArgument=Re;var $e,ke=Me,Ue=($e=function(t,e){return $e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},$e(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}$e(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Ae=function(t,e){for(var i=0,n=e.length,r=t.length;i<n;i++,r++)t[r]=e[i];return t},Pe=Object.defineProperty,Fe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Te=function(t,e,i){return e in t?Pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Ie=function(t,e){for(var i in e||(e={}))Le.call(e,i)&&Te(t,i,e[i]);if(Fe)for(var n=0,r=Fe(e);n<r.length;n++){i=r[n];_e.call(e,i)&&Te(t,i,e[i])}return t},Be="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ee:Ee.apply(null,arguments)};var De=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ue(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ae([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ae([void 0],t.concat(this))))},e}(Array);function We(t){return wt(t)?pe(t,(function(){})):t}function Ke(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new De;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(ke.withExtraArgument(i.extraArgument)):n.push(ke));return n}(t)}}function ze(t){var e,i=Ke(),n=t||{},r=n.reducer,o=void 0===r?void 0:r,s=n.middleware,a=void 0===s?i():s,c=n.devTools,u=void 0===c||c,l=n.preloadedState,h=void 0===l?void 0:l,f=n.enhancers,d=void 0===f?void 0:f;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Ce(o)}var v=a;"function"==typeof v&&(v=v(i));var p=Ne.apply(void 0,v),x=Ee;u&&(x=Be(Ie({trace:!1},"object"==typeof u&&u)));var b=[p];return Array.isArray(d)?b=Ae([p],d):"function"==typeof d&&(b=d(b)),je(e,h,x.apply(void 0,b))}function He(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Ie(Ie({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Ve(t){var e,i={},n=[],r={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,r},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,n,e]}function Je(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:We(t.initialState),r=t.reducers||{},o=Object.keys(r),s={},a={},c={};function u(){var e="function"==typeof t.extraReducers?Ve(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,o=e[1],s=void 0===o?[]:o,c=e[2],u=void 0===c?void 0:c,l=Ie(Ie({},r),a);return function(t,e,i,n){void 0===i&&(i=[]);var r,o="function"==typeof e?Ve(e):[e,i,n],s=o[0],a=o[1],c=o[2];if(function(t){return"function"==typeof t}(t))r=function(){return We(t())};else{var u=We(t);r=function(){return u}}function l(t,e){void 0===t&&(t=r());var i=Ae([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[c]),i.reduce((function(t,i){if(i){var n;if(yt(t))return void 0===(n=i(t,e))?t:n;if(wt(t))return pe(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return l.getInitialState=r,l}(n,l,s,u)}return o.forEach((function(t){var i,n,o=r[t],u=e+"/"+t;"reducer"in o?(i=o.reducer,n=o.prepare):i=o,s[t]=i,a[u]=i,c[t]=n?He(u,n):He(u)})),{name:e,reducer:function(t,e){return i||(i=u()),i(t,e)},actions:c,caseReducers:s,getInitialState:function(){return i||(i=u()),i.getInitialState()}}}var Ze="listenerMiddleware";He(Ze+"/add"),He(Ze+"/removeAll"),He(Ze+"/remove"),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[oe];return le.get(e,t)},set:function(e){var i=this[oe];le.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][oe];if(!r.P)switch(r.i){case 5:n(r)&&Vt(r);break;case 4:i(r)&&Vt(r)}}}function i(t){for(var e=t.t,i=t.k,n=ae(i),r=n.length-1;r>=0;r--){var o=n[r];if(o!==oe){var s=e[o];if(void 0===s&&!St(e,o))return!0;var a=i[o],c=a&&a[oe];if(c?c.t!==s:!Ct(a,s))return!0}}var u=!!e[oe];return n.length!==ae(e).length+(u?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var r={};!function(t,e){ue[t]||(ue[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),r=function(e,i){if(e){for(var n=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(n,""+r,t(r,!0));return n}var o=ce(i);delete o[oe];for(var s=ae(o),a=0;a<s.length;a++){var c=s[a];o[c]=t(c,e||!!o[c].enumerable)}return Object.create(Object.getPrototypeOf(i),o)}(n,e),o={i:n?5:4,A:i?i.A:Pt(),P:!1,I:!1,D:{},l:i,t:e,k:r,o:null,O:!1,C:!1};return Object.defineProperty(r,oe,{value:o,writable:!0}),r},S:function(t,i,r){r?yt(i)&&i[oe].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[oe];if(i){var r=i.t,o=i.k,s=i.D,a=i.i;if(4===a)gt(o,(function(e){e!==oe&&(void 0!==r[e]||St(r,e)?s[e]||t(o[e]):(s[e]=!0,Vt(i)))})),gt(r,(function(t){void 0!==o[t]||St(o,t)||(s[t]=!1,Vt(i))}));else if(5===a){if(n(i)&&(Vt(i),s.length=!0),o.length<r.length)for(var c=o.length;c<r.length;c++)s[c]=!1;else for(var u=r.length;u<o.length;u++)s[u]=!0;for(var l=Math.min(o.length,r.length),h=0;h<l;h++)o.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&t(o[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const qe=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged||null!=t.attribute),Xe=(t,e)=>{var i;const n=qe(t)?t:{};return e=null!==(i=null!=e?e:n.hasChanged)&&void 0!==i?i:(t,e)=>!c(t,e),(i,r)=>{var o,s;i.constructor.createProperty(r,{hasChanged:e,attribute:null!==(o=n.attribute)&&void 0!==o&&o});const a=i;a.reduxProperties=a.reduxProperties||new Map;const c=null!==(s=qe(t)?n.selector:t)&&void 0!==s?s:t=>t[r];a.reduxProperties.set(r,{selector:c,store:n.store})}};class Ge extends xt{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:Qe(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:Qe(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Qe(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}class Ye{constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(Qe(n))return n;if(null==i)return;const r=Je(i);if(n)return new Ye(r,n);const o=ze({reducer:r.reducer});return window.ftReduxStores[i.name]=new Ye(r,o)}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var ti,ei;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ei=null===(ti=window.safari)||void 0===ti?void 0:ti.pushNotification)||void 0===ei||ei.toString());const ii={colorError:dt.external(vt.colorError,"Design system"),fontFamily:dt.external(vt.contentFont,"Design system")},ni=b`
|
|
92
|
+
`;class St{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var n,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(n=this.labels[t])&&void 0!==n?n:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,n)=>this.formatValue(t,n))))),r}resolvePluralKey(t,e){for(let n of e)if("number"==typeof n){const e=`${String(t)}[\\=${n}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const n=n=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(n):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(n):t.toLocaleString(n);try{return n(document.documentElement.lang)}catch(t){return n()}}}function jt(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Et(t){return!!t&&!!t[fe]}function Ct(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===he}(t)||Array.isArray(t)||!!t[le]||!!(null===(e=t.constructor)||void 0===e?void 0:e[le])||At(t)||Ut(t))}function Nt(t,e,n){void 0===n&&(n=!1),0===Rt(t)?(n?Object.keys:de)(t).forEach((function(i){n&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function Rt(t){var e=t[fe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:At(t)?2:Ut(t)?3:0}function Mt(t,e){return 2===Rt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function kt(t,e,n){var i=Rt(t);2===i?t.set(e,n):3===i?t.add(n):t[e]=n}function $t(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function At(t){return se&&t instanceof Map}function Ut(t){return ae&&t instanceof Set}function Pt(t){return t.o||t.t}function Ft(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ve(t);delete e[fe];for(var n=de(e),i=0;i<n.length;i++){var r=n[i],o=e[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function Lt(t,e){return void 0===e&&(e=!1),Tt(t)||Et(t)||!Ct(t)||(Rt(t)>1&&(t.set=t.add=t.clear=t.delete=It),Object.freeze(t),e&&Nt(t,(function(t,e){return Lt(e,!0)}),!0)),t}function It(){jt(2)}function Tt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function _t(t){var e=pe[t];return e||jt(18,t),e}function Bt(){return re}function Wt(t,e){e&&(_t("Patches"),t.u=[],t.s=[],t.v=e)}function Dt(t){Kt(t),t.p.forEach(Ht),t.p=null}function Kt(t){t===re&&(re=t.l)}function zt(t){return re={p:[],l:re,h:t,m:!0,_:0}}function Ht(t){var e=t[fe];0===e.i||1===e.i?e.j():e.g=!0}function qt(t,e){e._=e.p.length;var n=e.p[0],i=void 0!==t&&t!==n;return e.h.O||_t("ES5").S(e,t,i),i?(n[fe].P&&(Dt(e),jt(4)),Ct(t)&&(t=Vt(e,t),e.l||Zt(e,t)),e.u&&_t("Patches").M(n[fe].t,t,e.u,e.s)):t=Vt(e,n,[]),Dt(e),e.u&&e.v(e.u,e.s),t!==ue?t:void 0}function Vt(t,e,n){if(Tt(e))return e;var i=e[fe];if(!i)return Nt(e,(function(r,o){return Jt(t,i,e,r,o,n)}),!0),e;if(i.A!==t)return e;if(!i.P)return Zt(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=Ft(i.k):i.o,o=r,s=!1;3===i.i&&(o=new Set(r),r.clear(),s=!0),Nt(o,(function(e,o){return Jt(t,i,r,e,o,n,s)})),Zt(t,r,!1),n&&t.u&&_t("Patches").N(i,n,t.u,t.s)}return i.o}function Jt(t,e,n,i,r,o,s){if(Et(r)){var a=Vt(t,r,o&&e&&3!==e.i&&!Mt(e.R,i)?o.concat(i):void 0);if(kt(n,i,a),!Et(a))return;t.m=!1}else s&&n.add(r);if(Ct(r)&&!Tt(r)){if(!t.h.D&&t._<1)return;Vt(t,r),e&&e.A.l||Zt(t,r)}}function Zt(t,e,n){void 0===n&&(n=!1),!t.l&&t.h.D&&t.m&&Lt(e,n)}function Gt(t,e){var n=t[fe];return(n?Pt(n):t)[e]}function Xt(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var i=Object.getOwnPropertyDescriptor(n,e);if(i)return i;n=Object.getPrototypeOf(n)}}function Qt(t){t.P||(t.P=!0,t.l&&Qt(t.l))}function Yt(t){t.o||(t.o=Ft(t.t))}function te(t,e,n){var i=At(e)?_t("MapSet").F(e,n):Ut(e)?_t("MapSet").T(e,n):t.O?function(t,e){var n=Array.isArray(t),i={i:n?1:0,A:e?e.A:Bt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,o=be;n&&(r=[i],o=me);var s=Proxy.revocable(r,o),a=s.revoke,c=s.proxy;return i.k=c,i.j=a,c}(e,n):_t("ES5").J(e,n);return(n?n.A:Bt()).p.push(i),i}function ee(t){return Et(t)||jt(22,t),function t(e){if(!Ct(e))return e;var n,i=e[fe],r=Rt(e);if(i){if(!i.P&&(i.i<4||!_t("ES5").K(i)))return i.t;i.I=!0,n=ne(e,r),i.I=!1}else n=ne(e,r);return Nt(n,(function(e,r){i&&function(t,e){return 2===Rt(t)?t.get(e):t[e]}(i.t,e)===r||kt(n,e,t(r))})),3===r?new Set(n):n}(t)}function ne(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ft(t)}var ie,re,oe="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),se="undefined"!=typeof Map,ae="undefined"!=typeof Set,ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ue=oe?Symbol.for("immer-nothing"):((ie={})["immer-nothing"]=!0,ie),le=oe?Symbol.for("immer-draftable"):"__$immer_draftable",fe=oe?Symbol.for("immer-state"):"__$immer_state",he=""+Object.prototype.constructor,de="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ve=Object.getOwnPropertyDescriptors||function(t){var e={};return de(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},pe={},be={get:function(t,e){if(e===fe)return t;var n=Pt(t);if(!Mt(n,e))return function(t,e,n){var i,r=Xt(e,n);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,n,e);var i=n[e];return t.I||!Ct(i)?i:i===Gt(t.t,e)?(Yt(t),t.o[e]=te(t.A.h,i,t)):i},has:function(t,e){return e in Pt(t)},ownKeys:function(t){return Reflect.ownKeys(Pt(t))},set:function(t,e,n){var i=Xt(Pt(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,n),!0;if(!t.P){var r=Gt(Pt(t),e),o=null==r?void 0:r[fe];if(o&&o.t===n)return t.o[e]=n,t.R[e]=!1,!0;if($t(n,r)&&(void 0!==n||Mt(t.t,e)))return!0;Yt(t),Qt(t)}return t.o[e]===n&&(void 0!==n||e in t.o)||Number.isNaN(n)&&Number.isNaN(t.o[e])||(t.o[e]=n,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Gt(t.t,e)||e in t.t?(t.R[e]=!1,Yt(t),Qt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=Pt(t),i=Reflect.getOwnPropertyDescriptor(n,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:n[e]}:i},defineProperty:function(){jt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){jt(12)}},me={};Nt(be,(function(t,e){me[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),me.deleteProperty=function(t,e){return me.set.call(this,t,e,void 0)},me.set=function(t,e,n){return be.set.call(this,t[0],e,n,t[0])};var xe=function(){function t(t){var e=this;this.O=ce,this.D=!0,this.produce=function(t,n,i){if("function"==typeof t&&"function"!=typeof n){var r=n;n=t;var o=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return o.produce(t,(function(t){var i;return(i=n).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof n&&jt(6),void 0!==i&&"function"!=typeof i&&jt(7),Ct(t)){var a=zt(e),c=te(e,t,void 0),u=!0;try{s=n(c),u=!1}finally{u?Dt(a):Kt(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Wt(a,i),qt(t,a)}),(function(t){throw Dt(a),t})):(Wt(a,i),qt(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=n(t))&&(s=t),s===ue&&(s=void 0),e.D&&Lt(s,!0),i){var l=[],f=[];_t("Patches").M(t,s,l,f),i(l,f)}return s}jt(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,o=e.produce(t,n,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,i,r]})):[o,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Ct(t)||jt(8),Et(t)&&(t=ee(t));var e=zt(this),n=te(this,t,void 0);return n[fe].C=!0,Kt(e),n},e.finishDraft=function(t,e){var n=(t&&t[fe]).A;return Wt(n,e),qt(void 0,n)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!ce&&jt(20),this.O=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var i=e[n];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}n>-1&&(e=e.slice(n+1));var r=_t("Patches").$;return Et(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),ye=new xe,we=ye.produce;function ge(t){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ge(t)}function Oe(t){var e=function(t,e){if("object"!==ge(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==ge(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ge(e)?e:String(e)}function Se(t,e,n){return(e=Oe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function je(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ee(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?je(Object(n),!0).forEach((function(e){Se(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ce(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}ye.produceWithPatches.bind(ye),ye.setAutoFreeze.bind(ye),ye.setUseProxies.bind(ye),ye.applyPatches.bind(ye),ye.createDraft.bind(ye),ye.finishDraft.bind(ye);var Ne="function"==typeof Symbol&&Symbol.observable||"@@observable",Re=function(){return Math.random().toString(36).substring(7).split("").join(".")},Me={INIT:"@@redux/INIT"+Re(),REPLACE:"@@redux/REPLACE"+Re(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Re()}};function ke(t,e,n){var i;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ce(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ce(1));return n(ke)(t,e)}if("function"!=typeof t)throw new Error(Ce(2));var r=t,o=e,s=[],a=s,c=!1;function u(){a===s&&(a=s.slice())}function l(){if(c)throw new Error(Ce(3));return o}function f(t){if("function"!=typeof t)throw new Error(Ce(4));if(c)throw new Error(Ce(5));var e=!0;return u(),a.push(t),function(){if(e){if(c)throw new Error(Ce(6));e=!1,u();var n=a.indexOf(t);a.splice(n,1),s=null}}}function h(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Ce(7));if(void 0===t.type)throw new Error(Ce(8));if(c)throw new Error(Ce(9));try{c=!0,o=r(o,t)}finally{c=!1}for(var e=s=a,n=0;n<e.length;n++){(0,e[n])()}return t}return h({type:Me.INIT}),(i={dispatch:h,subscribe:f,getState:l,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ce(10));r=t,h({type:Me.REPLACE})}})[Ne]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ce(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[Ne]=function(){return this},t},i}function $e(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(n[r]=t[r])}var o,s=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:Me.INIT}))throw new Error(Ce(12));if(void 0===n(void 0,{type:Me.PROBE_UNKNOWN_ACTION()}))throw new Error(Ce(13))}))}(n)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var i=!1,r={},a=0;a<s.length;a++){var c=s[a],u=n[c],l=t[c],f=u(l,e);if(void 0===f)throw e&&e.type,new Error(Ce(14));r[c]=f,i=i||f!==l}return(i=i||s.length!==Object.keys(t).length)?r:t}}function Ae(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Ue(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),i=function(){throw new Error(Ce(15))},r={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},o=e.map((function(t){return t(r)}));return i=Ae.apply(void 0,o)(n.dispatch),Ee(Ee({},n),{},{dispatch:i})}}}function Pe(t){return function(e){var n=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(n,i,t):e(r)}}}}var Fe=Pe();Fe.withExtraArgument=Pe;var Le,Ie=Fe,Te=(Le=function(t,e){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Le(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Le(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_e=function(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Be=function(t,e){for(var n=0,i=e.length,r=t.length;n<i;n++,r++)t[r]=e[n];return t},We=Object.defineProperty,De=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Ve=function(t,e,n){return e in t?We(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Je=function(t,e){for(var n in e||(e={}))He.call(e,n)&&Ve(t,n,e[n]);if(ze)for(var i=0,r=ze(e);i<r.length;i++){n=r[i];qe.call(e,n)&&Ve(t,n,e[n])}return t},Ze=function(t,e){return De(t,Ke(e))},Ge="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ae:Ae.apply(null,arguments)};var Xe=function(t){function e(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=t.apply(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return Te(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Be([void 0],t[0].concat(this)))):new(e.bind.apply(e,Be([void 0],t.concat(this))))},e}(Array),Qe=function(t){function e(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=t.apply(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return Te(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Be([void 0],t[0].concat(this)))):new(e.bind.apply(e,Be([void 0],t.concat(this))))},e}(Array);function Ye(t){return Ct(t)?we(t,(function(){})):t}function tn(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,n=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Xe;n&&(!function(t){return"boolean"==typeof t}(n)?i.push(Ie.withExtraArgument(n.extraArgument)):i.push(Ie));return i}(t)}}function en(t){var e,n=tn(),i=t||{},r=i.reducer,o=void 0===r?void 0:r,s=i.middleware,a=void 0===s?n():s,c=i.devTools,u=void 0===c||c,l=i.preloadedState,f=void 0===l?void 0:l,h=i.enhancers,d=void 0===h?void 0:h;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return e===n}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=$e(o)}var v=a;"function"==typeof v&&(v=v(n));var p=Ue.apply(void 0,v),b=Ae;u&&(b=Ge(Je({trace:!1},"object"==typeof u&&u)));var m=new Qe(p),x=m;return Array.isArray(d)?x=Be([p],d):"function"==typeof d&&(x=d(m)),ke(e,f,b.apply(void 0,x))}function nn(t,e){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var r=e.apply(void 0,n);if(!r)throw new Error("prepareAction did not return an object");return Je(Je({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:n[0]}}return n.toString=function(){return""+t},n.type=t,n.match=function(e){return e.type===t},n}function rn(t){var e,n={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[n,i,e]}function on(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var n,i="function"==typeof t.initialState?t.initialState:Ye(t.initialState),r=t.reducers||{},o=Object.keys(r),s={},a={},c={};function u(){var e="function"==typeof t.extraReducers?rn(t.extraReducers):[t.extraReducers],n=e[0],r=void 0===n?{}:n,o=e[1],s=void 0===o?[]:o,c=e[2],u=void 0===c?void 0:c,l=Je(Je({},r),a);return function(t,e,n,i){void 0===n&&(n=[]);var r,o="function"==typeof e?rn(e):[e,n,i],s=o[0],a=o[1],c=o[2];if(function(t){return"function"==typeof t}(t))r=function(){return Ye(t())};else{var u=Ye(t);r=function(){return u}}function l(t,e){void 0===t&&(t=r());var n=Be([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===n.filter((function(t){return!!t})).length&&(n=[c]),n.reduce((function(t,n){if(n){var i;if(Et(t))return void 0===(i=n(t,e))?t:i;if(Ct(t))return we(t,(function(t){return n(t,e)}));if(void 0===(i=n(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return l.getInitialState=r,l}(i,(function(t){for(var e in l)t.addCase(e,l[e]);for(var n=0,i=s;n<i.length;n++){var r=i[n];t.addMatcher(r.matcher,r.reducer)}u&&t.addDefaultCase(u)}))}return o.forEach((function(t){var n,i,o=r[t],u=e+"/"+t;"reducer"in o?(n=o.reducer,i=o.prepare):n=o,s[t]=n,a[u]=n,c[t]=i?nn(u,i):nn(u)})),{name:e,reducer:function(t,e){return n||(n=u()),n(t,e)},actions:c,caseReducers:s,getInitialState:function(){return n||(n=u()),n.getInitialState()}}}var sn=["name","message","stack","code"],an=function(t,e){this.payload=t,this.meta=e},cn=function(t,e){this.payload=t,this.meta=e},un=function(t){if("object"==typeof t&&null!==t){for(var e={},n=0,i=sn;n<i.length;n++){var r=i[n];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function ln(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,n){var i=nn(t+"/fulfilled",(function(t,e,n,i){return{payload:t,meta:Ze(Je({},i||{}),{arg:n,requestId:e,requestStatus:"fulfilled"})}})),r=nn(t+"/pending",(function(t,e,n){return{payload:void 0,meta:Ze(Je({},n||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),o=nn(t+"/rejected",(function(t,e,i,r,o){return{payload:r,error:(n&&n.serializeError||un)(t||"Rejected"),meta:Ze(Je({},o||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,c,u){var l,f=(null==n?void 0:n.idGenerator)?n.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",n=t;n--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new s;function d(t){l=t,h.abort()}var v=function(){return s=this,v=null,p=function(){var s,v,p,b,m,x;return _e(this,(function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),b=null==(s=null==n?void 0:n.condition)?void 0:s.call(n,t,{getState:c,extra:u}),null===(w=b)||"object"!=typeof w||"function"!=typeof w.then?[3,2]:[4,b];case 1:b=y.sent(),y.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return m=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:l||"Aborted"})}))})),a(r(f,t,null==(v=null==n?void 0:n.getPendingMeta)?void 0:v.call(n,{requestId:f,arg:t},{getState:c,extra:u}))),[4,Promise.race([m,Promise.resolve(e(t,{dispatch:a,getState:c,extra:u,requestId:f,signal:h.signal,abort:d,rejectWithValue:function(t,e){return new an(t,e)},fulfillWithValue:function(t,e){return new cn(t,e)}})).then((function(e){if(e instanceof an)throw e;return e instanceof cn?i(e.payload,f,t,e.meta):i(e,f,t)}))])];case 3:return p=y.sent(),[3,5];case 4:return x=y.sent(),p=x instanceof an?o(null,f,t,x.payload,x.meta):o(x,f,t),[3,5];case 5:return n&&!n.dispatchConditionRejection&&o.match(p)&&p.meta.condition||a(p),[2,p]}var w}))},new Promise((function(t,e){var n=function(t){try{r(p.next(t))}catch(t){e(t)}},i=function(t){try{r(p.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(n,i)};r((p=p.apply(s,v)).next())}));var s,v,p}();return Object.assign(v,{abort:d,requestId:f,arg:t,unwrap:function(){return v.then(ln)}})}}),{pending:r,rejected:o,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var fn,hn,dn="listenerMiddleware";nn(dn+"/add"),nn(dn+"/removeAll"),nn(dn+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var n=r[t];return n?n.enumerable=e:r[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[fe];return be.get(e,t)},set:function(e){var n=this[fe];be.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][fe];if(!r.P)switch(r.i){case 5:i(r)&&Qt(r);break;case 4:n(r)&&Qt(r)}}}function n(t){for(var e=t.t,n=t.k,i=de(n),r=i.length-1;r>=0;r--){var o=i[r];if(o!==fe){var s=e[o];if(void 0===s&&!Mt(e,o))return!0;var a=n[o],c=a&&a[fe];if(c?c.t!==s:!$t(a,s))return!0}}var u=!!e[fe];return i.length!==de(e).length+(u?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){pe[t]||(pe[t]=e)}("ES5",{J:function(e,n){var i=Array.isArray(e),r=function(e,n){if(e){for(var i=Array(n.length),r=0;r<n.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var o=ve(n);delete o[fe];for(var s=de(o),a=0;a<s.length;a++){var c=s[a];o[c]=t(c,e||!!o[c].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(i,e),o={i:i?5:4,A:n?n.A:Bt(),P:!1,I:!1,R:{},l:n,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,fe,{value:o,writable:!0}),r},S:function(t,n,r){r?Et(n)&&n[fe].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[fe];if(n){var r=n.t,o=n.k,s=n.R,a=n.i;if(4===a)Nt(o,(function(e){e!==fe&&(void 0!==r[e]||Mt(r,e)?s[e]||t(o[e]):(s[e]=!0,Qt(n)))})),Nt(r,(function(t){void 0!==o[t]||Mt(o,t)||(s[t]=!1,Qt(n))}));else if(5===a){if(i(n)&&(Qt(n),s.length=!0),o.length<r.length)for(var c=o.length;c<r.length;c++)s[c]=!1;else for(var u=r.length;u<o.length;u++)s[u]=!0;for(var l=Math.min(o.length,r.length),f=0;f<l;f++)o.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(o[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?n(t):i(t)}})}();const vn=t=>{const e=null!=t?t:{};return(t,n)=>{var i;const r={hasChanged:(t,e)=>!c(t,e),attribute:!1,...e};o(r)(t,n);const s=t;s.reduxProperties=s.reduxProperties||new Map,s.reduxProperties.set(n,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[n],store:e.store})}},pn=Symbol("internalStoresUnsubscribers"),bn=Symbol("internalStores");class mn extends Ot{constructor(){super(...arguments),this[fn]=new Map,this[hn]=new Map}getUnnamedStore(){if(this[bn].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[bn].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[bn].get(t)}addStore(t,e){e=null!=e?e:t.name,this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[bn].delete(e)}setupStore(t,e){this[bn].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[bn].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const n=this.constructor.getPropertyOptions(e);if(!(null==n?void 0:n.attribute)||!this.hasAttribute("string"==typeof(null==n?void 0:n.attribute)?n.attribute:e)){const n=this.getStore(t.store);n&&(this[e]=t.selector(n.getState(),this))}}))}subscribeToStore(t,e){this[pn].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[pn]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[pn].has(t)&&this[pn].get(t)(),this[pn].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}fn=pn,hn=bn;class xn{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,n="string"==typeof t?void 0:t,i=window.ftReduxStores[e];if(function(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}(i))return i;if(null==n)return;const r=on(n),o=en({reducer:r.reducer});return window.ftReduxStores[n.name]=new xn(r,o)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,n)=>{const i=t[e];if(i)return(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}}})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var yn,wn;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(wn=null===(yn=window.safari)||void 0===yn?void 0:yn.pushNotification)||void 0===wn||wn.toString());const gn={colorError:vt.external(pt.colorError,"Design system"),fontFamily:vt.external(pt.contentFont,"Design system")},On=m`
|
|
103
93
|
.topic {
|
|
104
|
-
font-family: ${
|
|
94
|
+
font-family: ${gn.fontFamily};
|
|
105
95
|
overflow-x: auto;
|
|
106
96
|
}
|
|
107
97
|
|
|
@@ -110,23 +100,23 @@ var ut,lt;class ht extends R{constructor(){super(...arguments),this.renderOption
|
|
|
110
100
|
}
|
|
111
101
|
|
|
112
102
|
.topic-on-error ft-icon {
|
|
113
|
-
color: ${
|
|
103
|
+
color: ${gn.colorError}
|
|
114
104
|
}
|
|
115
105
|
|
|
116
106
|
.topic-loading {
|
|
117
107
|
height: 100vh;
|
|
118
108
|
}
|
|
119
|
-
`;var
|
|
109
|
+
`;var Sn=function(t,e,n,i){for(var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};class jn extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const En=Symbol("registerInterval");class Cn extends(function(t){var e;class n extends t{constructor(){super(...arguments),this[e]=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[En]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[En]):this.dispatchEvent(new jn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=En,Sn([s()],n.prototype,"stateManager",void 0),n}(mn)){}var Nn=function(t,e,n,i){for(var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};class Rn extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Mn=Symbol("registerInterval");class kn extends(function(t){var e;class n extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Mn]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Mn]):this.dispatchEvent(new Rn)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Mn,Nn([s()],n.prototype,"tocNode",void 0),Nn([s()],n.prototype,"disableContextInteractions",void 0),n}(Cn)){}
|
|
120
110
|
/**
|
|
121
111
|
* @license
|
|
122
112
|
* Copyright 2017 Google LLC
|
|
123
113
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
124
|
-
*/const
|
|
114
|
+
*/const $n=2;class An{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
125
115
|
/**
|
|
126
116
|
* @license
|
|
127
117
|
* Copyright 2017 Google LLC
|
|
128
118
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
129
|
-
*/class
|
|
119
|
+
*/class Un extends An{constructor(t){if(super(t),this.et=X,t.type!==$n)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this.ft=void 0,this.et=t;if(t===G)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Un.directiveName="unsafeHTML",Un.resultType=1;const Pn=(t=>(...e)=>({_$litDirective$:t,values:e}))(Un);var Fn,Ln;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(Fn||(Fn={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Ln||(Ln={})),new Map([...["abw"].map((t=>[t,Ln.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ln.AUDIO])),...["avi"].map((t=>[t,Ln.AVI])),...["chm","xhs"].map((t=>[t,Ln.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ln.CODE])),...["csv"].map((t=>[t,Ln.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ln.DITA])),...["epub"].map((t=>[t,Ln.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ln.EXCEL])),...["flac"].map((t=>[t,Ln.FLAC])),...["gif"].map((t=>[t,Ln.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ln.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ln.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ln.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ln.JPEG])),...["json"].map((t=>[t,Ln.JSON])),...["m4a","m4p"].map((t=>[t,Ln.M4A])),...["mov","qt"].map((t=>[t,Ln.MOV])),...["mp3"].map((t=>[t,Ln.MP3])),...["mp4","m4v"].map((t=>[t,Ln.MP4])),...["ogg","oga"].map((t=>[t,Ln.OGG])),...["pdf","ps"].map((t=>[t,Ln.PDF])),...["png"].map((t=>[t,Ln.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ln.POWERPOINT])),...["rar"].map((t=>[t,Ln.RAR])),...["stp"].map((t=>[t,Ln.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ln.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ln.VIDEO])),...["wav"].map((t=>[t,Ln.WAV])),...["wma"].map((t=>[t,Ln.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ln.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ln.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ln.YAML])),...["zip"].map((t=>[t,Ln.ZIP]))]);const In=vt.create("--ft-icon-font-size","SIZE","24px"),Tn=vt.extend("--ft-icon-fluid-topics-font-family",vt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),_n=vt.extend("--ft-icon-file-format-font-family",vt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Bn=vt.extend("--ft-icon-material-font-family",vt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Wn=vt.create("--ft-icon-vertical-align","UNKNOWN","unset"),Dn=m`
|
|
130
120
|
:host, i.ft-icon {
|
|
131
121
|
display: inline-flex;
|
|
132
122
|
align-items: center;
|
|
@@ -135,14 +125,14 @@ var ut,lt;class ht extends R{constructor(){super(...arguments),this.renderOption
|
|
|
135
125
|
}
|
|
136
126
|
|
|
137
127
|
:host {
|
|
138
|
-
width: ${
|
|
139
|
-
height: ${
|
|
128
|
+
width: ${In};
|
|
129
|
+
height: ${In};
|
|
140
130
|
}
|
|
141
131
|
|
|
142
132
|
i.ft-icon {
|
|
143
133
|
width: 100%;
|
|
144
134
|
height: 100%;
|
|
145
|
-
font-size: ${
|
|
135
|
+
font-size: ${In};
|
|
146
136
|
line-height: 1;
|
|
147
137
|
font-weight: normal;
|
|
148
138
|
text-transform: none;
|
|
@@ -153,61 +143,61 @@ var ut,lt;class ht extends R{constructor(){super(...arguments),this.renderOption
|
|
|
153
143
|
text-rendering: auto;
|
|
154
144
|
-webkit-font-smoothing: antialiased;
|
|
155
145
|
-moz-osx-font-smoothing: grayscale;
|
|
156
|
-
vertical-align: ${
|
|
146
|
+
vertical-align: ${Wn};
|
|
157
147
|
}
|
|
158
148
|
|
|
159
149
|
i.ft-icon.ft-icon--fluid-topics {
|
|
160
|
-
font-family: ${
|
|
150
|
+
font-family: ${Tn}, ft-icons, fticons, sans-serif;
|
|
161
151
|
|
|
162
152
|
/* Ugly fix because font is broken */
|
|
163
|
-
font-size: calc(0.
|
|
153
|
+
font-size: calc(0.75 * ${In});
|
|
164
154
|
position: relative;
|
|
165
|
-
top: -
|
|
155
|
+
top: -4%;
|
|
166
156
|
justify-content: center;
|
|
167
157
|
}
|
|
168
158
|
|
|
169
159
|
.ft-icon--file-format {
|
|
170
|
-
font-family: ${
|
|
160
|
+
font-family: ${_n}, ft-mime, sans-serif;
|
|
171
161
|
}
|
|
172
162
|
|
|
173
163
|
.ft-icon--material {
|
|
174
|
-
font-family: ${
|
|
164
|
+
font-family: ${Bn}, "Material Icons", sans-serif;
|
|
175
165
|
}
|
|
176
|
-
`;var
|
|
177
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
178
|
-
${
|
|
179
|
-
<slot ?hidden=${
|
|
166
|
+
`;var Kn;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Kn||(Kn={}));var zn=function(t,e,n,i){for(var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};class Hn extends Ot{constructor(){super(...arguments),this.resolvedIcon=X}render(){const t=this.variant&&Object.values(Kn).includes(this.variant)?this.variant:Kn.fluid_topics,e=t!==Kn.material||!!this.value;return Z`
|
|
167
|
+
<i class="ft-icon ${"ft-icon--"+t}">
|
|
168
|
+
${Pn(this.resolvedIcon)}
|
|
169
|
+
<slot ?hidden=${e}></slot>
|
|
180
170
|
</i>
|
|
181
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let
|
|
171
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let n=this.value||this.textContent;switch(this.variant){case Kn.file_format:this.resolvedIcon=null!==(t=Ln[n.replace("-","_").toUpperCase()])&&void 0!==t?t:n;break;case Kn.material:this.resolvedIcon=this.value||X;break;default:this.resolvedIcon=null!==(e=Fn[n.replace("-","_").toUpperCase()])&&void 0!==e?e:n}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Hn.elementDefinitions={},Hn.styles=Dn,zn([o()],Hn.prototype,"variant",void 0),zn([o()],Hn.prototype,"value",void 0),zn([s()],Hn.prototype,"resolvedIcon",void 0),zn([
|
|
182
172
|
/**
|
|
183
173
|
* @license
|
|
184
174
|
* Copyright 2017 Google LLC
|
|
185
175
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
186
176
|
*/
|
|
187
|
-
function(t,e){return(({finisher:t,descriptor:e})=>(i
|
|
188
|
-
`,
|
|
189
|
-
`,
|
|
177
|
+
function(t,e){return(({finisher:t,descriptor:e})=>(n,i)=>{var r;if(void 0===i){const i=null!==(r=n.originalKey)&&void 0!==r?r:n.key,o=null!=e?{kind:"method",placement:"prototype",key:i,descriptor:e(n.key)}:{...n,key:i};return null!=t&&(o.finisher=function(e){t(e,i)}),o}{const r=n.constructor;void 0!==e&&Object.defineProperty(n,i,e(i)),null==t||t(r,i)}})({descriptor:n=>{const i={get(){var e,n;return null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof n?Symbol():"__"+n;i.get=function(){var n,i;return void 0===this[e]&&(this[e]=null!==(i=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(t))&&void 0!==i?i:null),this[e]}}return i}})}("slot")],Hn.prototype,"slottedContent",void 0),u("ft-icon")(Hn);const qn=m`
|
|
178
|
+
`,Vn=m`
|
|
179
|
+
`,Jn=xn.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Zn{static build(t){const{baseUrl:e,apiIntegrationIdentifier:n}=Jn.getState(),i=null!=t?t:n;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?Zn.build(t):null!==(e=Zn.API)&&void 0!==e?e:Zn.API=Zn.build()}static await(t){return new Promise((e=>{let n=Zn.get(t);if(n)e(n);else{const i=Jn.subscribe((()=>{n=Zn.get(t),n&&(i(),e(n))}))}}))}}var Gn;const Xn=Symbol("clearAfterUnitTest");class Qn{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[Gn]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=Jn.getState().uiLocale,Jn.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Jn.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var n;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},...e};c(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...n){var i,r,o;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new St(null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},s).resolve(e,...n)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var n;return t=t.toLowerCase(),this.listeners[t]=null!==(n=this.listeners[t])&&void 0!==n?n:new Set,this.listeners[t].add(e),()=>{var n;return null===(n=this.listeners[t])||void 0===n?void 0:n.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Gn=Xn,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Qn((async(t,e)=>(await Zn.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Qn((async(t,e)=>(await Zn.await()).getCustomMessageContext(t,e))));const Yn=window.FluidTopicsI18nService,ti=window.FluidTopicsCustomI18nService;var ei=function(t,e,n,i){for(var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};class ni extends Ot{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Zn.get(),this.cache=new n,this.cleanSessionDebouncer=new i}render(){return Z`
|
|
190
180
|
<slot></slot>
|
|
191
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&
|
|
181
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&Jn.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Jn.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Jn.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Jn.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Jn.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Jn.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Jn.actions.setSession(this.session),t.has("availableUiLocales")&&Jn.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Yn.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}ni.elementDefinitions={},ni.styles=Vn,ei([o()],ni.prototype,"baseUrl",void 0),ei([o()],ni.prototype,"apiIntegrationIdentifier",void 0),ei([o()],ni.prototype,"uiLocale",void 0),ei([l([])],ni.prototype,"availableUiLocales",void 0),ei([o({type:Boolean})],ni.prototype,"editorMode",void 0),ei([o({type:Boolean})],ni.prototype,"noCustom",void 0),ei([o({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ni.prototype,"noCustomComponent",void 0),ei([o({type:Boolean})],ni.prototype,"withManualResources",void 0),ei([l([])],ni.prototype,"messageContexts",void 0),ei([l(void 0)],ni.prototype,"session",void 0),ei([o({type:Object})],ni.prototype,"apiProvider",void 0),u("ft-app-context")(ni);var ii=function(t,e,n,i){for(var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};const ri=Symbol("i18nProperties"),oi=Symbol("i18nUnsubs");function si(t){var e;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?ti:Yn}i18n(t,e,...n){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...n);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[ri])||void 0===e||e.forEach(((e,n)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[n]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[ri])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ri]&&new Set([...this[ri].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[oi].has(t)||this[oi].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[oi].forEach((t=>t())),this[oi].clear()}}return e=oi,ii([o({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}class ai extends(si(Ot)){}class ci extends(si(mn)){}var ui=function(t,e,n,i){for(var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};class li extends ci{constructor(){super(),this.editorMode=!1,this.addStore(Jn)}render(){return this.key&&this.context?Z`
|
|
192
182
|
<span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
|
|
193
|
-
`:this.editorMode?"Select a context and a label key.":
|
|
183
|
+
`:this.editorMode?"Select a context and a label key.":X}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}li.elementDefinitions={},li.styles=qn,ui([vn()],li.prototype,"editorMode",void 0),ui([o()],li.prototype,"context",void 0),ui([o()],li.prototype,"key",void 0),ui([l([])],li.prototype,"args",void 0),ui([o()],li.prototype,"defaultMessage",void 0);class fi{static build(t){return new fi(t)}static fromGwt(t){return new fi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const n=e;return t=>({context:this.name,key:n,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Yn.resolveMessage(this.name,e,...t)})}}u("ft-i18n")(li);const hi=fi.build("designedReaderTopicContent");var di=function(t,e,n,i){for(var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};class vi extends kn{render(){var t,e;return this.map&&(this.error||this.content)?Z`
|
|
194
184
|
<style>
|
|
195
185
|
@import "${null===(t=this.map)||void 0===t?void 0:t.contentStyles.topicStylesheetUrl}";
|
|
196
186
|
</style>
|
|
197
187
|
<section class="topic" lang="${null===(e=this.map)||void 0===e?void 0:e.lang}">
|
|
198
188
|
${this.renderTopicContent()}
|
|
199
189
|
</section>
|
|
200
|
-
`:
|
|
190
|
+
`:Z`
|
|
201
191
|
<section class="topic-loading"></section>
|
|
202
|
-
`}updated(t){super.updated(t),(t.has("map")||t.has("tocNode"))&&this.updateContent()}updateContent(){var t;this.error=void 0,this.content=void 0,this.map&&this.tocNode&&(null===(t=this.service)||void 0===t||t.getTopicContent(this.tocNode.contentId).then((t=>this.content=t||'<div class="empty-topic"></div>')).catch((t=>this.error=t)))}contentAvailableCallback(t){var e,i,
|
|
192
|
+
`}updated(t){super.updated(t),(t.has("map")||t.has("tocNode"))&&this.updateContent()}updateContent(){var t;this.error=void 0,this.content=void 0,this.map&&this.tocNode&&(null===(t=this.service)||void 0===t||t.getTopicContent(this.tocNode.contentId).then((t=>this.content=t||'<div class="empty-topic"></div>')).catch((t=>this.error=t)))}contentAvailableCallback(t){var e,n,i,r,o,s;if(super.contentAvailableCallback(t),!this.disableContextInteractions&&(null===(e=this.scrollTarget)||void 0===e?void 0:e.section)&&(null===(n=this.tocNode)||void 0===n?void 0:n.tocId)&&(null===(i=this.tocNode)||void 0===i?void 0:i.tocId)===this.scrollTarget.tocId&&this.content){(null!==(o=null===(r=this.shadowRoot)||void 0===r?void 0:r.querySelector(`[id="${this.scrollTarget.section}"], [name="${this.scrollTarget.section}"]`))&&void 0!==o?o:this).scrollIntoView({block:"start"}),null===(s=this.stateManager)||void 0===s||s.scrollDone()}}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}renderTopicContent(){var t,e,n,i;if(this.error)return Z`
|
|
203
193
|
<div class="topic-on-error">
|
|
204
194
|
<ft-icon>WARNING</ft-icon>
|
|
205
195
|
<div>
|
|
206
|
-
${this.is404Error()?
|
|
196
|
+
${this.is404Error()?hi.messages.topicMissingAdvice():hi.messages.somethingWentWrong()}
|
|
207
197
|
</div>
|
|
208
198
|
</div>
|
|
209
|
-
`;const r=null!==(e=null===(t=this.map)||void 0===t?void 0:t.contentStyles.customCssClasses.join(" "))&&void 0!==e?e:"";return
|
|
210
|
-
<div class="depth-${null===(
|
|
211
|
-
${
|
|
199
|
+
`;const r=null!==(e=null===(t=this.map)||void 0===t?void 0:t.contentStyles.customCssClasses.join(" "))&&void 0!==e?e:"";return Z`
|
|
200
|
+
<div class="depth-${null===(n=this.tocNode)||void 0===n?void 0:n.depth} content-locale-${null===(i=this.map)||void 0===i?void 0:i.lang} ${r}">
|
|
201
|
+
${Pn(`${this.content}`)}
|
|
212
202
|
</div>
|
|
213
|
-
`}is404Error(){return 404===this.error.status}}
|
|
203
|
+
`}is404Error(){return 404===this.error.status}}vi.styles=On,di([vn()],vi.prototype,"map",void 0),di([vn()],vi.prototype,"scrollTarget",void 0),di([s()],vi.prototype,"content",void 0),di([s()],vi.prototype,"error",void 0),u("ft-reader-topic-content")(vi),t.FtReaderTopicContent=vi,t.FtReaderTopicContentCssVariables=gn,t.styles=On}({});
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-topic-content",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.0",
|
|
4
4
|
"description": "Content of a topic in integrated reader.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-chip": "0.
|
|
23
|
-
"@fluid-topics/ft-i18n": "0.
|
|
24
|
-
"@fluid-topics/ft-reader-context": "0.
|
|
25
|
-
"@fluid-topics/ft-reader-topic-context": "0.
|
|
26
|
-
"@fluid-topics/ft-tooltip": "0.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "0.
|
|
22
|
+
"@fluid-topics/ft-chip": "1.0.0-alpha.0",
|
|
23
|
+
"@fluid-topics/ft-i18n": "1.0.0-alpha.0",
|
|
24
|
+
"@fluid-topics/ft-reader-context": "1.0.0-alpha.0",
|
|
25
|
+
"@fluid-topics/ft-reader-topic-context": "1.0.0-alpha.0",
|
|
26
|
+
"@fluid-topics/ft-tooltip": "1.0.0-alpha.0",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.0.0-alpha.0",
|
|
28
28
|
"@fluid-topics/public-api": "1.0.33",
|
|
29
|
-
"lit": "2.2
|
|
29
|
+
"lit": "2.7.2"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "e20baae36b79d721b948090d552affaf92c4f12f"
|
|
32
32
|
}
|