@fluid-topics/ft-search-bar 1.1.113 → 1.1.114
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-search-bar.js +2 -2
- package/build/ft-search-bar.light.js +2 -2
- package/build/ft-search-bar.min.js +628 -627
- package/package.json +15 -15
package/build/ft-search-bar.js
CHANGED
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { html, nothing } from "lit";
|
|
8
8
|
import { property, query, state } from "lit/decorators.js";
|
|
9
9
|
import { repeat } from "lit/directives/repeat.js";
|
|
10
|
-
import { Debouncer, flatDeep, FtLitElement, isTouchScreen, jsonProperty, noTextInputDefaultClearButton, ParametrizedLabelResolver,
|
|
10
|
+
import { Debouncer, flatDeep, FtLitElement, isTouchScreen, jsonProperty, noTextInputDefaultClearButton, ParametrizedLabelResolver, SearchPlaceConverter, waitFor } from "@fluid-topics/ft-wc-utils";
|
|
11
11
|
import { FtSizeCategory, FtSizeWatcher } from "@fluid-topics/ft-size-watcher";
|
|
12
12
|
import { FtTypography, FtTypographyBody2 } from "@fluid-topics/ft-typography";
|
|
13
13
|
import { facetToFilter, selectedValues, unquote } from "./converters";
|
|
@@ -79,7 +79,7 @@ class FtSearchBar extends FtLitElement {
|
|
|
79
79
|
this.displayedFilters = [];
|
|
80
80
|
this.presets = [];
|
|
81
81
|
this.priors = [];
|
|
82
|
-
this.searchRequestSerializer = (request) =>
|
|
82
|
+
this.searchRequestSerializer = (request) => new SearchPlaceConverter(this.baseUrl, {}).serialize(request);
|
|
83
83
|
this.focusOnDisplay = false;
|
|
84
84
|
this.metadataFilters = [];
|
|
85
85
|
this.sizeCategory = FtSizeCategory.M;
|
|
@@ -559,7 +559,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
559
559
|
</div>
|
|
560
560
|
</div>
|
|
561
561
|
</div>
|
|
562
|
-
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Kr(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};ie.elementDefinitions={"ft-typography":q};ie.styles=_l;Te([(0,ye.property)()],ie.prototype,"text",void 0);Te([(0,ye.property)({type:Boolean})],ie.prototype,"manual",void 0);Te([(0,ye.property)({type:Boolean})],ie.prototype,"inline",void 0);Te([(0,ye.property)({type:Number})],ie.prototype,"delay",void 0);Te([(0,ye.property)()],ie.prototype,"position",void 0);Te([(0,ye.queryAssignedNodes)()],ie.prototype,"slotNodes",void 0);Te([(0,ye.query)(".ft-tooltip--container")],ie.prototype,"container",void 0);Te([(0,ye.query)(".ft-tooltip")],ie.prototype,"tooltip",void 0);Te([(0,ye.query)(".ft-tooltip--content")],ie.prototype,"tooltipContent",void 0);Te([(0,ye.state)()],ie.prototype,"visible",void 0);Te([(0,ye.eventOptions)({passive:!0})],ie.prototype,"onTouch",null);Te([(0,ye.eventOptions)({passive:!0})],ie.prototype,"onHover",null);Te([(0,ye.eventOptions)({passive:!0})],ie.prototype,"onOut",null);Te([(0,ye.eventOptions)({passive:!0})],ie.prototype,"onClick",null);(0,as.customElement)("ft-tooltip")(ie);var fs=u(O());var mr=u(R()),bo=u(Y()),ps=u(O()),ds=u(ss());var wt;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.EYE="",t.SHARE="󨃱"})(wt||(wt={}));var S;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(S||(S={}));var tn=new Map([...["abw"].map(t=>[t,S.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,S.AUDIO]),...["avi"].map(t=>[t,S.AVI]),...["chm","xhs"].map(t=>[t,S.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,S.CODE]),...["csv"].map(t=>[t,S.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,S.DITA]),...["epub"].map(t=>[t,S.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,S.EXCEL]),...["flac"].map(t=>[t,S.FLAC]),...["gif"].map(t=>[t,S.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,S.GZIP]),...["html","htm","xhtml"].map(t=>[t,S.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(t=>[t,S.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,S.JPEG]),...["json"].map(t=>[t,S.JSON]),...["m4a","m4p"].map(t=>[t,S.M4A]),...["mov","qt"].map(t=>[t,S.MOV]),...["mp3"].map(t=>[t,S.MP3]),...["mp4","m4v"].map(t=>[t,S.MP4]),...["ogg","oga"].map(t=>[t,S.OGG]),...["pdf","ps"].map(t=>[t,S.PDF]),...["png"].map(t=>[t,S.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,S.POWERPOINT]),...["rar"].map(t=>[t,S.RAR]),...["stp"].map(t=>[t,S.STP]),...["txt","rtf","md","mdown"].map(t=>[t,S.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,S.VIDEO]),...["wav"].map(t=>[t,S.WAV]),...["wma"].map(t=>[t,S.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,S.WORD]),...["xml","xsl","rdf"].map(t=>[t,S.XML]),...["yaml","yml","x-yaml"].map(t=>[t,S.YAML]),...["zip"].map(t=>[t,S.ZIP])]),ed=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function cs(t,e){var o,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[l,s]=(((o=ed.get(t))!==null&&o!==void 0?o:t)+"/").split("/");return(a=(n=(i=tn.get(s))!==null&&i!==void 0?i:tn.get(e))!==null&&n!==void 0?n:tn.get(l))!==null&&a!==void 0?a:S.UNKNOWN}var ry={[S.ABW]:"#91ABC6",[S.AUDIO]:"#1795E3",[S.AVI]:"#E63324",[S.CHM]:"#71C3EB",[S.CODE]:"#71C3EB",[S.CSV]:"#1F7345",[S.DITA]:"#71C3EB",[S.EPUB]:"#85B926",[S.EXCEL]:"#1F7345",[S.FLAC]:"#1795E3",[S.GIF]:"#59B031",[S.GZIP]:"#F8AB36",[S.HTML]:"#71C3EB",[S.IMAGE]:"#59B031",[S.JPEG]:"#59B031",[S.JSON]:"#71C3EB",[S.M4A]:"#1795E3",[S.MOV]:"#E63324",[S.MP3]:"#1795E3",[S.MP4]:"#E63324",[S.OGG]:"#1795E3",[S.PDF]:"#E44948",[S.PNG]:"#59B031",[S.POWERPOINT]:"#B54A2B",[S.RAR]:"#F8AB36",[S.STP]:"#3764B1",[S.TEXT]:"#3162AB",[S.UNKNOWN]:"#999999",[S.VIDEO]:"#E63324",[S.WAV]:"#1795E3",[S.WMA]:"#1795E3",[S.WORD]:"#3162AB",[S.XML]:"#71C3EB",[S.YAML]:"#71C3EB",[S.ZIP]:"#F8AB36"};var Ae;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ae||(Ae={}));var Zr=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ne=class extends ps.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=mr.nothing}render(){let e=this.variant&&Object.values(Ae).includes(this.variant)?this.variant:Ae.fluid_topics,o=e!==Ae.material||!!this.value;return mr.html`
|
|
562
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Kr(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};ie.elementDefinitions={"ft-typography":q};ie.styles=_l;Te([(0,ye.property)()],ie.prototype,"text",void 0);Te([(0,ye.property)({type:Boolean})],ie.prototype,"manual",void 0);Te([(0,ye.property)({type:Boolean})],ie.prototype,"inline",void 0);Te([(0,ye.property)({type:Number})],ie.prototype,"delay",void 0);Te([(0,ye.property)()],ie.prototype,"position",void 0);Te([(0,ye.queryAssignedNodes)()],ie.prototype,"slotNodes",void 0);Te([(0,ye.query)(".ft-tooltip--container")],ie.prototype,"container",void 0);Te([(0,ye.query)(".ft-tooltip")],ie.prototype,"tooltip",void 0);Te([(0,ye.query)(".ft-tooltip--content")],ie.prototype,"tooltipContent",void 0);Te([(0,ye.state)()],ie.prototype,"visible",void 0);Te([(0,ye.eventOptions)({passive:!0})],ie.prototype,"onTouch",null);Te([(0,ye.eventOptions)({passive:!0})],ie.prototype,"onHover",null);Te([(0,ye.eventOptions)({passive:!0})],ie.prototype,"onOut",null);Te([(0,ye.eventOptions)({passive:!0})],ie.prototype,"onClick",null);(0,as.customElement)("ft-tooltip")(ie);var fs=u(O());var mr=u(R()),bo=u(Y()),ps=u(O()),ds=u(ss());var wt;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.EYE="",t.SHARE="󨃱"})(wt||(wt={}));var S;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(S||(S={}));var tn=new Map([...["abw"].map(t=>[t,S.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,S.AUDIO]),...["avi"].map(t=>[t,S.AVI]),...["chm","xhs"].map(t=>[t,S.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,S.CODE]),...["csv"].map(t=>[t,S.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,S.DITA]),...["epub"].map(t=>[t,S.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,S.EXCEL]),...["flac"].map(t=>[t,S.FLAC]),...["gif"].map(t=>[t,S.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,S.GZIP]),...["html","htm","xhtml"].map(t=>[t,S.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(t=>[t,S.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,S.JPEG]),...["json"].map(t=>[t,S.JSON]),...["m4a","m4p"].map(t=>[t,S.M4A]),...["mov","qt"].map(t=>[t,S.MOV]),...["mp3"].map(t=>[t,S.MP3]),...["mp4","m4v"].map(t=>[t,S.MP4]),...["ogg","oga"].map(t=>[t,S.OGG]),...["pdf","ps"].map(t=>[t,S.PDF]),...["png"].map(t=>[t,S.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,S.POWERPOINT]),...["rar"].map(t=>[t,S.RAR]),...["stp"].map(t=>[t,S.STP]),...["txt","rtf","md","mdown"].map(t=>[t,S.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,S.VIDEO]),...["wav"].map(t=>[t,S.WAV]),...["wma"].map(t=>[t,S.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,S.WORD]),...["xml","xsl","rdf"].map(t=>[t,S.XML]),...["yaml","yml","x-yaml"].map(t=>[t,S.YAML]),...["zip"].map(t=>[t,S.ZIP])]),ed=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function cs(t,e){var o,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[l,s]=(((o=ed.get(t))!==null&&o!==void 0?o:t)+"/").split("/");return(a=(n=(i=tn.get(s))!==null&&i!==void 0?i:tn.get(e))!==null&&n!==void 0?n:tn.get(l))!==null&&a!==void 0?a:S.UNKNOWN}var ry={[S.ABW]:"#91ABC6",[S.AUDIO]:"#1795E3",[S.AVI]:"#E63324",[S.CHM]:"#71C3EB",[S.CODE]:"#71C3EB",[S.CSV]:"#1F7345",[S.DITA]:"#71C3EB",[S.EPUB]:"#85B926",[S.EXCEL]:"#1F7345",[S.FLAC]:"#1795E3",[S.GIF]:"#59B031",[S.GZIP]:"#F8AB36",[S.HTML]:"#71C3EB",[S.IMAGE]:"#59B031",[S.JPEG]:"#59B031",[S.JSON]:"#71C3EB",[S.M4A]:"#1795E3",[S.MOV]:"#E63324",[S.MP3]:"#1795E3",[S.MP4]:"#E63324",[S.OGG]:"#1795E3",[S.PDF]:"#E44948",[S.PNG]:"#59B031",[S.POWERPOINT]:"#B54A2B",[S.RAR]:"#F8AB36",[S.STP]:"#3764B1",[S.TEXT]:"#3162AB",[S.UNKNOWN]:"#999999",[S.VIDEO]:"#E63324",[S.WAV]:"#1795E3",[S.WMA]:"#1795E3",[S.WORD]:"#3162AB",[S.XML]:"#71C3EB",[S.YAML]:"#71C3EB",[S.ZIP]:"#F8AB36"};var Ae;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ae||(Ae={}));var Zr=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ne=class extends ps.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=mr.nothing}render(){let e=this.variant&&Object.values(Ae).includes(this.variant)?this.variant:Ae.fluid_topics,o=e!==Ae.material||!!this.value;return mr.html`
|
|
563
563
|
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
564
564
|
${(0,ds.unsafeHTML)(this.resolvedIcon)}
|
|
565
565
|
<slot ?hidden=${o}></slot>
|
|
@@ -2965,7 +2965,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
2965
2965
|
`;var Sp=u(O());var Ac=u(R()),pt=u(Y()),vt=u(O());var $c=u(R());var Rc=$c.css`
|
|
2966
2966
|
`;var di=u(O()),td="ft-app-info",vn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},od={session:(t,e)=>{(0,di.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>D.eventBus.dispatchEvent(new vn(e.payload)),0))}},D=di.FtReduxStore.get({name:td,reducers:od,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var to=u(O());var xn=u(O());var Ao=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:i}=D.getState(),n=e??i;if(o&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,n,!0)}static await(e){return new Promise(o=>{let i=t.get(e);if(i)o(i);else{let n=D.subscribe(()=>{i=t.get(e),i&&(n(),o(i))})}})}};var eo=class{constructor(e=!0,o){var i;this.overrideApi=o;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new xn.CacheRegistry,this.cache=e?n.commonCache:new xn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ao.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ao.await()}clearCache(){this.cache.clearAll()}};var Nc,rd=Symbol("clearAfterUnitTest"),fi=class extends eo{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Nc]=()=>{this.defaultMessages={},this.cache=new to.CacheRegistry,this.listeners={}},this.currentUiLocale=D.getState().uiLocale,D.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=D.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var i;if(e=e.toLowerCase(),Object.keys(o).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...o};(0,to.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var o,i;return this.fetchContext(e),(i=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,o){let i=e.toLowerCase();return this.resolveContext(i)[o]}resolveMessage(e,o,...i){var n;let a=e.toLowerCase(),l=this.resolveContext(a);return new to.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},l).resolve(o,...i)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(o){console.error(o)}}subscribe(e,o){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(o),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,to.delay)(0).then(()=>o()).catch(()=>null)))}};Nc=rd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends fi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends fi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var kc=window.FluidTopicsI18nService,y0=window.FluidTopicsCustomI18nService;var _e=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},he=class extends vt.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Ao.get(),this.messageContexts=[],this.cache=new vt.CacheRegistry,this.cleanSessionDebouncer=new vt.Debouncer}render(){return Ac.html`
|
|
2967
2967
|
<slot></slot>
|
|
2968
|
-
`}update(e){super.update(e),e.has("baseUrl")&&(D.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&D.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&D.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&D.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&D.actions.noCustom(this.noCustom),e.has("editorMode")&&D.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&D.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&D.actions.session(this.session),e.has("availableUiLocales")&&D.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>kc.addContext(o)),e.has("openExternalDocumentInNewTab")&&D.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&D.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&D.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};he.elementDefinitions={};he.styles=Rc;_e([(0,pt.property)()],he.prototype,"baseUrl",void 0);_e([(0,pt.property)()],he.prototype,"apiIntegrationIdentifier",void 0);_e([(0,pt.property)()],he.prototype,"uiLocale",void 0);_e([(0,vt.jsonProperty)(null)],he.prototype,"availableUiLocales",void 0);_e([(0,vt.jsonProperty)(null)],he.prototype,"metadataConfiguration",void 0);_e([(0,pt.property)({type:Boolean})],he.prototype,"editorMode",void 0);_e([(0,pt.property)({type:Boolean})],he.prototype,"noCustom",void 0);_e([(0,pt.property)({type:Boolean})],he.prototype,"openExternalDocumentInNewTab",void 0);_e([(0,pt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],he.prototype,"noCustomComponent",void 0);_e([(0,pt.property)({type:Boolean})],he.prototype,"withManualResources",void 0);_e([(0,pt.property)({type:Boolean})],he.prototype,"navigatorOnline",void 0);_e([(0,pt.property)({type:Boolean})],he.prototype,"forcedOffline",void 0);_e([(0,pt.property)({type:Object})],he.prototype,"apiProvider",void 0);_e([(0,vt.jsonProperty)([])],he.prototype,"messageContexts",void 0);_e([(0,vt.jsonProperty)(void 0)],he.prototype,"session",void 0);var Hd=u(Y());function id(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,i,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(i=o;i--!==0;)if(!ui(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ui(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(n=Object.keys(t),o=n.length,o!==Object.keys(e).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=o;i--!==0;){var a=n[i];if(!ui(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function ui(t,e){try{return id(t,e)}catch{return!1}}function Sn(t,e){return!ui(t,e)}var nd=u(Y(),1);var hi=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(i=>i.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(i=>i.type===e);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}};var $r=u(Y(),1);var Lc=u(Y(),1);function Pc(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,Lc.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return o();try{return JSON.parse(i)}catch{return o()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Sn,...e??{}})}var mi=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of i)try{await l()}catch(s){n(s);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Bc=u(R(),1);var gi=window,ad=gi.ShadowRoot&&(gi.ShadyCSS===void 0||gi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,I0=Symbol();var Ic=(t,e)=>{ad?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let i=document.createElement("style"),n=gi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i)})};var yi=class extends Bc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let o={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return Ic(i,e.elementStyles),i}};var bi=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Fc,Dc=Symbol("constructorPrototype"),_c=Symbol("constructorName"),Tc=Symbol("exportpartsDebouncer"),zc=Symbol("dynamicDependenciesLoaded"),oo=class extends yi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Fc]=new mi(5),this[_c]=this.constructor.name,this[Dc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[_c]&&Object.setPrototypeOf(this,this[Dc])}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 e=this.constructor;e[zc]||(e[zc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,i,n;if(((i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,o,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[Tc].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,i,n,a,l,s;let d=g=>g!=null&&g.trim().length>0,f=e.filter(d).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let b=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],y=(s=(l=g.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(v=>v.split(":")[1]))!==null&&s!==void 0?s:[];new Array(...b,...y).filter(d).map(v=>v.trim()).forEach(v=>h.add(v))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(g=>f.map(b=>`${g}:${b}--${g}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};Fc=Tc;bi([(0,$r.property)()],oo.prototype,"exportpartsPrefix",void 0);bi([Pc([])],oo.prototype,"exportpartsPrefixes",void 0);bi([(0,$r.property)()],oo.prototype,"customStylesheet",void 0);bi([(0,$r.state)()],oo.prototype,"useAdoptedStyleSheets",void 0);function Rr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Mc,Wc,Uc,vi=Symbol("internalReduxEventsUnsubscribers"),ro=Symbol("internalStoresUnsubscribers"),Lo=Symbol("internalStores"),Nr=class extends oo{constructor(){super(...arguments),this[Mc]=new Map,this[Wc]=new Map,this[Uc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Lo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lo].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Lo].get(e)}addStore(e,o){var i;o=(i=o??(Rr(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Lo].delete(o)}setupStore(e,o){this[Lo].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Lo].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let i=this.constructor.getPropertyOptions(o);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:o)){let n=this.getStore(e.store);n&&(e.store?this[ro].has(e.store):this[ro].size>0)&&(this[o]=e.selector(n.getState(),this))}})}subscribeToStore(e,o){var i;this[ro].set(e,o.subscribe(()=>this.updateFromStores())),Rr(o)&&o.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||o.name===n.store)){let l=s=>this[a](s);o.eventBus.addEventListener(n.eventName,l),this[vi].push(()=>o.eventBus.removeEventListener(n.eventName,l))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ro].forEach((e,o)=>this.unsubscribeFromStore(o)),this[vi].forEach(e=>e()),this[vi]=[]}unsubscribeFromStore(e){this[ro].has(e)&&this[ro].get(e)(),this[ro].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Mc=ro,Wc=Lo,Uc=vi;Nr.reduxProperties=new Map;Nr.reduxReactiveProperties=new Set;Nr.reduxEventListeners=new Map;function dt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Vt(t){return!!t&&!!t[se]}function xt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var i=Object.getPrototypeOf(o);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===hd}(t)||Array.isArray(t)||!!t[qc]||!!(!((e=t.constructor)===null||e===void 0)&&e[qc])||An(t)||Ln(t))}function Po(t,e,o){o===void 0&&(o=!1),Qo(t)===0?(o?Object.keys:Jo)(t).forEach(function(i){o&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Qo(t){var e=t[se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:An(t)?2:Ln(t)?3:0}function Xo(t,e){return Qo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ld(t,e){return Qo(t)===2?t.get(e):t[e]}function Yc(t,e,o){var i=Qo(t);i===2?t.set(e,o):i===3?t.add(o):t[e]=o}function Xc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function An(t){return fd&&t instanceof Map}function Ln(t){return ud&&t instanceof Set}function io(t){return t.o||t.t}function Pn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ep(t);delete e[se];for(var o=Jo(e),i=0;i<o.length;i++){var n=o[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function In(t,e){return e===void 0&&(e=!1),Bn(t)||Vt(t)||!xt(t)||(Qo(t)>1&&(t.set=t.add=t.clear=t.delete=sd),Object.freeze(t),e&&Po(t,function(o,i){return In(i,!0)},!0)),t}function sd(){dt(2)}function Bn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Lt(t){var e=kn[t];return e||dt(18,t),e}function cd(t,e){kn[t]||(kn[t]=e)}function $n(){return Ar}function On(t,e){e&&(Lt("Patches"),t.u=[],t.s=[],t.v=e)}function xi(t){Rn(t),t.p.forEach(pd),t.p=null}function Rn(t){t===Ar&&(Ar=t.l)}function Hc(t){return Ar={p:[],l:Ar,h:t,m:!0,_:0}}function pd(t){var e=t[se];e.i===0||e.i===1?e.j():e.g=!0}function Cn(t,e){e._=e.p.length;var o=e.p[0],i=t!==void 0&&t!==o;return e.h.O||Lt("ES5").S(e,t,i),i?(o[se].P&&(xi(e),dt(4)),xt(t)&&(t=Si(e,t),e.l||Oi(e,t)),e.u&&Lt("Patches").M(o[se].t,t,e.u,e.s)):t=Si(e,o,[]),xi(e),e.u&&e.v(e.u,e.s),t!==Qc?t:void 0}function Si(t,e,o){if(Bn(e))return e;var i=e[se];if(!i)return Po(e,function(s,d){return Vc(t,i,e,s,d,o)},!0),e;if(i.A!==t)return e;if(!i.P)return Oi(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Pn(i.k):i.o,a=n,l=!1;i.i===3&&(a=new Set(n),n.clear(),l=!0),Po(a,function(s,d){return Vc(t,i,n,s,d,o,l)}),Oi(t,n,!1),o&&t.u&&Lt("Patches").N(i,o,t.u,t.s)}return i.o}function Vc(t,e,o,i,n,a,l){if(Vt(n)){var s=Si(t,n,a&&e&&e.i!==3&&!Xo(e.R,i)?a.concat(i):void 0);if(Yc(o,i,s),!Vt(s))return;t.m=!1}else l&&o.add(n);if(xt(n)&&!Bn(n)){if(!t.h.D&&t._<1)return;Si(t,n),e&&e.A.l||Oi(t,n)}}function Oi(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&In(e,o)}function wn(t,e){var o=t[se];return(o?io(o):t)[e]}function jc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function no(t){t.P||(t.P=!0,t.l&&no(t.l))}function En(t){t.o||(t.o=Pn(t.t))}function Nn(t,e,o){var i=An(e)?Lt("MapSet").F(e,o):Ln(e)?Lt("MapSet").T(e,o):t.O?function(n,a){var l=Array.isArray(n),s={i:l?1:0,A:a?a.A:$n(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=s,f=Lr;l&&(d=[s],f=kr);var h=Proxy.revocable(d,f),m=h.revoke,g=h.proxy;return s.k=g,s.j=m,g}(e,o):Lt("ES5").J(e,o);return(o?o.A:$n()).p.push(i),i}function dd(t){return Vt(t)||dt(22,t),function e(o){if(!xt(o))return o;var i,n=o[se],a=Qo(o);if(n){if(!n.P&&(n.i<4||!Lt("ES5").K(n)))return n.t;n.I=!0,i=Gc(o,a),n.I=!1}else i=Gc(o,a);return Po(i,function(l,s){n&&ld(n.t,l)===s||Yc(i,l,e(s))}),a===3?new Set(i):i}(t)}function Gc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Pn(t)}function Jc(){function t(l,s){var d=a[l];return d?d.enumerable=s:a[l]=d={configurable:!0,enumerable:s,get:function(){var f=this[se];return Lr.get(f,l)},set:function(f){var h=this[se];Lr.set(h,l,f)}},d}function e(l){for(var s=l.length-1;s>=0;s--){var d=l[s][se];if(!d.P)switch(d.i){case 5:i(d)&&no(d);break;case 4:o(d)&&no(d)}}}function o(l){for(var s=l.t,d=l.k,f=Jo(d),h=f.length-1;h>=0;h--){var m=f[h];if(m!==se){var g=s[m];if(g===void 0&&!Xo(s,m))return!0;var b=d[m],y=b&&b[se];if(y?y.t!==g:!Xc(b,g))return!0}}var v=!!s[se];return f.length!==Jo(s).length+(v?0:1)}function i(l){var s=l.k;if(s.length!==l.t.length)return!0;var d=Object.getOwnPropertyDescriptor(s,s.length-1);if(d&&!d.get)return!0;for(var f=0;f<s.length;f++)if(!s.hasOwnProperty(f))return!0;return!1}function n(l){l.g&&dt(3,JSON.stringify(io(l)))}var a={};cd("ES5",{J:function(l,s){var d=Array.isArray(l),f=function(m,g){if(m){for(var b=Array(g.length),y=0;y<g.length;y++)Object.defineProperty(b,""+y,t(y,!0));return b}var v=ep(g);delete v[se];for(var N=Jo(v),E=0;E<N.length;E++){var $=N[E];v[$]=t($,m||!!v[$].enumerable)}return Object.create(Object.getPrototypeOf(g),v)}(d,l),h={i:d?5:4,A:s?s.A:$n(),P:!1,I:!1,R:{},l:s,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,se,{value:h,writable:!0}),f},S:function(l,s,d){d?Vt(s)&&s[se].A===l&&e(l.p):(l.u&&function f(h){if(h&&typeof h=="object"){var m=h[se];if(m){var g=m.t,b=m.k,y=m.R,v=m.i;if(v===4)Po(b,function(V){V!==se&&(g[V]!==void 0||Xo(g,V)?y[V]||f(b[V]):(y[V]=!0,no(m)))}),Po(g,function(V){b[V]!==void 0||Xo(b,V)||(y[V]=!1,no(m))});else if(v===5){if(i(m)&&(no(m),y.length=!0),b.length<g.length)for(var N=b.length;N<g.length;N++)y[N]=!1;else for(var E=g.length;E<b.length;E++)y[E]=!0;for(var $=Math.min(b.length,g.length),P=0;P<$;P++)b.hasOwnProperty(P)||(y[P]=!0),y[P]===void 0&&f(b[P])}}}}(l.p[0]),e(l.p))},K:function(l){return l.i===4?o(l):i(l)}})}var Kc,Ar,Dn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",fd=typeof Map<"u",ud=typeof Set<"u",Zc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Qc=Dn?Symbol.for("immer-nothing"):((Kc={})["immer-nothing"]=!0,Kc),qc=Dn?Symbol.for("immer-draftable"):"__$immer_draftable",se=Dn?Symbol.for("immer-state"):"__$immer_state";var hd=""+Object.prototype.constructor,Jo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ep=Object.getOwnPropertyDescriptors||function(t){var e={};return Jo(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},kn={},Lr={get:function(t,e){if(e===se)return t;var o=io(t);if(!Xo(o,e))return function(n,a,l){var s,d=jc(a,l);return d?"value"in d?d.value:(s=d.get)===null||s===void 0?void 0:s.call(n.k):void 0}(t,o,e);var i=o[e];return t.I||!xt(i)?i:i===wn(t.t,e)?(En(t),t.o[e]=Nn(t.A.h,i,t)):i},has:function(t,e){return e in io(t)},ownKeys:function(t){return Reflect.ownKeys(io(t))},set:function(t,e,o){var i=jc(io(t),e);if(i?.set)return i.set.call(t.k,o),!0;if(!t.P){var n=wn(io(t),e),a=n?.[se];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Xc(o,n)&&(o!==void 0||Xo(t.t,e)))return!0;En(t),no(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return wn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,En(t),no(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=io(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:o[e]}},defineProperty:function(){dt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){dt(12)}},kr={};Po(Lr,function(t,e){kr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),kr.deleteProperty=function(t,e){return kr.set.call(this,t,e,void 0)},kr.set=function(t,e,o){return Lr.set.call(this,t[0],e,o,t[0])};var md=function(){function t(o){var i=this;this.O=Zc,this.D=!0,this.produce=function(n,a,l){if(typeof n=="function"&&typeof a!="function"){var s=a;a=n;var d=i;return function(v){var N=this;v===void 0&&(v=s);for(var E=arguments.length,$=Array(E>1?E-1:0),P=1;P<E;P++)$[P-1]=arguments[P];return d.produce(v,function(V){var Q;return(Q=a).call.apply(Q,[N,V].concat($))})}}var f;if(typeof a!="function"&&dt(6),l!==void 0&&typeof l!="function"&&dt(7),xt(n)){var h=Hc(i),m=Nn(i,n,void 0),g=!0;try{f=a(m),g=!1}finally{g?xi(h):Rn(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return On(h,l),Cn(v,h)},function(v){throw xi(h),v}):(On(h,l),Cn(f,h))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===Qc&&(f=void 0),i.D&&In(f,!0),l){var b=[],y=[];Lt("Patches").M(n,f,b,y),l(b,y)}return f}dt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var h=arguments.length,m=Array(h>1?h-1:0),g=1;g<h;g++)m[g-1]=arguments[g];return i.produceWithPatches(f,function(b){return n.apply(void 0,[b].concat(m))})};var l,s,d=i.produce(n,a,function(f,h){l=f,s=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,l,s]}):[d,l,s]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){xt(o)||dt(8),Vt(o)&&(o=dd(o));var i=Hc(this),n=Nn(this,o,void 0);return n[se].C=!0,Rn(i),n},e.finishDraft=function(o,i){var n=o&&o[se],a=n.A;return On(a,i),Cn(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Zc&&dt(20),this.O=o},e.applyPatches=function(o,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}n>-1&&(i=i.slice(n+1));var l=Lt("Patches").$;return Vt(o)?l(o,i):this.produce(o,function(s){return l(s,i)})},t}(),tt=new md,gd=tt.produce,j0=tt.produceWithPatches.bind(tt),G0=tt.setAutoFreeze.bind(tt),K0=tt.setUseProxies.bind(tt),Z0=tt.applyPatches.bind(tt),q0=tt.createDraft.bind(tt),Y0=tt.finishDraft.bind(tt),Ci=gd;function ao(t){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ao(t)}function _n(t,e){if(ao(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,e||"default");if(ao(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zn(t){var e=_n(t,"string");return ao(e)==="symbol"?e:String(e)}function Fn(t,e,o){return e=zn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function tp(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function wi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?tp(Object(o),!0).forEach(function(i){Fn(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):tp(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function Re(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var op=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Tn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ei={INIT:"@@redux/INIT"+Tn(),REPLACE:"@@redux/REPLACE"+Tn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Tn()}};function yd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Mn(t,e,o){var i;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Re(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Re(1));return o(Mn)(t,e)}if(typeof t!="function")throw new Error(Re(2));var n=t,a=e,l=[],s=l,d=!1;function f(){s===l&&(s=l.slice())}function h(){if(d)throw new Error(Re(3));return a}function m(v){if(typeof v!="function")throw new Error(Re(4));if(d)throw new Error(Re(5));var N=!0;return f(),s.push(v),function(){if(N){if(d)throw new Error(Re(6));N=!1,f();var $=s.indexOf(v);s.splice($,1),l=null}}}function g(v){if(!yd(v))throw new Error(Re(7));if(typeof v.type>"u")throw new Error(Re(8));if(d)throw new Error(Re(9));try{d=!0,a=n(a,v)}finally{d=!1}for(var N=l=s,E=0;E<N.length;E++){var $=N[E];$()}return v}function b(v){if(typeof v!="function")throw new Error(Re(10));n=v,g({type:Ei.REPLACE})}function y(){var v,N=m;return v={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(Re(11));function P(){$.next&&$.next(h())}P();var V=N(P);return{unsubscribe:V}}},v[op]=function(){return this},v}return g({type:Ei.INIT}),i={dispatch:g,subscribe:m,getState:h,replaceReducer:b},i[op]=y,i}function bd(t){Object.keys(t).forEach(function(e){var o=t[e],i=o(void 0,{type:Ei.INIT});if(typeof i>"u")throw new Error(Re(12));if(typeof o(void 0,{type:Ei.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Re(13))})}function rp(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(o[n]=t[n])}var a=Object.keys(o),l,s;try{bd(o)}catch(d){s=d}return function(f,h){if(f===void 0&&(f={}),s)throw s;if(0)var m;for(var g=!1,b={},y=0;y<a.length;y++){var v=a[y],N=o[v],E=f[v],$=N(E,h);if(typeof $>"u"){var P=h&&h.type;throw new Error(Re(14))}b[v]=$,g=g||$!==E}return g=g||a.length!==Object.keys(f).length,g?b:f}}function er(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function ip(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Re(15))},l={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},s=e.map(function(d){return d(l)});return a=er.apply(void 0,s)(n.dispatch),wi(wi({},n),{},{dispatch:a})}}}function np(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(l){return function(s){return typeof s=="function"?s(n,a,t):l(s)}}};return e}var ap=np();ap.withExtraArgument=np;var Wn=ap;var dp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function i(){this.constructor=e}e.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),vd=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(f){return function(h){return d([f,h])}}function d(f){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,n=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(h){f=[6,h],n=0}finally{i=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},tr=function(t,e){for(var o=0,i=e.length,n=t.length;o<i;o++,n++)t[n]=e[o];return t},xd=Object.defineProperty,Sd=Object.defineProperties,Od=Object.getOwnPropertyDescriptors,lp=Object.getOwnPropertySymbols,Cd=Object.prototype.hasOwnProperty,wd=Object.prototype.propertyIsEnumerable,sp=function(t,e,o){return e in t?xd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},lo=function(t,e){for(var o in e||(e={}))Cd.call(e,o)&&sp(t,o,e[o]);if(lp)for(var i=0,n=lp(e);i<n.length;i++){var o=n[i];wd.call(e,o)&&sp(t,o,e[o])}return t},Un=function(t,e){return Sd(t,Od(e))},Ed=function(t,e,o){return new Promise(function(i,n){var a=function(d){try{s(o.next(d))}catch(f){n(f)}},l=function(d){try{s(o.throw(d))}catch(f){n(f)}},s=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,l)};s((o=o.apply(t,e)).next())})};var $d=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?er:er.apply(null,arguments)},hS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Rd(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Nd=function(t){dp(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,tr([void 0],o[0].concat(this)))):new(e.bind.apply(e,tr([void 0],o.concat(this))))},e}(Array),kd=function(t){dp(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,tr([void 0],o[0].concat(this)))):new(e.bind.apply(e,tr([void 0],o.concat(this))))},e}(Array);function jn(t){return xt(t)?Ci(t,function(){}):t}function Ad(t){return typeof t=="boolean"}function Ld(){return function(e){return Pd(e)}}function Pd(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,l=a===void 0?!0:a,s=new Nd;if(o&&(Ad(o)?s.push(Wn):s.push(Wn.withExtraArgument(o.extraArgument))),0){if(n)var d;if(l)var f}return s}var Hn=!0;function fp(t){var e=Ld(),o=t||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,l=a===void 0?e():a,s=o.devTools,d=s===void 0?!0:s,f=o.preloadedState,h=f===void 0?void 0:f,m=o.enhancers,g=m===void 0?void 0:m,b;if(typeof n=="function")b=n;else if(Rd(n))b=rp(n);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 y=l;if(typeof y=="function"&&(y=y(e),!Hn&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Hn&&y.some(function(V){return typeof V!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=ip.apply(void 0,y),N=er;d&&(N=$d(lo({trace:!Hn},typeof d=="object"&&d)));var E=new kd(v),$=E;Array.isArray(g)?$=tr([v],g):typeof g=="function"&&($=g(E));var P=N.apply(void 0,$);return Mn(b,h,P)}function so(t,e){function o(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return lo(lo({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(i){return i.type===t},o}function up(t){var e={},o=[],i,n={addCase:function(a,l){var s=typeof a=="string"?a:a.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=l,n},addMatcher:function(a,l){return o.push({matcher:a,reducer:l}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,o,i]}function Id(t){return typeof t=="function"}function Bd(t,e,o,i){o===void 0&&(o=[]);var n=typeof e=="function"?up(e):[e,o,i],a=n[0],l=n[1],s=n[2],d;if(Id(t))d=function(){return jn(t())};else{var f=jn(t);d=function(){return f}}function h(m,g){m===void 0&&(m=d());var b=tr([a[g.type]],l.filter(function(y){var v=y.matcher;return v(g)}).map(function(y){var v=y.reducer;return v}));return b.filter(function(y){return!!y}).length===0&&(b=[s]),b.reduce(function(y,v){if(v)if(Vt(y)){var N=y,E=v(N,g);return E===void 0?y:E}else{if(xt(y))return Ci(y,function($){return v($,g)});var E=v(y,g);if(E===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return y},m)}return h.getInitialState=d,h}function Dd(t,e){return t+"/"+e}function hp(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:jn(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},l={},s={};n.forEach(function(h){var m=i[h],g=Dd(e,h),b,y;"reducer"in m?(b=m.reducer,y=m.prepare):b=m,a[h]=b,l[g]=b,s[h]=y?so(g,y):so(g)});function d(){var h=typeof t.extraReducers=="function"?up(t.extraReducers):[t.extraReducers],m=h[0],g=m===void 0?{}:m,b=h[1],y=b===void 0?[]:b,v=h[2],N=v===void 0?void 0:v,E=lo(lo({},g),l);return Bd(o,function($){for(var P in E)$.addCase(P,E[P]);for(var V=0,Q=y;V<Q.length;V++){var ot=Q[V];$.addMatcher(ot.matcher,ot.reducer)}N&&$.addDefaultCase(N)})}var f;return{name:e,reducer:function(h,m){return f||(f=d()),f(h,m)},actions:s,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var _d="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=_d[Math.random()*64|0];return e},Fd=["name","message","stack","code"],Vn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),cp=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Td=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,i=Fd;o<i.length;o++){var n=i[o];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},bS=function(){function t(e,o,i){var n=so(e+"/fulfilled",function(h,m,g,b){return{payload:h,meta:Un(lo({},b||{}),{arg:g,requestId:m,requestStatus:"fulfilled"})}}),a=so(e+"/pending",function(h,m,g){return{payload:void 0,meta:Un(lo({},g||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),l=so(e+"/rejected",function(h,m,g,b,y){return{payload:b,error:(i&&i.serializeError||Td)(h||"Rejected"),meta:Un(lo({},y||{}),{arg:g,requestId:m,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),s=!1,d=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 f(h){return function(m,g,b){var y=i?.idGenerator?i.idGenerator(h):zd(),v=new d,N,E=!1;function $(V){N=V,v.abort()}var P=function(){return Ed(this,null,function(){var V,Q,ot,jt,Ai,Gt,Ve;return vd(this,function(rt){switch(rt.label){case 0:return rt.trys.push([0,4,,5]),jt=(V=i?.condition)==null?void 0:V.call(i,h,{getState:g,extra:b}),Wd(jt)?[4,jt]:[3,2];case 1:jt=rt.sent(),rt.label=2;case 2:if(jt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Ai=new Promise(function(je,co){return v.signal.addEventListener("abort",function(){return co({name:"AbortError",message:N||"Aborted"})})}),m(a(y,h,(Q=i?.getPendingMeta)==null?void 0:Q.call(i,{requestId:y,arg:h},{getState:g,extra:b}))),[4,Promise.race([Ai,Promise.resolve(o(h,{dispatch:m,getState:g,extra:b,requestId:y,signal:v.signal,abort:$,rejectWithValue:function(je,co){return new Vn(je,co)},fulfillWithValue:function(je,co){return new cp(je,co)}})).then(function(je){if(je instanceof Vn)throw je;return je instanceof cp?n(je.payload,y,h,je.meta):n(je,y,h)})])];case 3:return ot=rt.sent(),[3,5];case 4:return Gt=rt.sent(),ot=Gt instanceof Vn?l(null,y,h,Gt.payload,Gt.meta):l(Gt,y,h),[3,5];case 5:return Ve=i&&!i.dispatchConditionRejection&&l.match(ot)&&ot.meta.condition,Ve||m(ot),[2,ot]}})})}();return Object.assign(P,{abort:$,requestId:y,arg:h,unwrap:function(){return P.then(Md)}})}}return Object.assign(f,{pending:a,rejected:l,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Md(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var mp="listener",gp="completed",yp="cancelled",vS="task-"+yp,xS="task-"+gp,SS=mp+"-"+yp,OS=mp+"-"+gp;var Gn="listenerMiddleware";var CS=so(Gn+"/add"),wS=so(Gn+"/removeAll"),ES=so(Gn+"/remove");var pp,$S=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(pp||(pp=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ud=function(t){return function(e){setTimeout(e,t)}},RS=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ud(10);Jc();window.ftReduxStores||(window.ftReduxStores={});var bp=class t{static get(e){var o;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Rr(a))return a;if(n==null)return;let l=hp({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),s=fp({reducer:(d,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...f.overwrites}:l.reducer(d,f)});return window.ftReduxStores[n.name]=new t(l,s)}constructor(e,o){this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new hi,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let l=n,s=i[l];return s?(...d)=>{let f=s(...d);return this.reduxStore.dispatch(f),f}:d=>{this.setState({[l]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ki=u(O());var $i=class extends eo{async listMySearches(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Ri=class extends eo{async listMyBookmarks(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Vd="ft-user-assets",Ni=ki.FtReduxStore.get({name:Vd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Kn=class{constructor(){this.currentSession=D.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ri,this.savedSearchesService=new $i,D.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=D.getState();(0,ki.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ni.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ni.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ni.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ni.actions.bookmarks(o)}}},oO=new Kn;var Zn=class{addCommand(e,o=!1){D.commands.add(e,o)}consumeCommand(e){return D.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Zn;var vp=u(O()),qn=class{highlightHtml(e,o,i){(0,vp.highlightHtml)(e,o,i)}};window.FluidTopicsHighlightHtmlService=new qn;var xp=u(O());var Yn=class{isDate(e){var o,i,n,a;return(a=(n=((i=(o=D.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]).find(s=>s.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,o){var i,n,a;return xp.DateFormatter.format(e,(i=o?.locale)!==null&&i!==void 0?i:D.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Yn;(0,Sp.customElement)("ft-app-context")(he);var H=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var Op={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Xn=class extends CustomEvent{constructor(e){super("launch-search",{detail:e,bubbles:!0,composed:!0})}},Jn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},jd=()=>{},L=class extends re.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new re.ParametrizedLabelResolver(Op,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>(0,re.serializeRequest)(this.baseUrl,e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=it.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.suggestManager=new Nt(this),this.selectedFacetsManager=new kt(this),this.desktopSearchBarManager=new Er(this),this.mobileSearchBarManager=new wr(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new re.Debouncer(10),this.updateLocalesDebouncer=new re.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(o=>o.contentLocales).catch(()=>[]).then(o=>{this.availableContentLocales=o,this.availableContentLocalesInitialized=!0})}),this.updateFacetsDebouncer.run(()=>{this.retrieveFacetsFromSearch().then(()=>{this.facetsLoaded=!0,this.facetsInitialized=!0})},this.facetsInitialized?500:10)},this.facetsLoaded=!1,this.updateFacetsDebouncer=new re.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(o=>o===this.floatingContainer))},this.compareUnknownFilters=(e,o)=>e.valueFilter&&o.valueFilter?this.compareValueFilters(e.valueFilter,o.valueFilter):e.dateFilter&&o.dateFilter?this.compareDateFilters(e.dateFilter,o.dateFilter):e.rangeFilter&&o.rangeFilter?this.compareRangeFilters(e.rangeFilter,o.rangeFilter):!1,this.compareValueFilters=(e,o)=>e.negative==o.negative&&e.values.length===o.values.length&&e.values.every(i=>o.values.includes(i)),this.compareDateFilters=(e,o)=>e.type===o.type,this.compareRangeFilters=(e,o)=>e.from===o.from&&e.to===o.to,this.compareFilters=(e,o)=>e.key===o.key&&this.compareUnknownFilters(e,o),this.compareRequests=(e,o)=>(e.contentLocale==null||o.contentLocale==null||e.contentLocale===o.contentLocale)&&e.metadataFilters.length===o.metadataFilters.length&&e.metadataFilters.every(i=>o.metadataFilters.some(n=>this.compareFilters(i,n))),this.enableFocusReactionCallback=()=>this.enableFocusReaction()}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(o=>{var i,n;return((n=(i=o.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(o.key)}).map(o=>({id:o.key}));return[...this.displayedFilters.map(o=>({id:o})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===it.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,re.waitFor)(()=>this.input,50),this.input.focus(),e||this.enableFocusReactionOnAnyUserInteraction()}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return Z.html`
|
|
2968
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(D.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&D.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&D.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&D.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&D.actions.noCustom(this.noCustom),e.has("editorMode")&&D.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&D.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&D.actions.session(this.session),e.has("availableUiLocales")&&D.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>kc.addContext(o)),e.has("openExternalDocumentInNewTab")&&D.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&D.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&D.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};he.elementDefinitions={};he.styles=Rc;_e([(0,pt.property)()],he.prototype,"baseUrl",void 0);_e([(0,pt.property)()],he.prototype,"apiIntegrationIdentifier",void 0);_e([(0,pt.property)()],he.prototype,"uiLocale",void 0);_e([(0,vt.jsonProperty)(null)],he.prototype,"availableUiLocales",void 0);_e([(0,vt.jsonProperty)(null)],he.prototype,"metadataConfiguration",void 0);_e([(0,pt.property)({type:Boolean})],he.prototype,"editorMode",void 0);_e([(0,pt.property)({type:Boolean})],he.prototype,"noCustom",void 0);_e([(0,pt.property)({type:Boolean})],he.prototype,"openExternalDocumentInNewTab",void 0);_e([(0,pt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],he.prototype,"noCustomComponent",void 0);_e([(0,pt.property)({type:Boolean})],he.prototype,"withManualResources",void 0);_e([(0,pt.property)({type:Boolean})],he.prototype,"navigatorOnline",void 0);_e([(0,pt.property)({type:Boolean})],he.prototype,"forcedOffline",void 0);_e([(0,pt.property)({type:Object})],he.prototype,"apiProvider",void 0);_e([(0,vt.jsonProperty)([])],he.prototype,"messageContexts",void 0);_e([(0,vt.jsonProperty)(void 0)],he.prototype,"session",void 0);var Hd=u(Y());function id(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,i,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(i=o;i--!==0;)if(!ui(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ui(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(n=Object.keys(t),o=n.length,o!==Object.keys(e).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=o;i--!==0;){var a=n[i];if(!ui(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function ui(t,e){try{return id(t,e)}catch{return!1}}function Sn(t,e){return!ui(t,e)}var nd=u(Y(),1);var hi=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(i=>i.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(i=>i.type===e);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}};var $r=u(Y(),1);var Lc=u(Y(),1);function Pc(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,Lc.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return o();try{return JSON.parse(i)}catch{return o()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Sn,...e??{}})}var mi=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of i)try{await l()}catch(s){n(s);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Bc=u(R(),1);var gi=window,ad=gi.ShadowRoot&&(gi.ShadyCSS===void 0||gi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,I0=Symbol();var Ic=(t,e)=>{ad?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let i=document.createElement("style"),n=gi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i)})};var yi=class extends Bc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let o={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return Ic(i,e.elementStyles),i}};var bi=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Fc,Dc=Symbol("constructorPrototype"),_c=Symbol("constructorName"),Tc=Symbol("exportpartsDebouncer"),zc=Symbol("dynamicDependenciesLoaded"),oo=class extends yi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Fc]=new mi(5),this[_c]=this.constructor.name,this[Dc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[_c]&&Object.setPrototypeOf(this,this[Dc])}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 e=this.constructor;e[zc]||(e[zc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,i,n;if(((i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,o,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[Tc].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,i,n,a,l,s;let d=g=>g!=null&&g.trim().length>0,f=e.filter(d).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let b=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],y=(s=(l=g.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(v=>v.split(":")[1]))!==null&&s!==void 0?s:[];new Array(...b,...y).filter(d).map(v=>v.trim()).forEach(v=>h.add(v))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(g=>f.map(b=>`${g}:${b}--${g}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};Fc=Tc;bi([(0,$r.property)()],oo.prototype,"exportpartsPrefix",void 0);bi([Pc([])],oo.prototype,"exportpartsPrefixes",void 0);bi([(0,$r.property)()],oo.prototype,"customStylesheet",void 0);bi([(0,$r.state)()],oo.prototype,"useAdoptedStyleSheets",void 0);function Rr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Mc,Wc,Uc,vi=Symbol("internalReduxEventsUnsubscribers"),ro=Symbol("internalStoresUnsubscribers"),Lo=Symbol("internalStores"),Nr=class extends oo{constructor(){super(...arguments),this[Mc]=new Map,this[Wc]=new Map,this[Uc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Lo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Lo].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Lo].get(e)}addStore(e,o){var i;o=(i=o??(Rr(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Lo].delete(o)}setupStore(e,o){this[Lo].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Lo].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let i=this.constructor.getPropertyOptions(o);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:o)){let n=this.getStore(e.store);n&&(e.store?this[ro].has(e.store):this[ro].size>0)&&(this[o]=e.selector(n.getState(),this))}})}subscribeToStore(e,o){var i;this[ro].set(e,o.subscribe(()=>this.updateFromStores())),Rr(o)&&o.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||o.name===n.store)){let l=s=>this[a](s);o.eventBus.addEventListener(n.eventName,l),this[vi].push(()=>o.eventBus.removeEventListener(n.eventName,l))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ro].forEach((e,o)=>this.unsubscribeFromStore(o)),this[vi].forEach(e=>e()),this[vi]=[]}unsubscribeFromStore(e){this[ro].has(e)&&this[ro].get(e)(),this[ro].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Mc=ro,Wc=Lo,Uc=vi;Nr.reduxProperties=new Map;Nr.reduxReactiveProperties=new Set;Nr.reduxEventListeners=new Map;function dt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Vt(t){return!!t&&!!t[se]}function xt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var i=Object.getPrototypeOf(o);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===hd}(t)||Array.isArray(t)||!!t[qc]||!!(!((e=t.constructor)===null||e===void 0)&&e[qc])||An(t)||Ln(t))}function Po(t,e,o){o===void 0&&(o=!1),Qo(t)===0?(o?Object.keys:Jo)(t).forEach(function(i){o&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Qo(t){var e=t[se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:An(t)?2:Ln(t)?3:0}function Xo(t,e){return Qo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ld(t,e){return Qo(t)===2?t.get(e):t[e]}function Yc(t,e,o){var i=Qo(t);i===2?t.set(e,o):i===3?t.add(o):t[e]=o}function Xc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function An(t){return fd&&t instanceof Map}function Ln(t){return ud&&t instanceof Set}function io(t){return t.o||t.t}function Pn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ep(t);delete e[se];for(var o=Jo(e),i=0;i<o.length;i++){var n=o[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function In(t,e){return e===void 0&&(e=!1),Bn(t)||Vt(t)||!xt(t)||(Qo(t)>1&&(t.set=t.add=t.clear=t.delete=sd),Object.freeze(t),e&&Po(t,function(o,i){return In(i,!0)},!0)),t}function sd(){dt(2)}function Bn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Lt(t){var e=kn[t];return e||dt(18,t),e}function cd(t,e){kn[t]||(kn[t]=e)}function $n(){return Ar}function On(t,e){e&&(Lt("Patches"),t.u=[],t.s=[],t.v=e)}function xi(t){Rn(t),t.p.forEach(pd),t.p=null}function Rn(t){t===Ar&&(Ar=t.l)}function Hc(t){return Ar={p:[],l:Ar,h:t,m:!0,_:0}}function pd(t){var e=t[se];e.i===0||e.i===1?e.j():e.g=!0}function Cn(t,e){e._=e.p.length;var o=e.p[0],i=t!==void 0&&t!==o;return e.h.O||Lt("ES5").S(e,t,i),i?(o[se].P&&(xi(e),dt(4)),xt(t)&&(t=Si(e,t),e.l||Oi(e,t)),e.u&&Lt("Patches").M(o[se].t,t,e.u,e.s)):t=Si(e,o,[]),xi(e),e.u&&e.v(e.u,e.s),t!==Qc?t:void 0}function Si(t,e,o){if(Bn(e))return e;var i=e[se];if(!i)return Po(e,function(s,d){return Vc(t,i,e,s,d,o)},!0),e;if(i.A!==t)return e;if(!i.P)return Oi(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Pn(i.k):i.o,a=n,l=!1;i.i===3&&(a=new Set(n),n.clear(),l=!0),Po(a,function(s,d){return Vc(t,i,n,s,d,o,l)}),Oi(t,n,!1),o&&t.u&&Lt("Patches").N(i,o,t.u,t.s)}return i.o}function Vc(t,e,o,i,n,a,l){if(Vt(n)){var s=Si(t,n,a&&e&&e.i!==3&&!Xo(e.R,i)?a.concat(i):void 0);if(Yc(o,i,s),!Vt(s))return;t.m=!1}else l&&o.add(n);if(xt(n)&&!Bn(n)){if(!t.h.D&&t._<1)return;Si(t,n),e&&e.A.l||Oi(t,n)}}function Oi(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&In(e,o)}function wn(t,e){var o=t[se];return(o?io(o):t)[e]}function jc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function no(t){t.P||(t.P=!0,t.l&&no(t.l))}function En(t){t.o||(t.o=Pn(t.t))}function Nn(t,e,o){var i=An(e)?Lt("MapSet").F(e,o):Ln(e)?Lt("MapSet").T(e,o):t.O?function(n,a){var l=Array.isArray(n),s={i:l?1:0,A:a?a.A:$n(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=s,f=Lr;l&&(d=[s],f=kr);var h=Proxy.revocable(d,f),m=h.revoke,g=h.proxy;return s.k=g,s.j=m,g}(e,o):Lt("ES5").J(e,o);return(o?o.A:$n()).p.push(i),i}function dd(t){return Vt(t)||dt(22,t),function e(o){if(!xt(o))return o;var i,n=o[se],a=Qo(o);if(n){if(!n.P&&(n.i<4||!Lt("ES5").K(n)))return n.t;n.I=!0,i=Gc(o,a),n.I=!1}else i=Gc(o,a);return Po(i,function(l,s){n&&ld(n.t,l)===s||Yc(i,l,e(s))}),a===3?new Set(i):i}(t)}function Gc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Pn(t)}function Jc(){function t(l,s){var d=a[l];return d?d.enumerable=s:a[l]=d={configurable:!0,enumerable:s,get:function(){var f=this[se];return Lr.get(f,l)},set:function(f){var h=this[se];Lr.set(h,l,f)}},d}function e(l){for(var s=l.length-1;s>=0;s--){var d=l[s][se];if(!d.P)switch(d.i){case 5:i(d)&&no(d);break;case 4:o(d)&&no(d)}}}function o(l){for(var s=l.t,d=l.k,f=Jo(d),h=f.length-1;h>=0;h--){var m=f[h];if(m!==se){var g=s[m];if(g===void 0&&!Xo(s,m))return!0;var b=d[m],y=b&&b[se];if(y?y.t!==g:!Xc(b,g))return!0}}var v=!!s[se];return f.length!==Jo(s).length+(v?0:1)}function i(l){var s=l.k;if(s.length!==l.t.length)return!0;var d=Object.getOwnPropertyDescriptor(s,s.length-1);if(d&&!d.get)return!0;for(var f=0;f<s.length;f++)if(!s.hasOwnProperty(f))return!0;return!1}function n(l){l.g&&dt(3,JSON.stringify(io(l)))}var a={};cd("ES5",{J:function(l,s){var d=Array.isArray(l),f=function(m,g){if(m){for(var b=Array(g.length),y=0;y<g.length;y++)Object.defineProperty(b,""+y,t(y,!0));return b}var v=ep(g);delete v[se];for(var N=Jo(v),E=0;E<N.length;E++){var $=N[E];v[$]=t($,m||!!v[$].enumerable)}return Object.create(Object.getPrototypeOf(g),v)}(d,l),h={i:d?5:4,A:s?s.A:$n(),P:!1,I:!1,R:{},l:s,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,se,{value:h,writable:!0}),f},S:function(l,s,d){d?Vt(s)&&s[se].A===l&&e(l.p):(l.u&&function f(h){if(h&&typeof h=="object"){var m=h[se];if(m){var g=m.t,b=m.k,y=m.R,v=m.i;if(v===4)Po(b,function(V){V!==se&&(g[V]!==void 0||Xo(g,V)?y[V]||f(b[V]):(y[V]=!0,no(m)))}),Po(g,function(V){b[V]!==void 0||Xo(b,V)||(y[V]=!1,no(m))});else if(v===5){if(i(m)&&(no(m),y.length=!0),b.length<g.length)for(var N=b.length;N<g.length;N++)y[N]=!1;else for(var E=g.length;E<b.length;E++)y[E]=!0;for(var $=Math.min(b.length,g.length),P=0;P<$;P++)b.hasOwnProperty(P)||(y[P]=!0),y[P]===void 0&&f(b[P])}}}}(l.p[0]),e(l.p))},K:function(l){return l.i===4?o(l):i(l)}})}var Kc,Ar,Dn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",fd=typeof Map<"u",ud=typeof Set<"u",Zc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Qc=Dn?Symbol.for("immer-nothing"):((Kc={})["immer-nothing"]=!0,Kc),qc=Dn?Symbol.for("immer-draftable"):"__$immer_draftable",se=Dn?Symbol.for("immer-state"):"__$immer_state";var hd=""+Object.prototype.constructor,Jo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ep=Object.getOwnPropertyDescriptors||function(t){var e={};return Jo(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},kn={},Lr={get:function(t,e){if(e===se)return t;var o=io(t);if(!Xo(o,e))return function(n,a,l){var s,d=jc(a,l);return d?"value"in d?d.value:(s=d.get)===null||s===void 0?void 0:s.call(n.k):void 0}(t,o,e);var i=o[e];return t.I||!xt(i)?i:i===wn(t.t,e)?(En(t),t.o[e]=Nn(t.A.h,i,t)):i},has:function(t,e){return e in io(t)},ownKeys:function(t){return Reflect.ownKeys(io(t))},set:function(t,e,o){var i=jc(io(t),e);if(i?.set)return i.set.call(t.k,o),!0;if(!t.P){var n=wn(io(t),e),a=n?.[se];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Xc(o,n)&&(o!==void 0||Xo(t.t,e)))return!0;En(t),no(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return wn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,En(t),no(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=io(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:o[e]}},defineProperty:function(){dt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){dt(12)}},kr={};Po(Lr,function(t,e){kr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),kr.deleteProperty=function(t,e){return kr.set.call(this,t,e,void 0)},kr.set=function(t,e,o){return Lr.set.call(this,t[0],e,o,t[0])};var md=function(){function t(o){var i=this;this.O=Zc,this.D=!0,this.produce=function(n,a,l){if(typeof n=="function"&&typeof a!="function"){var s=a;a=n;var d=i;return function(v){var N=this;v===void 0&&(v=s);for(var E=arguments.length,$=Array(E>1?E-1:0),P=1;P<E;P++)$[P-1]=arguments[P];return d.produce(v,function(V){var Q;return(Q=a).call.apply(Q,[N,V].concat($))})}}var f;if(typeof a!="function"&&dt(6),l!==void 0&&typeof l!="function"&&dt(7),xt(n)){var h=Hc(i),m=Nn(i,n,void 0),g=!0;try{f=a(m),g=!1}finally{g?xi(h):Rn(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return On(h,l),Cn(v,h)},function(v){throw xi(h),v}):(On(h,l),Cn(f,h))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===Qc&&(f=void 0),i.D&&In(f,!0),l){var b=[],y=[];Lt("Patches").M(n,f,b,y),l(b,y)}return f}dt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var h=arguments.length,m=Array(h>1?h-1:0),g=1;g<h;g++)m[g-1]=arguments[g];return i.produceWithPatches(f,function(b){return n.apply(void 0,[b].concat(m))})};var l,s,d=i.produce(n,a,function(f,h){l=f,s=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,l,s]}):[d,l,s]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){xt(o)||dt(8),Vt(o)&&(o=dd(o));var i=Hc(this),n=Nn(this,o,void 0);return n[se].C=!0,Rn(i),n},e.finishDraft=function(o,i){var n=o&&o[se],a=n.A;return On(a,i),Cn(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Zc&&dt(20),this.O=o},e.applyPatches=function(o,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}n>-1&&(i=i.slice(n+1));var l=Lt("Patches").$;return Vt(o)?l(o,i):this.produce(o,function(s){return l(s,i)})},t}(),tt=new md,gd=tt.produce,j0=tt.produceWithPatches.bind(tt),G0=tt.setAutoFreeze.bind(tt),K0=tt.setUseProxies.bind(tt),Z0=tt.applyPatches.bind(tt),q0=tt.createDraft.bind(tt),Y0=tt.finishDraft.bind(tt),Ci=gd;function ao(t){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ao(t)}function _n(t,e){if(ao(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,e||"default");if(ao(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zn(t){var e=_n(t,"string");return ao(e)==="symbol"?e:String(e)}function Fn(t,e,o){return e=zn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function tp(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function wi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?tp(Object(o),!0).forEach(function(i){Fn(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):tp(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function Re(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var op=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Tn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ei={INIT:"@@redux/INIT"+Tn(),REPLACE:"@@redux/REPLACE"+Tn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Tn()}};function yd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Mn(t,e,o){var i;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Re(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Re(1));return o(Mn)(t,e)}if(typeof t!="function")throw new Error(Re(2));var n=t,a=e,l=[],s=l,d=!1;function f(){s===l&&(s=l.slice())}function h(){if(d)throw new Error(Re(3));return a}function m(v){if(typeof v!="function")throw new Error(Re(4));if(d)throw new Error(Re(5));var N=!0;return f(),s.push(v),function(){if(N){if(d)throw new Error(Re(6));N=!1,f();var $=s.indexOf(v);s.splice($,1),l=null}}}function g(v){if(!yd(v))throw new Error(Re(7));if(typeof v.type>"u")throw new Error(Re(8));if(d)throw new Error(Re(9));try{d=!0,a=n(a,v)}finally{d=!1}for(var N=l=s,E=0;E<N.length;E++){var $=N[E];$()}return v}function b(v){if(typeof v!="function")throw new Error(Re(10));n=v,g({type:Ei.REPLACE})}function y(){var v,N=m;return v={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(Re(11));function P(){$.next&&$.next(h())}P();var V=N(P);return{unsubscribe:V}}},v[op]=function(){return this},v}return g({type:Ei.INIT}),i={dispatch:g,subscribe:m,getState:h,replaceReducer:b},i[op]=y,i}function bd(t){Object.keys(t).forEach(function(e){var o=t[e],i=o(void 0,{type:Ei.INIT});if(typeof i>"u")throw new Error(Re(12));if(typeof o(void 0,{type:Ei.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Re(13))})}function rp(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(o[n]=t[n])}var a=Object.keys(o),l,s;try{bd(o)}catch(d){s=d}return function(f,h){if(f===void 0&&(f={}),s)throw s;if(0)var m;for(var g=!1,b={},y=0;y<a.length;y++){var v=a[y],N=o[v],E=f[v],$=N(E,h);if(typeof $>"u"){var P=h&&h.type;throw new Error(Re(14))}b[v]=$,g=g||$!==E}return g=g||a.length!==Object.keys(f).length,g?b:f}}function er(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function ip(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Re(15))},l={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},s=e.map(function(d){return d(l)});return a=er.apply(void 0,s)(n.dispatch),wi(wi({},n),{},{dispatch:a})}}}function np(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(l){return function(s){return typeof s=="function"?s(n,a,t):l(s)}}};return e}var ap=np();ap.withExtraArgument=np;var Wn=ap;var dp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function i(){this.constructor=e}e.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),vd=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(f){return function(h){return d([f,h])}}function d(f){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,n=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(h){f=[6,h],n=0}finally{i=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},tr=function(t,e){for(var o=0,i=e.length,n=t.length;o<i;o++,n++)t[n]=e[o];return t},xd=Object.defineProperty,Sd=Object.defineProperties,Od=Object.getOwnPropertyDescriptors,lp=Object.getOwnPropertySymbols,Cd=Object.prototype.hasOwnProperty,wd=Object.prototype.propertyIsEnumerable,sp=function(t,e,o){return e in t?xd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},lo=function(t,e){for(var o in e||(e={}))Cd.call(e,o)&&sp(t,o,e[o]);if(lp)for(var i=0,n=lp(e);i<n.length;i++){var o=n[i];wd.call(e,o)&&sp(t,o,e[o])}return t},Un=function(t,e){return Sd(t,Od(e))},Ed=function(t,e,o){return new Promise(function(i,n){var a=function(d){try{s(o.next(d))}catch(f){n(f)}},l=function(d){try{s(o.throw(d))}catch(f){n(f)}},s=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,l)};s((o=o.apply(t,e)).next())})};var $d=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?er:er.apply(null,arguments)},hS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Rd(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Nd=function(t){dp(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,tr([void 0],o[0].concat(this)))):new(e.bind.apply(e,tr([void 0],o.concat(this))))},e}(Array),kd=function(t){dp(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,tr([void 0],o[0].concat(this)))):new(e.bind.apply(e,tr([void 0],o.concat(this))))},e}(Array);function jn(t){return xt(t)?Ci(t,function(){}):t}function Ad(t){return typeof t=="boolean"}function Ld(){return function(e){return Pd(e)}}function Pd(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,l=a===void 0?!0:a,s=new Nd;if(o&&(Ad(o)?s.push(Wn):s.push(Wn.withExtraArgument(o.extraArgument))),0){if(n)var d;if(l)var f}return s}var Hn=!0;function fp(t){var e=Ld(),o=t||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,l=a===void 0?e():a,s=o.devTools,d=s===void 0?!0:s,f=o.preloadedState,h=f===void 0?void 0:f,m=o.enhancers,g=m===void 0?void 0:m,b;if(typeof n=="function")b=n;else if(Rd(n))b=rp(n);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 y=l;if(typeof y=="function"&&(y=y(e),!Hn&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Hn&&y.some(function(V){return typeof V!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=ip.apply(void 0,y),N=er;d&&(N=$d(lo({trace:!Hn},typeof d=="object"&&d)));var E=new kd(v),$=E;Array.isArray(g)?$=tr([v],g):typeof g=="function"&&($=g(E));var P=N.apply(void 0,$);return Mn(b,h,P)}function so(t,e){function o(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return lo(lo({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(i){return i.type===t},o}function up(t){var e={},o=[],i,n={addCase:function(a,l){var s=typeof a=="string"?a:a.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=l,n},addMatcher:function(a,l){return o.push({matcher:a,reducer:l}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,o,i]}function Id(t){return typeof t=="function"}function Bd(t,e,o,i){o===void 0&&(o=[]);var n=typeof e=="function"?up(e):[e,o,i],a=n[0],l=n[1],s=n[2],d;if(Id(t))d=function(){return jn(t())};else{var f=jn(t);d=function(){return f}}function h(m,g){m===void 0&&(m=d());var b=tr([a[g.type]],l.filter(function(y){var v=y.matcher;return v(g)}).map(function(y){var v=y.reducer;return v}));return b.filter(function(y){return!!y}).length===0&&(b=[s]),b.reduce(function(y,v){if(v)if(Vt(y)){var N=y,E=v(N,g);return E===void 0?y:E}else{if(xt(y))return Ci(y,function($){return v($,g)});var E=v(y,g);if(E===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return y},m)}return h.getInitialState=d,h}function Dd(t,e){return t+"/"+e}function hp(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:jn(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},l={},s={};n.forEach(function(h){var m=i[h],g=Dd(e,h),b,y;"reducer"in m?(b=m.reducer,y=m.prepare):b=m,a[h]=b,l[g]=b,s[h]=y?so(g,y):so(g)});function d(){var h=typeof t.extraReducers=="function"?up(t.extraReducers):[t.extraReducers],m=h[0],g=m===void 0?{}:m,b=h[1],y=b===void 0?[]:b,v=h[2],N=v===void 0?void 0:v,E=lo(lo({},g),l);return Bd(o,function($){for(var P in E)$.addCase(P,E[P]);for(var V=0,Q=y;V<Q.length;V++){var ot=Q[V];$.addMatcher(ot.matcher,ot.reducer)}N&&$.addDefaultCase(N)})}var f;return{name:e,reducer:function(h,m){return f||(f=d()),f(h,m)},actions:s,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var _d="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=_d[Math.random()*64|0];return e},Fd=["name","message","stack","code"],Vn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),cp=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Td=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,i=Fd;o<i.length;o++){var n=i[o];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},bS=function(){function t(e,o,i){var n=so(e+"/fulfilled",function(h,m,g,b){return{payload:h,meta:Un(lo({},b||{}),{arg:g,requestId:m,requestStatus:"fulfilled"})}}),a=so(e+"/pending",function(h,m,g){return{payload:void 0,meta:Un(lo({},g||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),l=so(e+"/rejected",function(h,m,g,b,y){return{payload:b,error:(i&&i.serializeError||Td)(h||"Rejected"),meta:Un(lo({},y||{}),{arg:g,requestId:m,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),s=!1,d=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 f(h){return function(m,g,b){var y=i?.idGenerator?i.idGenerator(h):zd(),v=new d,N,E=!1;function $(V){N=V,v.abort()}var P=function(){return Ed(this,null,function(){var V,Q,ot,jt,Ai,Gt,Ve;return vd(this,function(rt){switch(rt.label){case 0:return rt.trys.push([0,4,,5]),jt=(V=i?.condition)==null?void 0:V.call(i,h,{getState:g,extra:b}),Wd(jt)?[4,jt]:[3,2];case 1:jt=rt.sent(),rt.label=2;case 2:if(jt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Ai=new Promise(function(je,co){return v.signal.addEventListener("abort",function(){return co({name:"AbortError",message:N||"Aborted"})})}),m(a(y,h,(Q=i?.getPendingMeta)==null?void 0:Q.call(i,{requestId:y,arg:h},{getState:g,extra:b}))),[4,Promise.race([Ai,Promise.resolve(o(h,{dispatch:m,getState:g,extra:b,requestId:y,signal:v.signal,abort:$,rejectWithValue:function(je,co){return new Vn(je,co)},fulfillWithValue:function(je,co){return new cp(je,co)}})).then(function(je){if(je instanceof Vn)throw je;return je instanceof cp?n(je.payload,y,h,je.meta):n(je,y,h)})])];case 3:return ot=rt.sent(),[3,5];case 4:return Gt=rt.sent(),ot=Gt instanceof Vn?l(null,y,h,Gt.payload,Gt.meta):l(Gt,y,h),[3,5];case 5:return Ve=i&&!i.dispatchConditionRejection&&l.match(ot)&&ot.meta.condition,Ve||m(ot),[2,ot]}})})}();return Object.assign(P,{abort:$,requestId:y,arg:h,unwrap:function(){return P.then(Md)}})}}return Object.assign(f,{pending:a,rejected:l,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Md(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var mp="listener",gp="completed",yp="cancelled",vS="task-"+yp,xS="task-"+gp,SS=mp+"-"+yp,OS=mp+"-"+gp;var Gn="listenerMiddleware";var CS=so(Gn+"/add"),wS=so(Gn+"/removeAll"),ES=so(Gn+"/remove");var pp,$S=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(pp||(pp=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ud=function(t){return function(e){setTimeout(e,t)}},RS=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ud(10);Jc();window.ftReduxStores||(window.ftReduxStores={});var bp=class t{static get(e){var o;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Rr(a))return a;if(n==null)return;let l=hp({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),s=fp({reducer:(d,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...f.overwrites}:l.reducer(d,f)});return window.ftReduxStores[n.name]=new t(l,s)}constructor(e,o){this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new hi,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let l=n,s=i[l];return s?(...d)=>{let f=s(...d);return this.reduxStore.dispatch(f),f}:d=>{this.setState({[l]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var ki=u(O());var $i=class extends eo{async listMySearches(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Ri=class extends eo{async listMyBookmarks(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Vd="ft-user-assets",Ni=ki.FtReduxStore.get({name:Vd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Kn=class{constructor(){this.currentSession=D.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ri,this.savedSearchesService=new $i,D.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=D.getState();(0,ki.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ni.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ni.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ni.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ni.actions.bookmarks(o)}}},oO=new Kn;var Zn=class{addCommand(e,o=!1){D.commands.add(e,o)}consumeCommand(e){return D.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Zn;var vp=u(O()),qn=class{highlightHtml(e,o,i){(0,vp.highlightHtml)(e,o,i)}};window.FluidTopicsHighlightHtmlService=new qn;var xp=u(O());var Yn=class{isDate(e){var o,i,n,a;return(a=(n=((i=(o=D.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]).find(s=>s.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,o){var i,n,a;return xp.DateFormatter.format(e,(i=o?.locale)!==null&&i!==void 0?i:D.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Yn;(0,Sp.customElement)("ft-app-context")(he);var H=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var Op={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Xn=class extends CustomEvent{constructor(e){super("launch-search",{detail:e,bubbles:!0,composed:!0})}},Jn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},jd=()=>{},L=class extends re.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new re.ParametrizedLabelResolver(Op,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new re.SearchPlaceConverter(this.baseUrl,{}).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=it.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.suggestManager=new Nt(this),this.selectedFacetsManager=new kt(this),this.desktopSearchBarManager=new Er(this),this.mobileSearchBarManager=new wr(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new re.Debouncer(10),this.updateLocalesDebouncer=new re.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(o=>o.contentLocales).catch(()=>[]).then(o=>{this.availableContentLocales=o,this.availableContentLocalesInitialized=!0})}),this.updateFacetsDebouncer.run(()=>{this.retrieveFacetsFromSearch().then(()=>{this.facetsLoaded=!0,this.facetsInitialized=!0})},this.facetsInitialized?500:10)},this.facetsLoaded=!1,this.updateFacetsDebouncer=new re.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(o=>o===this.floatingContainer))},this.compareUnknownFilters=(e,o)=>e.valueFilter&&o.valueFilter?this.compareValueFilters(e.valueFilter,o.valueFilter):e.dateFilter&&o.dateFilter?this.compareDateFilters(e.dateFilter,o.dateFilter):e.rangeFilter&&o.rangeFilter?this.compareRangeFilters(e.rangeFilter,o.rangeFilter):!1,this.compareValueFilters=(e,o)=>e.negative==o.negative&&e.values.length===o.values.length&&e.values.every(i=>o.values.includes(i)),this.compareDateFilters=(e,o)=>e.type===o.type,this.compareRangeFilters=(e,o)=>e.from===o.from&&e.to===o.to,this.compareFilters=(e,o)=>e.key===o.key&&this.compareUnknownFilters(e,o),this.compareRequests=(e,o)=>(e.contentLocale==null||o.contentLocale==null||e.contentLocale===o.contentLocale)&&e.metadataFilters.length===o.metadataFilters.length&&e.metadataFilters.every(i=>o.metadataFilters.some(n=>this.compareFilters(i,n))),this.enableFocusReactionCallback=()=>this.enableFocusReaction()}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(o=>{var i,n;return((n=(i=o.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(o.key)}).map(o=>({id:o.key}));return[...this.displayedFilters.map(o=>({id:o})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===it.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,re.waitFor)(()=>this.input,50),this.input.focus(),e||this.enableFocusReactionOnAnyUserInteraction()}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return Z.html`
|
|
2969
2969
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2970
2970
|
${this.renderSearchBar()}
|
|
2971
2971
|
`}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():Z.html`
|