@fluid-topics/ft-combobox 1.3.28 → 1.3.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-combobox.light.js +3 -3
- package/build/ft-combobox.min.js +20 -20
- package/package.json +4 -4
|
@@ -451,7 +451,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
451
451
|
<div class="ft-ripple--background"></div>
|
|
452
452
|
<div class="ft-ripple--effect"></div>
|
|
453
453
|
</div>
|
|
454
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,o;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let o=(...d)=>u=>{d.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),s=d=>{["Enter"," "].includes(d.key)&&o("keyup")(d)},l={passive:!0};t.addEventListener("mouseover",this.startHover,l),t.addEventListener("mousemove",this.moveRipple,l),t.addEventListener("mouseleave",this.endHover,l),t.addEventListener("mousedown",n,l),t.addEventListener("touchstart",a,l),t.addEventListener("touchmove",this.moveRipple,l),t.addEventListener("keydown",s,l),t.addEventListener("focus",this.startFocus,l),t.addEventListener("blur",this.endFocus,l),t.addEventListener("focusin",this.startFocus,l),t.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,l),t.removeEventListener("mousemove",this.moveRipple,l),t.removeEventListener("mouseleave",this.endHover,l),t.removeEventListener("mousedown",n,l),t.removeEventListener("touchstart",a,l),t.removeEventListener("touchmove",this.moveRipple,l),t.removeEventListener("keydown",s,l),t.removeEventListener("focus",this.startFocus,l),t.removeEventListener("blur",this.endFocus,l),t.removeEventListener("focusin",this.startFocus,l),t.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let o=t,n=t,a,s;return o.x!=null?{x:a,y:s}=o:n.touches!=null&&(a=n.touches[0].clientX,s=n.touches[0].clientY),{x:a,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};z.elementDefinitions={};z.styles=Ca;fe([(0,ie.property)({type:Boolean})],z.prototype,"primary",void 0);fe([(0,ie.property)({type:Boolean})],z.prototype,"secondary",void 0);fe([(0,ie.property)({type:Boolean})],z.prototype,"unbounded",void 0);fe([(0,ie.property)({type:Boolean})],z.prototype,"activated",void 0);fe([(0,ie.property)({type:Boolean})],z.prototype,"selected",void 0);fe([(0,ie.property)({type:Boolean})],z.prototype,"disabled",void 0);fe([(0,ie.state)()],z.prototype,"hovered",void 0);fe([(0,ie.state)()],z.prototype,"focused",void 0);fe([(0,ie.state)()],z.prototype,"pressed",void 0);fe([(0,ie.state)()],z.prototype,"rippling",void 0);fe([(0,ie.state)()],z.prototype,"originX",void 0);fe([(0,ie.state)()],z.prototype,"originY",void 0);fe([(0,ie.query)(".ft-ripple")],z.prototype,"ripple",void 0);fe([(0,ie.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,Aa.customElement)("ft-ripple")(z);var La=b(D());var qt=b(Y()),ze=b(ce()),Ta=b(D()),_a=b(Ra());var lt;(function(r){r.ADD_TO_PBK="",r.ALERT="",r.ADD_ALERT="",r.BACK_TO_SEARCH="",r.ADD_BOOKMARK="",r.BOOKMARK="",r.BOOKS="",r.MENU="",r.DOWNLOAD="",r.EDIT="",r.FEEDBACK="",r.HOME="",r.MODIFY_PBK="",r.SCHEDULED="",r.SEARCH="",r.EXPORT="",r.TOC="",r.WRITE_UGC="",r.TRASH="",r.USER="",r.EXTLINK="",r.CALENDAR="",r.OFFLINE="",r.BOOK="",r.DOWNLOAD_PLAIN="",r.CHECK="",r.STAR_PLAIN="",r.TOPICS="",r.DISC="",r.CIRCLE="",r.SHARED="",r.SORT_UNSORTED="",r.SORT_UP="",r.SORT_DOWN="",r.WORKING="",r.CLOSE="",r.ZOOM_OUT="",r.ZOOM_IN="",r.ZOOM_REALSIZE="",r.ZOOM_FULLSCREEN="",r.ADMIN_RESTRICTED="",r.ADMIN="",r.ADMIN_KHUB="",r.ADMIN_THEME="",r.ADMIN_USERS="",r.WARNING="",r.CONTEXT="",r.SEARCH_HOME="",r.STEPS="",r.ICON_EXPAND="",r.ICON_COLLAPSE="",r.INFO="",r.MINUS_PLAIN="",r.PLUS_PLAIN="",r.FACET_HAS_DESCENDANT="",r.TRIANGLE_BOTTOM="",r.TRIANGLE_LEFT="",r.TRIANGLE_RIGHT="",r.TRIANGLE_TOP="",r.THIN_ARROW="",r.SIGN_IN="",r.LOGOUT="",r.TRANSLATE="",r.CLOSE_PLAIN="",r.CHECK_PLAIN="",r.ARTICLE="",r.COLUMNS="",r.ANALYTICS="",r.COLLECTIONS="",r.ARROW_DOWN="",r.ARROW_LEFT="",r.ARROW_RIGHT="",r.ARROW_UP="",r.SEARCH_IN_PUBLICATION="",r.COPY_TO_CLIPBOARD="",r.SHARED_PBK="",r.ATTACHMENTS="",r.STRIPE_ARROW_LEFT="",r.STRIPE_ARROW_RIGHT="",r.FILTERS="",r.DOT="",r.MINUS="",r.PLUS="",r.MAILS_AND_NOTIFICATIONS="",r.SAVE="",r.LOCKER="",r.ADMIN_INTEGRATION="",r.SYNC="",r.TAG="",r.BOOK_PLAIN="",r.UPLOAD="",r.ONLINE="",r.TAG_PLAIN="",r.ACCOUNT_SETTINGS="",r.PRINT="",r.DEFAULT_ROLES="",r.SHORTCUT_MENU="",r.RELATIVES_PLAIN="",r.RELATIVES="",r.PAUSE="",r.PLAY="",r.ADMIN_PORTAL="",r.STAR="",r.THUMBS_DOWN="",r.THUMBS_DOWN_PLAIN="",r.THUMBS_UP="",r.THUMBS_UP_PLAIN="",r.FEEDBACK_PLAIN="",r.RATE_PLAIN="",r.RATE="",r.OFFLINE_SETTINGS="",r.MY_COLLECTIONS="",r.THIN_ARROW_LEFT="",r.THIN_ARROW_RIGHT="",r.RESET="",r.MY_LIBRARY="",r.UNSTRUCTURED_DOC="",r.CONTEXTUAL="",r.THIN_ARROW_UP="",r.ARROW_RIGHT_TO_LINE="",r.DESKTOP="",r.TABLET_LANDSCAPE="",r.TABLET_PORTRAIT="",r.MOBILE_LANDSCAPE="",r.MOBILE_PORTRAIT="",r.DIAGRAM_SUNBURST="",r.DIAGRAM_SANKEY="",r.COMMENT_QUESTION="",r.COMMENT_QUESTION_PLAIN="",r.MESSAGE_BOT="",r.CHART_SIMPLE="",r.BARS_PROGRESS="",r.BOOK_OPEN_GEAR="",r.BOOK_OPEN_GEAR_SLASH="",r.LINE_CHART="",r.STACKED_CHART="",r.CHART_BAR_STACKED="",r.CHART_BAR_GROUPED="",r.EYE_SLASH="",r.X_MARK="",r.EXPAND_WIDE="",r.PIP="",r.PIP_WIDE="",r.LIFE_RING="",r.GLOBE="",r.PIGGY_BANK="",r.EXTLINK_LIGHT="",r.CLONE="",r.CLONE_LINK_SIMPLE="",r.CHART_BAR_NORMALIZED="",r.CONSUMER="",r.OCTAGON_XMARK="",r.HOURGLASS_HALF="",r.CLOCK="",r.CLOCK_THREE="",r.CALENDAR_DAY="",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="",r.WAND_MAGIC_SPARKLES="",r.PAPER_PLANE="",r.CIRCLE_STOP="",r.ARROW_ROTATE_RIGHT="",r.ARROWS_ROTATE="",r.ALIGN_RIGHT="",r.FORMAT_CLEAR="",r.ALIGN_CENTER="",r.ALIGN_LEFT="",r.PALETTE="",r.BOLD="",r.ITALIC="",r.UNDERLINE="",r.STRIKETHROUGH="",r.LINK_SIMPLE_SLASH="",r.LINK_SIMPLE="",r.ROUTE="",r.CIRCLE_USER_SLASH="",r.CIRCLE_USER_CHECK="",r.LIST_MAGNIFYING_GLASS="",r.MEDAL="",r.THUMBS_UP_THUMBS_DOWN_SOLID="",r.ARROW_TURN_DOWN_RIGHT="",r.FLASK="",r.LOCK_KEYHOLE_OPEN_SOLID="",r.HOURGLASS_END="",r.CIRCLE_QUESTION="",r.GRIP_LINES_SOLID="",r.TRANSLATE_SPARKLE_SOLID="",r.CODE="",r.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",r.PAPER_PLANE_SLASH="",r.COMPRESS="",r.EXPAND="",r.ARROW_ROTATE_LEFT="",r.EYE="",r.SHARE="󨃱",r.MOBILE_SMALL="",r.SPARKLES="",r.HAND_SOLID="",r.CLOCK_SOLID="",r.CONTEXT_MENU_CURSOR="",r.LANGUAGE_SLASH="",r.MAGNIFYING_GLASS_FLOPPY_DISK="",r.CABINET_FILING_FLOPPY_DISK=""})(lt||(lt={}));var v;(function(r){r.UNKNOWN="",r.ABW="",r.AUDIO="",r.AVI="",r.CHM="",r.CODE="",r.CSV="",r.DITA="",r.EPUB="",r.EXCEL="",r.FLAC="",r.GIF="",r.GZIP="",r.HTML="",r.IMAGE="",r.JPEG="",r.JSON="",r.M4A="",r.MOV="",r.MP3="",r.MP4="",r.OGG="",r.PDF="",r.PNG="",r.POWERPOINT="",r.RAR="",r.STP="",r.TEXT="",r.VIDEO="",r.WAV="",r.WMA="",r.WORD="",r.XML="",r.YAML="",r.ZIP=""})(v||(v={}));var Oh=new Map([...["abw"].map(r=>[r,v.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(r=>[r,v.AUDIO]),...["avi"].map(r=>[r,v.AVI]),...["chm","xhs"].map(r=>[r,v.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(r=>[r,v.CODE]),...["csv"].map(r=>[r,v.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,v.DITA]),...["epub"].map(r=>[r,v.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,v.EXCEL]),...["flac"].map(r=>[r,v.FLAC]),...["gif"].map(r=>[r,v.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,v.GZIP]),...["html","htm","xhtml"].map(r=>[r,v.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(r=>[r,v.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,v.JPEG]),...["json"].map(r=>[r,v.JSON]),...["m4a","m4p"].map(r=>[r,v.M4A]),...["mov","qt"].map(r=>[r,v.MOV]),...["mp3"].map(r=>[r,v.MP3]),...["mp4","m4v"].map(r=>[r,v.MP4]),...["ogg","oga"].map(r=>[r,v.OGG]),...["pdf","ps"].map(r=>[r,v.PDF]),...["png"].map(r=>[r,v.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,v.POWERPOINT]),...["rar"].map(r=>[r,v.RAR]),...["stp"].map(r=>[r,v.STP]),...["txt","rtf","md","mdown"].map(r=>[r,v.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(r=>[r,v.VIDEO]),...["wav"].map(r=>[r,v.WAV]),...["wma"].map(r=>[r,v.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,v.WORD]),...["xml","xsl","rdf"].map(r=>[r,v.XML]),...["yaml","yml","x-yaml"].map(r=>[r,v.YAML]),...["zip"].map(r=>[r,v.ZIP])]);var Eh={[v.ABW]:"#91ABC6",[v.AUDIO]:"#1795E3",[v.AVI]:"#E63324",[v.CHM]:"#71C3EB",[v.CODE]:"#71C3EB",[v.CSV]:"#1F7345",[v.DITA]:"#71C3EB",[v.EPUB]:"#85B926",[v.EXCEL]:"#1F7345",[v.FLAC]:"#1795E3",[v.GIF]:"#59B031",[v.GZIP]:"#F8AB36",[v.HTML]:"#71C3EB",[v.IMAGE]:"#59B031",[v.JPEG]:"#59B031",[v.JSON]:"#71C3EB",[v.M4A]:"#1795E3",[v.MOV]:"#E63324",[v.MP3]:"#1795E3",[v.MP4]:"#E63324",[v.OGG]:"#1795E3",[v.PDF]:"#E44948",[v.PNG]:"#59B031",[v.POWERPOINT]:"#B54A2B",[v.RAR]:"#F8AB36",[v.STP]:"#3764B1",[v.TEXT]:"#3162AB",[v.UNKNOWN]:"#999999",[v.VIDEO]:"#E63324",[v.WAV]:"#1795E3",[v.WMA]:"#1795E3",[v.WORD]:"#3162AB",[v.XML]:"#71C3EB",[v.YAML]:"#71C3EB",[v.ZIP]:"#F8AB36"};var Na=b(Y()),we=b(D()),me={size:we.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:we.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",we.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:we.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",we.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:we.FtCssVariableFactory.extend("--ft-icon-material-font-family","",we.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:we.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ia=[Na.css`
|
|
454
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,o;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let o=(...d)=>u=>{d.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),s=d=>{["Enter"," "].includes(d.key)&&o("keyup")(d)},l={passive:!0};t.addEventListener("mouseover",this.startHover,l),t.addEventListener("mousemove",this.moveRipple,l),t.addEventListener("mouseleave",this.endHover,l),t.addEventListener("mousedown",n,l),t.addEventListener("touchstart",a,l),t.addEventListener("touchmove",this.moveRipple,l),t.addEventListener("keydown",s,l),t.addEventListener("focus",this.startFocus,l),t.addEventListener("blur",this.endFocus,l),t.addEventListener("focusin",this.startFocus,l),t.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,l),t.removeEventListener("mousemove",this.moveRipple,l),t.removeEventListener("mouseleave",this.endHover,l),t.removeEventListener("mousedown",n,l),t.removeEventListener("touchstart",a,l),t.removeEventListener("touchmove",this.moveRipple,l),t.removeEventListener("keydown",s,l),t.removeEventListener("focus",this.startFocus,l),t.removeEventListener("blur",this.endFocus,l),t.removeEventListener("focusin",this.startFocus,l),t.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let o=t,n=t,a,s;return o.x!=null?{x:a,y:s}=o:n.touches!=null&&(a=n.touches[0].clientX,s=n.touches[0].clientY),{x:a,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};z.elementDefinitions={};z.styles=Ca;fe([(0,ie.property)({type:Boolean})],z.prototype,"primary",void 0);fe([(0,ie.property)({type:Boolean})],z.prototype,"secondary",void 0);fe([(0,ie.property)({type:Boolean})],z.prototype,"unbounded",void 0);fe([(0,ie.property)({type:Boolean})],z.prototype,"activated",void 0);fe([(0,ie.property)({type:Boolean})],z.prototype,"selected",void 0);fe([(0,ie.property)({type:Boolean})],z.prototype,"disabled",void 0);fe([(0,ie.state)()],z.prototype,"hovered",void 0);fe([(0,ie.state)()],z.prototype,"focused",void 0);fe([(0,ie.state)()],z.prototype,"pressed",void 0);fe([(0,ie.state)()],z.prototype,"rippling",void 0);fe([(0,ie.state)()],z.prototype,"originX",void 0);fe([(0,ie.state)()],z.prototype,"originY",void 0);fe([(0,ie.query)(".ft-ripple")],z.prototype,"ripple",void 0);fe([(0,ie.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,Aa.customElement)("ft-ripple")(z);var La=b(D());var qt=b(Y()),ze=b(ce()),Ta=b(D()),_a=b(Ra());var lt;(function(r){r.ADD_TO_PBK="",r.ALERT="",r.ADD_ALERT="",r.BACK_TO_SEARCH="",r.ADD_BOOKMARK="",r.BOOKMARK="",r.BOOKS="",r.MENU="",r.DOWNLOAD="",r.EDIT="",r.FEEDBACK="",r.HOME="",r.MODIFY_PBK="",r.SCHEDULED="",r.SEARCH="",r.EXPORT="",r.TOC="",r.WRITE_UGC="",r.TRASH="",r.USER="",r.EXTLINK="",r.CALENDAR="",r.OFFLINE="",r.BOOK="",r.DOWNLOAD_PLAIN="",r.CHECK="",r.STAR_PLAIN="",r.TOPICS="",r.DISC="",r.CIRCLE="",r.SHARED="",r.SORT_UNSORTED="",r.SORT_UP="",r.SORT_DOWN="",r.WORKING="",r.CLOSE="",r.ZOOM_OUT="",r.ZOOM_IN="",r.ZOOM_REALSIZE="",r.ZOOM_FULLSCREEN="",r.ADMIN_RESTRICTED="",r.ADMIN="",r.ADMIN_KHUB="",r.ADMIN_THEME="",r.ADMIN_USERS="",r.WARNING="",r.CONTEXT="",r.SEARCH_HOME="",r.STEPS="",r.ICON_EXPAND="",r.ICON_COLLAPSE="",r.INFO="",r.MINUS_PLAIN="",r.PLUS_PLAIN="",r.FACET_HAS_DESCENDANT="",r.TRIANGLE_BOTTOM="",r.TRIANGLE_LEFT="",r.TRIANGLE_RIGHT="",r.TRIANGLE_TOP="",r.THIN_ARROW="",r.SIGN_IN="",r.LOGOUT="",r.TRANSLATE="",r.CLOSE_PLAIN="",r.CHECK_PLAIN="",r.ARTICLE="",r.COLUMNS="",r.ANALYTICS="",r.COLLECTIONS="",r.ARROW_DOWN="",r.ARROW_LEFT="",r.ARROW_RIGHT="",r.ARROW_UP="",r.SEARCH_IN_PUBLICATION="",r.COPY_TO_CLIPBOARD="",r.SHARED_PBK="",r.ATTACHMENTS="",r.STRIPE_ARROW_LEFT="",r.STRIPE_ARROW_RIGHT="",r.FILTERS="",r.DOT="",r.MINUS="",r.PLUS="",r.MAILS_AND_NOTIFICATIONS="",r.SAVE="",r.LOCKER="",r.ADMIN_INTEGRATION="",r.SYNC="",r.TAG="",r.BOOK_PLAIN="",r.UPLOAD="",r.ONLINE="",r.TAG_PLAIN="",r.ACCOUNT_SETTINGS="",r.PRINT="",r.DEFAULT_ROLES="",r.SHORTCUT_MENU="",r.RELATIVES_PLAIN="",r.RELATIVES="",r.PAUSE="",r.PLAY="",r.ADMIN_PORTAL="",r.STAR="",r.THUMBS_DOWN="",r.THUMBS_DOWN_PLAIN="",r.THUMBS_UP="",r.THUMBS_UP_PLAIN="",r.FEEDBACK_PLAIN="",r.RATE_PLAIN="",r.RATE="",r.OFFLINE_SETTINGS="",r.MY_COLLECTIONS="",r.THIN_ARROW_LEFT="",r.THIN_ARROW_RIGHT="",r.RESET="",r.MY_LIBRARY="",r.UNSTRUCTURED_DOC="",r.CONTEXTUAL="",r.THIN_ARROW_UP="",r.ARROW_RIGHT_TO_LINE="",r.DESKTOP="",r.TABLET_LANDSCAPE="",r.TABLET_PORTRAIT="",r.MOBILE_LANDSCAPE="",r.MOBILE_PORTRAIT="",r.DIAGRAM_SUNBURST="",r.DIAGRAM_SANKEY="",r.COMMENT_QUESTION="",r.COMMENT_QUESTION_PLAIN="",r.MESSAGE_BOT="",r.CHART_SIMPLE="",r.BARS_PROGRESS="",r.BOOK_OPEN_GEAR="",r.BOOK_OPEN_GEAR_SLASH="",r.LINE_CHART="",r.STACKED_CHART="",r.CHART_BAR_STACKED="",r.CHART_BAR_GROUPED="",r.EYE_SLASH="",r.X_MARK="",r.EXPAND_WIDE="",r.PIP="",r.PIP_WIDE="",r.LIFE_RING="",r.GLOBE="",r.PIGGY_BANK="",r.EXTLINK_LIGHT="",r.CLONE="",r.CLONE_LINK_SIMPLE="",r.CHART_BAR_NORMALIZED="",r.CONSUMER="",r.OCTAGON_XMARK="",r.HOURGLASS_HALF="",r.CLOCK="",r.CLOCK_THREE="",r.CALENDAR_DAY="",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="",r.WAND_MAGIC_SPARKLES="",r.PAPER_PLANE="",r.CIRCLE_STOP="",r.ARROW_ROTATE_RIGHT="",r.ARROWS_ROTATE="",r.ALIGN_RIGHT="",r.FORMAT_CLEAR="",r.ALIGN_CENTER="",r.ALIGN_LEFT="",r.PALETTE="",r.BOLD="",r.ITALIC="",r.UNDERLINE="",r.STRIKETHROUGH="",r.LINK_SIMPLE_SLASH="",r.LINK_SIMPLE="",r.ROUTE="",r.CIRCLE_USER_SLASH="",r.CIRCLE_USER_CHECK="",r.LIST_MAGNIFYING_GLASS="",r.MEDAL="",r.THUMBS_UP_THUMBS_DOWN_SOLID="",r.ARROW_TURN_DOWN_RIGHT="",r.FLASK="",r.LOCK_KEYHOLE_OPEN_SOLID="",r.HOURGLASS_END="",r.CIRCLE_QUESTION="",r.GRIP_LINES_SOLID="",r.TRANSLATE_SPARKLE_SOLID="",r.CODE="",r.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",r.PAPER_PLANE_SLASH="",r.COMPRESS="",r.EXPAND="",r.ARROW_ROTATE_LEFT="",r.EYE="",r.SHARE="󨃱",r.MOBILE_SMALL="",r.SPARKLES="",r.HAND_SOLID="",r.CLOCK_SOLID="",r.CONTEXT_MENU_CURSOR="",r.LANGUAGE_SLASH="",r.MAGNIFYING_GLASS_FLOPPY_DISK="",r.CABINET_FILING_FLOPPY_DISK="",r.BOOKMARK_SLASH="",r.CIRCLE_PAUSE="",r.CIRCLE_PLAY="",r.CIRCLE_STOP_PLAIN="",r.CLOUD_ARROW_DOWN="",r.SHARE_NODES="",r.BELL="",r.BELL_SLASH="",r.FILE="",r.HAND="",r.SQUARE_INFO_SOLID=""})(lt||(lt={}));var v;(function(r){r.UNKNOWN="",r.ABW="",r.AUDIO="",r.AVI="",r.CHM="",r.CODE="",r.CSV="",r.DITA="",r.EPUB="",r.EXCEL="",r.FLAC="",r.GIF="",r.GZIP="",r.HTML="",r.IMAGE="",r.JPEG="",r.JSON="",r.M4A="",r.MOV="",r.MP3="",r.MP4="",r.OGG="",r.PDF="",r.PNG="",r.POWERPOINT="",r.RAR="",r.STP="",r.TEXT="",r.VIDEO="",r.WAV="",r.WMA="",r.WORD="",r.XML="",r.YAML="",r.ZIP=""})(v||(v={}));var Oh=new Map([...["abw"].map(r=>[r,v.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(r=>[r,v.AUDIO]),...["avi"].map(r=>[r,v.AVI]),...["chm","xhs"].map(r=>[r,v.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(r=>[r,v.CODE]),...["csv"].map(r=>[r,v.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,v.DITA]),...["epub"].map(r=>[r,v.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,v.EXCEL]),...["flac"].map(r=>[r,v.FLAC]),...["gif"].map(r=>[r,v.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,v.GZIP]),...["html","htm","xhtml"].map(r=>[r,v.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(r=>[r,v.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,v.JPEG]),...["json"].map(r=>[r,v.JSON]),...["m4a","m4p"].map(r=>[r,v.M4A]),...["mov","qt"].map(r=>[r,v.MOV]),...["mp3"].map(r=>[r,v.MP3]),...["mp4","m4v"].map(r=>[r,v.MP4]),...["ogg","oga"].map(r=>[r,v.OGG]),...["pdf","ps"].map(r=>[r,v.PDF]),...["png"].map(r=>[r,v.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,v.POWERPOINT]),...["rar"].map(r=>[r,v.RAR]),...["stp"].map(r=>[r,v.STP]),...["txt","rtf","md","mdown"].map(r=>[r,v.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(r=>[r,v.VIDEO]),...["wav"].map(r=>[r,v.WAV]),...["wma"].map(r=>[r,v.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,v.WORD]),...["xml","xsl","rdf"].map(r=>[r,v.XML]),...["yaml","yml","x-yaml"].map(r=>[r,v.YAML]),...["zip"].map(r=>[r,v.ZIP])]);var Eh={[v.ABW]:"#91ABC6",[v.AUDIO]:"#1795E3",[v.AVI]:"#E63324",[v.CHM]:"#71C3EB",[v.CODE]:"#71C3EB",[v.CSV]:"#1F7345",[v.DITA]:"#71C3EB",[v.EPUB]:"#85B926",[v.EXCEL]:"#1F7345",[v.FLAC]:"#1795E3",[v.GIF]:"#59B031",[v.GZIP]:"#F8AB36",[v.HTML]:"#71C3EB",[v.IMAGE]:"#59B031",[v.JPEG]:"#59B031",[v.JSON]:"#71C3EB",[v.M4A]:"#1795E3",[v.MOV]:"#E63324",[v.MP3]:"#1795E3",[v.MP4]:"#E63324",[v.OGG]:"#1795E3",[v.PDF]:"#E44948",[v.PNG]:"#59B031",[v.POWERPOINT]:"#B54A2B",[v.RAR]:"#F8AB36",[v.STP]:"#3764B1",[v.TEXT]:"#3162AB",[v.UNKNOWN]:"#999999",[v.VIDEO]:"#E63324",[v.WAV]:"#1795E3",[v.WMA]:"#1795E3",[v.WORD]:"#3162AB",[v.XML]:"#71C3EB",[v.YAML]:"#71C3EB",[v.ZIP]:"#F8AB36"};var Na=b(Y()),we=b(D()),me={size:we.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:we.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",we.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:we.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",we.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:we.FtCssVariableFactory.extend("--ft-icon-material-font-family","",we.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:we.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ia=[Na.css`
|
|
455
455
|
:host, i.ft-icon {
|
|
456
456
|
display: inline-flex;
|
|
457
457
|
align-items: center;
|
|
@@ -970,11 +970,11 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
970
970
|
`;var zt=b(D());var As=b(D());var Li=b(Y()),le=b(ce()),Re=b(D());var Va=b(Y());var ja=Va.css`
|
|
971
971
|
`;var gr=b(D()),js="ft-app-info",dt=class r extends CustomEvent{constructor(t){super(r.eventName,{detail:t})}};dt.eventName="authentication-change";var Ks={session:(r,t)=>{(0,gr.deepEqual)(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>E.dispatchEvent(new dt(t.payload)),0))}},E=gr.FtReduxStore.get({name:js,reducers:Ks,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var bo=b(D());var ut=class r{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=E.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=r.get(t);if(n)o(n);else{let a=E.subscribe(()=>{n=r.get(t),n&&(a(),o(n))})}})}};var yr=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ut.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ut.await()}};var be=class extends yr{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(s,l)=>typeof l!="object"||l==null||Array.isArray(l)?l:Object.fromEntries(Object.entries(l).sort(([d],[u])=>d.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new bo.CacheRegistry,this.cache=t?a.commonCache:new bo.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var mr=class extends be{async listMyBookmarks(){let t=E.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var xo=class{addCommand(t,o=!1){E.commands.add(t,o)}consumeCommand(t){return E.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new xo;var Oe=b(D());var Ka,Pt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Zs=Symbol("clearAfterUnitTest"),br=class extends(0,Oe.withEventBus)(be){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ka]=()=>{this.defaultMessages={},this.cache=new Oe.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=E.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Oe.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let s=t.toLowerCase(),l=this.resolveContext(s);return new Oe.ParametrizedLabelResolver((a=this.defaultMessages[s])!==null&&a!==void 0?a:{},l).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Oe.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Pt({loadedContexts:t})),this.dispatchEvent(new Pt({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new Pt({loadedContexts:[t]})),this.dispatchEvent(new Pt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Oe.delay)(0).then(()=>n()).catch(()=>null)))}};Ka=Zs;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends br{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends br{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var kt=window.FluidTopicsI18nService,xr=window.FluidTopicsCustomI18nService;var Za=b(D()),vo=class{highlightHtml(t,o,n){(0,Za.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new vo;var Ys=b(Ya(),1);var Xa;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Xa||(Xa={}));var Qa;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Qa||(Qa={}));var Ja;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Ja||(Ja={}));var ei;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(ei||(ei={}));var ti;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(ti||(ti={}));var ri;(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(ri||(ri={}));var oi;(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__DISPLAY="TOPIC__DISPLAY",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(oi||(oi={}));var ni;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(ni||(ni={}));var ai;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(ai||(ai={}));var ii;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(ii||(ii={}));var si;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(si||(si={}));var li;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(li||(li={}));var ci;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(ci||(ci={}));var di;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(di||(di={}));var ui;(function(r){r.ASC="ASC",r.DESC="DESC"})(ui||(ui={}));var pi;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(pi||(pi={}));var fi;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(fi||(fi={}));var hi;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(hi||(hi={}));var gi;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(gi||(gi={}));var yi;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(yi||(yi={}));var mi;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(mi||(mi={}));var bi;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(bi||(bi={}));var xi;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xi||(xi={}));var vi;(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(vi||(vi={}));var te;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(te||(te={}));var pt;(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(pt||(pt={}));var Si;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Si||(Si={}));var Ci;(function(r){r.JSON="JSON",r.TEXT="TEXT"})(Ci||(Ci={}));var Oi;(function(r){r.USER="USER",r.ASSISTANT="ASSISTANT"})(Oi||(Oi={}));var Ei;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(Ei||(Ei={}));var qs={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function Ai(r,t){return r===t||(qs[r]??[]).some(o=>Ai(o,t))}function wi(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(n=>Ai(n,t))}var Cr=class extends be{async listMySearches(){let{session:t}=E.getState();return wi(t,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Ri=b(D());var So=class{isDate(t){var o,n,a,s;return(s=(a=((n=(o=E.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===t))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1}format(t,o){var n,a,s;return Ri.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:E.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(s=o?.withTime)!==null&&s!==void 0?s:!1)}};window.FluidTopicsDateService=new So;var Ni=b(D());var Qt=class{static get(t,o){var n,a;let s=E.getState(),{lang:l,region:d}=(a=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Ni.SearchPlaceConverter(s.baseUrl,t??20,s.searchInAllLanguagesAllowed,o??`${l}-${d}`)}};var Co=class{urlToSearchRequest(t){return Qt.get().parse(t)}searchRequestToUrl(t){return Qt.get().serialize(t)}};window.FluidTopicsUrlService=new Co;var Ve=b(D());var ft=class r extends CustomEvent{constructor(t){super(r.eventName,{detail:{currentItem:t}})}};ft.eventName="change";var Oo=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},Ii=new Oo;var Or=class r extends Ve.WithEventBus{static build(){return new r(window.history,Ii,()=>window.location,!1)}constructor(t,o,n,a){var s,l;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(l=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&l!==void 0?l:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ve.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ft(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[s,l,d])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof d=="string"?d:(d??this.windowLocation()).href};n.apply(a,[p,l,d]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(ft.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(ft.eventName,t)}currentItem(){return(0,Ve.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Ve.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Ve.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(a=s),s++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Or.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)});var Ti=E;function _i(r,t){var o;return Ti.getState().authenticationRequired&&!(!((o=Ti.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(t):r()}var re=function(r,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(a<3?l(s):a>3?l(t,o,s):l(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},j=class extends Re.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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=()=>ut.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Re.CacheRegistry,this.cleanSessionDebouncer=new Re.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Li.html`
|
|
972
972
|
<slot></slot>
|
|
973
|
-
`}connectedCallback(){super.connectedCallback(),E.addEventListener(dt.eventName,this.reloadConfiguration)}disconnectedCallback(){E.addEventListener(dt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,n,a,s,l,d,u;super.update(t),t.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&E.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&E.actions.noCustom(this.noCustom),t.has("editorMode")&&E.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&E.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>kt.addContext(p)),t.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(E.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),E.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),E.actions.searchInAllLanguagesAllowed((l=(s=this.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),t.has("authenticationRequired")&&E.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&E.actions.availableContentLocales((u=(d=this.availableContentLocales)===null||d===void 0?void 0:d.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}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())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>_i(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};j.elementDefinitions={};j.styles=ja;re([(0,le.property)()],j.prototype,"baseUrl",void 0);re([(0,le.property)()],j.prototype,"apiIntegrationIdentifier",void 0);re([(0,le.property)()],j.prototype,"apiIntegrationAppVersion",void 0);re([(0,le.property)()],j.prototype,"uiLocale",void 0);re([(0,Re.jsonProperty)(null)],j.prototype,"availableUiLocales",void 0);re([(0,Re.jsonProperty)(null)],j.prototype,"metadataConfiguration",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"editorMode",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"noCustom",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"openExternalDocumentInNewTab",void 0);re([(0,le.property)({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],j.prototype,"noCustomComponent",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"withManualResources",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"navigatorOnline",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"forcedOffline",void 0);re([(0,le.property)({type:Object})],j.prototype,"apiProvider",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"authenticationRequired",void 0);re([(0,Re.jsonProperty)([])],j.prototype,"messageContexts",void 0);re([(0,Re.jsonProperty)(void 0)],j.prototype,"session",void 0);re([(0,le.state)()],j.prototype,"localesConfiguration",void 0);re([(0,le.state)()],j.prototype,"availableContentLocales",void 0);var Zo=b(ce());function Xs(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(r)){if(o=r.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!Er(r[n],t[n]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;for(n of r.entries())if(!Er(n[1],t.get(n[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();let s=l=>Object.keys(l).filter(d=>l[d]!=null);if(a=s(r),o=a.length,o!==s(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let l=a[n];if(!Er(r[l],t[l]))return!1}return!0}return r!==r&&t!==t||r==null&&t==null}function Er(r,t){try{return Xs(r,t)}catch{return!1}}function Jt(r,t){return!Er(r,t)}function Ar(r,t){let o=n=>n[r]===!0;return n=>{if(o(n))return n;let a=t(n);return a[r]=!0,a}}var Pi=b(ce(),1);var Eo=r=>{let t=r??{};return(o,n)=>{var a;let s={hasChanged:Jt,attribute:!1,...t};(0,Pi.property)(s)(o,n);let l=o.constructor;l.reduxProperties=new Map(l.reduxProperties),l.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:d=>d[n],store:t.store})}};var wr=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var Ut=b(ce(),1);var ki=b(ce(),1);function Di(r,t){let o=()=>JSON.parse(JSON.stringify(r));return(0,ki.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Jt,...t??{}})}var Rr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,s=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){a(d);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Bi=b(Y(),1);var Nr=globalThis,Qs=Nr.ShadowRoot&&(Nr.ShadyCSS===void 0||Nr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ky=Symbol();var Ui=(r,t)=>{if(Qs)r.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=Nr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,r.appendChild(n)}};var Ir=class extends Bi.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,s])=>t.registry.define(a,s)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Ui(n,t.elementStyles),n}};function Mi(r,t,...o){var n;let a=r.querySelector(t);for(let s of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var er=function(r,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(a<3?l(s):a>3?l(t,o,s):l(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},zi,$i=Symbol("constructorPrototype"),Fi=Symbol("constructorName"),Wi=Symbol("exportpartsDebouncer"),Hi=Symbol("dynamicDependenciesLoaded"),Be=class extends Ir{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[zi]=new Rr(5),this[Fi]=this.constructor.name,this[$i]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Fi]&&Object.setPrototypeOf(this,this[$i])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[Hi]||(t[Hi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];o=Mi(this.shadowRoot,...s)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}scheduleExportpartsUpdate(){var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Wi].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,a,s,l,d;let u=y=>y!=null&&y.trim().length>0,p=t.filter(u).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let y of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let C=(s=(a=y.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],x=(d=(l=y.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(O=>O.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...C,...x).filter(u).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(y=>p.map(C=>`${y}:${C}--${y}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};zi=Wi;er([(0,Ut.property)()],Be.prototype,"exportpartsPrefix",void 0);er([Di([])],Be.prototype,"exportpartsPrefixes",void 0);er([(0,Ut.property)()],Be.prototype,"customStylesheet",void 0);er([(0,Ut.property)()],Be.prototype,"elementToFocus",void 0);er([(0,Ut.state)()],Be.prototype,"useAdoptedStyleSheets",void 0);function Tr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var tr=Symbol("internalReduxEventsUnsubscribers"),je=Symbol("internalStoresUnsubscribers"),ht=Symbol("internalStores"),Js=Ar(Symbol("withRedux"),function(r){var t,o,n;class a extends r{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(l){super.willUpdate(l),[...this.reduxConstructor.reduxReactiveProperties].some(d=>l.has(d))&&this.updateFromStores()}getUnnamedStore(){if(this[ht].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ht].values()][0]}getStore(l){return l==null?this.getUnnamedStore():this[ht].get(l)}addStore(l,d){var u;d=(u=d??l.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(d),this[ht].set(d,l),this.subscribeToStore(d,l),this.updateFromStores()}removeStore(l){let d=typeof l=="string"?l:l.name;this.unsubscribeFromStore(d),this[ht].delete(d)}setupStores(){this.unsubscribeFromStores(),this[ht].forEach((l,d)=>this.subscribeToStore(d,l)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((l,d)=>{let u=this.constructor.getPropertyOptions(d);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:d)){let p=this.getStore(l.store);p&&(l.store?this[je].has(l.store):this[je].size>0)&&(this[d]=l.selector(p.getState(),this))}})}subscribeToStore(l,d){var u;this[je].set(l,d.subscribe(()=>this.updateFromStores())),this[tr].set(l,[]),Tr(d)&&d.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||d.name===p.store)){let g=y=>this[h](y);d.addEventListener(p.eventName,g),this[tr].get(l).push(()=>d.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(l)}unsubscribeFromStores(){this[je].forEach((l,d)=>this.unsubscribeFromStore(d))}unsubscribeFromStore(l){var d;this[je].has(l)&&this[je].get(l)(),this[je].delete(l),(d=this[tr].get(l))===null||d===void 0||d.forEach(u=>u()),this[tr].delete(l)}onStoreAvailable(l){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=je,o=ht,n=tr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Gi=class extends Js(Be){};function Ee(r){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+r+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Me(r){return!!r&&!!r[K]}function Ne(r){var t;return!!r&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===sl}(r)||Array.isArray(r)||!!r[Xi]||!!(!((t=r.constructor)===null||t===void 0)&&t[Xi])||Po(r)||ko(r))}function gt(r,t,o){o===void 0&&(o=!1),$t(r)===0?(o?Object.keys:Mt)(r).forEach(function(n){o&&typeof n=="symbol"||t(n,r[n],r)}):r.forEach(function(n,a){return t(a,n,r)})}function $t(r){var t=r[K];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:Po(r)?2:ko(r)?3:0}function Bt(r,t){return $t(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function el(r,t){return $t(r)===2?r.get(t):r[t]}function Qi(r,t,o){var n=$t(r);n===2?r.set(t,o):n===3?r.add(o):r[t]=o}function Ji(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function Po(r){return al&&r instanceof Map}function ko(r){return il&&r instanceof Set}function Ke(r){return r.o||r.t}function Do(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=rs(r);delete t[K];for(var o=Mt(t),n=0;n<o.length;n++){var a=o[n],s=t[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:r[a]})}return Object.create(Object.getPrototypeOf(r),t)}function Uo(r,t){return t===void 0&&(t=!1),Bo(r)||Me(r)||!Ne(r)||($t(r)>1&&(r.set=r.add=r.clear=r.delete=tl),Object.freeze(r),t&>(r,function(o,n){return Uo(n,!0)},!0)),r}function tl(){Ee(2)}function Bo(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function Le(r){var t=Lo[r];return t||Ee(18,r),t}function rl(r,t){Lo[r]||(Lo[r]=t)}function Io(){return or}function Ao(r,t){t&&(Le("Patches"),r.u=[],r.s=[],r.v=t)}function _r(r){To(r),r.p.forEach(ol),r.p=null}function To(r){r===or&&(or=r.l)}function Vi(r){return or={p:[],l:or,h:r,m:!0,_:0}}function ol(r){var t=r[K];t.i===0||t.i===1?t.j():t.g=!0}function wo(r,t){t._=t.p.length;var o=t.p[0],n=r!==void 0&&r!==o;return t.h.O||Le("ES5").S(t,r,n),n?(o[K].P&&(_r(t),Ee(4)),Ne(r)&&(r=Lr(t,r),t.l||Pr(t,r)),t.u&&Le("Patches").M(o[K].t,r,t.u,t.s)):r=Lr(t,o,[]),_r(t),t.u&&t.v(t.u,t.s),r!==ts?r:void 0}function Lr(r,t,o){if(Bo(t))return t;var n=t[K];if(!n)return gt(t,function(d,u){return ji(r,n,t,d,u,o)},!0),t;if(n.A!==r)return t;if(!n.P)return Pr(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Do(n.k):n.o,s=a,l=!1;n.i===3&&(s=new Set(a),a.clear(),l=!0),gt(s,function(d,u){return ji(r,n,a,d,u,o,l)}),Pr(r,a,!1),o&&r.u&&Le("Patches").N(n,o,r.u,r.s)}return n.o}function ji(r,t,o,n,a,s,l){if(Me(a)){var d=Lr(r,a,s&&t&&t.i!==3&&!Bt(t.R,n)?s.concat(n):void 0);if(Qi(o,n,d),!Me(d))return;r.m=!1}else l&&o.add(a);if(Ne(a)&&!Bo(a)){if(!r.h.D&&r._<1)return;Lr(r,a),t&&t.A.l||Pr(r,a)}}function Pr(r,t,o){o===void 0&&(o=!1),!r.l&&r.h.D&&r.m&&Uo(t,o)}function Ro(r,t){var o=r[K];return(o?Ke(o):r)[t]}function Ki(r,t){if(t in r)for(var o=Object.getPrototypeOf(r);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function Ze(r){r.P||(r.P=!0,r.l&&Ze(r.l))}function No(r){r.o||(r.o=Do(r.t))}function _o(r,t,o){var n=Po(t)?Le("MapSet").F(t,o):ko(t)?Le("MapSet").T(t,o):r.O?function(a,s){var l=Array.isArray(a),d={i:l?1:0,A:s?s.A:Io(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=d,p=nr;l&&(u=[d],p=rr);var h=Proxy.revocable(u,p),g=h.revoke,y=h.proxy;return d.k=y,d.j=g,y}(t,o):Le("ES5").J(t,o);return(o?o.A:Io()).p.push(n),n}function nl(r){return Me(r)||Ee(22,r),function t(o){if(!Ne(o))return o;var n,a=o[K],s=$t(o);if(a){if(!a.P&&(a.i<4||!Le("ES5").K(a)))return a.t;a.I=!0,n=Zi(o,s),a.I=!1}else n=Zi(o,s);return gt(n,function(l,d){a&&el(a.t,l)===d||Qi(n,l,t(d))}),s===3?new Set(n):n}(r)}function Zi(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return Do(r)}function es(){function r(l,d){var u=s[l];return u?u.enumerable=d:s[l]=u={configurable:!0,enumerable:d,get:function(){var p=this[K];return nr.get(p,l)},set:function(p){var h=this[K];nr.set(h,l,p)}},u}function t(l){for(var d=l.length-1;d>=0;d--){var u=l[d][K];if(!u.P)switch(u.i){case 5:n(u)&&Ze(u);break;case 4:o(u)&&Ze(u)}}}function o(l){for(var d=l.t,u=l.k,p=Mt(u),h=p.length-1;h>=0;h--){var g=p[h];if(g!==K){var y=d[g];if(y===void 0&&!Bt(d,g))return!0;var C=u[g],x=C&&C[K];if(x?x.t!==y:!Ji(C,y))return!0}}var O=!!d[K];return p.length!==Mt(d).length+(O?0:1)}function n(l){var d=l.k;if(d.length!==l.t.length)return!0;var u=Object.getOwnPropertyDescriptor(d,d.length-1);if(u&&!u.get)return!0;for(var p=0;p<d.length;p++)if(!d.hasOwnProperty(p))return!0;return!1}function a(l){l.g&&Ee(3,JSON.stringify(Ke(l)))}var s={};rl("ES5",{J:function(l,d){var u=Array.isArray(l),p=function(g,y){if(g){for(var C=Array(y.length),x=0;x<y.length;x++)Object.defineProperty(C,""+x,r(x,!0));return C}var O=rs(y);delete O[K];for(var M=Mt(O),L=0;L<M.length;L++){var P=M[L];O[P]=r(P,g||!!O[P].enumerable)}return Object.create(Object.getPrototypeOf(y),O)}(u,l),h={i:u?5:4,A:d?d.A:Io(),P:!1,I:!1,R:{},l:d,t:l,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,K,{value:h,writable:!0}),p},S:function(l,d,u){u?Me(d)&&d[K].A===l&&t(l.p):(l.u&&function p(h){if(h&&typeof h=="object"){var g=h[K];if(g){var y=g.t,C=g.k,x=g.R,O=g.i;if(O===4)gt(C,function(F){F!==K&&(y[F]!==void 0||Bt(y,F)?x[F]||p(C[F]):(x[F]=!0,Ze(g)))}),gt(y,function(F){C[F]!==void 0||Bt(C,F)||(x[F]=!1,Ze(g))});else if(O===5){if(n(g)&&(Ze(g),x.length=!0),C.length<y.length)for(var M=C.length;M<y.length;M++)x[M]=!1;else for(var L=y.length;L<C.length;L++)x[L]=!0;for(var P=Math.min(C.length,y.length),G=0;G<P;G++)C.hasOwnProperty(G)||(x[G]=!0),x[G]===void 0&&p(C[G])}}}}(l.p[0]),t(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var qi,or,Mo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",al=typeof Map<"u",il=typeof Set<"u",Yi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ts=Mo?Symbol.for("immer-nothing"):((qi={})["immer-nothing"]=!0,qi),Xi=Mo?Symbol.for("immer-draftable"):"__$immer_draftable",K=Mo?Symbol.for("immer-state"):"__$immer_state";var sl=""+Object.prototype.constructor,Mt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,rs=Object.getOwnPropertyDescriptors||function(r){var t={};return Mt(r).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(r,o)}),t},Lo={},nr={get:function(r,t){if(t===K)return r;var o=Ke(r);if(!Bt(o,t))return function(a,s,l){var d,u=Ki(s,l);return u?"value"in u?u.value:(d=u.get)===null||d===void 0?void 0:d.call(a.k):void 0}(r,o,t);var n=o[t];return r.I||!Ne(n)?n:n===Ro(r.t,t)?(No(r),r.o[t]=_o(r.A.h,n,r)):n},has:function(r,t){return t in Ke(r)},ownKeys:function(r){return Reflect.ownKeys(Ke(r))},set:function(r,t,o){var n=Ki(Ke(r),t);if(n?.set)return n.set.call(r.k,o),!0;if(!r.P){var a=Ro(Ke(r),t),s=a?.[K];if(s&&s.t===o)return r.o[t]=o,r.R[t]=!1,!0;if(Ji(o,a)&&(o!==void 0||Bt(r.t,t)))return!0;No(r),Ze(r)}return r.o[t]===o&&(o!==void 0||t in r.o)||Number.isNaN(o)&&Number.isNaN(r.o[t])||(r.o[t]=o,r.R[t]=!0),!0},deleteProperty:function(r,t){return Ro(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,No(r),Ze(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var o=Ke(r),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Ee(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Ee(12)}},rr={};gt(nr,function(r,t){rr[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),rr.deleteProperty=function(r,t){return rr.set.call(this,r,t,void 0)},rr.set=function(r,t,o){return nr.set.call(this,r[0],t,o,r[0])};var ll=function(){function r(o){var n=this;this.O=Yi,this.D=!0,this.produce=function(a,s,l){if(typeof a=="function"&&typeof s!="function"){var d=s;s=a;var u=n;return function(O){var M=this;O===void 0&&(O=d);for(var L=arguments.length,P=Array(L>1?L-1:0),G=1;G<L;G++)P[G-1]=arguments[G];return u.produce(O,function(F){var ne;return(ne=s).call.apply(ne,[M,F].concat(P))})}}var p;if(typeof s!="function"&&Ee(6),l!==void 0&&typeof l!="function"&&Ee(7),Ne(a)){var h=Vi(n),g=_o(n,a,void 0),y=!0;try{p=s(g),y=!1}finally{y?_r(h):To(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Ao(h,l),wo(O,h)},function(O){throw _r(h),O}):(Ao(h,l),wo(p,h))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===ts&&(p=void 0),n.D&&Uo(p,!0),l){var C=[],x=[];Le("Patches").M(a,p,C,x),l(C,x)}return p}Ee(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var h=arguments.length,g=Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return n.produceWithPatches(p,function(C){return a.apply(void 0,[C].concat(g))})};var l,d,u=n.produce(a,s,function(p,h){l=p,d=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,l,d]}):[u,l,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=r.prototype;return t.createDraft=function(o){Ne(o)||Ee(8),Me(o)&&(o=nl(o));var n=Vi(this),a=_o(this,o,void 0);return a[K].C=!0,To(n),a},t.finishDraft=function(o,n){var a=o&&o[K],s=a.A;return Ao(s,n),wo(void 0,s)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Yi&&Ee(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){o=s.value;break}}a>-1&&(n=n.slice(a+1));var l=Le("Patches").$;return Me(o)?l(o,n):this.produce(o,function(d){return l(d,n)})},r}(),xe=new ll,cl=xe.produce,lm=xe.produceWithPatches.bind(xe),cm=xe.setAutoFreeze.bind(xe),dm=xe.setUseProxies.bind(xe),um=xe.applyPatches.bind(xe),pm=xe.createDraft.bind(xe),fm=xe.finishDraft.bind(xe),kr=cl;function yt(r){"@babel/helpers - typeof";return yt=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},yt(r)}function os(r,t){if(yt(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var n=o.call(r,t||"default");if(yt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function ns(r){var t=os(r,"string");return yt(t)=="symbol"?t:t+""}function as(r,t,o){return(t=ns(t))in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o,r}function is(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),o.push.apply(o,n)}return o}function $o(r){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?is(Object(o),!0).forEach(function(n){as(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):is(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function ue(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var ss=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Fo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Dr={INIT:"@@redux/INIT"+Fo(),REPLACE:"@@redux/REPLACE"+Fo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Fo()}};function dl(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function Ho(r,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ue(1));return o(Ho)(r,t)}if(typeof r!="function")throw new Error(ue(2));var a=r,s=t,l=[],d=l,u=!1;function p(){d===l&&(d=l.slice())}function h(){if(u)throw new Error(ue(3));return s}function g(O){if(typeof O!="function")throw new Error(ue(4));if(u)throw new Error(ue(5));var M=!0;return p(),d.push(O),function(){if(M){if(u)throw new Error(ue(6));M=!1,p();var P=d.indexOf(O);d.splice(P,1),l=null}}}function y(O){if(!dl(O))throw new Error(ue(7));if(typeof O.type>"u")throw new Error(ue(8));if(u)throw new Error(ue(9));try{u=!0,s=a(s,O)}finally{u=!1}for(var M=l=d,L=0;L<M.length;L++){var P=M[L];P()}return O}function C(O){if(typeof O!="function")throw new Error(ue(10));a=O,y({type:Dr.REPLACE})}function x(){var O,M=g;return O={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(ue(11));function G(){P.next&&P.next(h())}G();var F=M(G);return{unsubscribe:F}}},O[ss]=function(){return this},O}return y({type:Dr.INIT}),n={dispatch:y,subscribe:g,getState:h,replaceReducer:C},n[ss]=x,n}function ul(r){Object.keys(r).forEach(function(t){var o=r[t],n=o(void 0,{type:Dr.INIT});if(typeof n>"u")throw new Error(ue(12));if(typeof o(void 0,{type:Dr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function ls(r){for(var t=Object.keys(r),o={},n=0;n<t.length;n++){var a=t[n];typeof r[a]=="function"&&(o[a]=r[a])}var s=Object.keys(o),l,d;try{ul(o)}catch(u){d=u}return function(p,h){if(p===void 0&&(p={}),d)throw d;if(0)var g;for(var y=!1,C={},x=0;x<s.length;x++){var O=s[x],M=o[O],L=p[O],P=M(L,h);if(typeof P>"u"){var G=h&&h.type;throw new Error(ue(14))}C[O]=P,y=y||P!==L}return y=y||s.length!==Object.keys(p).length,y?C:p}}function Ft(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function cs(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(ue(15))},l={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},d=t.map(function(u){return u(l)});return s=Ft.apply(void 0,d)(a.dispatch),$o($o({},a),{},{dispatch:s})}}}function ds(r){var t=function(n){var a=n.dispatch,s=n.getState;return function(l){return function(d){return typeof d=="function"?d(a,s,r):l(d)}}};return t}var us=ds();us.withExtraArgument=ds;var zo=us;var ys=function(){var r=function(t,o){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},r(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");r(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),pl=function(r,t){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(p){return function(h){return u([p,h])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(s=o.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){o.label=p[1];break}if(p[0]===6&&o.label<s[1]){o.label=s[1],s=p;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(p);break}s[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(r,o)}catch(h){p=[6,h],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ht=function(r,t){for(var o=0,n=t.length,a=r.length;o<n;o++,a++)r[a]=t[o];return r},fl=Object.defineProperty,hl=Object.defineProperties,gl=Object.getOwnPropertyDescriptors,ps=Object.getOwnPropertySymbols,yl=Object.prototype.hasOwnProperty,ml=Object.prototype.propertyIsEnumerable,fs=function(r,t,o){return t in r?fl(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o},qe=function(r,t){for(var o in t||(t={}))yl.call(t,o)&&fs(r,o,t[o]);if(ps)for(var n=0,a=ps(t);n<a.length;n++){var o=a[n];ml.call(t,o)&&fs(r,o,t[o])}return r},Wo=function(r,t){return hl(r,gl(t))},bl=function(r,t,o){return new Promise(function(n,a){var s=function(u){try{d(o.next(u))}catch(p){a(p)}},l=function(u){try{d(o.throw(u))}catch(p){a(p)}},d=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,l)};d((o=o.apply(r,t)).next())})};var xl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ft:Ft.apply(null,arguments)},_m=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function vl(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Sl=function(r){ys(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=r.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Ht([void 0],o[0].concat(this)))):new(t.bind.apply(t,Ht([void 0],o.concat(this))))},t}(Array),Cl=function(r){ys(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=r.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Ht([void 0],o[0].concat(this)))):new(t.bind.apply(t,Ht([void 0],o.concat(this))))},t}(Array);function jo(r){return Ne(r)?kr(r,function(){}):r}function Ol(r){return typeof r=="boolean"}function El(){return function(t){return Al(t)}}function Al(r){r===void 0&&(r={});var t=r.thunk,o=t===void 0?!0:t,n=r.immutableCheck,a=n===void 0?!0:n,s=r.serializableCheck,l=s===void 0?!0:s,d=new Sl;if(o&&(Ol(o)?d.push(zo):d.push(zo.withExtraArgument(o.extraArgument))),0){if(a)var u;if(l)var p}return d}var Go=!0;function ms(r){var t=El(),o=r||{},n=o.reducer,a=n===void 0?void 0:n,s=o.middleware,l=s===void 0?t():s,d=o.devTools,u=d===void 0?!0:d,p=o.preloadedState,h=p===void 0?void 0:p,g=o.enhancers,y=g===void 0?void 0:g,C;if(typeof a=="function")C=a;else if(vl(a))C=ls(a);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 x=l;if(typeof x=="function"&&(x=x(t),!Go&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Go&&x.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=cs.apply(void 0,x),M=Ft;u&&(M=xl(qe({trace:!Go},typeof u=="object"&&u)));var L=new Cl(O),P=L;Array.isArray(y)?P=Ht([O],y):typeof y=="function"&&(P=y(L));var G=M.apply(void 0,P);return Ho(C,h,G)}function Ye(r,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var s=t.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return qe(qe({type:r,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:r,payload:n[0]}}return o.toString=function(){return""+r},o.type=r,o.match=function(n){return n.type===r},o}function bs(r){var t={},o=[],n,a={addCase:function(s,l){var d=typeof s=="string"?s:s.type;if(d in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[d]=l,a},addMatcher:function(s,l){return o.push({matcher:s,reducer:l}),a},addDefaultCase:function(s){return n=s,a}};return r(a),[t,o,n]}function wl(r){return typeof r=="function"}function Rl(r,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?bs(t):[t,o,n],s=a[0],l=a[1],d=a[2],u;if(wl(r))u=function(){return jo(r())};else{var p=jo(r);u=function(){return p}}function h(g,y){g===void 0&&(g=u());var C=Ht([s[y.type]],l.filter(function(x){var O=x.matcher;return O(y)}).map(function(x){var O=x.reducer;return O}));return C.filter(function(x){return!!x}).length===0&&(C=[d]),C.reduce(function(x,O){if(O)if(Me(x)){var M=x,L=O(M,y);return L===void 0?x:L}else{if(Ne(x))return kr(x,function(P){return O(P,y)});var L=O(x,y);if(L===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return x},g)}return h.getInitialState=u,h}function Nl(r,t){return r+"/"+t}function xs(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof r.initialState=="function"?r.initialState:jo(r.initialState),n=r.reducers||{},a=Object.keys(n),s={},l={},d={};a.forEach(function(h){var g=n[h],y=Nl(t,h),C,x;"reducer"in g?(C=g.reducer,x=g.prepare):C=g,s[h]=C,l[y]=C,d[h]=x?Ye(y,x):Ye(y)});function u(){var h=typeof r.extraReducers=="function"?bs(r.extraReducers):[r.extraReducers],g=h[0],y=g===void 0?{}:g,C=h[1],x=C===void 0?[]:C,O=h[2],M=O===void 0?void 0:O,L=qe(qe({},y),l);return Rl(o,function(P){for(var G in L)P.addCase(G,L[G]);for(var F=0,ne=x;F<ne.length;F++){var Ae=ne[F];P.addMatcher(Ae.matcher,Ae.reducer)}M&&P.addDefaultCase(M)})}var p;return{name:t,reducer:function(h,g){return p||(p=u()),p(h,g)},actions:d,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Il="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Tl=function(r){r===void 0&&(r=21);for(var t="",o=r;o--;)t+=Il[Math.random()*64|0];return t},_l=["name","message","stack","code"],Vo=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),hs=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),Ll=function(r){if(typeof r=="object"&&r!==null){for(var t={},o=0,n=_l;o<n.length;o++){var a=n[o];typeof r[a]=="string"&&(t[a]=r[a])}return t}return{message:String(r)}},Dm=function(){function r(t,o,n){var a=Ye(t+"/fulfilled",function(h,g,y,C){return{payload:h,meta:Wo(qe({},C||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),s=Ye(t+"/pending",function(h,g,y){return{payload:void 0,meta:Wo(qe({},y||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),l=Ye(t+"/rejected",function(h,g,y,C,x){return{payload:C,error:(n&&n.serializeError||Ll)(h||"Rejected"),meta:Wo(qe({},x||{}),{arg:y,requestId:g,rejectedWithValue:!!C,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),d=!1,u=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(g,y,C){var x=n?.idGenerator?n.idGenerator(h):Tl(),O=new u,M,L=!1;function P(F){M=F,O.abort()}var G=function(){return bl(this,null,function(){var F,ne,Ae,Qe,pe,Je,mt;return pl(this,function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),Qe=(F=n?.condition)==null?void 0:F.call(n,h,{getState:y,extra:C}),kl(Qe)?[4,Qe]:[3,2];case 1:Qe=f.sent(),f.label=2;case 2:if(Qe===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,pe=new Promise(function(m,R){return O.signal.addEventListener("abort",function(){return R({name:"AbortError",message:M||"Aborted"})})}),g(s(x,h,(ne=n?.getPendingMeta)==null?void 0:ne.call(n,{requestId:x,arg:h},{getState:y,extra:C}))),[4,Promise.race([pe,Promise.resolve(o(h,{dispatch:g,getState:y,extra:C,requestId:x,signal:O.signal,abort:P,rejectWithValue:function(m,R){return new Vo(m,R)},fulfillWithValue:function(m,R){return new hs(m,R)}})).then(function(m){if(m instanceof Vo)throw m;return m instanceof hs?a(m.payload,x,h,m.meta):a(m,x,h)})])];case 3:return Ae=f.sent(),[3,5];case 4:return Je=f.sent(),Ae=Je instanceof Vo?l(null,x,h,Je.payload,Je.meta):l(Je,x,h),[3,5];case 5:return mt=n&&!n.dispatchConditionRejection&&l.match(Ae)&&Ae.meta.condition,mt||g(Ae),[2,Ae]}})})}();return Object.assign(G,{abort:P,requestId:x,arg:h,unwrap:function(){return G.then(Pl)}})}}return Object.assign(p,{pending:s,rejected:l,fulfilled:a,typePrefix:t})}return r.withTypes=function(){return r},r}();function Pl(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function kl(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var vs="listener",Ss="completed",Cs="cancelled",Um="task-"+Cs,Bm="task-"+Ss,Mm=vs+"-"+Cs,$m=vs+"-"+Ss;var Ko="listenerMiddleware";var Fm=Ye(Ko+"/add"),Hm=Ye(Ko+"/removeAll"),zm=Ye(Ko+"/remove");var gs,Wm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(gs||(gs=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Dl=function(r){return function(t){setTimeout(t,r)}},Gm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Dl(10);es();var Ul=Ar(Symbol("withEventBus"),function(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),Ur=class extends Ul(Object){};window.ftReduxStores||(window.ftReduxStores={});var Os=class r extends Ur{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(Tr(s))return s;if(a==null)return;let l=xs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=ms({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:l.reducer(u,p)});return window.ftReduxStores[a.name]=new r(l,d,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new wr;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,l,d)=>{let u=l,p=s[u];return p?(...h)=>{let g=p(...h.map(a));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[u]:a(h)})}}}),this.eventBus=n??this.eventBus}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 Br=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let s=typeof t=="string"?new Date(t):t,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s);if(!a)return l;let d=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return`${l} ${d}`}};var Es=b(D()),Mr=function(r,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(a<3?l(s):a>3?l(t,o,s):l(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},hb=(0,Es.applyMixinOnce)(Symbol("withDateFormat"),function(r){class t extends r{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(E)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?d=>Br.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Mr([(0,Zo.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Mr([(0,Zo.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Mr([Eo({store:E.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Mr([Eo({store:E.name})],t.prototype,"uiLocale",void 0),t});var Hr=b(D());var $r=class extends be{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var Fr=class extends be{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var Bl="ft-user-assets",Ml={setAssetCount:(r,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;r.assetCounts.allAsset[o]=n},clearAssetCount:r=>{Object.values(pt).forEach(t=>{r.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(r,t)=>{let o=t.payload.mapId;r.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}}},ve=Hr.FtReduxStore.get({name:Bl,reducers:Ml,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(pt).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),qo=class{constructor(t=new $r,o=new Fr){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new mr,this.savedSearchesService=new Cr,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=E.getState();(0,Hr.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ve.actions.clearAssetCount(),ve.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ve.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ve.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ve.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ve.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&ve.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&ve.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(ve.getState().assetCounts.bookmarkByMap).length!==0;t===pt.BOOKMARKS&&o&&ve.actions.clearBookmarkCountByMap(),ve.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ve.actions.bookmarks(o)}}},$l=new qo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=$l);(0,As.customElement)("ft-app-context")(j);var Ns=b(ce());var Yo=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[n,a]=t.split(".");return{context:n,key:a,message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},ws=new Yo;var Fl=function(r,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(a<3?l(s):a>3?l(t,o,s):l(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},Hl=Symbol("i18nAttributes"),zl=Symbol("i18nListAttributes"),Is=Symbol("i18nProperties"),zr=Symbol("i18nContexts"),ar=Symbol("i18nUnsubs"),Gr=(0,zt.applyMixinOnce)(Symbol("withI18n"),function(r){var t,o;class n extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?xr:kt}i18n(s){let{context:l,key:d,message:u}=s,{custom:p,args:h,argsProvider:g}=s;if(l&&d){this.hasI18nContext(l)||this.addI18nContext(l,void 0,p);let y=h??(g?g(this):[]);return this.getI18nService(p).resolveMessage(l,d,...y)}return u}customI18n(s,l){if(ws.isI18nKey(s)){let[d,u]=s.split(".");return this.i18n({custom:!0,context:d,key:u,...l})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((l,d,u)=>s.has(d)||typeof l.argsProvider=="function"),this.updateI18nProperties(l=>typeof l.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((l,d,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===s}),this.updateI18nProperties(l=>l.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var l,d;let u=this,p=(h,g,y)=>y?.context&&y.key&&s(h,g,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(l=this[Hl])===null||l===void 0||l.forEach((h,g)=>u[g]=p(h,g,u[g])),(d=this[zl])===null||d===void 0||d.forEach((h,g)=>{var y;return u[g]=(y=u[g])===null||y===void 0?void 0:y.map(C=>p(h,g,C))})}updateI18nProperties(s){var l;(l=this[Is])===null||l===void 0||l.forEach((d,u)=>{s(d,u)&&(this[u]=this.i18n(d))})}addI18nMessages(s,l,d){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,l,d)}addI18nContext(s,l,d){let u=(typeof s=="string"?s:s.name).toLowerCase();d=typeof s=="string"?d:s.custom,this[zr].set(u,{isCustomContext:d}),this[ar].has(u)||this[ar].set(u,this.getI18nService(d).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(d).prepareContext(u,l)}hasI18nContext(s){return this[zr].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[zr].forEach((s,l)=>this.addI18nContext(l,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ar].forEach(s=>s()),this[ar].clear()}}return t=zr,o=ar,Fl([(0,Ns.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Rs=class extends Gr(zt.FtLitElement){},Wr=class extends Gr(zt.FtLitElementRedux){};var ir=function(r,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(a<3?l(s):a>3?l(t,o,s):l(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},Ie=class extends Wr{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Vr.nothing:Vr.html`
|
|
973
|
+
`}connectedCallback(){super.connectedCallback(),E.addEventListener(dt.eventName,this.reloadConfiguration)}disconnectedCallback(){E.addEventListener(dt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,n,a,s,l,d,u;super.update(t),t.has("baseUrl")&&(E.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&E.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&E.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&E.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&E.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&E.actions.noCustom(this.noCustom),t.has("editorMode")&&E.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&E.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&E.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>kt.addContext(p)),t.has("openExternalDocumentInNewTab")&&E.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&E.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&E.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(E.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),E.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),E.actions.searchInAllLanguagesAllowed((l=(s=this.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),t.has("authenticationRequired")&&E.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&E.actions.availableContentLocales((u=(d=this.availableContentLocales)===null||d===void 0?void 0:d.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}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())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>_i(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};j.elementDefinitions={};j.styles=ja;re([(0,le.property)()],j.prototype,"baseUrl",void 0);re([(0,le.property)()],j.prototype,"apiIntegrationIdentifier",void 0);re([(0,le.property)()],j.prototype,"apiIntegrationAppVersion",void 0);re([(0,le.property)()],j.prototype,"uiLocale",void 0);re([(0,Re.jsonProperty)(null)],j.prototype,"availableUiLocales",void 0);re([(0,Re.jsonProperty)(null)],j.prototype,"metadataConfiguration",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"editorMode",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"noCustom",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"openExternalDocumentInNewTab",void 0);re([(0,le.property)({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],j.prototype,"noCustomComponent",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"withManualResources",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"navigatorOnline",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"forcedOffline",void 0);re([(0,le.property)({type:Object})],j.prototype,"apiProvider",void 0);re([(0,le.property)({type:Boolean})],j.prototype,"authenticationRequired",void 0);re([(0,Re.jsonProperty)([])],j.prototype,"messageContexts",void 0);re([(0,Re.jsonProperty)(void 0)],j.prototype,"session",void 0);re([(0,le.state)()],j.prototype,"localesConfiguration",void 0);re([(0,le.state)()],j.prototype,"availableContentLocales",void 0);var Zo=b(ce());function Xs(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(r)){if(o=r.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!Er(r[n],t[n]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;for(n of r.entries())if(!Er(n[1],t.get(n[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(n of r.entries())if(!t.has(n[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();let s=l=>Object.keys(l).filter(d=>l[d]!=null);if(a=s(r),o=a.length,o!==s(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let l=a[n];if(!Er(r[l],t[l]))return!1}return!0}return r!==r&&t!==t||r==null&&t==null}function Er(r,t){try{return Xs(r,t)}catch{return!1}}function Jt(r,t){return!Er(r,t)}function Ar(r,t){let o=n=>n[r]===!0;return n=>{if(o(n))return n;let a=t(n);return a[r]=!0,a}}var Pi=b(ce(),1);var Eo=r=>{let t=r??{};return(o,n)=>{var a;let s={hasChanged:Jt,attribute:!1,...t};(0,Pi.property)(s)(o,n);let l=o.constructor;l.reduxProperties=new Map(l.reduxProperties),l.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:d=>d[n],store:t.store})}};var wr=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var Ut=b(ce(),1);var ki=b(ce(),1);function Di(r,t){let o=()=>JSON.parse(JSON.stringify(r));return(0,ki.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Jt,...t??{}})}var Rr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,s=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){a(d);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Bi=b(Y(),1);var Nr=globalThis,Qs=Nr.ShadowRoot&&(Nr.ShadyCSS===void 0||Nr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ky=Symbol();var Ui=(r,t)=>{if(Qs)r.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=Nr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,r.appendChild(n)}};var Ir=class extends Bi.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,s])=>t.registry.define(a,s)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Ui(n,t.elementStyles),n}};function Mi(r,t,...o){var n;let a=r.querySelector(t);for(let s of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var er=function(r,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(a<3?l(s):a>3?l(t,o,s):l(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},zi,$i=Symbol("constructorPrototype"),Fi=Symbol("constructorName"),Wi=Symbol("exportpartsDebouncer"),Hi=Symbol("dynamicDependenciesLoaded"),Be=class extends Ir{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[zi]=new Rr(5),this[Fi]=this.constructor.name,this[$i]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Fi]&&Object.setPrototypeOf(this,this[$i])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[Hi]||(t[Hi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];o=Mi(this.shadowRoot,...s)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}scheduleExportpartsUpdate(){var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Wi].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var o,n,a,s,l,d;let u=y=>y!=null&&y.trim().length>0,p=t.filter(u).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let y of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let C=(s=(a=y.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],x=(d=(l=y.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(O=>O.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...C,...x).filter(u).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let g=[...h.values()].flatMap(y=>p.map(C=>`${y}:${C}--${y}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};zi=Wi;er([(0,Ut.property)()],Be.prototype,"exportpartsPrefix",void 0);er([Di([])],Be.prototype,"exportpartsPrefixes",void 0);er([(0,Ut.property)()],Be.prototype,"customStylesheet",void 0);er([(0,Ut.property)()],Be.prototype,"elementToFocus",void 0);er([(0,Ut.state)()],Be.prototype,"useAdoptedStyleSheets",void 0);function Tr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var tr=Symbol("internalReduxEventsUnsubscribers"),je=Symbol("internalStoresUnsubscribers"),ht=Symbol("internalStores"),Js=Ar(Symbol("withRedux"),function(r){var t,o,n;class a extends r{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(l){super.willUpdate(l),[...this.reduxConstructor.reduxReactiveProperties].some(d=>l.has(d))&&this.updateFromStores()}getUnnamedStore(){if(this[ht].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ht].values()][0]}getStore(l){return l==null?this.getUnnamedStore():this[ht].get(l)}addStore(l,d){var u;d=(u=d??l.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(d),this[ht].set(d,l),this.subscribeToStore(d,l),this.updateFromStores()}removeStore(l){let d=typeof l=="string"?l:l.name;this.unsubscribeFromStore(d),this[ht].delete(d)}setupStores(){this.unsubscribeFromStores(),this[ht].forEach((l,d)=>this.subscribeToStore(d,l)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((l,d)=>{let u=this.constructor.getPropertyOptions(d);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:d)){let p=this.getStore(l.store);p&&(l.store?this[je].has(l.store):this[je].size>0)&&(this[d]=l.selector(p.getState(),this))}})}subscribeToStore(l,d){var u;this[je].set(l,d.subscribe(()=>this.updateFromStores())),this[tr].set(l,[]),Tr(d)&&d.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||d.name===p.store)){let g=y=>this[h](y);d.addEventListener(p.eventName,g),this[tr].get(l).push(()=>d.removeEventListener(p.eventName,g))}})),this.onStoreAvailable(l)}unsubscribeFromStores(){this[je].forEach((l,d)=>this.unsubscribeFromStore(d))}unsubscribeFromStore(l){var d;this[je].has(l)&&this[je].get(l)(),this[je].delete(l),(d=this[tr].get(l))===null||d===void 0||d.forEach(u=>u()),this[tr].delete(l)}onStoreAvailable(l){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=je,o=ht,n=tr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Gi=class extends Js(Be){};function Ee(r){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+r+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Me(r){return!!r&&!!r[K]}function Ne(r){var t;return!!r&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===sl}(r)||Array.isArray(r)||!!r[Xi]||!!(!((t=r.constructor)===null||t===void 0)&&t[Xi])||Po(r)||ko(r))}function gt(r,t,o){o===void 0&&(o=!1),$t(r)===0?(o?Object.keys:Mt)(r).forEach(function(n){o&&typeof n=="symbol"||t(n,r[n],r)}):r.forEach(function(n,a){return t(a,n,r)})}function $t(r){var t=r[K];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:Po(r)?2:ko(r)?3:0}function Bt(r,t){return $t(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function el(r,t){return $t(r)===2?r.get(t):r[t]}function Qi(r,t,o){var n=$t(r);n===2?r.set(t,o):n===3?r.add(o):r[t]=o}function Ji(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function Po(r){return al&&r instanceof Map}function ko(r){return il&&r instanceof Set}function Ke(r){return r.o||r.t}function Do(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=rs(r);delete t[K];for(var o=Mt(t),n=0;n<o.length;n++){var a=o[n],s=t[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:r[a]})}return Object.create(Object.getPrototypeOf(r),t)}function Uo(r,t){return t===void 0&&(t=!1),Bo(r)||Me(r)||!Ne(r)||($t(r)>1&&(r.set=r.add=r.clear=r.delete=tl),Object.freeze(r),t&>(r,function(o,n){return Uo(n,!0)},!0)),r}function tl(){Ee(2)}function Bo(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function Le(r){var t=Lo[r];return t||Ee(18,r),t}function rl(r,t){Lo[r]||(Lo[r]=t)}function Io(){return or}function Ao(r,t){t&&(Le("Patches"),r.u=[],r.s=[],r.v=t)}function _r(r){To(r),r.p.forEach(ol),r.p=null}function To(r){r===or&&(or=r.l)}function Vi(r){return or={p:[],l:or,h:r,m:!0,_:0}}function ol(r){var t=r[K];t.i===0||t.i===1?t.j():t.g=!0}function wo(r,t){t._=t.p.length;var o=t.p[0],n=r!==void 0&&r!==o;return t.h.O||Le("ES5").S(t,r,n),n?(o[K].P&&(_r(t),Ee(4)),Ne(r)&&(r=Lr(t,r),t.l||Pr(t,r)),t.u&&Le("Patches").M(o[K].t,r,t.u,t.s)):r=Lr(t,o,[]),_r(t),t.u&&t.v(t.u,t.s),r!==ts?r:void 0}function Lr(r,t,o){if(Bo(t))return t;var n=t[K];if(!n)return gt(t,function(d,u){return ji(r,n,t,d,u,o)},!0),t;if(n.A!==r)return t;if(!n.P)return Pr(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Do(n.k):n.o,s=a,l=!1;n.i===3&&(s=new Set(a),a.clear(),l=!0),gt(s,function(d,u){return ji(r,n,a,d,u,o,l)}),Pr(r,a,!1),o&&r.u&&Le("Patches").N(n,o,r.u,r.s)}return n.o}function ji(r,t,o,n,a,s,l){if(Me(a)){var d=Lr(r,a,s&&t&&t.i!==3&&!Bt(t.R,n)?s.concat(n):void 0);if(Qi(o,n,d),!Me(d))return;r.m=!1}else l&&o.add(a);if(Ne(a)&&!Bo(a)){if(!r.h.D&&r._<1)return;Lr(r,a),t&&t.A.l||Pr(r,a)}}function Pr(r,t,o){o===void 0&&(o=!1),!r.l&&r.h.D&&r.m&&Uo(t,o)}function Ro(r,t){var o=r[K];return(o?Ke(o):r)[t]}function Ki(r,t){if(t in r)for(var o=Object.getPrototypeOf(r);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function Ze(r){r.P||(r.P=!0,r.l&&Ze(r.l))}function No(r){r.o||(r.o=Do(r.t))}function _o(r,t,o){var n=Po(t)?Le("MapSet").F(t,o):ko(t)?Le("MapSet").T(t,o):r.O?function(a,s){var l=Array.isArray(a),d={i:l?1:0,A:s?s.A:Io(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=d,p=nr;l&&(u=[d],p=rr);var h=Proxy.revocable(u,p),g=h.revoke,y=h.proxy;return d.k=y,d.j=g,y}(t,o):Le("ES5").J(t,o);return(o?o.A:Io()).p.push(n),n}function nl(r){return Me(r)||Ee(22,r),function t(o){if(!Ne(o))return o;var n,a=o[K],s=$t(o);if(a){if(!a.P&&(a.i<4||!Le("ES5").K(a)))return a.t;a.I=!0,n=Zi(o,s),a.I=!1}else n=Zi(o,s);return gt(n,function(l,d){a&&el(a.t,l)===d||Qi(n,l,t(d))}),s===3?new Set(n):n}(r)}function Zi(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return Do(r)}function es(){function r(l,d){var u=s[l];return u?u.enumerable=d:s[l]=u={configurable:!0,enumerable:d,get:function(){var p=this[K];return nr.get(p,l)},set:function(p){var h=this[K];nr.set(h,l,p)}},u}function t(l){for(var d=l.length-1;d>=0;d--){var u=l[d][K];if(!u.P)switch(u.i){case 5:n(u)&&Ze(u);break;case 4:o(u)&&Ze(u)}}}function o(l){for(var d=l.t,u=l.k,p=Mt(u),h=p.length-1;h>=0;h--){var g=p[h];if(g!==K){var y=d[g];if(y===void 0&&!Bt(d,g))return!0;var C=u[g],x=C&&C[K];if(x?x.t!==y:!Ji(C,y))return!0}}var O=!!d[K];return p.length!==Mt(d).length+(O?0:1)}function n(l){var d=l.k;if(d.length!==l.t.length)return!0;var u=Object.getOwnPropertyDescriptor(d,d.length-1);if(u&&!u.get)return!0;for(var p=0;p<d.length;p++)if(!d.hasOwnProperty(p))return!0;return!1}function a(l){l.g&&Ee(3,JSON.stringify(Ke(l)))}var s={};rl("ES5",{J:function(l,d){var u=Array.isArray(l),p=function(g,y){if(g){for(var C=Array(y.length),x=0;x<y.length;x++)Object.defineProperty(C,""+x,r(x,!0));return C}var O=rs(y);delete O[K];for(var M=Mt(O),L=0;L<M.length;L++){var P=M[L];O[P]=r(P,g||!!O[P].enumerable)}return Object.create(Object.getPrototypeOf(y),O)}(u,l),h={i:u?5:4,A:d?d.A:Io(),P:!1,I:!1,R:{},l:d,t:l,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,K,{value:h,writable:!0}),p},S:function(l,d,u){u?Me(d)&&d[K].A===l&&t(l.p):(l.u&&function p(h){if(h&&typeof h=="object"){var g=h[K];if(g){var y=g.t,C=g.k,x=g.R,O=g.i;if(O===4)gt(C,function(F){F!==K&&(y[F]!==void 0||Bt(y,F)?x[F]||p(C[F]):(x[F]=!0,Ze(g)))}),gt(y,function(F){C[F]!==void 0||Bt(C,F)||(x[F]=!1,Ze(g))});else if(O===5){if(n(g)&&(Ze(g),x.length=!0),C.length<y.length)for(var M=C.length;M<y.length;M++)x[M]=!1;else for(var L=y.length;L<C.length;L++)x[L]=!0;for(var P=Math.min(C.length,y.length),G=0;G<P;G++)C.hasOwnProperty(G)||(x[G]=!0),x[G]===void 0&&p(C[G])}}}}(l.p[0]),t(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var qi,or,Mo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",al=typeof Map<"u",il=typeof Set<"u",Yi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ts=Mo?Symbol.for("immer-nothing"):((qi={})["immer-nothing"]=!0,qi),Xi=Mo?Symbol.for("immer-draftable"):"__$immer_draftable",K=Mo?Symbol.for("immer-state"):"__$immer_state";var sl=""+Object.prototype.constructor,Mt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,rs=Object.getOwnPropertyDescriptors||function(r){var t={};return Mt(r).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(r,o)}),t},Lo={},nr={get:function(r,t){if(t===K)return r;var o=Ke(r);if(!Bt(o,t))return function(a,s,l){var d,u=Ki(s,l);return u?"value"in u?u.value:(d=u.get)===null||d===void 0?void 0:d.call(a.k):void 0}(r,o,t);var n=o[t];return r.I||!Ne(n)?n:n===Ro(r.t,t)?(No(r),r.o[t]=_o(r.A.h,n,r)):n},has:function(r,t){return t in Ke(r)},ownKeys:function(r){return Reflect.ownKeys(Ke(r))},set:function(r,t,o){var n=Ki(Ke(r),t);if(n?.set)return n.set.call(r.k,o),!0;if(!r.P){var a=Ro(Ke(r),t),s=a?.[K];if(s&&s.t===o)return r.o[t]=o,r.R[t]=!1,!0;if(Ji(o,a)&&(o!==void 0||Bt(r.t,t)))return!0;No(r),Ze(r)}return r.o[t]===o&&(o!==void 0||t in r.o)||Number.isNaN(o)&&Number.isNaN(r.o[t])||(r.o[t]=o,r.R[t]=!0),!0},deleteProperty:function(r,t){return Ro(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,No(r),Ze(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var o=Ke(r),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Ee(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Ee(12)}},rr={};gt(nr,function(r,t){rr[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),rr.deleteProperty=function(r,t){return rr.set.call(this,r,t,void 0)},rr.set=function(r,t,o){return nr.set.call(this,r[0],t,o,r[0])};var ll=function(){function r(o){var n=this;this.O=Yi,this.D=!0,this.produce=function(a,s,l){if(typeof a=="function"&&typeof s!="function"){var d=s;s=a;var u=n;return function(O){var M=this;O===void 0&&(O=d);for(var L=arguments.length,P=Array(L>1?L-1:0),G=1;G<L;G++)P[G-1]=arguments[G];return u.produce(O,function(F){var ne;return(ne=s).call.apply(ne,[M,F].concat(P))})}}var p;if(typeof s!="function"&&Ee(6),l!==void 0&&typeof l!="function"&&Ee(7),Ne(a)){var h=Vi(n),g=_o(n,a,void 0),y=!0;try{p=s(g),y=!1}finally{y?_r(h):To(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Ao(h,l),wo(O,h)},function(O){throw _r(h),O}):(Ao(h,l),wo(p,h))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===ts&&(p=void 0),n.D&&Uo(p,!0),l){var C=[],x=[];Le("Patches").M(a,p,C,x),l(C,x)}return p}Ee(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var h=arguments.length,g=Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return n.produceWithPatches(p,function(C){return a.apply(void 0,[C].concat(g))})};var l,d,u=n.produce(a,s,function(p,h){l=p,d=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,l,d]}):[u,l,d]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=r.prototype;return t.createDraft=function(o){Ne(o)||Ee(8),Me(o)&&(o=nl(o));var n=Vi(this),a=_o(this,o,void 0);return a[K].C=!0,To(n),a},t.finishDraft=function(o,n){var a=o&&o[K],s=a.A;return Ao(s,n),wo(void 0,s)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Yi&&Ee(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){o=s.value;break}}a>-1&&(n=n.slice(a+1));var l=Le("Patches").$;return Me(o)?l(o,n):this.produce(o,function(d){return l(d,n)})},r}(),xe=new ll,cl=xe.produce,lm=xe.produceWithPatches.bind(xe),cm=xe.setAutoFreeze.bind(xe),dm=xe.setUseProxies.bind(xe),um=xe.applyPatches.bind(xe),pm=xe.createDraft.bind(xe),fm=xe.finishDraft.bind(xe),kr=cl;function yt(r){"@babel/helpers - typeof";return yt=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},yt(r)}function os(r,t){if(yt(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var n=o.call(r,t||"default");if(yt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function ns(r){var t=os(r,"string");return yt(t)=="symbol"?t:t+""}function as(r,t,o){return(t=ns(t))in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o,r}function is(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),o.push.apply(o,n)}return o}function $o(r){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?is(Object(o),!0).forEach(function(n){as(r,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):is(Object(o)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(o,n))})}return r}function ue(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var ss=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Fo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Dr={INIT:"@@redux/INIT"+Fo(),REPLACE:"@@redux/REPLACE"+Fo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Fo()}};function dl(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function Ho(r,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ue(1));return o(Ho)(r,t)}if(typeof r!="function")throw new Error(ue(2));var a=r,s=t,l=[],d=l,u=!1;function p(){d===l&&(d=l.slice())}function h(){if(u)throw new Error(ue(3));return s}function g(O){if(typeof O!="function")throw new Error(ue(4));if(u)throw new Error(ue(5));var M=!0;return p(),d.push(O),function(){if(M){if(u)throw new Error(ue(6));M=!1,p();var P=d.indexOf(O);d.splice(P,1),l=null}}}function y(O){if(!dl(O))throw new Error(ue(7));if(typeof O.type>"u")throw new Error(ue(8));if(u)throw new Error(ue(9));try{u=!0,s=a(s,O)}finally{u=!1}for(var M=l=d,L=0;L<M.length;L++){var P=M[L];P()}return O}function C(O){if(typeof O!="function")throw new Error(ue(10));a=O,y({type:Dr.REPLACE})}function x(){var O,M=g;return O={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(ue(11));function G(){P.next&&P.next(h())}G();var F=M(G);return{unsubscribe:F}}},O[ss]=function(){return this},O}return y({type:Dr.INIT}),n={dispatch:y,subscribe:g,getState:h,replaceReducer:C},n[ss]=x,n}function ul(r){Object.keys(r).forEach(function(t){var o=r[t],n=o(void 0,{type:Dr.INIT});if(typeof n>"u")throw new Error(ue(12));if(typeof o(void 0,{type:Dr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function ls(r){for(var t=Object.keys(r),o={},n=0;n<t.length;n++){var a=t[n];typeof r[a]=="function"&&(o[a]=r[a])}var s=Object.keys(o),l,d;try{ul(o)}catch(u){d=u}return function(p,h){if(p===void 0&&(p={}),d)throw d;if(0)var g;for(var y=!1,C={},x=0;x<s.length;x++){var O=s[x],M=o[O],L=p[O],P=M(L,h);if(typeof P>"u"){var G=h&&h.type;throw new Error(ue(14))}C[O]=P,y=y||P!==L}return y=y||s.length!==Object.keys(p).length,y?C:p}}function Ft(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function cs(){for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(ue(15))},l={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},d=t.map(function(u){return u(l)});return s=Ft.apply(void 0,d)(a.dispatch),$o($o({},a),{},{dispatch:s})}}}function ds(r){var t=function(n){var a=n.dispatch,s=n.getState;return function(l){return function(d){return typeof d=="function"?d(a,s,r):l(d)}}};return t}var us=ds();us.withExtraArgument=ds;var zo=us;var ys=function(){var r=function(t,o){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},r(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");r(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),pl=function(r,t){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(p){return function(h){return u([p,h])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(s=o.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){o.label=p[1];break}if(p[0]===6&&o.label<s[1]){o.label=s[1],s=p;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(p);break}s[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(r,o)}catch(h){p=[6,h],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ht=function(r,t){for(var o=0,n=t.length,a=r.length;o<n;o++,a++)r[a]=t[o];return r},fl=Object.defineProperty,hl=Object.defineProperties,gl=Object.getOwnPropertyDescriptors,ps=Object.getOwnPropertySymbols,yl=Object.prototype.hasOwnProperty,ml=Object.prototype.propertyIsEnumerable,fs=function(r,t,o){return t in r?fl(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o},qe=function(r,t){for(var o in t||(t={}))yl.call(t,o)&&fs(r,o,t[o]);if(ps)for(var n=0,a=ps(t);n<a.length;n++){var o=a[n];ml.call(t,o)&&fs(r,o,t[o])}return r},Wo=function(r,t){return hl(r,gl(t))},bl=function(r,t,o){return new Promise(function(n,a){var s=function(u){try{d(o.next(u))}catch(p){a(p)}},l=function(u){try{d(o.throw(u))}catch(p){a(p)}},d=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,l)};d((o=o.apply(r,t)).next())})};var xl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ft:Ft.apply(null,arguments)},_m=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function vl(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Sl=function(r){ys(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=r.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Ht([void 0],o[0].concat(this)))):new(t.bind.apply(t,Ht([void 0],o.concat(this))))},t}(Array),Cl=function(r){ys(t,r);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=r.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return r.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,Ht([void 0],o[0].concat(this)))):new(t.bind.apply(t,Ht([void 0],o.concat(this))))},t}(Array);function jo(r){return Ne(r)?kr(r,function(){}):r}function Ol(r){return typeof r=="boolean"}function El(){return function(t){return Al(t)}}function Al(r){r===void 0&&(r={});var t=r.thunk,o=t===void 0?!0:t,n=r.immutableCheck,a=n===void 0?!0:n,s=r.serializableCheck,l=s===void 0?!0:s,d=new Sl;if(o&&(Ol(o)?d.push(zo):d.push(zo.withExtraArgument(o.extraArgument))),0){if(a)var u;if(l)var p}return d}var Go=!0;function ms(r){var t=El(),o=r||{},n=o.reducer,a=n===void 0?void 0:n,s=o.middleware,l=s===void 0?t():s,d=o.devTools,u=d===void 0?!0:d,p=o.preloadedState,h=p===void 0?void 0:p,g=o.enhancers,y=g===void 0?void 0:g,C;if(typeof a=="function")C=a;else if(vl(a))C=ls(a);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 x=l;if(typeof x=="function"&&(x=x(t),!Go&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Go&&x.some(function(F){return typeof F!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=cs.apply(void 0,x),M=Ft;u&&(M=xl(qe({trace:!Go},typeof u=="object"&&u)));var L=new Cl(O),P=L;Array.isArray(y)?P=Ht([O],y):typeof y=="function"&&(P=y(L));var G=M.apply(void 0,P);return Ho(C,h,G)}function Ye(r,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var s=t.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return qe(qe({type:r,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:r,payload:n[0]}}return o.toString=function(){return""+r},o.type=r,o.match=function(n){return n.type===r},o}function bs(r){var t={},o=[],n,a={addCase:function(s,l){var d=typeof s=="string"?s:s.type;if(d in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[d]=l,a},addMatcher:function(s,l){return o.push({matcher:s,reducer:l}),a},addDefaultCase:function(s){return n=s,a}};return r(a),[t,o,n]}function wl(r){return typeof r=="function"}function Rl(r,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?bs(t):[t,o,n],s=a[0],l=a[1],d=a[2],u;if(wl(r))u=function(){return jo(r())};else{var p=jo(r);u=function(){return p}}function h(g,y){g===void 0&&(g=u());var C=Ht([s[y.type]],l.filter(function(x){var O=x.matcher;return O(y)}).map(function(x){var O=x.reducer;return O}));return C.filter(function(x){return!!x}).length===0&&(C=[d]),C.reduce(function(x,O){if(O)if(Me(x)){var M=x,L=O(M,y);return L===void 0?x:L}else{if(Ne(x))return kr(x,function(P){return O(P,y)});var L=O(x,y);if(L===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return x},g)}return h.getInitialState=u,h}function Nl(r,t){return r+"/"+t}function xs(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof r.initialState=="function"?r.initialState:jo(r.initialState),n=r.reducers||{},a=Object.keys(n),s={},l={},d={};a.forEach(function(h){var g=n[h],y=Nl(t,h),C,x;"reducer"in g?(C=g.reducer,x=g.prepare):C=g,s[h]=C,l[y]=C,d[h]=x?Ye(y,x):Ye(y)});function u(){var h=typeof r.extraReducers=="function"?bs(r.extraReducers):[r.extraReducers],g=h[0],y=g===void 0?{}:g,C=h[1],x=C===void 0?[]:C,O=h[2],M=O===void 0?void 0:O,L=qe(qe({},y),l);return Rl(o,function(P){for(var G in L)P.addCase(G,L[G]);for(var F=0,ne=x;F<ne.length;F++){var Ae=ne[F];P.addMatcher(Ae.matcher,Ae.reducer)}M&&P.addDefaultCase(M)})}var p;return{name:t,reducer:function(h,g){return p||(p=u()),p(h,g)},actions:d,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Il="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Tl=function(r){r===void 0&&(r=21);for(var t="",o=r;o--;)t+=Il[Math.random()*64|0];return t},_l=["name","message","stack","code"],Vo=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),hs=function(){function r(t,o){this.payload=t,this.meta=o}return r}(),Ll=function(r){if(typeof r=="object"&&r!==null){for(var t={},o=0,n=_l;o<n.length;o++){var a=n[o];typeof r[a]=="string"&&(t[a]=r[a])}return t}return{message:String(r)}},Dm=function(){function r(t,o,n){var a=Ye(t+"/fulfilled",function(h,g,y,C){return{payload:h,meta:Wo(qe({},C||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),s=Ye(t+"/pending",function(h,g,y){return{payload:void 0,meta:Wo(qe({},y||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),l=Ye(t+"/rejected",function(h,g,y,C,x){return{payload:C,error:(n&&n.serializeError||Ll)(h||"Rejected"),meta:Wo(qe({},x||{}),{arg:y,requestId:g,rejectedWithValue:!!C,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),d=!1,u=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(g,y,C){var x=n?.idGenerator?n.idGenerator(h):Tl(),O=new u,M,L=!1;function P(F){M=F,O.abort()}var G=function(){return bl(this,null,function(){var F,ne,Ae,Qe,pe,Je,mt;return pl(this,function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),Qe=(F=n?.condition)==null?void 0:F.call(n,h,{getState:y,extra:C}),kl(Qe)?[4,Qe]:[3,2];case 1:Qe=f.sent(),f.label=2;case 2:if(Qe===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,pe=new Promise(function(m,R){return O.signal.addEventListener("abort",function(){return R({name:"AbortError",message:M||"Aborted"})})}),g(s(x,h,(ne=n?.getPendingMeta)==null?void 0:ne.call(n,{requestId:x,arg:h},{getState:y,extra:C}))),[4,Promise.race([pe,Promise.resolve(o(h,{dispatch:g,getState:y,extra:C,requestId:x,signal:O.signal,abort:P,rejectWithValue:function(m,R){return new Vo(m,R)},fulfillWithValue:function(m,R){return new hs(m,R)}})).then(function(m){if(m instanceof Vo)throw m;return m instanceof hs?a(m.payload,x,h,m.meta):a(m,x,h)})])];case 3:return Ae=f.sent(),[3,5];case 4:return Je=f.sent(),Ae=Je instanceof Vo?l(null,x,h,Je.payload,Je.meta):l(Je,x,h),[3,5];case 5:return mt=n&&!n.dispatchConditionRejection&&l.match(Ae)&&Ae.meta.condition,mt||g(Ae),[2,Ae]}})})}();return Object.assign(G,{abort:P,requestId:x,arg:h,unwrap:function(){return G.then(Pl)}})}}return Object.assign(p,{pending:s,rejected:l,fulfilled:a,typePrefix:t})}return r.withTypes=function(){return r},r}();function Pl(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function kl(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var vs="listener",Ss="completed",Cs="cancelled",Um="task-"+Cs,Bm="task-"+Ss,Mm=vs+"-"+Cs,$m=vs+"-"+Ss;var Ko="listenerMiddleware";var Fm=Ye(Ko+"/add"),Hm=Ye(Ko+"/removeAll"),zm=Ye(Ko+"/remove");var gs,Wm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(gs||(gs=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Dl=function(r){return function(t){setTimeout(t,r)}},Gm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Dl(10);es();var Ul=Ar(Symbol("withEventBus"),function(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),Ur=class extends Ul(Object){};window.ftReduxStores||(window.ftReduxStores={});var Os=class r extends Ur{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(Tr(s))return s;if(a==null)return;let l=xs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),d=ms({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:l.reducer(u,p)});return window.ftReduxStores[a.name]=new r(l,d,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new wr;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,l,d)=>{let u=l,p=s[u];return p?(...h)=>{let g=p(...h.map(a));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[u]:a(h)})}}}),this.eventBus=n??this.eventBus}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 Br=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let s=typeof t=="string"?new Date(t):t,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s);if(!a)return l;let d=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return`${l} ${d}`}};var Es=b(D()),Mr=function(r,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(a<3?l(s):a>3?l(t,o,s):l(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},hb=(0,Es.applyMixinOnce)(Symbol("withDateFormat"),function(r){class t extends r{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(E)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?d=>Br.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Mr([(0,Zo.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Mr([(0,Zo.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Mr([Eo({store:E.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Mr([Eo({store:E.name})],t.prototype,"uiLocale",void 0),t});var Hr=b(D());var $r=class extends be{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var Fr=class extends be{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var Bl="ft-user-assets",Ml={setAssetCount:(r,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;r.assetCounts.allAsset[o]=n},clearAssetCount:r=>{Object.values(pt).forEach(t=>{r.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(r,t)=>{let o=t.payload.mapId;r.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}}},ve=Hr.FtReduxStore.get({name:Bl,reducers:Ml,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(pt).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),qo=class{constructor(t=new $r,o=new Fr){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new mr,this.savedSearchesService=new Cr,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=E.getState();(0,Hr.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ve.actions.clearAssetCount(),ve.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ve.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ve.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ve.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ve.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&ve.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&ve.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(ve.getState().assetCounts.bookmarkByMap).length!==0;t===pt.BOOKMARKS&&o&&ve.actions.clearBookmarkCountByMap(),ve.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ve.actions.bookmarks(o)}}},$l=new qo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=$l);(0,As.customElement)("ft-app-context")(j);var Ns=b(ce());var Yo=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[n,a]=t.split(".");return{context:n,key:a,message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},ws=new Yo;var Fl=function(r,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(a<3?l(s):a>3?l(t,o,s):l(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},Hl=Symbol("i18nAttributes"),zl=Symbol("i18nListAttributes"),Is=Symbol("i18nProperties"),zr=Symbol("i18nContexts"),ar=Symbol("i18nUnsubs"),Gr=(0,zt.applyMixinOnce)(Symbol("withI18n"),function(r){var t,o;class n extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?xr:kt}i18n(s){let{context:l,key:d,message:u}=s,{custom:p,args:h,argsProvider:g}=s;if(l&&d){this.hasI18nContext(l)||this.addI18nContext(l,void 0,p);let y=h??(g?g(this):[]);return this.getI18nService(p).resolveMessage(l,d,...y)}return u}async awaitI18n(s){let{context:l,custom:d}=s;return l&&await this.getI18nService(d).prepareContext(l),this.i18n(s)}customI18n(s,l){if(ws.isI18nKey(s)){let[d,u]=s.split(".");return this.i18n({custom:!0,context:d,key:u,...l})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((l,d,u)=>s.has(d)||typeof l.argsProvider=="function"),this.updateI18nProperties(l=>typeof l.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((l,d,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===s}),this.updateI18nProperties(l=>l.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var l,d;let u=this,p=(h,g,y)=>y?.context&&y.key&&s(h,g,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(l=this[Hl])===null||l===void 0||l.forEach((h,g)=>u[g]=p(h,g,u[g])),(d=this[zl])===null||d===void 0||d.forEach((h,g)=>{var y;return u[g]=(y=u[g])===null||y===void 0?void 0:y.map(C=>p(h,g,C))})}updateI18nProperties(s){var l;(l=this[Is])===null||l===void 0||l.forEach((d,u)=>{s(d,u)&&(this[u]=this.i18n(d))})}addI18nMessages(s,l,d){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,l,d)}addI18nContext(s,l,d){let u=(typeof s=="string"?s:s.name).toLowerCase();d=typeof s=="string"?d:s.custom,this[zr].set(u,{isCustomContext:d}),this[ar].has(u)||this[ar].set(u,this.getI18nService(d).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(d).prepareContext(u,l)}hasI18nContext(s){return this[zr].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[zr].forEach((s,l)=>this.addI18nContext(l,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ar].forEach(s=>s()),this[ar].clear()}}return t=zr,o=ar,Fl([(0,Ns.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Rs=class extends Gr(zt.FtLitElement){},Wr=class extends Gr(zt.FtLitElementRedux){};var ir=function(r,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(a<3?l(s):a>3?l(t,o,s):l(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},Ie=class extends Wr{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Vr.nothing:Vr.html`
|
|
974
974
|
<span class="ft-i18n">
|
|
975
975
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
976
976
|
</span>
|
|
977
|
-
`}update(t){var o;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ie.elementDefinitions={};Ie.styles=Ga;ir([(0,Kr.redux)()],Ie.prototype,"editorMode",void 0);ir([(0,jr.property)()],Ie.prototype,"context",void 0);ir([(0,jr.property)()],Ie.prototype,"key",void 0);ir([(0,Kr.jsonProperty)([])],Ie.prototype,"args",void 0);ir([(0,jr.property)()],Ie.prototype,"defaultMessage",void 0);var Zr=class r{static build(t){return new r(t)}static buildCustom(t){return new r(t,!0)}static fromGwt(t){return new r(t)}get service(){return this.custom?xr:kt}constructor(t,o=!1){this.name=t,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let s=a;return l=>({context:this.name,key:s,custom:this.custom,args:typeof l=="function"?void 0:l,argsProvider:typeof l=="function"?l:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...s)=>this.service.resolveMessage(this.name,a,...s)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a})}};(0,Ts.customElement)("ft-i18n")(Ie);var Xo=Zr.build("ftCombobox"),_s={ariaLiveOptions:"{0} options","ariaLiveOptions[\\=1]":"1 option"};var Z=function(r,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(a<3?l(s):a>3?l(t,o,s):l(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},$=class extends Gr(Xe.FtLitElement){get value(){return this._value||""}set value(t){let o=this._value;this._value=t||"",this.filter=this._value,this.requestUpdate("value",o)}constructor(){super(),this.error=!1,this.filterSuggestions=!1,this.disabled=!1,this.outlined=!1,this.suggestionsProvider=()=>[],this._value="",this.canOfferNewValue=!0,this.filter="",this.isOpen=!1,this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this.providedSuggestions=[],this.visibleSuggestions=[],this.activeIndex=-1,this.onComboboxInput=()=>{let t=this.input.value,o=this._value!=="";this.filter=t,this.activeIndex=-1,o&&t===""&&(this._value="",this.dispatchChangeEvent()),this.updateSuggestions(),this.getTotalSuggestionsCount()>0?this.openListbox():this.closeListbox(!0)},this.onComboboxKeyDown=t=>{if(t.ctrlKey||t.shiftKey)return;let o=!1;switch(t.key){case"Enter":this.commitSelectionFromEnter(),o=!0;break;case"ArrowDown":case"Down":{this.moveFocusToNextSuggestion(t),o=!0;break}case"ArrowUp":case"Up":{this.moveFocusToPreviousSuggestion(t),o=!0;break}case"Escape":case"Esc":this.handleEscapeKey(),o=!0;break;case"Tab":this.handleTabKey();break;case"Home":this.moveCaretToHome(),o=!0;break;case"End":{this.moveCaretToEnd(),o=!0;break}}o&&(t.stopPropagation(),t.preventDefault())},this.onComboboxKeyUp=t=>{if(t.key==="Escape"||t.key==="Esc")return;let o=!1;switch(t.key){case"Backspace":this.setVisualFocusCombobox(),o=!0;break;case"ArrowDown":case"Down":case"ArrowUp":case"Up":o=!0;break;case"ArrowLeft":case"Enter":case"Left":case"ArrowRight":case"Right":case"Home":case"End":this.setVisualFocusCombobox(),o=!0;break;default:this.isPrintableCharacter(t.key)&&this.input.value.length&&this.setVisualFocusCombobox();break}o&&(t.stopPropagation(),t.preventDefault())},this.onComboboxClick=()=>{this.isOpen?this.closeListbox(!0):this.openListbox()},this.onComboboxFocus=()=>{this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox(),this.activeIndex=-1},this.onComboboxBlur=()=>{this.removeVisualFocusAll()},this.onBackgroundPointerUp=t=>{t.composedPath().includes(this)||(this.comboboxHasVisualFocus=!1,this.removeVisualFocusAll(),setTimeout(()=>this.closeListbox(!0),300))},this.onSuggestionClick=t=>{var o;t.kind==="new"?this.setValue(((o=this.input)===null||o===void 0?void 0:o.value)||this.value):this.setValue(t.label),this.closeListbox(!0)},this.addI18nContext(Xo,_s)}willUpdate(t){t.has("suggestionsProviderDebouncerTimeout")&&(this._suggestionsProviderDebouncer=this.suggestionsProviderDebouncerTimeout&&this.suggestionsProviderDebouncerTimeout>0?new Xe.Debouncer(this.suggestionsProviderDebouncerTimeout):void 0),(t.has("suggestionsProvider")||t.has("filter"))&&this.updateSuggestions()}render(){let t={"ft-combobox":!0,"ft-combobox--filled":!this.outlined,"ft-combobox--outlined":this.outlined,"ft-combobox--disabled":this.disabled,"ft-combobox--with-label":!!this.label,"ft-combobox--with-icon":!!this.icon,"ft-combobox--in-error":this.error,"ft-combobox--raised-label":this.comboboxHasVisualFocus||!!this.filter},o={"ft-combobox--listbox":!0,focus:this.listboxHasVisualFocus};return he.html`
|
|
977
|
+
`}update(t){var o;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ie.elementDefinitions={};Ie.styles=Ga;ir([(0,Kr.redux)()],Ie.prototype,"editorMode",void 0);ir([(0,jr.property)()],Ie.prototype,"context",void 0);ir([(0,jr.property)()],Ie.prototype,"key",void 0);ir([(0,Kr.jsonProperty)([])],Ie.prototype,"args",void 0);ir([(0,jr.property)()],Ie.prototype,"defaultMessage",void 0);var Zr=class r{static build(t){return new r(t)}static buildCustom(t){return new r(t,!0)}static fromGwt(t){return new r(t)}get service(){return this.custom?xr:kt}constructor(t,o=!1){this.name=t,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let s=a;return l=>({context:this.name,key:s,custom:this.custom,args:typeof l=="function"?void 0:l,argsProvider:typeof l=="function"?l:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...s)=>this.service.resolveMessage(this.name,a,...s)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a}),this.attributes=new Proxy({},{get:(n,a)=>()=>({context:this.name,key:a,message:this.service.resolveRawMessage(this.name,a)})})}};(0,Ts.customElement)("ft-i18n")(Ie);var Xo=Zr.build("ftCombobox"),_s={ariaLiveOptions:"{0} options","ariaLiveOptions[\\=1]":"1 option"};var Z=function(r,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,o,n);else for(var d=r.length-1;d>=0;d--)(l=r[d])&&(s=(a<3?l(s):a>3?l(t,o,s):l(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},$=class extends Gr(Xe.FtLitElement){get value(){return this._value||""}set value(t){let o=this._value;this._value=t||"",this.filter=this._value,this.requestUpdate("value",o)}constructor(){super(),this.error=!1,this.filterSuggestions=!1,this.disabled=!1,this.outlined=!1,this.suggestionsProvider=()=>[],this._value="",this.canOfferNewValue=!0,this.filter="",this.isOpen=!1,this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this.providedSuggestions=[],this.visibleSuggestions=[],this.activeIndex=-1,this.onComboboxInput=()=>{let t=this.input.value,o=this._value!=="";this.filter=t,this.activeIndex=-1,o&&t===""&&(this._value="",this.dispatchChangeEvent()),this.updateSuggestions(),this.getTotalSuggestionsCount()>0?this.openListbox():this.closeListbox(!0)},this.onComboboxKeyDown=t=>{if(t.ctrlKey||t.shiftKey)return;let o=!1;switch(t.key){case"Enter":this.commitSelectionFromEnter(),o=!0;break;case"ArrowDown":case"Down":{this.moveFocusToNextSuggestion(t),o=!0;break}case"ArrowUp":case"Up":{this.moveFocusToPreviousSuggestion(t),o=!0;break}case"Escape":case"Esc":this.handleEscapeKey(),o=!0;break;case"Tab":this.handleTabKey();break;case"Home":this.moveCaretToHome(),o=!0;break;case"End":{this.moveCaretToEnd(),o=!0;break}}o&&(t.stopPropagation(),t.preventDefault())},this.onComboboxKeyUp=t=>{if(t.key==="Escape"||t.key==="Esc")return;let o=!1;switch(t.key){case"Backspace":this.setVisualFocusCombobox(),o=!0;break;case"ArrowDown":case"Down":case"ArrowUp":case"Up":o=!0;break;case"ArrowLeft":case"Enter":case"Left":case"ArrowRight":case"Right":case"Home":case"End":this.setVisualFocusCombobox(),o=!0;break;default:this.isPrintableCharacter(t.key)&&this.input.value.length&&this.setVisualFocusCombobox();break}o&&(t.stopPropagation(),t.preventDefault())},this.onComboboxClick=()=>{this.isOpen?this.closeListbox(!0):this.openListbox()},this.onComboboxFocus=()=>{this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox(),this.activeIndex=-1},this.onComboboxBlur=()=>{this.removeVisualFocusAll()},this.onBackgroundPointerUp=t=>{t.composedPath().includes(this)||(this.comboboxHasVisualFocus=!1,this.removeVisualFocusAll(),setTimeout(()=>this.closeListbox(!0),300))},this.onSuggestionClick=t=>{var o;t.kind==="new"?this.setValue(((o=this.input)===null||o===void 0?void 0:o.value)||this.value):this.setValue(t.label),this.closeListbox(!0)},this.addI18nContext(Xo,_s)}willUpdate(t){t.has("suggestionsProviderDebouncerTimeout")&&(this._suggestionsProviderDebouncer=this.suggestionsProviderDebouncerTimeout&&this.suggestionsProviderDebouncerTimeout>0?new Xe.Debouncer(this.suggestionsProviderDebouncerTimeout):void 0),(t.has("suggestionsProvider")||t.has("filter"))&&this.updateSuggestions()}render(){let t={"ft-combobox":!0,"ft-combobox--filled":!this.outlined,"ft-combobox--outlined":this.outlined,"ft-combobox--disabled":this.disabled,"ft-combobox--with-label":!!this.label,"ft-combobox--with-icon":!!this.icon,"ft-combobox--in-error":this.error,"ft-combobox--raised-label":this.comboboxHasVisualFocus||!!this.filter},o={"ft-combobox--listbox":!0,focus:this.listboxHasVisualFocus};return he.html`
|
|
978
978
|
<div class="${(0,qr.classMap)(t)}">
|
|
979
979
|
<div class="ft-combobox--main-panel"
|
|
980
980
|
@focusout=${this.onComboboxBlur}>
|