@fluid-topics/ft-reader-topic-content 1.2.2 → 1.2.3
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var bn=Object.create;var
|
|
1
|
+
"use strict";(()=>{var bn=Object.create;var Zt=Object.defineProperty;var xn=Object.getOwnPropertyDescriptor;var Sn=Object.getOwnPropertyNames;var wn=Object.getPrototypeOf,En=Object.prototype.hasOwnProperty;var Re=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var On=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Sn(t))!En.call(e,o)&&o!==r&&Zt(e,o,{get:()=>t[o],enumerable:!(n=xn(t,o))||n.enumerable});return e};var y=(e,t,r)=>(r=e!=null?bn(wn(e)):{},On(t||!e||!e.__esModule?Zt(r,"default",{value:e,enumerable:!0}):r,e));var C=Re((Eo,Qt)=>{Qt.exports=ftGlobals.wcUtils});var U=Re((Oo,Ft)=>{Ft.exports=ftGlobals.lit});var M=Re((Co,nr)=>{nr.exports=ftGlobals.litDecorators});var pt=Re((Mo,ur)=>{ur.exports=ftGlobals.litUnsafeHTML});var gn=y(C());var le=y(U());var tr=y(U()),de=y(C()),er={colorError:de.FtCssVariableFactory.external(de.designSystemVariables.colorError,"Design system"),fontFamily:de.FtCssVariableFactory.external(de.designSystemVariables.contentFont,"Design system")},rr=tr.css`
|
|
2
2
|
.topic {
|
|
3
|
-
font-family: ${
|
|
3
|
+
font-family: ${er.fontFamily};
|
|
4
4
|
overflow-x: auto;
|
|
5
5
|
}
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.topic-on-error ft-icon {
|
|
13
|
-
color: ${
|
|
13
|
+
color: ${er.colorError}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.topic-loading {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
white-space: pre-wrap;
|
|
22
22
|
word-break: break-word;
|
|
23
23
|
}
|
|
24
|
-
`;var lt=y(P());var or=y(C()),ir=y(P());var nr;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(nr||(nr={}));var On=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},ut=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},st=Symbol("registerInterval");function An(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(o){this.clearStateManager(),this.stateManager=o,this.addStore(o.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var o;return(o=this.stateManager)===null||o===void 0?void 0:o.service}connectedCallback(){super.connectedCallback(),this[st]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[st]):this.dispatchEvent(new ut)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=st,On([(0,ir.state)()],r.prototype,"stateManager",void 0),r}var Pe=class extends An(or.FtLitElementRedux){};var ar=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},ft=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ct=Symbol("registerInterval");function Cn(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[ct]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ct]):this.dispatchEvent(new ft)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=ct,ar([(0,lt.state)()],r.prototype,"tocNode",void 0),ar([(0,lt.state)()],r.prototype,"disableContextInteractions",void 0),r}var Me=class extends Cn(Pe){};var mn=y(dt()),ne=y(C()),oe=y(P());var dr=y(C());var Se=y(U()),ie=y(P()),lr=y(C()),fr=y(dt());var De;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.EYE="",e.SHARE="󨃱"})(De||(De={}));var d;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(d||(d={}));var Ro=new Map([...["abw"].map(e=>[e,d.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(e=>[e,d.AUDIO]),...["avi"].map(e=>[e,d.AVI]),...["chm","xhs"].map(e=>[e,d.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(e=>[e,d.CODE]),...["csv"].map(e=>[e,d.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,d.DITA]),...["epub"].map(e=>[e,d.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,d.EXCEL]),...["flac"].map(e=>[e,d.FLAC]),...["gif"].map(e=>[e,d.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,d.GZIP]),...["html","htm","xhtml"].map(e=>[e,d.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,d.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,d.JPEG]),...["json"].map(e=>[e,d.JSON]),...["m4a","m4p"].map(e=>[e,d.M4A]),...["mov","qt"].map(e=>[e,d.MOV]),...["mp3"].map(e=>[e,d.MP3]),...["mp4","m4v"].map(e=>[e,d.MP4]),...["ogg","oga"].map(e=>[e,d.OGG]),...["pdf","ps"].map(e=>[e,d.PDF]),...["png"].map(e=>[e,d.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,d.POWERPOINT]),...["rar"].map(e=>[e,d.RAR]),...["stp"].map(e=>[e,d.STP]),...["txt","rtf","md","mdown"].map(e=>[e,d.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(e=>[e,d.VIDEO]),...["wav"].map(e=>[e,d.WAV]),...["wma"].map(e=>[e,d.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,d.WORD]),...["xml","xsl","rdf"].map(e=>[e,d.XML]),...["yaml","yml","x-yaml"].map(e=>[e,d.YAML]),...["zip"].map(e=>[e,d.ZIP])]);var Po={[d.ABW]:"#91ABC6",[d.AUDIO]:"#1795E3",[d.AVI]:"#E63324",[d.CHM]:"#71C3EB",[d.CODE]:"#71C3EB",[d.CSV]:"#1F7345",[d.DITA]:"#71C3EB",[d.EPUB]:"#85B926",[d.EXCEL]:"#1F7345",[d.FLAC]:"#1795E3",[d.GIF]:"#59B031",[d.GZIP]:"#F8AB36",[d.HTML]:"#71C3EB",[d.IMAGE]:"#59B031",[d.JPEG]:"#59B031",[d.JSON]:"#71C3EB",[d.M4A]:"#1795E3",[d.MOV]:"#E63324",[d.MP3]:"#1795E3",[d.MP4]:"#E63324",[d.OGG]:"#1795E3",[d.PDF]:"#E44948",[d.PNG]:"#59B031",[d.POWERPOINT]:"#B54A2B",[d.RAR]:"#F8AB36",[d.STP]:"#3764B1",[d.TEXT]:"#3162AB",[d.UNKNOWN]:"#999999",[d.VIDEO]:"#E63324",[d.WAV]:"#1795E3",[d.WMA]:"#1795E3",[d.WORD]:"#3162AB",[d.XML]:"#71C3EB",[d.YAML]:"#71C3EB",[d.ZIP]:"#F8AB36"};var ur=y(U()),K=y(C()),G={size:K.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:K.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",K.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:K.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",K.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:K.FtCssVariableFactory.extend("--ft-icon-material-font-family","",K.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:K.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},cr=ur.css`
|
|
24
|
+
`;var ft=y(M());var ir=y(C()),ar=y(M());var or;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(or||(or={}));var An=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},ct=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},ut=Symbol("registerInterval");function Cn(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(o){this.clearStateManager(),this.stateManager=o,this.addStore(o.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var o;return(o=this.stateManager)===null||o===void 0?void 0:o.service}connectedCallback(){super.connectedCallback(),this[ut]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[ut]):this.dispatchEvent(new ct)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=ut,An([(0,ar.state)()],r.prototype,"stateManager",void 0),r}var Pe=class extends Cn(ir.FtLitElementRedux){};var sr=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},dt=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},lt=Symbol("registerInterval");function _n(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[lt]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[lt]):this.dispatchEvent(new dt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=lt,sr([(0,ft.state)()],r.prototype,"tocNode",void 0),sr([(0,ft.state)()],r.prototype,"disableContextInteractions",void 0),r}var Me=class extends _n(Pe){};var yn=y(pt()),ne=y(C()),oe=y(M());var pr=y(C());var Se=y(U()),ie=y(M()),fr=y(C()),dr=y(pt());var De;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.EYE="",e.SHARE="󨃱"})(De||(De={}));var d;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(d||(d={}));var Do=new Map([...["abw"].map(e=>[e,d.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(e=>[e,d.AUDIO]),...["avi"].map(e=>[e,d.AVI]),...["chm","xhs"].map(e=>[e,d.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(e=>[e,d.CODE]),...["csv"].map(e=>[e,d.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,d.DITA]),...["epub"].map(e=>[e,d.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,d.EXCEL]),...["flac"].map(e=>[e,d.FLAC]),...["gif"].map(e=>[e,d.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,d.GZIP]),...["html","htm","xhtml"].map(e=>[e,d.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,d.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,d.JPEG]),...["json"].map(e=>[e,d.JSON]),...["m4a","m4p"].map(e=>[e,d.M4A]),...["mov","qt"].map(e=>[e,d.MOV]),...["mp3"].map(e=>[e,d.MP3]),...["mp4","m4v"].map(e=>[e,d.MP4]),...["ogg","oga"].map(e=>[e,d.OGG]),...["pdf","ps"].map(e=>[e,d.PDF]),...["png"].map(e=>[e,d.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,d.POWERPOINT]),...["rar"].map(e=>[e,d.RAR]),...["stp"].map(e=>[e,d.STP]),...["txt","rtf","md","mdown"].map(e=>[e,d.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(e=>[e,d.VIDEO]),...["wav"].map(e=>[e,d.WAV]),...["wma"].map(e=>[e,d.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,d.WORD]),...["xml","xsl","rdf"].map(e=>[e,d.XML]),...["yaml","yml","x-yaml"].map(e=>[e,d.YAML]),...["zip"].map(e=>[e,d.ZIP])]);var Lo={[d.ABW]:"#91ABC6",[d.AUDIO]:"#1795E3",[d.AVI]:"#E63324",[d.CHM]:"#71C3EB",[d.CODE]:"#71C3EB",[d.CSV]:"#1F7345",[d.DITA]:"#71C3EB",[d.EPUB]:"#85B926",[d.EXCEL]:"#1F7345",[d.FLAC]:"#1795E3",[d.GIF]:"#59B031",[d.GZIP]:"#F8AB36",[d.HTML]:"#71C3EB",[d.IMAGE]:"#59B031",[d.JPEG]:"#59B031",[d.JSON]:"#71C3EB",[d.M4A]:"#1795E3",[d.MOV]:"#E63324",[d.MP3]:"#1795E3",[d.MP4]:"#E63324",[d.OGG]:"#1795E3",[d.PDF]:"#E44948",[d.PNG]:"#59B031",[d.POWERPOINT]:"#B54A2B",[d.RAR]:"#F8AB36",[d.STP]:"#3764B1",[d.TEXT]:"#3162AB",[d.UNKNOWN]:"#999999",[d.VIDEO]:"#E63324",[d.WAV]:"#1795E3",[d.WMA]:"#1795E3",[d.WORD]:"#3162AB",[d.XML]:"#71C3EB",[d.YAML]:"#71C3EB",[d.ZIP]:"#F8AB36"};var cr=y(U()),K=y(C()),G={size:K.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:K.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",K.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:K.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",K.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:K.FtCssVariableFactory.extend("--ft-icon-material-font-family","",K.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:K.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},lr=cr.css`
|
|
25
25
|
:host, i.ft-icon {
|
|
26
26
|
display: inline-flex;
|
|
27
27
|
align-items: center;
|
|
@@ -69,20 +69,20 @@
|
|
|
69
69
|
.ft-icon--material {
|
|
70
70
|
font-family: ${G.materialFontFamily}, "Material Icons", sans-serif;
|
|
71
71
|
}
|
|
72
|
-
`;var q;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(q||(q={}));var Le=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},B=class extends
|
|
72
|
+
`;var q;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(q||(q={}));var Le=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},B=class extends fr.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Se.nothing}render(){let t=this.variant&&Object.values(q).includes(this.variant)?this.variant:q.fluid_topics,r=t!==q.material||!!this.value;return Se.html`
|
|
73
73
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
74
|
-
${(0,
|
|
74
|
+
${(0,dr.unsafeHTML)(this.resolvedIcon)}
|
|
75
75
|
<slot ?hidden=${r}></slot>
|
|
76
76
|
</i>
|
|
77
|
-
`}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.textContent;switch(this.variant){case q.file_format:this.resolvedIcon=(t=d[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case q.material:this.resolvedIcon=this.value||Se.nothing;break;default:this.resolvedIcon=(r=De[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};B.elementDefinitions={};B.styles=
|
|
78
|
-
`;var
|
|
79
|
-
`;var je=y(C()),
|
|
77
|
+
`}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.textContent;switch(this.variant){case q.file_format:this.resolvedIcon=(t=d[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case q.material:this.resolvedIcon=this.value||Se.nothing;break;default:this.resolvedIcon=(r=De[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};B.elementDefinitions={};B.styles=lr;Le([(0,ie.property)()],B.prototype,"variant",void 0);Le([(0,ie.property)()],B.prototype,"value",void 0);Le([(0,ie.state)()],B.prototype,"resolvedIcon",void 0);Le([(0,ie.query)("slot")],B.prototype,"slottedContent",void 0);(0,pr.customElement)("ft-icon")(B);var mn=y(C());var ot=y(U()),it=y(M()),at=y(C());var hr=y(U());var vr=hr.css`
|
|
78
|
+
`;var nt=y(C());var dn=y(C());var xr=y(U()),N=y(M()),j=y(C());var mr=y(U());var yr=mr.css`
|
|
79
|
+
`;var je=y(C()),Tn="ft-app-info",ht=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},Nn={session:(e,t)=>{(0,je.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>g.dispatchEvent(new ht(t.payload)),0))}},g=je.FtReduxStore.get({name:Tn,reducers:Nn,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var X=y(C());var vt=y(C());var ae=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=g.getState(),o=t??n;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let o=g.subscribe(()=>{n=e.get(t),n&&(o(),r(n))})}})}};var $=class{constructor(t=!0,r){var n;this.overrideApi=r;let o=this.constructor;o.commonCache=(n=o.commonCache)!==null&&n!==void 0?n:new vt.CacheRegistry,this.cache=t?o.commonCache:new vt.CacheRegistry}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ae.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ae.await()}clearCache(){this.cache.clearAll()}};var gr,Rn=Symbol("clearAfterUnitTest"),ke=class extends ${constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[gr]=()=>{this.defaultMessages={},this.cache=new X.CacheRegistry,this.listeners={}},this.currentUiLocale=g.getState().uiLocale,g.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=g.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),Object.keys(r).length>0){let o={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,X.deepEqual)(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var o;let i=t.toLowerCase(),a=this.resolveContext(i);return new X.ParametrizedLabelResolver((o=this.defaultMessages[i])!==null&&o!==void 0?o:{},a).resolve(r,...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(r){console.error(r)}}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var o;return(o=this.listeners[t])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>(0,X.delay)(0).then(()=>r()).catch(()=>null)))}};gr=Rn;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ke{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ke{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var se=window.FluidTopicsI18nService,br=window.FluidTopicsCustomI18nService;var _=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},A=class extends j.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>ae.get(),this.messageContexts=[],this.cache=new j.CacheRegistry,this.cleanSessionDebouncer=new j.Debouncer}render(){return xr.html`
|
|
80
80
|
<slot></slot>
|
|
81
|
-
`}update(t){super.update(t),t.has("baseUrl")&&(b.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&b.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&b.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&b.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&b.actions.noCustom(this.noCustom),t.has("editorMode")&&b.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&b.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&b.actions.session(this.session),t.has("availableUiLocales")&&b.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>se.addContext(r)),t.has("openExternalDocumentInNewTab")&&b.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&b.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&b.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};A.elementDefinitions={};A.styles=mr;N([(0,M.property)()],A.prototype,"baseUrl",void 0);N([(0,M.property)()],A.prototype,"apiIntegrationIdentifier",void 0);N([(0,M.property)()],A.prototype,"uiLocale",void 0);N([(0,j.jsonProperty)(null)],A.prototype,"availableUiLocales",void 0);N([(0,j.jsonProperty)(null)],A.prototype,"metadataConfiguration",void 0);N([(0,M.property)({type:Boolean})],A.prototype,"editorMode",void 0);N([(0,M.property)({type:Boolean})],A.prototype,"noCustom",void 0);N([(0,M.property)({type:Boolean})],A.prototype,"openExternalDocumentInNewTab",void 0);N([(0,M.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],A.prototype,"noCustomComponent",void 0);N([(0,M.property)({type:Boolean})],A.prototype,"withManualResources",void 0);N([(0,M.property)({type:Boolean})],A.prototype,"navigatorOnline",void 0);N([(0,M.property)({type:Boolean})],A.prototype,"forcedOffline",void 0);N([(0,M.property)({type:Object})],A.prototype,"apiProvider",void 0);N([(0,j.jsonProperty)([])],A.prototype,"messageContexts",void 0);N([(0,j.jsonProperty)(void 0)],A.prototype,"session",void 0);var mo=y(P());function Rn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Ie(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Ie(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){var i=o[n];if(!Ie(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ie(e,t){try{return Rn(e,t)}catch{return!1}}function vt(e,t){return!Ie(e,t)}var Pn=y(P(),1);var Ue=class{constructor(){this.queue=[]}add(t,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var we=y(P(),1);var xr=y(P(),1);function Sr(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,xr.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:vt,...t??{}})}var Be=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let o=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let a of n)try{await a()}catch(s){o(s);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Er=y(U(),1);var We=window,Mn=We.ShadowRoot&&(We.ShadyCSS===void 0||We.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vi=Symbol();var wr=(e,t)=>{Mn?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=We.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})};var Ve=class extends Er.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([o,i])=>t.registry.define(o,i)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return wr(n,t.elementStyles),n}};var Ge=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},_r,Or=Symbol("constructorPrototype"),Ar=Symbol("constructorName"),Nr=Symbol("exportpartsDebouncer"),Cr=Symbol("dynamicDependenciesLoaded"),Y=class extends Ve{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[_r]=new Be(5),this[Ar]=this.constructor.name,this[Or]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ar]&&Object.setPrototypeOf(this,this[Or])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[Cr]||(t[Cr]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var r,n,o;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Nr].run(()=>{var o,i;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,o,i,a,s;let c=f=>f!=null&&f.trim().length>0,u=t.filter(c).map(f=>f.trim());if(u.length===0){this.removeAttribute("exportparts");return}let l=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(i=(o=f.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&i!==void 0?i:[],p=(s=(a=f.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(v=>v.split(":")[1]))!==null&&s!==void 0?s:[];new Array(...m,...p).filter(c).map(v=>v.trim()).forEach(v=>l.add(v))}if(l.size===0){this.removeAttribute("exportparts");return}let h=[...l.values()].flatMap(f=>u.map(m=>`${f}:${m}--${f}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};_r=Nr;Ge([(0,we.property)()],Y.prototype,"exportpartsPrefix",void 0);Ge([Sr([])],Y.prototype,"exportpartsPrefixes",void 0);Ge([(0,we.property)()],Y.prototype,"customStylesheet",void 0);Ge([(0,we.state)()],Y.prototype,"useAdoptedStyleSheets",void 0);function Ee(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Tr,Rr,Pr,Ke=Symbol("internalReduxEventsUnsubscribers"),J=Symbol("internalStoresUnsubscribers"),ue=Symbol("internalStores"),Oe=class extends Y{constructor(){super(...arguments),this[Tr]=new Map,this[Rr]=new Map,this[Pr]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[ue].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ue].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[ue].get(t)}addStore(t,r){var n;r=(n=r??(Ee(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,t)}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[ue].delete(r)}setupStore(t,r){this[ue].set(t,r),this.subscribeToStore(t,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ue].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let o=this.getStore(t.store);o&&(t.store?this[J].has(t.store):this[J].size>0)&&(this[r]=t.selector(o.getState(),this))}})}subscribeToStore(t,r){var n;this[J].set(t,r.subscribe(()=>this.updateFromStores())),Ee(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((o,i)=>{if(typeof this[i]=="function"&&(!o.store||r.name===o.store)){let a=s=>this[i](s);r.eventBus.addEventListener(o.eventName,a),this[Ke].push(()=>r.eventBus.removeEventListener(o.eventName,a))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[J].forEach((t,r)=>this.unsubscribeFromStore(r)),this[Ke].forEach(t=>t()),this[Ke]=[]}unsubscribeFromStore(t){this[J].has(t)&&this[J].get(t)(),this[J].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Tr=J,Rr=ue,Pr=Ke;Oe.reduxProperties=new Map;Oe.reduxReactiveProperties=new Set;Oe.reduxEventListeners=new Map;function D(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var o,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function H(e){return!!e&&!!e[E]}function k(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Wn}(e)||Array.isArray(e)||!!e[Ur]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ur])||Ot(e)||At(e))}function ce(e,t,r){r===void 0&&(r=!1),ve(e)===0?(r?Object.keys:he)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function ve(e){var t=e[E];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ot(e)?2:At(e)?3:0}function pe(e,t){return ve(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Dn(e,t){return ve(e)===2?e.get(t):e[t]}function Br(e,t,r){var n=ve(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Wr(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ot(e){return Un&&e instanceof Map}function At(e){return Bn&&e instanceof Set}function Z(e){return e.o||e.t}function Ct(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Kr(e);delete t[E];for(var r=he(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function _t(e,t){return t===void 0&&(t=!1),Nt(e)||H(e)||!k(e)||(ve(e)>1&&(e.set=e.add=e.clear=e.delete=Ln),Object.freeze(e),t&&ce(e,function(r,n){return _t(n,!0)},!0)),e}function Ln(){D(2)}function Nt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function W(e){var t=Et[e];return t||D(18,e),t}function jn(e,t){Et[e]||(Et[e]=t)}function xt(){return Ce}function mt(e,t){t&&(W("Patches"),e.u=[],e.s=[],e.v=t)}function He(e){St(e),e.p.forEach(kn),e.p=null}function St(e){e===Ce&&(Ce=e.l)}function Mr(e){return Ce={p:[],l:Ce,h:e,m:!0,_:0}}function kn(e){var t=e[E];t.i===0||t.i===1?t.j():t.g=!0}function yt(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||W("ES5").S(t,e,n),n?(r[E].P&&(He(t),D(4)),k(e)&&(e=ze(t,e),t.l||qe(t,e)),t.u&&W("Patches").M(r[E].t,e,t.u,t.s)):e=ze(t,r,[]),He(t),t.u&&t.v(t.u,t.s),e!==Gr?e:void 0}function ze(e,t,r){if(Nt(t))return t;var n=t[E];if(!n)return ce(t,function(s,c){return Dr(e,n,t,s,c,r)},!0),t;if(n.A!==e)return t;if(!n.P)return qe(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Ct(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),ce(i,function(s,c){return Dr(e,n,o,s,c,r,a)}),qe(e,o,!1),r&&e.u&&W("Patches").N(n,r,e.u,e.s)}return n.o}function Dr(e,t,r,n,o,i,a){if(H(o)){var s=ze(e,o,i&&t&&t.i!==3&&!pe(t.R,n)?i.concat(n):void 0);if(Br(r,n,s),!H(s))return;e.m=!1}else a&&r.add(o);if(k(o)&&!Nt(o)){if(!e.h.D&&e._<1)return;ze(e,o),t&&t.A.l||qe(e,o)}}function qe(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&_t(t,r)}function bt(e,t){var r=e[E];return(r?Z(r):e)[t]}function Lr(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Q(e){e.P||(e.P=!0,e.l&&Q(e.l))}function gt(e){e.o||(e.o=Ct(e.t))}function wt(e,t,r){var n=Ot(t)?W("MapSet").F(t,r):At(t)?W("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:xt(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=s,u=_e;a&&(c=[s],u=Ae);var l=Proxy.revocable(c,u),h=l.revoke,f=l.proxy;return s.k=f,s.j=h,f}(t,r):W("ES5").J(t,r);return(r?r.A:xt()).p.push(n),n}function In(e){return H(e)||D(22,e),function t(r){if(!k(r))return r;var n,o=r[E],i=ve(r);if(o){if(!o.P&&(o.i<4||!W("ES5").K(o)))return o.t;o.I=!0,n=jr(r,i),o.I=!1}else n=jr(r,i);return ce(n,function(a,s){o&&Dn(o.t,a)===s||Br(n,a,t(s))}),i===3?new Set(n):n}(e)}function jr(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ct(e)}function Vr(){function e(a,s){var c=i[a];return c?c.enumerable=s:i[a]=c={configurable:!0,enumerable:s,get:function(){var u=this[E];return _e.get(u,a)},set:function(u){var l=this[E];_e.set(l,a,u)}},c}function t(a){for(var s=a.length-1;s>=0;s--){var c=a[s][E];if(!c.P)switch(c.i){case 5:n(c)&&Q(c);break;case 4:r(c)&&Q(c)}}}function r(a){for(var s=a.t,c=a.k,u=he(c),l=u.length-1;l>=0;l--){var h=u[l];if(h!==E){var f=s[h];if(f===void 0&&!pe(s,h))return!0;var m=c[h],p=m&&m[E];if(p?p.t!==f:!Wr(m,f))return!0}}var v=!!s[E];return u.length!==he(s).length+(v?0:1)}function n(a){var s=a.k;if(s.length!==a.t.length)return!0;var c=Object.getOwnPropertyDescriptor(s,s.length-1);if(c&&!c.get)return!0;for(var u=0;u<s.length;u++)if(!s.hasOwnProperty(u))return!0;return!1}function o(a){a.g&&D(3,JSON.stringify(Z(a)))}var i={};jn("ES5",{J:function(a,s){var c=Array.isArray(a),u=function(h,f){if(h){for(var m=Array(f.length),p=0;p<f.length;p++)Object.defineProperty(m,""+p,e(p,!0));return m}var v=Kr(f);delete v[E];for(var S=he(v),g=0;g<S.length;g++){var x=S[g];v[x]=e(x,h||!!v[x].enumerable)}return Object.create(Object.getPrototypeOf(f),v)}(c,a),l={i:c?5:4,A:s?s.A:xt(),P:!1,I:!1,R:{},l:s,t:a,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,E,{value:l,writable:!0}),u},S:function(a,s,c){c?H(s)&&s[E].A===a&&t(a.p):(a.u&&function u(l){if(l&&typeof l=="object"){var h=l[E];if(h){var f=h.t,m=h.k,p=h.R,v=h.i;if(v===4)ce(m,function(w){w!==E&&(f[w]!==void 0||pe(f,w)?p[w]||u(m[w]):(p[w]=!0,Q(h)))}),ce(f,function(w){m[w]!==void 0||pe(m,w)||(p[w]=!1,Q(h))});else if(v===5){if(n(h)&&(Q(h),p.length=!0),m.length<f.length)for(var S=m.length;S<f.length;S++)p[S]=!1;else for(var g=f.length;g<m.length;g++)p[g]=!0;for(var x=Math.min(m.length,f.length),O=0;O<x;O++)m.hasOwnProperty(O)||(p[O]=!0),p[O]===void 0&&u(m[O])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var kr,Ce,Tt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Un=typeof Map<"u",Bn=typeof Set<"u",Ir=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Gr=Tt?Symbol.for("immer-nothing"):((kr={})["immer-nothing"]=!0,kr),Ur=Tt?Symbol.for("immer-draftable"):"__$immer_draftable",E=Tt?Symbol.for("immer-state"):"__$immer_state";var Wn=""+Object.prototype.constructor,he=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Kr=Object.getOwnPropertyDescriptors||function(e){var t={};return he(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Et={},_e={get:function(e,t){if(t===E)return e;var r=Z(e);if(!pe(r,t))return function(o,i,a){var s,c=Lr(i,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,r,t);var n=r[t];return e.I||!k(n)?n:n===bt(e.t,t)?(gt(e),e.o[t]=wt(e.A.h,n,e)):n},has:function(e,t){return t in Z(e)},ownKeys:function(e){return Reflect.ownKeys(Z(e))},set:function(e,t,r){var n=Lr(Z(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var o=bt(Z(e),t),i=o?.[E];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Wr(r,o)&&(r!==void 0||pe(e.t,t)))return!0;gt(e),Q(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return bt(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,gt(e),Q(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Z(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){D(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){D(12)}},Ae={};ce(_e,function(e,t){Ae[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ae.deleteProperty=function(e,t){return Ae.set.call(this,e,t,void 0)},Ae.set=function(e,t,r){return _e.set.call(this,e[0],t,r,e[0])};var Vn=function(){function e(r){var n=this;this.O=Ir,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var c=n;return function(v){var S=this;v===void 0&&(v=s);for(var g=arguments.length,x=Array(g>1?g-1:0),O=1;O<g;O++)x[O-1]=arguments[O];return c.produce(v,function(w){var z;return(z=i).call.apply(z,[S,w].concat(x))})}}var u;if(typeof i!="function"&&D(6),a!==void 0&&typeof a!="function"&&D(7),k(o)){var l=Mr(n),h=wt(n,o,void 0),f=!0;try{u=i(h),f=!1}finally{f?He(l):St(l)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(v){return mt(l,a),yt(v,l)},function(v){throw He(l),v}):(mt(l,a),yt(u,l))}if(!o||typeof o!="object"){if((u=i(o))===void 0&&(u=o),u===Gr&&(u=void 0),n.D&&_t(u,!0),a){var m=[],p=[];W("Patches").M(o,u,m,p),a(m,p)}return u}D(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(u){for(var l=arguments.length,h=Array(l>1?l-1:0),f=1;f<l;f++)h[f-1]=arguments[f];return n.produceWithPatches(u,function(m){return o.apply(void 0,[m].concat(h))})};var a,s,c=n.produce(o,i,function(u,l){a=u,s=l});return typeof Promise<"u"&&c instanceof Promise?c.then(function(u){return[u,a,s]}):[c,a,s]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){k(r)||D(8),H(r)&&(r=In(r));var n=Mr(this),o=wt(this,r,void 0);return o[E].C=!0,St(n),o},t.finishDraft=function(r,n){var o=r&&r[E],i=o.A;return mt(i,n),yt(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Ir&&D(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=W("Patches").$;return H(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),T=new Vn,Gn=T.produce,_i=T.produceWithPatches.bind(T),Ni=T.setAutoFreeze.bind(T),Ti=T.setUseProxies.bind(T),Ri=T.applyPatches.bind(T),Pi=T.createDraft.bind(T),Mi=T.finishDraft.bind(T),$e=Gn;function F(e){"@babel/helpers - typeof";return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(e)}function Rt(e,t){if(F(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(F(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pt(e){var t=Rt(e,"string");return F(t)==="symbol"?t:String(t)}function Mt(e,t,r){return t=Pt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hr(Object(r),!0).forEach(function(n){Mt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var zr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Dt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ye={INIT:"@@redux/INIT"+Dt(),REPLACE:"@@redux/REPLACE"+Dt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Dt()}};function Kn(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Lt(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(_(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(_(1));return r(Lt)(e,t)}if(typeof e!="function")throw new Error(_(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(_(3));return i}function h(v){if(typeof v!="function")throw new Error(_(4));if(c)throw new Error(_(5));var S=!0;return u(),s.push(v),function(){if(S){if(c)throw new Error(_(6));S=!1,u();var x=s.indexOf(v);s.splice(x,1),a=null}}}function f(v){if(!Kn(v))throw new Error(_(7));if(typeof v.type>"u")throw new Error(_(8));if(c)throw new Error(_(9));try{c=!0,i=o(i,v)}finally{c=!1}for(var S=a=s,g=0;g<S.length;g++){var x=S[g];x()}return v}function m(v){if(typeof v!="function")throw new Error(_(10));o=v,f({type:Ye.REPLACE})}function p(){var v,S=h;return v={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(_(11));function O(){x.next&&x.next(l())}O();var w=S(O);return{unsubscribe:w}}},v[zr]=function(){return this},v}return f({type:Ye.INIT}),n={dispatch:f,subscribe:h,getState:l,replaceReducer:m},n[zr]=p,n}function Hn(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Ye.INIT});if(typeof n>"u")throw new Error(_(12));if(typeof r(void 0,{type:Ye.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_(13))})}function qr(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];typeof e[o]=="function"&&(r[o]=e[o])}var i=Object.keys(r),a,s;try{Hn(r)}catch(c){s=c}return function(u,l){if(u===void 0&&(u={}),s)throw s;if(0)var h;for(var f=!1,m={},p=0;p<i.length;p++){var v=i[p],S=r[v],g=u[v],x=S(g,l);if(typeof x>"u"){var O=l&&l.type;throw new Error(_(14))}m[v]=x,f=f||x!==g}return f=f||i.length!==Object.keys(u).length,f?m:u}}function me(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,o){return function(){return n(o.apply(void 0,arguments))}})}function $r(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var o=n.apply(void 0,arguments),i=function(){throw new Error(_(15))},a={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map(function(c){return c(a)});return i=me.apply(void 0,s)(o.dispatch),Xe(Xe({},o),{},{dispatch:i})}}}function Xr(e){var t=function(n){var o=n.dispatch,i=n.getState;return function(a){return function(s){return typeof s=="function"?s(o,i,e):a(s)}}};return t}var Yr=Xr();Yr.withExtraArgument=Xr;var jt=Yr;var en=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),zn=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(l){u=[6,l],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ye=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},qn=Object.defineProperty,$n=Object.defineProperties,Xn=Object.getOwnPropertyDescriptors,Jr=Object.getOwnPropertySymbols,Yn=Object.prototype.hasOwnProperty,Jn=Object.prototype.propertyIsEnumerable,Zr=function(e,t,r){return t in e?qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ee=function(e,t){for(var r in t||(t={}))Yn.call(t,r)&&Zr(e,r,t[r]);if(Jr)for(var n=0,o=Jr(t);n<o.length;n++){var r=o[n];Jn.call(t,r)&&Zr(e,r,t[r])}return e},kt=function(e,t){return $n(e,Xn(t))},Zn=function(e,t,r){return new Promise(function(n,o){var i=function(c){try{s(r.next(c))}catch(u){o(u)}},a=function(c){try{s(r.throw(c))}catch(u){o(u)}},s=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(i,a)};s((r=r.apply(e,t)).next())})};var Qn=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?me:me.apply(null,arguments)},Ji=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Fn(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var eo=function(e){en(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,ye([void 0],r[0].concat(this)))):new(t.bind.apply(t,ye([void 0],r.concat(this))))},t}(Array),to=function(e){en(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,ye([void 0],r[0].concat(this)))):new(t.bind.apply(t,ye([void 0],r.concat(this))))},t}(Array);function Bt(e){return k(e)?$e(e,function(){}):e}function ro(e){return typeof e=="boolean"}function no(){return function(t){return oo(t)}}function oo(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,o=n===void 0?!0:n,i=e.serializableCheck,a=i===void 0?!0:i,s=new eo;if(r&&(ro(r)?s.push(jt):s.push(jt.withExtraArgument(r.extraArgument))),0){if(o)var c;if(a)var u}return s}var It=!0;function tn(e){var t=no(),r=e||{},n=r.reducer,o=n===void 0?void 0:n,i=r.middleware,a=i===void 0?t():i,s=r.devTools,c=s===void 0?!0:s,u=r.preloadedState,l=u===void 0?void 0:u,h=r.enhancers,f=h===void 0?void 0:h,m;if(typeof o=="function")m=o;else if(Fn(o))m=qr(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var p=a;if(typeof p=="function"&&(p=p(t),!It&&!Array.isArray(p)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!It&&p.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=$r.apply(void 0,p),S=me;c&&(S=Qn(ee({trace:!It},typeof c=="object"&&c)));var g=new to(v),x=g;Array.isArray(f)?x=ye([v],f):typeof f=="function"&&(x=f(g));var O=S.apply(void 0,x);return Lt(m,l,O)}function te(e,t){function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ee(ee({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function rn(e){var t={},r=[],n,o={addCase:function(i,a){var s=typeof i=="string"?i:i.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=a,o},addMatcher:function(i,a){return r.push({matcher:i,reducer:a}),o},addDefaultCase:function(i){return n=i,o}};return e(o),[t,r,n]}function io(e){return typeof e=="function"}function ao(e,t,r,n){r===void 0&&(r=[]);var o=typeof t=="function"?rn(t):[t,r,n],i=o[0],a=o[1],s=o[2],c;if(io(e))c=function(){return Bt(e())};else{var u=Bt(e);c=function(){return u}}function l(h,f){h===void 0&&(h=c());var m=ye([i[f.type]],a.filter(function(p){var v=p.matcher;return v(f)}).map(function(p){var v=p.reducer;return v}));return m.filter(function(p){return!!p}).length===0&&(m=[s]),m.reduce(function(p,v){if(v)if(H(p)){var S=p,g=v(S,f);return g===void 0?p:g}else{if(k(p))return $e(p,function(x){return v(x,f)});var g=v(p,f);if(g===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}return p},h)}return l.getInitialState=c,l}function so(e,t){return e+"/"+t}function nn(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Bt(e.initialState),n=e.reducers||{},o=Object.keys(n),i={},a={},s={};o.forEach(function(l){var h=n[l],f=so(t,l),m,p;"reducer"in h?(m=h.reducer,p=h.prepare):m=h,i[l]=m,a[f]=m,s[l]=p?te(f,p):te(f)});function c(){var l=typeof e.extraReducers=="function"?rn(e.extraReducers):[e.extraReducers],h=l[0],f=h===void 0?{}:h,m=l[1],p=m===void 0?[]:m,v=l[2],S=v===void 0?void 0:v,g=ee(ee({},f),a);return ao(r,function(x){for(var O in g)x.addCase(O,g[O]);for(var w=0,z=p;w<z.length;w++){var V=z[w];x.addMatcher(V.matcher,V.reducer)}S&&x.addDefaultCase(S)})}var u;return{name:t,reducer:function(l,h){return u||(u=c()),u(l,h)},actions:s,caseReducers:i,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var uo="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",co=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=uo[Math.random()*64|0];return t},lo=["name","message","stack","code"],Ut=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Qr=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),fo=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=lo;r<n.length;r++){var o=n[r];typeof e[o]=="string"&&(t[o]=e[o])}return t}return{message:String(e)}},ea=function(){function e(t,r,n){var o=te(t+"/fulfilled",function(l,h,f,m){return{payload:l,meta:kt(ee({},m||{}),{arg:f,requestId:h,requestStatus:"fulfilled"})}}),i=te(t+"/pending",function(l,h,f){return{payload:void 0,meta:kt(ee({},f||{}),{arg:h,requestId:l,requestStatus:"pending"})}}),a=te(t+"/rejected",function(l,h,f,m,p){return{payload:m,error:(n&&n.serializeError||fo)(l||"Rejected"),meta:kt(ee({},p||{}),{arg:f,requestId:h,rejectedWithValue:!!m,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),s=!1,c=typeof AbortController<"u"?AbortController:function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l}();function u(l){return function(h,f,m){var p=n?.idGenerator?n.idGenerator(l):co(),v=new c,S,g=!1;function x(w){S=w,v.abort()}var O=function(){return Zn(this,null,function(){var w,z,V,be,Xt,ge,Yt;return zn(this,function(fe){switch(fe.label){case 0:return fe.trys.push([0,4,,5]),be=(w=n?.condition)==null?void 0:w.call(n,l,{getState:f,extra:m}),ho(be)?[4,be]:[3,2];case 1:be=fe.sent(),fe.label=2;case 2:if(be===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=!0,Xt=new Promise(function(L,xe){return v.signal.addEventListener("abort",function(){return xe({name:"AbortError",message:S||"Aborted"})})}),h(i(p,l,(z=n?.getPendingMeta)==null?void 0:z.call(n,{requestId:p,arg:l},{getState:f,extra:m}))),[4,Promise.race([Xt,Promise.resolve(r(l,{dispatch:h,getState:f,extra:m,requestId:p,signal:v.signal,abort:x,rejectWithValue:function(L,xe){return new Ut(L,xe)},fulfillWithValue:function(L,xe){return new Qr(L,xe)}})).then(function(L){if(L instanceof Ut)throw L;return L instanceof Qr?o(L.payload,p,l,L.meta):o(L,p,l)})])];case 3:return V=fe.sent(),[3,5];case 4:return ge=fe.sent(),V=ge instanceof Ut?a(null,p,l,ge.payload,ge.meta):a(ge,p,l),[3,5];case 5:return Yt=n&&!n.dispatchConditionRejection&&a.match(V)&&V.meta.condition,Yt||h(V),[2,V]}})})}();return Object.assign(O,{abort:x,requestId:p,arg:l,unwrap:function(){return O.then(po)}})}}return Object.assign(u,{pending:i,rejected:a,fulfilled:o,typePrefix:t})}return e.withTypes=function(){return e},e}();function po(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ho(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var on="listener",an="completed",sn="cancelled",ta="task-"+sn,ra="task-"+an,na=on+"-"+sn,oa=on+"-"+an;var Wt="listenerMiddleware";var ia=te(Wt+"/add"),aa=te(Wt+"/removeAll"),sa=te(Wt+"/remove");var Fr,ua=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Fr||(Fr=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},vo=function(e){return function(t){setTimeout(t,e)}},ca=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:vo(10);Vr();window.ftReduxStores||(window.ftReduxStores={});var un=class e{static get(t){var r;let n=typeof t=="string"?t:t.name,o=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Ee(i))return i;if(o==null)return;let a=nn({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),s=tn({reducer:(c,u)=>u.type==="CLEAR_FT_REDUX_STORE"?a.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...u.overwrites}:a.reducer(c,u)});return window.ftReduxStores[o.name]=new e(a,s)}constructor(t,r){this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ue,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,o,i)=>{let a=o,s=n[a];return s?(...c)=>{let u=s(...c);return this.reduxStore.dispatch(u),u}:c=>{this.setState({[a]:c})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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 Fe=y(C());var Je=class extends ${async listMySearches(){let t=b.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Ze=class extends ${async listMyBookmarks(){let t=b.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var yo="ft-user-assets",Qe=Fe.FtReduxStore.get({name:yo,initialState:{savedSearches:void 0,bookmarks:void 0}}),Vt=class{constructor(){this.currentSession=b.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ze,this.savedSearchesService=new Je,b.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=b.getState();(0,Fe.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Qe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Qe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Qe.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Qe.actions.bookmarks(r)}}},Ua=new Vt;var Gt=class{addCommand(t,r=!1){b.commands.add(t,r)}consumeCommand(t){return b.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Gt;var cn=y(C()),Kt=class{highlightHtml(t,r,n){(0,cn.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Kt;var ln=y(C());var Ht=class{isDate(t){var r,n,o,i;return(i=(o=((n=(r=b.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(s=>s.key===t))===null||o===void 0?void 0:o.date)!==null&&i!==void 0?i:!1}format(t,r){var n,o,i;return ln.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:b.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Ht;(0,fn.customElement)("ft-app-context")(A);var pn=y(P()),bo=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},zt=Symbol("i18nAttributes"),qt=Symbol("i18nListAttributes"),et=Symbol("i18nProperties"),Ne=Symbol("i18nUnsubs");function hn(e){var t;class r extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?br:se}i18n(o,i,...a){var s;if(typeof o=="string")return this.i18nService.resolveMessage(o,i,...a);let c=(s=o.args)!==null&&s!==void 0?s:o.argsProvider?o.argsProvider(this):[];return this.i18nService.resolveMessage(o.context,o.key,...c)}onI18nUpdate(o){var i,a,s;(i=this[zt])===null||i===void 0||i.forEach((c,u)=>{let l=this.getI18nAttributeValue(u);l&&(this[u]=this.getI18nAttributeMessage(l,c,o))}),(a=this[qt])===null||a===void 0||a.forEach((c,u)=>{let l=this.getI18nListAttributeValues(u);this[u]=l?.map(h=>this.getI18nAttributeMessage(h,c,o))}),(s=this[et])===null||s===void 0||s.forEach((c,u)=>{c.context.toLowerCase()===o.toLowerCase()&&(this[u]=this.i18n(c))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(o,i){return{...o,message:this.i18n({context:o.context,key:o.key,...i})}}getI18nAttributeMessage(o,i,a){var s;let c=!a||((s=o.context)===null||s===void 0?void 0:s.toLowerCase())===a.toLowerCase();return o.context&&o.key&&c?this.buildI18nAttributeMessage(o,i):o}update(o){var i,a,s;super.update(o),(i=this[zt])===null||i===void 0||i.forEach((c,u)=>{let l=this.getI18nAttributeValue(u);l?.context&&l.key&&(o.has(u)||c.argsProvider!=null)&&(this.addI18nContextIfNeeded(l,o,u),this[u]=this.getI18nAttributeMessage(l,c))}),(a=this[qt])===null||a===void 0||a.forEach((c,u)=>{let l=this.getI18nListAttributeValues(u);(o.has(u)||c.argsProvider!=null)&&(this[u]=l?.map(h=>(this.addI18nContextIfNeeded(h,o,u),this.getI18nAttributeMessage(h,c))))}),(s=this[et])===null||s===void 0||s.forEach((c,u)=>{c.argsProvider!=null&&(this[u]=this.i18n(c))})}getI18nAttributeValue(o){return this[o]}getI18nListAttributeValues(o){return this[o]}addI18nContextIfNeeded(o,i,a){o.context&&o.key&&i.has(a)&&this.addI18nContext(o.context)}connectedCallback(){var o,i,a,s,c,u;super.connectedCallback(),new Set([...(i=(o=this[et])===null||o===void 0?void 0:o.values())!==null&&i!==void 0?i:[],...[...(s=(a=this[zt])===null||a===void 0?void 0:a.keys())!==null&&s!==void 0?s:[]].map(l=>this.getI18nAttributeValue(l)),...[...(u=(c=this[qt])===null||c===void 0?void 0:c.keys())!==null&&u!==void 0?u:[]].flatMap(l=>this.getI18nListAttributeValues(l))].map(l=>l?.context)).forEach(l=>l&&this.addI18nMessages(l))}addI18nMessages(o,i){o=o.toLowerCase(),this[Ne].has(o)||this[Ne].set(o,this.i18nService.subscribe(o,()=>this.onI18nUpdate(o))),this.i18nService.prepareContext(o,i??{}),this.onI18nUpdate(o)}addI18nContext(o,i){this.addI18nMessages(typeof o=="string"?o:o.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[Ne].forEach(o=>o()),this[Ne].clear()}}return t=Ne,bo([(0,pn.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var dn=class extends hn(rt.FtLitElement){},tt=class extends hn(rt.FtLitElementRedux){};var Te=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},I=class extends tt{constructor(){super(),this.editorMode=!1,this.addStore(b)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":nt.nothing:nt.html`
|
|
81
|
+
`}update(t){var r,n,o,i,a;super.update(t),t.has("baseUrl")&&(g.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&g.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&g.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&g.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&g.actions.noCustom(this.noCustom),t.has("editorMode")&&g.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&g.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&g.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(s=>se.addContext(s)),t.has("openExternalDocumentInNewTab")&&g.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&g.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&g.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(g.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),g.actions.availableUiLocales((o=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&o!==void 0?o:[]),g.actions.searchInAllLanguagesAllowed((a=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&a!==void 0?a:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};A.elementDefinitions={};A.styles=yr;_([(0,N.property)()],A.prototype,"baseUrl",void 0);_([(0,N.property)()],A.prototype,"apiIntegrationIdentifier",void 0);_([(0,N.property)()],A.prototype,"uiLocale",void 0);_([(0,j.jsonProperty)(null)],A.prototype,"availableUiLocales",void 0);_([(0,j.jsonProperty)(null)],A.prototype,"metadataConfiguration",void 0);_([(0,N.property)({type:Boolean})],A.prototype,"editorMode",void 0);_([(0,N.property)({type:Boolean})],A.prototype,"noCustom",void 0);_([(0,N.property)({type:Boolean})],A.prototype,"openExternalDocumentInNewTab",void 0);_([(0,N.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],A.prototype,"noCustomComponent",void 0);_([(0,N.property)({type:Boolean})],A.prototype,"withManualResources",void 0);_([(0,N.property)({type:Boolean})],A.prototype,"navigatorOnline",void 0);_([(0,N.property)({type:Boolean})],A.prototype,"forcedOffline",void 0);_([(0,N.property)({type:Object})],A.prototype,"apiProvider",void 0);_([(0,j.jsonProperty)([])],A.prototype,"messageContexts",void 0);_([(0,j.jsonProperty)(void 0)],A.prototype,"session",void 0);_([(0,N.state)()],A.prototype,"localesConfiguration",void 0);var go=y(M());function Pn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Ie(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Ie(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){var i=o[n];if(!Ie(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ie(e,t){try{return Pn(e,t)}catch{return!1}}function mt(e,t){return!Ie(e,t)}var Mn=y(M(),1);var Ue=class{constructor(){this.queue=[]}add(t,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var we=y(M(),1);var Sr=y(M(),1);function wr(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,Sr.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:mt,...t??{}})}var Be=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let o=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let a of n)try{await a()}catch(s){o(s);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Or=y(U(),1);var We=window,Dn=We.ShadowRoot&&(We.ShadyCSS===void 0||We.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gi=Symbol();var Er=(e,t)=>{Dn?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=We.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})};var Ve=class extends Or.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([o,i])=>t.registry.define(o,i)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Er(n,t.elementStyles),n}};var Ge=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},Tr,Ar=Symbol("constructorPrototype"),Cr=Symbol("constructorName"),Nr=Symbol("exportpartsDebouncer"),_r=Symbol("dynamicDependenciesLoaded"),Y=class extends Ve{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Tr]=new Be(5),this[Cr]=this.constructor.name,this[Ar]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Cr]&&Object.setPrototypeOf(this,this[Ar])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[_r]||(t[_r]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var r,n,o;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Nr].run(()=>{var o,i;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,o,i,a,s;let c=f=>f!=null&&f.trim().length>0,u=t.filter(c).map(f=>f.trim());if(u.length===0){this.removeAttribute("exportparts");return}let l=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(i=(o=f.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&i!==void 0?i:[],p=(s=(a=f.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(v=>v.split(":")[1]))!==null&&s!==void 0?s:[];new Array(...m,...p).filter(c).map(v=>v.trim()).forEach(v=>l.add(v))}if(l.size===0){this.removeAttribute("exportparts");return}let h=[...l.values()].flatMap(f=>u.map(m=>`${f}:${m}--${f}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Tr=Nr;Ge([(0,we.property)()],Y.prototype,"exportpartsPrefix",void 0);Ge([wr([])],Y.prototype,"exportpartsPrefixes",void 0);Ge([(0,we.property)()],Y.prototype,"customStylesheet",void 0);Ge([(0,we.state)()],Y.prototype,"useAdoptedStyleSheets",void 0);function Ee(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Rr,Pr,Mr,Ke=Symbol("internalReduxEventsUnsubscribers"),J=Symbol("internalStoresUnsubscribers"),ue=Symbol("internalStores"),Oe=class extends Y{constructor(){super(...arguments),this[Rr]=new Map,this[Pr]=new Map,this[Mr]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[ue].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ue].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[ue].get(t)}addStore(t,r){var n;r=(n=r??(Ee(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,t)}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[ue].delete(r)}setupStore(t,r){this[ue].set(t,r),this.subscribeToStore(t,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ue].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let o=this.getStore(t.store);o&&(t.store?this[J].has(t.store):this[J].size>0)&&(this[r]=t.selector(o.getState(),this))}})}subscribeToStore(t,r){var n;this[J].set(t,r.subscribe(()=>this.updateFromStores())),Ee(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((o,i)=>{if(typeof this[i]=="function"&&(!o.store||r.name===o.store)){let a=s=>this[i](s);r.addEventListener(o.eventName,a),this[Ke].push(()=>r.removeEventListener(o.eventName,a))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[J].forEach((t,r)=>this.unsubscribeFromStore(r)),this[Ke].forEach(t=>t()),this[Ke]=[]}unsubscribeFromStore(t){this[J].has(t)&&this[J].get(t)(),this[J].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Rr=J,Pr=ue,Mr=Ke;Oe.reduxProperties=new Map;Oe.reduxReactiveProperties=new Set;Oe.reduxEventListeners=new Map;function D(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var o,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function H(e){return!!e&&!!e[E]}function k(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Vn}(e)||Array.isArray(e)||!!e[Br]||!!(!((t=e.constructor)===null||t===void 0)&&t[Br])||At(e)||Ct(e))}function ce(e,t,r){r===void 0&&(r=!1),ve(e)===0?(r?Object.keys:he)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function ve(e){var t=e[E];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:At(e)?2:Ct(e)?3:0}function pe(e,t){return ve(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ln(e,t){return ve(e)===2?e.get(t):e[t]}function Wr(e,t,r){var n=ve(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Vr(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function At(e){return Bn&&e instanceof Map}function Ct(e){return Wn&&e instanceof Set}function Z(e){return e.o||e.t}function _t(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Hr(e);delete t[E];for(var r=he(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Tt(e,t){return t===void 0&&(t=!1),Nt(e)||H(e)||!k(e)||(ve(e)>1&&(e.set=e.add=e.clear=e.delete=jn),Object.freeze(e),t&&ce(e,function(r,n){return Tt(n,!0)},!0)),e}function jn(){D(2)}function Nt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function W(e){var t=Ot[e];return t||D(18,e),t}function kn(e,t){Ot[e]||(Ot[e]=t)}function St(){return Ce}function yt(e,t){t&&(W("Patches"),e.u=[],e.s=[],e.v=t)}function He(e){wt(e),e.p.forEach(In),e.p=null}function wt(e){e===Ce&&(Ce=e.l)}function Dr(e){return Ce={p:[],l:Ce,h:e,m:!0,_:0}}function In(e){var t=e[E];t.i===0||t.i===1?t.j():t.g=!0}function gt(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||W("ES5").S(t,e,n),n?(r[E].P&&(He(t),D(4)),k(e)&&(e=ze(t,e),t.l||qe(t,e)),t.u&&W("Patches").M(r[E].t,e,t.u,t.s)):e=ze(t,r,[]),He(t),t.u&&t.v(t.u,t.s),e!==Kr?e:void 0}function ze(e,t,r){if(Nt(t))return t;var n=t[E];if(!n)return ce(t,function(s,c){return Lr(e,n,t,s,c,r)},!0),t;if(n.A!==e)return t;if(!n.P)return qe(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=_t(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),ce(i,function(s,c){return Lr(e,n,o,s,c,r,a)}),qe(e,o,!1),r&&e.u&&W("Patches").N(n,r,e.u,e.s)}return n.o}function Lr(e,t,r,n,o,i,a){if(H(o)){var s=ze(e,o,i&&t&&t.i!==3&&!pe(t.R,n)?i.concat(n):void 0);if(Wr(r,n,s),!H(s))return;e.m=!1}else a&&r.add(o);if(k(o)&&!Nt(o)){if(!e.h.D&&e._<1)return;ze(e,o),t&&t.A.l||qe(e,o)}}function qe(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Tt(t,r)}function bt(e,t){var r=e[E];return(r?Z(r):e)[t]}function jr(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Q(e){e.P||(e.P=!0,e.l&&Q(e.l))}function xt(e){e.o||(e.o=_t(e.t))}function Et(e,t,r){var n=At(t)?W("MapSet").F(t,r):Ct(t)?W("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:St(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=s,u=_e;a&&(c=[s],u=Ae);var l=Proxy.revocable(c,u),h=l.revoke,f=l.proxy;return s.k=f,s.j=h,f}(t,r):W("ES5").J(t,r);return(r?r.A:St()).p.push(n),n}function Un(e){return H(e)||D(22,e),function t(r){if(!k(r))return r;var n,o=r[E],i=ve(r);if(o){if(!o.P&&(o.i<4||!W("ES5").K(o)))return o.t;o.I=!0,n=kr(r,i),o.I=!1}else n=kr(r,i);return ce(n,function(a,s){o&&Ln(o.t,a)===s||Wr(n,a,t(s))}),i===3?new Set(n):n}(e)}function kr(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _t(e)}function Gr(){function e(a,s){var c=i[a];return c?c.enumerable=s:i[a]=c={configurable:!0,enumerable:s,get:function(){var u=this[E];return _e.get(u,a)},set:function(u){var l=this[E];_e.set(l,a,u)}},c}function t(a){for(var s=a.length-1;s>=0;s--){var c=a[s][E];if(!c.P)switch(c.i){case 5:n(c)&&Q(c);break;case 4:r(c)&&Q(c)}}}function r(a){for(var s=a.t,c=a.k,u=he(c),l=u.length-1;l>=0;l--){var h=u[l];if(h!==E){var f=s[h];if(f===void 0&&!pe(s,h))return!0;var m=c[h],p=m&&m[E];if(p?p.t!==f:!Vr(m,f))return!0}}var v=!!s[E];return u.length!==he(s).length+(v?0:1)}function n(a){var s=a.k;if(s.length!==a.t.length)return!0;var c=Object.getOwnPropertyDescriptor(s,s.length-1);if(c&&!c.get)return!0;for(var u=0;u<s.length;u++)if(!s.hasOwnProperty(u))return!0;return!1}function o(a){a.g&&D(3,JSON.stringify(Z(a)))}var i={};kn("ES5",{J:function(a,s){var c=Array.isArray(a),u=function(h,f){if(h){for(var m=Array(f.length),p=0;p<f.length;p++)Object.defineProperty(m,""+p,e(p,!0));return m}var v=Hr(f);delete v[E];for(var S=he(v),b=0;b<S.length;b++){var x=S[b];v[x]=e(x,h||!!v[x].enumerable)}return Object.create(Object.getPrototypeOf(f),v)}(c,a),l={i:c?5:4,A:s?s.A:St(),P:!1,I:!1,R:{},l:s,t:a,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,E,{value:l,writable:!0}),u},S:function(a,s,c){c?H(s)&&s[E].A===a&&t(a.p):(a.u&&function u(l){if(l&&typeof l=="object"){var h=l[E];if(h){var f=h.t,m=h.k,p=h.R,v=h.i;if(v===4)ce(m,function(w){w!==E&&(f[w]!==void 0||pe(f,w)?p[w]||u(m[w]):(p[w]=!0,Q(h)))}),ce(f,function(w){m[w]!==void 0||pe(m,w)||(p[w]=!1,Q(h))});else if(v===5){if(n(h)&&(Q(h),p.length=!0),m.length<f.length)for(var S=m.length;S<f.length;S++)p[S]=!1;else for(var b=f.length;b<m.length;b++)p[b]=!0;for(var x=Math.min(m.length,f.length),O=0;O<x;O++)m.hasOwnProperty(O)||(p[O]=!0),p[O]===void 0&&u(m[O])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var Ir,Ce,Rt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Bn=typeof Map<"u",Wn=typeof Set<"u",Ur=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Kr=Rt?Symbol.for("immer-nothing"):((Ir={})["immer-nothing"]=!0,Ir),Br=Rt?Symbol.for("immer-draftable"):"__$immer_draftable",E=Rt?Symbol.for("immer-state"):"__$immer_state";var Vn=""+Object.prototype.constructor,he=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Hr=Object.getOwnPropertyDescriptors||function(e){var t={};return he(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Ot={},_e={get:function(e,t){if(t===E)return e;var r=Z(e);if(!pe(r,t))return function(o,i,a){var s,c=jr(i,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,r,t);var n=r[t];return e.I||!k(n)?n:n===bt(e.t,t)?(xt(e),e.o[t]=Et(e.A.h,n,e)):n},has:function(e,t){return t in Z(e)},ownKeys:function(e){return Reflect.ownKeys(Z(e))},set:function(e,t,r){var n=jr(Z(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var o=bt(Z(e),t),i=o?.[E];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Vr(r,o)&&(r!==void 0||pe(e.t,t)))return!0;xt(e),Q(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return bt(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,xt(e),Q(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Z(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){D(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){D(12)}},Ae={};ce(_e,function(e,t){Ae[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ae.deleteProperty=function(e,t){return Ae.set.call(this,e,t,void 0)},Ae.set=function(e,t,r){return _e.set.call(this,e[0],t,r,e[0])};var Gn=function(){function e(r){var n=this;this.O=Ur,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var c=n;return function(v){var S=this;v===void 0&&(v=s);for(var b=arguments.length,x=Array(b>1?b-1:0),O=1;O<b;O++)x[O-1]=arguments[O];return c.produce(v,function(w){var z;return(z=i).call.apply(z,[S,w].concat(x))})}}var u;if(typeof i!="function"&&D(6),a!==void 0&&typeof a!="function"&&D(7),k(o)){var l=Dr(n),h=Et(n,o,void 0),f=!0;try{u=i(h),f=!1}finally{f?He(l):wt(l)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(v){return yt(l,a),gt(v,l)},function(v){throw He(l),v}):(yt(l,a),gt(u,l))}if(!o||typeof o!="object"){if((u=i(o))===void 0&&(u=o),u===Kr&&(u=void 0),n.D&&Tt(u,!0),a){var m=[],p=[];W("Patches").M(o,u,m,p),a(m,p)}return u}D(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(u){for(var l=arguments.length,h=Array(l>1?l-1:0),f=1;f<l;f++)h[f-1]=arguments[f];return n.produceWithPatches(u,function(m){return o.apply(void 0,[m].concat(h))})};var a,s,c=n.produce(o,i,function(u,l){a=u,s=l});return typeof Promise<"u"&&c instanceof Promise?c.then(function(u){return[u,a,s]}):[c,a,s]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){k(r)||D(8),H(r)&&(r=Un(r));var n=Dr(this),o=Et(this,r,void 0);return o[E].C=!0,wt(n),o},t.finishDraft=function(r,n){var o=r&&r[E],i=o.A;return yt(i,n),gt(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Ur&&D(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=W("Patches").$;return H(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),R=new Gn,Kn=R.produce,Ri=R.produceWithPatches.bind(R),Pi=R.setAutoFreeze.bind(R),Mi=R.setUseProxies.bind(R),Di=R.applyPatches.bind(R),Li=R.createDraft.bind(R),ji=R.finishDraft.bind(R),$e=Kn;function F(e){"@babel/helpers - typeof";return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(e)}function Pt(e,t){if(F(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(F(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mt(e){var t=Pt(e,"string");return F(t)==="symbol"?t:String(t)}function Dt(e,t,r){return t=Mt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zr(Object(r),!0).forEach(function(n){Dt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function T(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var qr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Lt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ye={INIT:"@@redux/INIT"+Lt(),REPLACE:"@@redux/REPLACE"+Lt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Lt()}};function Hn(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function jt(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(T(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(T(1));return r(jt)(e,t)}if(typeof e!="function")throw new Error(T(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(T(3));return i}function h(v){if(typeof v!="function")throw new Error(T(4));if(c)throw new Error(T(5));var S=!0;return u(),s.push(v),function(){if(S){if(c)throw new Error(T(6));S=!1,u();var x=s.indexOf(v);s.splice(x,1),a=null}}}function f(v){if(!Hn(v))throw new Error(T(7));if(typeof v.type>"u")throw new Error(T(8));if(c)throw new Error(T(9));try{c=!0,i=o(i,v)}finally{c=!1}for(var S=a=s,b=0;b<S.length;b++){var x=S[b];x()}return v}function m(v){if(typeof v!="function")throw new Error(T(10));o=v,f({type:Ye.REPLACE})}function p(){var v,S=h;return v={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(T(11));function O(){x.next&&x.next(l())}O();var w=S(O);return{unsubscribe:w}}},v[qr]=function(){return this},v}return f({type:Ye.INIT}),n={dispatch:f,subscribe:h,getState:l,replaceReducer:m},n[qr]=p,n}function zn(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Ye.INIT});if(typeof n>"u")throw new Error(T(12));if(typeof r(void 0,{type:Ye.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(T(13))})}function $r(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];typeof e[o]=="function"&&(r[o]=e[o])}var i=Object.keys(r),a,s;try{zn(r)}catch(c){s=c}return function(u,l){if(u===void 0&&(u={}),s)throw s;if(0)var h;for(var f=!1,m={},p=0;p<i.length;p++){var v=i[p],S=r[v],b=u[v],x=S(b,l);if(typeof x>"u"){var O=l&&l.type;throw new Error(T(14))}m[v]=x,f=f||x!==b}return f=f||i.length!==Object.keys(u).length,f?m:u}}function me(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,o){return function(){return n(o.apply(void 0,arguments))}})}function Xr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var o=n.apply(void 0,arguments),i=function(){throw new Error(T(15))},a={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map(function(c){return c(a)});return i=me.apply(void 0,s)(o.dispatch),Xe(Xe({},o),{},{dispatch:i})}}}function Yr(e){var t=function(n){var o=n.dispatch,i=n.getState;return function(a){return function(s){return typeof s=="function"?s(o,i,e):a(s)}}};return t}var Jr=Yr();Jr.withExtraArgument=Yr;var kt=Jr;var tn=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),qn=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(l){u=[6,l],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ye=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},$n=Object.defineProperty,Xn=Object.defineProperties,Yn=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,Qr=function(e,t,r){return t in e?$n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ee=function(e,t){for(var r in t||(t={}))Jn.call(t,r)&&Qr(e,r,t[r]);if(Zr)for(var n=0,o=Zr(t);n<o.length;n++){var r=o[n];Zn.call(t,r)&&Qr(e,r,t[r])}return e},It=function(e,t){return Xn(e,Yn(t))},Qn=function(e,t,r){return new Promise(function(n,o){var i=function(c){try{s(r.next(c))}catch(u){o(u)}},a=function(c){try{s(r.throw(c))}catch(u){o(u)}},s=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(i,a)};s((r=r.apply(e,t)).next())})};var Fn=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?me:me.apply(null,arguments)},Fi=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function eo(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var to=function(e){tn(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,ye([void 0],r[0].concat(this)))):new(t.bind.apply(t,ye([void 0],r.concat(this))))},t}(Array),ro=function(e){tn(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,ye([void 0],r[0].concat(this)))):new(t.bind.apply(t,ye([void 0],r.concat(this))))},t}(Array);function Wt(e){return k(e)?$e(e,function(){}):e}function no(e){return typeof e=="boolean"}function oo(){return function(t){return io(t)}}function io(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,o=n===void 0?!0:n,i=e.serializableCheck,a=i===void 0?!0:i,s=new to;if(r&&(no(r)?s.push(kt):s.push(kt.withExtraArgument(r.extraArgument))),0){if(o)var c;if(a)var u}return s}var Ut=!0;function rn(e){var t=oo(),r=e||{},n=r.reducer,o=n===void 0?void 0:n,i=r.middleware,a=i===void 0?t():i,s=r.devTools,c=s===void 0?!0:s,u=r.preloadedState,l=u===void 0?void 0:u,h=r.enhancers,f=h===void 0?void 0:h,m;if(typeof o=="function")m=o;else if(eo(o))m=$r(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var p=a;if(typeof p=="function"&&(p=p(t),!Ut&&!Array.isArray(p)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ut&&p.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Xr.apply(void 0,p),S=me;c&&(S=Fn(ee({trace:!Ut},typeof c=="object"&&c)));var b=new ro(v),x=b;Array.isArray(f)?x=ye([v],f):typeof f=="function"&&(x=f(b));var O=S.apply(void 0,x);return jt(m,l,O)}function te(e,t){function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ee(ee({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function nn(e){var t={},r=[],n,o={addCase:function(i,a){var s=typeof i=="string"?i:i.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=a,o},addMatcher:function(i,a){return r.push({matcher:i,reducer:a}),o},addDefaultCase:function(i){return n=i,o}};return e(o),[t,r,n]}function ao(e){return typeof e=="function"}function so(e,t,r,n){r===void 0&&(r=[]);var o=typeof t=="function"?nn(t):[t,r,n],i=o[0],a=o[1],s=o[2],c;if(ao(e))c=function(){return Wt(e())};else{var u=Wt(e);c=function(){return u}}function l(h,f){h===void 0&&(h=c());var m=ye([i[f.type]],a.filter(function(p){var v=p.matcher;return v(f)}).map(function(p){var v=p.reducer;return v}));return m.filter(function(p){return!!p}).length===0&&(m=[s]),m.reduce(function(p,v){if(v)if(H(p)){var S=p,b=v(S,f);return b===void 0?p:b}else{if(k(p))return $e(p,function(x){return v(x,f)});var b=v(p,f);if(b===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}return p},h)}return l.getInitialState=c,l}function uo(e,t){return e+"/"+t}function on(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Wt(e.initialState),n=e.reducers||{},o=Object.keys(n),i={},a={},s={};o.forEach(function(l){var h=n[l],f=uo(t,l),m,p;"reducer"in h?(m=h.reducer,p=h.prepare):m=h,i[l]=m,a[f]=m,s[l]=p?te(f,p):te(f)});function c(){var l=typeof e.extraReducers=="function"?nn(e.extraReducers):[e.extraReducers],h=l[0],f=h===void 0?{}:h,m=l[1],p=m===void 0?[]:m,v=l[2],S=v===void 0?void 0:v,b=ee(ee({},f),a);return so(r,function(x){for(var O in b)x.addCase(O,b[O]);for(var w=0,z=p;w<z.length;w++){var V=z[w];x.addMatcher(V.matcher,V.reducer)}S&&x.addDefaultCase(S)})}var u;return{name:t,reducer:function(l,h){return u||(u=c()),u(l,h)},actions:s,caseReducers:i,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var co="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",lo=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=co[Math.random()*64|0];return t},fo=["name","message","stack","code"],Bt=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Fr=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),po=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=fo;r<n.length;r++){var o=n[r];typeof e[o]=="string"&&(t[o]=e[o])}return t}return{message:String(e)}},na=function(){function e(t,r,n){var o=te(t+"/fulfilled",function(l,h,f,m){return{payload:l,meta:It(ee({},m||{}),{arg:f,requestId:h,requestStatus:"fulfilled"})}}),i=te(t+"/pending",function(l,h,f){return{payload:void 0,meta:It(ee({},f||{}),{arg:h,requestId:l,requestStatus:"pending"})}}),a=te(t+"/rejected",function(l,h,f,m,p){return{payload:m,error:(n&&n.serializeError||po)(l||"Rejected"),meta:It(ee({},p||{}),{arg:f,requestId:h,rejectedWithValue:!!m,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),s=!1,c=typeof AbortController<"u"?AbortController:function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l}();function u(l){return function(h,f,m){var p=n?.idGenerator?n.idGenerator(l):lo(),v=new c,S,b=!1;function x(w){S=w,v.abort()}var O=function(){return Qn(this,null,function(){var w,z,V,ge,Yt,be,Jt;return qn(this,function(fe){switch(fe.label){case 0:return fe.trys.push([0,4,,5]),ge=(w=n?.condition)==null?void 0:w.call(n,l,{getState:f,extra:m}),vo(ge)?[4,ge]:[3,2];case 1:ge=fe.sent(),fe.label=2;case 2:if(ge===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=!0,Yt=new Promise(function(L,xe){return v.signal.addEventListener("abort",function(){return xe({name:"AbortError",message:S||"Aborted"})})}),h(i(p,l,(z=n?.getPendingMeta)==null?void 0:z.call(n,{requestId:p,arg:l},{getState:f,extra:m}))),[4,Promise.race([Yt,Promise.resolve(r(l,{dispatch:h,getState:f,extra:m,requestId:p,signal:v.signal,abort:x,rejectWithValue:function(L,xe){return new Bt(L,xe)},fulfillWithValue:function(L,xe){return new Fr(L,xe)}})).then(function(L){if(L instanceof Bt)throw L;return L instanceof Fr?o(L.payload,p,l,L.meta):o(L,p,l)})])];case 3:return V=fe.sent(),[3,5];case 4:return be=fe.sent(),V=be instanceof Bt?a(null,p,l,be.payload,be.meta):a(be,p,l),[3,5];case 5:return Jt=n&&!n.dispatchConditionRejection&&a.match(V)&&V.meta.condition,Jt||h(V),[2,V]}})})}();return Object.assign(O,{abort:x,requestId:p,arg:l,unwrap:function(){return O.then(ho)}})}}return Object.assign(u,{pending:i,rejected:a,fulfilled:o,typePrefix:t})}return e.withTypes=function(){return e},e}();function ho(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function vo(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var an="listener",sn="completed",un="cancelled",oa="task-"+un,ia="task-"+sn,aa=an+"-"+un,sa=an+"-"+sn;var Vt="listenerMiddleware";var ua=te(Vt+"/add"),ca=te(Vt+"/removeAll"),la=te(Vt+"/remove");var en,fa=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(en||(en=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},mo=function(e){return function(t){setTimeout(t,e)}},da=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:mo(10);Gr();function yo(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,o){this.eventBus.addEventListener(r,n,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,o){this.eventBus.removeEventListener(r,n,o)}}}var Je=class extends yo(Object){};window.ftReduxStores||(window.ftReduxStores={});var cn=class e extends Je{static get(t){var r;let n=typeof t=="string"?t:t.name,o=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Ee(i))return i;if(o==null)return;let a=on({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),s=rn({reducer:(c,u)=>u.type==="CLEAR_FT_REDUX_STORE"?a.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...u.overwrites}:a.reducer(c,u)});return window.ftReduxStores[o.name]=new e(a,s)}constructor(t,r){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ue,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,o,i)=>{let a=o,s=n[a];return s?(...c)=>{let u=s(...c);return this.reduxStore.dispatch(u),u}:c=>{this.setState({[a]:c})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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 et=y(C());var Ze=class extends ${async listMySearches(){let t=g.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Qe=class extends ${async listMyBookmarks(){let t=g.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var bo="ft-user-assets",Fe=et.FtReduxStore.get({name:bo,initialState:{savedSearches:void 0,bookmarks:void 0}}),Gt=class{constructor(){this.currentSession=g.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Qe,this.savedSearchesService=new Ze,g.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=g.getState();(0,et.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Fe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Fe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Fe.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Fe.actions.bookmarks(r)}}},Ha=new Gt;var Kt=class{addCommand(t,r=!1){g.commands.add(t,r)}consumeCommand(t){return g.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Kt;var ln=y(C()),Ht=class{highlightHtml(t,r,n){(0,ln.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Ht;var fn=y(C());var zt=class{isDate(t){var r,n,o,i;return(i=(o=((n=(r=g.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(s=>s.key===t))===null||o===void 0?void 0:o.date)!==null&&i!==void 0?i:!1}format(t,r){var n,o,i;return fn.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:g.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new zt;var xo=y(C());(0,dn.customElement)("ft-app-context")(A);var hn=y(M()),So=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},qt=Symbol("i18nAttributes"),$t=Symbol("i18nListAttributes"),tt=Symbol("i18nProperties"),Te=Symbol("i18nUnsubs");function vn(e){var t;class r extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?br:se}i18n(o,i,...a){var s;if(typeof o=="string")return this.i18nService.resolveMessage(o,i,...a);let c=(s=o.args)!==null&&s!==void 0?s:o.argsProvider?o.argsProvider(this):[];return this.i18nService.resolveMessage(o.context,o.key,...c)}onI18nUpdate(o){var i,a,s;(i=this[qt])===null||i===void 0||i.forEach((c,u)=>{let l=this.getI18nAttributeValue(u);l&&(this[u]=this.getI18nAttributeMessage(l,c,o))}),(a=this[$t])===null||a===void 0||a.forEach((c,u)=>{let l=this.getI18nListAttributeValues(u);this[u]=l?.map(h=>this.getI18nAttributeMessage(h,c,o))}),(s=this[tt])===null||s===void 0||s.forEach((c,u)=>{c.context.toLowerCase()===o.toLowerCase()&&(this[u]=this.i18n(c))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(o,i){return{...o,message:this.i18n({context:o.context,key:o.key,...i})}}getI18nAttributeMessage(o,i,a){var s;let c=!a||((s=o.context)===null||s===void 0?void 0:s.toLowerCase())===a.toLowerCase();return o.context&&o.key&&c?this.buildI18nAttributeMessage(o,i):o}update(o){var i,a,s;super.update(o),(i=this[qt])===null||i===void 0||i.forEach((c,u)=>{let l=this.getI18nAttributeValue(u);l?.context&&l.key&&(o.has(u)||c.argsProvider!=null)&&(this.addI18nContextIfNeeded(l,o,u),this[u]=this.getI18nAttributeMessage(l,c))}),(a=this[$t])===null||a===void 0||a.forEach((c,u)=>{let l=this.getI18nListAttributeValues(u);(o.has(u)||c.argsProvider!=null)&&(this[u]=l?.map(h=>(this.addI18nContextIfNeeded(h,o,u),this.getI18nAttributeMessage(h,c))))}),(s=this[tt])===null||s===void 0||s.forEach((c,u)=>{c.argsProvider!=null&&(this[u]=this.i18n(c))})}getI18nAttributeValue(o){return this[o]}getI18nListAttributeValues(o){return this[o]}addI18nContextIfNeeded(o,i,a){o.context&&o.key&&i.has(a)&&this.addI18nContext(o.context)}connectedCallback(){var o,i,a,s,c,u;super.connectedCallback(),new Set([...(i=(o=this[tt])===null||o===void 0?void 0:o.values())!==null&&i!==void 0?i:[],...[...(s=(a=this[qt])===null||a===void 0?void 0:a.keys())!==null&&s!==void 0?s:[]].map(l=>this.getI18nAttributeValue(l)),...[...(u=(c=this[$t])===null||c===void 0?void 0:c.keys())!==null&&u!==void 0?u:[]].flatMap(l=>this.getI18nListAttributeValues(l))].map(l=>l?.context)).forEach(l=>l&&this.addI18nMessages(l))}addI18nMessages(o,i){o=o.toLowerCase(),this[Te].has(o)||this[Te].set(o,this.i18nService.subscribe(o,()=>this.onI18nUpdate(o))),this.i18nService.prepareContext(o,i??{}),this.onI18nUpdate(o)}addI18nContext(o,i){this.addI18nMessages(typeof o=="string"?o:o.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[Te].forEach(o=>o()),this[Te].clear()}}return t=Te,So([(0,hn.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var pn=class extends vn(nt.FtLitElement){},rt=class extends vn(nt.FtLitElementRedux){};var Ne=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},I=class extends rt{constructor(){super(),this.editorMode=!1,this.addStore(g)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":ot.nothing:ot.html`
|
|
82
82
|
<span class="ft-i18n">
|
|
83
83
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
84
84
|
</span>
|
|
85
|
-
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};I.elementDefinitions={};I.styles=
|
|
85
|
+
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};I.elementDefinitions={};I.styles=vr;Ne([(0,at.redux)()],I.prototype,"editorMode",void 0);Ne([(0,it.property)()],I.prototype,"context",void 0);Ne([(0,it.property)()],I.prototype,"key",void 0);Ne([(0,at.jsonProperty)([])],I.prototype,"args",void 0);Ne([(0,it.property)()],I.prototype,"defaultMessage",void 0);var st=class e{static build(t){return new e(t)}static fromGwt(t){return new e(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(r,n)=>{let o=n;return i=>({context:this.name,key:o,args:typeof i=="function"?void 0:i,argsProvider:typeof i=="function"?i:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...o)=>se.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(r,n)=>se.resolveRawMessage(this.name,n)})}};(0,mn.customElement)("ft-i18n")(I);var Xt=st.build("designedReaderTopicContent");var re=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},P=class extends Me{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,r;return!this.map||!this.error&&!this.content?le.html`
|
|
86
86
|
<section class="topic-loading"></section>
|
|
87
87
|
`:le.html`
|
|
88
88
|
<style>
|
|
@@ -95,14 +95,14 @@
|
|
|
95
95
|
<div class="topic-on-error">
|
|
96
96
|
<ft-icon>WARNING</ft-icon>
|
|
97
97
|
<div>
|
|
98
|
-
${this.is404Error()
|
|
98
|
+
${this.is404Error()?Xt.messages.topicMissingAdvice():Xt.messages.somethingWentWrong()}
|
|
99
99
|
</div>
|
|
100
100
|
</div>
|
|
101
101
|
`;let i=(r=(t=this.map)===null||t===void 0?void 0:t.contentStyles.customCssClasses.join(" "))!==null&&r!==void 0?r:"";return le.html`
|
|
102
102
|
<div class="depth-${(n=this.tocNode)===null||n===void 0?void 0:n.depth} content-locale-${(o=this.map)===null||o===void 0?void 0:o.lang} ${i}">
|
|
103
|
-
${this.content!=null?(0,
|
|
103
|
+
${this.content!=null?(0,yn.unsafeHTML)(`${this.content}`):le.nothing}
|
|
104
104
|
</div>
|
|
105
|
-
`}is404Error(){return this.error.status===404}};
|
|
105
|
+
`}is404Error(){return this.error.status===404}};P.styles=[rr,ne.highlightHtmlStyles];re([(0,ne.redux)()],P.prototype,"map",void 0);re([(0,ne.redux)()],P.prototype,"scrollTarget",void 0);re([(0,oe.state)()],P.prototype,"content",void 0);re([(0,oe.state)()],P.prototype,"error",void 0);re([(0,ne.redux)({selector:(e,t)=>t.disableContextInteractions?"":e.searchInDocumentQuery})],P.prototype,"searchInDocumentQuery",void 0);re([(0,oe.property)({attribute:!1})],P.prototype,"contentPreprocessor",void 0);re([(0,oe.property)({attribute:!1})],P.prototype,"onContentAvailable",void 0);re([(0,oe.query)("section.topic")],P.prototype,"topicContainer",void 0);(0,gn.customElement)("ft-reader-topic-content")(P);})();
|
|
106
106
|
/*! Bundled license information:
|
|
107
107
|
|
|
108
108
|
@lit/reactive-element/css-tag.js:
|