@fluid-topics/ft-tabs 2.0.9 → 2.0.11

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.
@@ -177,7 +177,7 @@
177
177
  .ft-icon--material {
178
178
  font-family: ${Ve.materialFontFamily}, "Material Icons", sans-serif;
179
179
  }
180
- `,Re.noTextSelect];var ot;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ot||(ot={}));var Lr=A(V()),nt=A(Q()),Vi=A(D()),Ki=A(vn());var co;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.CLOUD_SLASH="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.CLOUD="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM_REGULAR="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS_REGULAR="&#xe9bd;",e.PERSON_CHALKBOARD_REGULAR="&#xe9be;"})(co||(co={}));var O;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(O||(O={}));var Yh=new Map([...["abw"].map(e=>[e,O.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,O.AUDIO]),...["avi"].map(e=>[e,O.AVI]),...["chm","xhs"].map(e=>[e,O.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,O.CODE]),...["csv"].map(e=>[e,O.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,O.DITA]),...["epub"].map(e=>[e,O.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,O.EXCEL]),...["flac"].map(e=>[e,O.FLAC]),...["gif"].map(e=>[e,O.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,O.GZIP]),...["html","htm","xhtml"].map(e=>[e,O.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,O.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,O.JPEG]),...["json"].map(e=>[e,O.JSON]),...["m4a","m4p"].map(e=>[e,O.M4A]),...["mov","qt"].map(e=>[e,O.MOV]),...["mp3"].map(e=>[e,O.MP3]),...["mp4","m4v"].map(e=>[e,O.MP4]),...["ogg","oga"].map(e=>[e,O.OGG]),...["pdf","ps"].map(e=>[e,O.PDF]),...["png"].map(e=>[e,O.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,O.POWERPOINT]),...["rar"].map(e=>[e,O.RAR]),...["stp"].map(e=>[e,O.STP]),...["txt","rtf","md","mdown"].map(e=>[e,O.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,O.VIDEO]),...["wav"].map(e=>[e,O.WAV]),...["wma"].map(e=>[e,O.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,O.WORD]),...["xml","xsl","rdf"].map(e=>[e,O.XML]),...["yaml","yml","x-yaml"].map(e=>[e,O.YAML]),...["zip"].map(e=>[e,O.ZIP])]);var qh={[O.ABW]:"#91ABC6",[O.AUDIO]:"#1795E3",[O.AVI]:"#E63324",[O.CHM]:"#71C3EB",[O.CODE]:"#71C3EB",[O.CSV]:"#1F7345",[O.DITA]:"#71C3EB",[O.EPUB]:"#85B926",[O.EXCEL]:"#1F7345",[O.FLAC]:"#1795E3",[O.GIF]:"#59B031",[O.GZIP]:"#F8AB36",[O.HTML]:"#71C3EB",[O.IMAGE]:"#59B031",[O.JPEG]:"#59B031",[O.JSON]:"#71C3EB",[O.M4A]:"#1795E3",[O.MOV]:"#E63324",[O.MP3]:"#1795E3",[O.MP4]:"#E63324",[O.OGG]:"#1795E3",[O.PDF]:"#E44948",[O.PNG]:"#59B031",[O.POWERPOINT]:"#B54A2B",[O.RAR]:"#F8AB36",[O.STP]:"#3764B1",[O.TEXT]:"#3162AB",[O.UNKNOWN]:"#999999",[O.VIDEO]:"#E63324",[O.WAV]:"#1795E3",[O.WMA]:"#1795E3",[O.WORD]:"#3162AB",[O.XML]:"#71C3EB",[O.YAML]:"#71C3EB",[O.ZIP]:"#F8AB36"};var Or=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},ue=class extends Vi.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Lr.nothing}render(){let t=this.variant&&Object.values(ot).includes(this.variant)?this.variant:ot.fluid_topics,o=t!==ot.material||!!this.value;return Lr.html`
180
+ `,Re.noTextSelect];var ot;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ot||(ot={}));var Lr=A(V()),nt=A(Q()),Vi=A(D()),Ki=A(vn());var co;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CLOUD_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM_REGULAR="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS_REGULAR="&#xe9bd;",e.PERSON_CHALKBOARD_REGULAR="&#xe9be;"})(co||(co={}));var O;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(O||(O={}));var Yh=new Map([...["abw"].map(e=>[e,O.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,O.AUDIO]),...["avi"].map(e=>[e,O.AVI]),...["chm","xhs"].map(e=>[e,O.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,O.CODE]),...["csv"].map(e=>[e,O.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,O.DITA]),...["epub"].map(e=>[e,O.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,O.EXCEL]),...["flac"].map(e=>[e,O.FLAC]),...["gif"].map(e=>[e,O.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,O.GZIP]),...["html","htm","xhtml"].map(e=>[e,O.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,O.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,O.JPEG]),...["json"].map(e=>[e,O.JSON]),...["m4a","m4p"].map(e=>[e,O.M4A]),...["mov","qt"].map(e=>[e,O.MOV]),...["mp3"].map(e=>[e,O.MP3]),...["mp4","m4v"].map(e=>[e,O.MP4]),...["ogg","oga"].map(e=>[e,O.OGG]),...["pdf","ps"].map(e=>[e,O.PDF]),...["png"].map(e=>[e,O.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,O.POWERPOINT]),...["rar"].map(e=>[e,O.RAR]),...["stp"].map(e=>[e,O.STP]),...["txt","rtf","md","mdown"].map(e=>[e,O.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,O.VIDEO]),...["wav"].map(e=>[e,O.WAV]),...["wma"].map(e=>[e,O.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,O.WORD]),...["xml","xsl","rdf"].map(e=>[e,O.XML]),...["yaml","yml","x-yaml"].map(e=>[e,O.YAML]),...["zip"].map(e=>[e,O.ZIP])]);var qh={[O.ABW]:"#91ABC6",[O.AUDIO]:"#1795E3",[O.AVI]:"#E63324",[O.CHM]:"#71C3EB",[O.CODE]:"#71C3EB",[O.CSV]:"#1F7345",[O.DITA]:"#71C3EB",[O.EPUB]:"#85B926",[O.EXCEL]:"#1F7345",[O.FLAC]:"#1795E3",[O.GIF]:"#59B031",[O.GZIP]:"#F8AB36",[O.HTML]:"#71C3EB",[O.IMAGE]:"#59B031",[O.JPEG]:"#59B031",[O.JSON]:"#71C3EB",[O.M4A]:"#1795E3",[O.MOV]:"#E63324",[O.MP3]:"#1795E3",[O.MP4]:"#E63324",[O.OGG]:"#1795E3",[O.PDF]:"#E44948",[O.PNG]:"#59B031",[O.POWERPOINT]:"#B54A2B",[O.RAR]:"#F8AB36",[O.STP]:"#3764B1",[O.TEXT]:"#3162AB",[O.UNKNOWN]:"#999999",[O.VIDEO]:"#E63324",[O.WAV]:"#1795E3",[O.WMA]:"#1795E3",[O.WORD]:"#3162AB",[O.XML]:"#71C3EB",[O.YAML]:"#71C3EB",[O.ZIP]:"#F8AB36"};var Or=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},ue=class extends Vi.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Lr.nothing}render(){let t=this.variant&&Object.values(ot).includes(this.variant)?this.variant:ot.fluid_topics,o=t!==ot.material||!!this.value;return Lr.html`
181
181
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
182
182
  ${(0,Ki.unsafeHTML)(this.resolvedIcon)}
183
183
  <slot ?hidden=${o}></slot>
@@ -910,7 +910,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
910
910
  position: relative;
911
911
  word-break: break-word;
912
912
  }
913
- `;var g1=["top","right","bottom","left"],m1=["start","end"],Na=g1.reduce((e,t)=>e.concat(t,t+"-"+m1[0],t+"-"+m1[1]),[]),Fr=Math.min,pt=Math.max,$r=Math.round;var _e=e=>({x:e,y:e}),p8={left:"right",right:"left",bottom:"top",top:"bottom"};function Ta(e,t,o){return pt(e,Fr(t,o))}function Ro(e,t){return typeof e=="function"?e(t):e}function lr(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function Ma(e){return e==="x"?"y":"x"}function Pa(e){return e==="y"?"height":"width"}function wo(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function za(e){return Ma(wo(e))}function y1(e,t,o){o===void 0&&(o=!1);let n=ht(e),a=za(e),i=Pa(a),s=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=_a(s)),[s,_a(s)]}function b1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function _a(e){let t=lr(e);return p8[t]+e.slice(t.length)}function h8(e){return{top:0,right:0,bottom:0,left:0,...e}}function x1(e){return typeof e!="number"?h8(e):{top:e,right:e,bottom:e,left:e}}function Nt(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function v1(e,t,o){let{reference:n,floating:a}=e,i=wo(t),s=za(t),l=Pa(s),f=lr(t),u=i==="y",h=n.x+n.width/2-a.width/2,g=n.y+n.height/2-a.height/2,y=n[l]/2-a[l]/2,v;switch(f){case"top":v={x:h,y:n.y-a.height};break;case"bottom":v={x:h,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:g};break;case"left":v={x:n.x-a.width,y:g};break;default:v={x:n.x,y:n.y}}switch(ht(t)){case"start":v[s]-=y*(o&&u?-1:1);break;case"end":v[s]+=y*(o&&u?-1:1);break}return v}async function S1(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:y=!1,padding:v=0}=Ro(t,e),x=x1(v),L=l[y?g==="floating"?"reference":"floating":g],_=Nt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(L)))==null||o?L:L.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:f})),R=g==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),P=await(i.isElement==null?void 0:i.isElement(M))?await(i.getScale==null?void 0:i.getScale(M))||{x:1,y:1}:{x:1,y:1},U=Nt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:R,offsetParent:M,strategy:f}):R);return{top:(_.top-U.top+x.top)/P.y,bottom:(U.bottom-_.bottom+x.bottom)/P.y,left:(_.left-U.left+x.left)/P.x,right:(U.right-_.right+x.right)/P.x}}var m8=50,C1=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=o,l=s.detectOverflow?s:{...s,detectOverflow:S1},f=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:h,y:g}=v1(u,n,f),y=n,v=0,x={};for(let C=0;C<i.length;C++){let L=i[C];if(!L)continue;let{name:_,fn:R}=L,{x:M,y:P,data:U,reset:F}=await R({x:h,y:g,initialPlacement:n,placement:y,strategy:a,middlewareData:x,rects:u,platform:l,elements:{reference:e,floating:t}});h=M??h,g=P??g,x[_]={...x[_],...U},F&&v<m8&&(v++,typeof F=="object"&&(F.placement&&(y=F.placement),F.rects&&(u=F.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):F.rects),{x:h,y:g}=v1(u,y,f)),C=-1)}return{x:h,y:g,placement:y,strategy:a,middlewareData:x}};function g8(e,t,o){return(e?[...o.filter(a=>ht(a)===e),...o.filter(a=>ht(a)!==e)]:o.filter(a=>lr(a)===a)).filter(a=>e?ht(a)===e||(t?b1(a)!==a:!1):!0)}var E1=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:i,middlewareData:s,placement:l,platform:f,elements:u}=t,{crossAxis:h=!1,alignment:g,allowedPlacements:y=Na,autoAlignment:v=!0,...x}=Ro(e,t),C=g!==void 0||y===Na?g8(g||null,v,y):y,L=await f.detectOverflow(t,x),_=((o=s.autoPlacement)==null?void 0:o.index)||0,R=C[_];if(R==null)return{};let M=y1(R,i,await(f.isRTL==null?void 0:f.isRTL(u.floating)));if(l!==R)return{reset:{placement:C[0]}};let P=[L[lr(R)],L[M[0]],L[M[1]]],U=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:R,overflows:P}],F=C[_+1];if(F)return{data:{index:_+1,overflows:U},reset:{placement:F}};let le=U.map(te=>{let b=ht(te.placement);return[te.placement,b&&h?te.overflows.slice(0,2).reduce((S,k)=>S+k,0):te.overflows[0],te.overflows]}).sort((te,b)=>te[1]-b[1]),ze=((a=le.filter(te=>te[2].slice(0,ht(te[0])?2:3).every(b=>b<=0))[0])==null?void 0:a[0])||le[0][0];return ze!==l?{data:{index:_+1,overflows:U},reset:{placement:ze}}:{}}}};var A1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a,platform:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:_=>{let{x:R,y:M}=_;return{x:R,y:M}}},...u}=Ro(e,t),h={x:o,y:n},g=await i.detectOverflow(t,u),y=wo(lr(a)),v=Ma(y),x=h[v],C=h[y];if(s){let _=v==="y"?"top":"left",R=v==="y"?"bottom":"right",M=x+g[_],P=x-g[R];x=Ta(M,x,P)}if(l){let _=y==="y"?"top":"left",R=y==="y"?"bottom":"right",M=C+g[_],P=C-g[R];C=Ta(M,C,P)}let L=f.fn({...t,[v]:x,[y]:C});return{...L,data:{x:L.x-o,y:L.y-n,enabled:{[v]:s,[y]:l}}}}}};function No(){return typeof window<"u"}function Mt(e){return O1(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Be(e){var t;return(t=(O1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function O1(e){return No()?e instanceof Node||e instanceof fe(e).Node:!1}function xe(e){return No()?e instanceof Element||e instanceof fe(e).Element:!1}function He(e){return No()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function L1(e){return!No()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}function dr(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&a!=="inline"&&a!=="contents"}function R1(e){return/^(table|td|th)$/.test(Mt(e))}function jr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var y8=/transform|translate|scale|rotate|perspective|filter/,b8=/paint|layout|strict|content/,Tt=e=>!!e&&e!=="none",ka;function To(e){let t=xe(e)?ve(e):e;return Tt(t.transform)||Tt(t.translate)||Tt(t.scale)||Tt(t.rotate)||Tt(t.perspective)||!Mo()&&(Tt(t.backdropFilter)||Tt(t.filter))||y8.test(t.willChange||"")||b8.test(t.contain||"")}function w1(e){let t=Je(e);for(;He(t)&&!Pt(t);){if(To(t))return t;if(jr(t))return null;t=Je(t)}return null}function Mo(){return ka==null&&(ka=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ka}function Pt(e){return/^(html|body|#document)$/.test(Mt(e))}function ve(e){return fe(e).getComputedStyle(e)}function Vr(e){return xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if(Mt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||L1(e)&&e.host||Be(e);return L1(t)?t.host:t}function _1(e){let t=Je(e);return Pt(t)?e.ownerDocument?e.ownerDocument.body:e.body:He(t)&&dr(t)?t:_1(t)}function _o(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=_1(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),s=fe(a);if(i){let l=Po(s);return t.concat(s,s.visualViewport||[],dr(a)?a:[],l&&o?_o(l):[])}else return t.concat(a,_o(a,[],o))}function Po(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function P1(e){let t=ve(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=He(e),i=a?e.offsetWidth:o,s=a?e.offsetHeight:n,l=$r(o)!==i||$r(n)!==s;return l&&(o=i,n=s),{width:o,height:n,$:l}}function z1(e){return xe(e)?e:e.contextElement}function fr(e){let t=z1(e);if(!He(t))return _e(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:i}=P1(t),s=(i?$r(o.width):o.width)/n,l=(i?$r(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var x8=_e(0);function k1(e){let t=fe(e);return!Mo()||!t.visualViewport?x8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function v8(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==fe(e)?!1:t}function Kr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=z1(e),s=_e(1);t&&(n?xe(n)&&(s=fr(n)):s=fr(e));let l=v8(i,o,n)?k1(i):_e(0),f=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,h=a.width/s.x,g=a.height/s.y;if(i){let y=fe(i),v=n&&xe(n)?fe(n):n,x=y,C=Po(x);for(;C&&n&&v!==x;){let L=fr(C),_=C.getBoundingClientRect(),R=ve(C),M=_.left+(C.clientLeft+parseFloat(R.paddingLeft))*L.x,P=_.top+(C.clientTop+parseFloat(R.paddingTop))*L.y;f*=L.x,u*=L.y,h*=L.x,g*=L.y,f+=M,u+=P,x=fe(C),C=Po(x)}}return Nt({width:h,height:g,x:f,y:u})}function zo(e,t){let o=Vr(e).scrollLeft;return t?t.left+o:Kr(Be(e)).left+o}function I1(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-zo(e,o),a=o.top+t.scrollTop;return{x:n,y:a}}function S8(e){let{elements:t,rect:o,offsetParent:n,strategy:a}=e,i=a==="fixed",s=Be(n),l=t?jr(t.floating):!1;if(n===s||l&&i)return o;let f={scrollLeft:0,scrollTop:0},u=_e(1),h=_e(0),g=He(n);if((g||!g&&!i)&&((Mt(n)!=="body"||dr(s))&&(f=Vr(n)),g)){let v=Kr(n);u=fr(n),h.x=v.x+n.clientLeft,h.y=v.y+n.clientTop}let y=s&&!g&&!i?I1(s,f):_e(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-f.scrollLeft*u.x+h.x+y.x,y:o.y*u.y-f.scrollTop*u.y+h.y+y.y}}function C8(e){return Array.from(e.getClientRects())}function E8(e){let t=Be(e),o=Vr(e),n=e.ownerDocument.body,a=pt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=pt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+zo(e),l=-o.scrollTop;return ve(n).direction==="rtl"&&(s+=pt(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}var N1=25;function A8(e,t){let o=fe(e),n=Be(e),a=o.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,f=0;if(a){i=a.width,s=a.height;let h=Mo();(!h||h&&t==="fixed")&&(l=a.offsetLeft,f=a.offsetTop)}let u=zo(n);if(u<=0){let h=n.ownerDocument,g=h.body,y=getComputedStyle(g),v=h.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,x=Math.abs(n.clientWidth-g.clientWidth-v);x<=N1&&(i-=x)}else u<=N1&&(i+=u);return{width:i,height:s,x:l,y:f}}function L8(e,t){let o=Kr(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=He(e)?fr(e):_e(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,f=a*i.x,u=n*i.y;return{width:s,height:l,x:f,y:u}}function T1(e,t,o){let n;if(t==="viewport")n=A8(e,o);else if(t==="document")n=E8(Be(e));else if(xe(t))n=L8(t,o);else{let a=k1(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Nt(n)}function D1(e,t){let o=Je(e);return o===t||!xe(o)||Pt(o)?!1:ve(o).position==="fixed"||D1(o,t)}function O8(e,t){let o=t.get(e);if(o)return o;let n=_o(e,[],!1).filter(l=>xe(l)&&Mt(l)!=="body"),a=null,i=ve(e).position==="fixed",s=i?Je(e):e;for(;xe(s)&&!Pt(s);){let l=ve(s),f=To(s);!f&&l.position==="fixed"&&(a=null),(i?!f&&!a:!f&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||dr(s)&&!f&&D1(e,s))?n=n.filter(h=>h!==s):a=l,s=Je(s)}return t.set(e,n),n}function R8(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,s=[...o==="clippingAncestors"?jr(t)?[]:O8(t,this._c):[].concat(o),n],l=T1(t,s[0],a),f=l.top,u=l.right,h=l.bottom,g=l.left;for(let y=1;y<s.length;y++){let v=T1(t,s[y],a);f=pt(v.top,f),u=Fr(v.right,u),h=Fr(v.bottom,h),g=pt(v.left,g)}return{width:u-g,height:h-f,x:g,y:f}}function w8(e){let{width:t,height:o}=P1(e);return{width:t,height:o}}function _8(e,t,o){let n=He(t),a=Be(t),i=o==="fixed",s=Kr(e,!0,i,t),l={scrollLeft:0,scrollTop:0},f=_e(0);function u(){f.x=zo(a)}if(n||!n&&!i)if((Mt(t)!=="body"||dr(a))&&(l=Vr(t)),n){let v=Kr(t,!0,i,t);f.x=v.x+t.clientLeft,f.y=v.y+t.clientTop}else a&&u();i&&!n&&a&&u();let h=a&&!n&&!i?I1(a,l):_e(0),g=s.left+l.scrollLeft-f.x-h.x,y=s.top+l.scrollTop-f.y-h.y;return{x:g,y,width:s.width,height:s.height}}function Ia(e){return ve(e).position==="static"}function M1(e,t){if(!He(e)||ve(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Be(e)===o&&(o=o.ownerDocument.body),o}function U1(e,t){let o=fe(e);if(jr(e))return o;if(!He(e)){let a=Je(e);for(;a&&!Pt(a);){if(xe(a)&&!Ia(a))return a;a=Je(a)}return o}let n=M1(e,t);for(;n&&R1(n)&&Ia(n);)n=M1(n,t);return n&&Pt(n)&&Ia(n)&&!To(n)?o:n||w1(e)||o}var N8=async function(e){let t=this.getOffsetParent||U1,o=this.getDimensions,n=await o(e.floating);return{reference:_8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function T8(e){return ve(e).direction==="rtl"}var ko={convertOffsetParentRelativeRectToViewportRelativeRect:S8,getDocumentElement:Be,getClippingRect:R8,getOffsetParent:U1,getElementRects:N8,getClientRects:C8,getDimensions:w8,getScale:fr,isElement:xe,isRTL:T8};var B1=E1,H1=A1;var G1=(e,t,o)=>{let n=new Map,a={platform:ko,...o},i={...a.platform,_c:n};return C1(e,t,{...a,platform:i})};function W1(e){return M8(e)}function Da(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function M8(e){for(let t=e;t;t=Da(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Da(e);t;t=Da(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function F1(e,t,o){let n;return typeof o=="object"?n=o:n={placement:o},G1(e,t,{strategy:n.strategy,platform:{...ko,getOffsetParent:a=>ko.getOffsetParent(a,W1)},middleware:[H1({crossAxis:!0}),B1({allowedPlacements:[n.placement]})]})}var Cr=A(D());var ci=A(Q());function P8(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!Io(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Io(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let s=a[n];if(!Io(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Io(e,t){try{return P8(e,t)}catch{return!1}}function Zr(e,t){return!Io(e,t)}function $1(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Do(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var j1=A(Q(),1);var Ua=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:Zr,attribute:!1,...t};(0,j1.property)(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}};var Uo=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var zt=A(Q(),1);var V1=A(Q(),1);function K1(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,V1.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Zr,...t??{}})}var Bo=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Y1=A(V(),1);var Ho=globalThis,z8=Ho.ShadowRoot&&(Ho.ShadyCSS===void 0||Ho.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,eb=Symbol();var Z1=(e,t)=>{if(z8)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=Ho.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Go=class extends Y1.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Z1(n,t.elementStyles),n}};function q1(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var pr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},e2,X1=Symbol("constructorPrototype"),Q1=Symbol("constructorName"),t2=Symbol("exportpartsDebouncer"),J1=Symbol("dynamicDependenciesLoaded"),ur=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};ur.eventName="exportparts-updated";var Ge=class extends Go{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[e2]=new Bo(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[t2].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Q1]=this.constructor.name,this[X1]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Q1]&&Object.setPrototypeOf(this,this[X1])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[J1]||(o[J1]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(ur.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(ur.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new ur)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=q1(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var o,n,a,i,s,l;let f=y=>y!=null&&y.trim().length>0,u=t.filter(f).map(y=>y.trim());if(u.length===0){this.exportparts=void 0;return}let h=new Set;for(let y of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=y.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(L=>L.split(":")[1]))!==null&&l!==void 0?l:[],C=[...v,...x].filter(f).map(L=>L.trim());for(let L of C)h.add(L)}if(h.size===0){this.exportparts=void 0;return}let g=[...h.values()].flatMap(y=>u.map(v=>`${y}:${v}--${y}`));this.exportparts=[...this.part,...g].join(", ")}};e2=t2;pr([(0,zt.property)()],Ge.prototype,"exportpartsPrefix",void 0);pr([K1([])],Ge.prototype,"exportpartsPrefixes",void 0);pr([(0,zt.property)({reflect:!0})],Ge.prototype,"exportparts",void 0);pr([(0,zt.property)()],Ge.prototype,"customStylesheet",void 0);pr([(0,zt.property)()],Ge.prototype,"elementToFocus",void 0);pr([(0,zt.state)()],Ge.prototype,"useAdoptedStyleSheets",void 0);function Wo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Yr=Symbol("internalReduxEventsUnsubscribers"),mt=Symbol("internalStoresUnsubscribers"),kt=Symbol("internalStores"),k8=Do(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[kt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[kt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[kt].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[kt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[kt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[kt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[mt].has(s.store):this[mt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var f;this[mt].set(s,l.subscribe(()=>this.updateFromStores())),this[Yr].set(s,[]),Wo(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let g=y=>this[h](y);l.addEventListener(u.eventName,g),this[Yr].get(s).push(()=>l.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[mt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[mt].has(s)&&this[mt].get(s)(),this[mt].delete(s),(l=this[Yr].get(s))===null||l===void 0||l.forEach(f=>f()),this[Yr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=mt,o=kt,n=Yr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),r2=class extends k8(Ge){};function Se(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function et(e){return!!e&&!!e[$]}function Ne(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===F8}(e)||Array.isArray(e)||!!e[l2]||!!(!((t=e.constructor)===null||t===void 0)&&t[l2])||Ka(e)||Za(e))}function It(e,t,o){o===void 0&&(o=!1),gr(e)===0?(o?Object.keys:mr)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function gr(e){var t=e[$];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ka(e)?2:Za(e)?3:0}function hr(e,t){return gr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function I8(e,t){return gr(e)===2?e.get(t):e[t]}function d2(e,t,o){var n=gr(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function f2(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ka(e){return G8&&e instanceof Map}function Za(e){return W8&&e instanceof Set}function gt(e){return e.o||e.t}function Ya(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=h2(e);delete t[$];for(var o=mr(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function qa(e,t){return t===void 0&&(t=!1),Xa(e)||et(e)||!Ne(e)||(gr(e)>1&&(e.set=e.add=e.clear=e.delete=D8),Object.freeze(e),t&&It(e,function(o,n){return qa(n,!0)},!0)),e}function D8(){Se(2)}function Xa(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function We(e){var t=Va[e];return t||Se(18,e),t}function U8(e,t){Va[e]||(Va[e]=t)}function Fa(){return Xr}function Ba(e,t){t&&(We("Patches"),e.u=[],e.s=[],e.v=t)}function Fo(e){$a(e),e.p.forEach(B8),e.p=null}function $a(e){e===Xr&&(Xr=e.l)}function o2(e){return Xr={p:[],l:Xr,h:e,m:!0,_:0}}function B8(e){var t=e[$];t.i===0||t.i===1?t.j():t.g=!0}function Ha(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||We("ES5").S(t,e,n),n?(o[$].P&&(Fo(t),Se(4)),Ne(e)&&(e=$o(t,e),t.l||jo(t,e)),t.u&&We("Patches").M(o[$].t,e,t.u,t.s)):e=$o(t,o,[]),Fo(t),t.u&&t.v(t.u,t.s),e!==p2?e:void 0}function $o(e,t,o){if(Xa(t))return t;var n=t[$];if(!n)return It(t,function(l,f){return n2(e,n,t,l,f,o)},!0),t;if(n.A!==e)return t;if(!n.P)return jo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Ya(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),It(i,function(l,f){return n2(e,n,a,l,f,o,s)}),jo(e,a,!1),o&&e.u&&We("Patches").N(n,o,e.u,e.s)}return n.o}function n2(e,t,o,n,a,i,s){if(et(a)){var l=$o(e,a,i&&t&&t.i!==3&&!hr(t.R,n)?i.concat(n):void 0);if(d2(o,n,l),!et(l))return;e.m=!1}else s&&o.add(a);if(Ne(a)&&!Xa(a)){if(!e.h.D&&e._<1)return;$o(e,a),t&&t.A.l||jo(e,a)}}function jo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&qa(t,o)}function Ga(e,t){var o=e[$];return(o?gt(o):e)[t]}function a2(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function yt(e){e.P||(e.P=!0,e.l&&yt(e.l))}function Wa(e){e.o||(e.o=Ya(e.t))}function ja(e,t,o){var n=Ka(t)?We("MapSet").F(t,o):Za(t)?We("MapSet").T(t,o):e.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Fa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,u=Qr;s&&(f=[l],u=qr);var h=Proxy.revocable(f,u),g=h.revoke,y=h.proxy;return l.k=y,l.j=g,y}(t,o):We("ES5").J(t,o);return(o?o.A:Fa()).p.push(n),n}function H8(e){return et(e)||Se(22,e),function t(o){if(!Ne(o))return o;var n,a=o[$],i=gr(o);if(a){if(!a.P&&(a.i<4||!We("ES5").K(a)))return a.t;a.I=!0,n=i2(o,i),a.I=!1}else n=i2(o,i);return It(n,function(s,l){a&&I8(a.t,s)===l||d2(n,s,t(l))}),i===3?new Set(n):n}(e)}function i2(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ya(e)}function u2(){function e(s,l){var f=i[s];return f?f.enumerable=l:i[s]=f={configurable:!0,enumerable:l,get:function(){var u=this[$];return Qr.get(u,s)},set:function(u){var h=this[$];Qr.set(h,s,u)}},f}function t(s){for(var l=s.length-1;l>=0;l--){var f=s[l][$];if(!f.P)switch(f.i){case 5:n(f)&&yt(f);break;case 4:o(f)&&yt(f)}}}function o(s){for(var l=s.t,f=s.k,u=mr(f),h=u.length-1;h>=0;h--){var g=u[h];if(g!==$){var y=l[g];if(y===void 0&&!hr(l,g))return!0;var v=f[g],x=v&&v[$];if(x?x.t!==y:!f2(v,y))return!0}}var C=!!l[$];return u.length!==mr(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&Se(3,JSON.stringify(gt(s)))}var i={};U8("ES5",{J:function(s,l){var f=Array.isArray(s),u=function(g,y){if(g){for(var v=Array(y.length),x=0;x<y.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var C=h2(y);delete C[$];for(var L=mr(C),_=0;_<L.length;_++){var R=L[_];C[R]=e(R,g||!!C[R].enumerable)}return Object.create(Object.getPrototypeOf(y),C)}(f,s),h={i:f?5:4,A:l?l.A:Fa(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,$,{value:h,writable:!0}),u},S:function(s,l,f){f?et(l)&&l[$].A===s&&t(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var g=h[$];if(g){var y=g.t,v=g.k,x=g.R,C=g.i;if(C===4)It(v,function(P){P!==$&&(y[P]!==void 0||hr(y,P)?x[P]||u(v[P]):(x[P]=!0,yt(g)))}),It(y,function(P){v[P]!==void 0||hr(v,P)||(x[P]=!1,yt(g))});else if(C===5){if(n(g)&&(yt(g),x.length=!0),v.length<y.length)for(var L=v.length;L<y.length;L++)x[L]=!1;else for(var _=y.length;_<v.length;_++)x[_]=!0;for(var R=Math.min(v.length,y.length),M=0;M<R;M++)v.hasOwnProperty(M)||(x[M]=!0),x[M]===void 0&&u(v[M])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var s2,Xr,Qa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",G8=typeof Map<"u",W8=typeof Set<"u",c2=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",p2=Qa?Symbol.for("immer-nothing"):((s2={})["immer-nothing"]=!0,s2),l2=Qa?Symbol.for("immer-draftable"):"__$immer_draftable",$=Qa?Symbol.for("immer-state"):"__$immer_state";var F8=""+Object.prototype.constructor,mr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,h2=Object.getOwnPropertyDescriptors||function(e){var t={};return mr(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Va={},Qr={get:function(e,t){if(t===$)return e;var o=gt(e);if(!hr(o,t))return function(a,i,s){var l,f=a2(i,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Ne(n)?n:n===Ga(e.t,t)?(Wa(e),e.o[t]=ja(e.A.h,n,e)):n},has:function(e,t){return t in gt(e)},ownKeys:function(e){return Reflect.ownKeys(gt(e))},set:function(e,t,o){var n=a2(gt(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Ga(gt(e),t),i=a?.[$];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(f2(o,a)&&(o!==void 0||hr(e.t,t)))return!0;Wa(e),yt(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ga(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Wa(e),yt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=gt(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Se(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Se(12)}},qr={};It(Qr,function(e,t){qr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),qr.deleteProperty=function(e,t){return qr.set.call(this,e,t,void 0)},qr.set=function(e,t,o){return Qr.set.call(this,e[0],t,o,e[0])};var $8=function(){function e(o){var n=this;this.O=c2,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=n;return function(C){var L=this;C===void 0&&(C=l);for(var _=arguments.length,R=Array(_>1?_-1:0),M=1;M<_;M++)R[M-1]=arguments[M];return f.produce(C,function(P){var U;return(U=i).call.apply(U,[L,P].concat(R))})}}var u;if(typeof i!="function"&&Se(6),s!==void 0&&typeof s!="function"&&Se(7),Ne(a)){var h=o2(n),g=ja(n,a,void 0),y=!0;try{u=i(g),y=!1}finally{y?Fo(h):$a(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(C){return Ba(h,s),Ha(C,h)},function(C){throw Fo(h),C}):(Ba(h,s),Ha(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===p2&&(u=void 0),n.D&&qa(u,!0),s){var v=[],x=[];We("Patches").M(a,u,v,x),s(v,x)}return u}Se(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,g=Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(g))})};var s,l,f=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,s,l]}):[f,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Ne(o)||Se(8),et(o)&&(o=H8(o));var n=o2(this),a=ja(this,o,void 0);return a[$].C=!0,$a(n),a},t.finishDraft=function(o,n){var a=o&&o[$],i=a.A;return Ba(i,n),Ha(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!c2&&Se(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=We("Patches").$;return et(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},e}(),he=new $8,j8=he.produce,mb=he.produceWithPatches.bind(he),gb=he.setAutoFreeze.bind(he),yb=he.setUseProxies.bind(he),bb=he.applyPatches.bind(he),xb=he.createDraft.bind(he),vb=he.finishDraft.bind(he),Vo=j8;function Dt(e){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(e)}function m2(e,t){if(Dt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(Dt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g2(e){var t=m2(e,"string");return Dt(t)=="symbol"?t:t+""}function y2(e,t,o){return(t=g2(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function b2(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Ja(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?b2(Object(o),!0).forEach(function(n){y2(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):b2(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function se(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var x2=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ei=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ko={INIT:"@@redux/INIT"+ei(),REPLACE:"@@redux/REPLACE"+ei(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ei()}};function V8(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ti(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(se(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(se(1));return o(ti)(e,t)}if(typeof e!="function")throw new Error(se(2));var a=e,i=t,s=[],l=s,f=!1;function u(){l===s&&(l=s.slice())}function h(){if(f)throw new Error(se(3));return i}function g(C){if(typeof C!="function")throw new Error(se(4));if(f)throw new Error(se(5));var L=!0;return u(),l.push(C),function(){if(L){if(f)throw new Error(se(6));L=!1,u();var R=l.indexOf(C);l.splice(R,1),s=null}}}function y(C){if(!V8(C))throw new Error(se(7));if(typeof C.type>"u")throw new Error(se(8));if(f)throw new Error(se(9));try{f=!0,i=a(i,C)}finally{f=!1}for(var L=s=l,_=0;_<L.length;_++){var R=L[_];R()}return C}function v(C){if(typeof C!="function")throw new Error(se(10));a=C,y({type:Ko.REPLACE})}function x(){var C,L=g;return C={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(se(11));function M(){R.next&&R.next(h())}M();var P=L(M);return{unsubscribe:P}}},C[x2]=function(){return this},C}return y({type:Ko.INIT}),n={dispatch:y,subscribe:g,getState:h,replaceReducer:v},n[x2]=x,n}function K8(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Ko.INIT});if(typeof n>"u")throw new Error(se(12));if(typeof o(void 0,{type:Ko.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(se(13))})}function v2(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),s,l;try{K8(o)}catch(f){l=f}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var g;for(var y=!1,v={},x=0;x<i.length;x++){var C=i[x],L=o[C],_=u[C],R=L(_,h);if(typeof R>"u"){var M=h&&h.type;throw new Error(se(14))}v[C]=R,y=y||R!==_}return y=y||i.length!==Object.keys(u).length,y?v:u}}function yr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function S2(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(se(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(f){return f(s)});return i=yr.apply(void 0,l)(a.dispatch),Ja(Ja({},a),{},{dispatch:i})}}}function C2(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,e):s(l)}}};return t}var E2=C2();E2.withExtraArgument=C2;var ri=E2;var w2=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Z8=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return f([u,h])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},br=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Y8=Object.defineProperty,q8=Object.defineProperties,X8=Object.getOwnPropertyDescriptors,A2=Object.getOwnPropertySymbols,Q8=Object.prototype.hasOwnProperty,J8=Object.prototype.propertyIsEnumerable,L2=function(e,t,o){return t in e?Y8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},bt=function(e,t){for(var o in t||(t={}))Q8.call(t,o)&&L2(e,o,t[o]);if(A2)for(var n=0,a=A2(t);n<a.length;n++){var o=a[n];J8.call(t,o)&&L2(e,o,t[o])}return e},oi=function(e,t){return q8(e,X8(t))},eh=function(e,t,o){return new Promise(function(n,a){var i=function(f){try{l(o.next(f))}catch(u){a(u)}},s=function(f){try{l(o.throw(f))}catch(u){a(u)}},l=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,s)};l((o=o.apply(e,t)).next())})};var th=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?yr:yr.apply(null,arguments)},Ub=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function rh(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var oh=function(e){w2(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,br([void 0],o[0].concat(this)))):new(t.bind.apply(t,br([void 0],o.concat(this))))},t}(Array),nh=function(e){w2(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,br([void 0],o[0].concat(this)))):new(t.bind.apply(t,br([void 0],o.concat(this))))},t}(Array);function ii(e){return Ne(e)?Vo(e,function(){}):e}function ah(e){return typeof e=="boolean"}function ih(){return function(t){return sh(t)}}function sh(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,s=i===void 0?!0:i,l=new oh;if(o&&(ah(o)?l.push(ri):l.push(ri.withExtraArgument(o.extraArgument))),0){if(a)var f;if(s)var u}return l}var ni=!0;function _2(e){var t=ih(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?t():i,l=o.devTools,f=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,g=o.enhancers,y=g===void 0?void 0:g,v;if(typeof a=="function")v=a;else if(rh(a))v=v2(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(t),!ni&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ni&&x.some(function(P){return typeof P!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=S2.apply(void 0,x),L=yr;f&&(L=th(bt({trace:!ni},typeof f=="object"&&f)));var _=new nh(C),R=_;Array.isArray(y)?R=br([C],y):typeof y=="function"&&(R=y(_));var M=L.apply(void 0,R);return ti(v,h,M)}function xt(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return bt(bt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function N2(e){var t={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function ch(e){return typeof e=="function"}function lh(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?N2(t):[t,o,n],i=a[0],s=a[1],l=a[2],f;if(ch(e))f=function(){return ii(e())};else{var u=ii(e);f=function(){return u}}function h(g,y){g===void 0&&(g=f());var v=br([i[y.type]],s.filter(function(x){var C=x.matcher;return C(y)}).map(function(x){var C=x.reducer;return C}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,C){if(C)if(et(x)){var L=x,_=C(L,y);return _===void 0?x:_}else{if(Ne(x))return Vo(x,function(R){return C(R,y)});var _=C(x,y);if(_===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return x},g)}return h.getInitialState=f,h}function dh(e,t){return e+"/"+t}function T2(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:ii(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var g=n[h],y=dh(t,h),v,x;"reducer"in g?(v=g.reducer,x=g.prepare):v=g,i[h]=v,s[y]=v,l[h]=x?xt(y,x):xt(y)});function f(){var h=typeof e.extraReducers=="function"?N2(e.extraReducers):[e.extraReducers],g=h[0],y=g===void 0?{}:g,v=h[1],x=v===void 0?[]:v,C=h[2],L=C===void 0?void 0:C,_=bt(bt({},y),s);return lh(o,function(R){for(var M in _)R.addCase(M,_[M]);for(var P=0,U=x;P<U.length;P++){var F=U[P];R.addMatcher(F.matcher,F.reducer)}L&&R.addDefaultCase(L)})}var u;return{name:t,reducer:function(h,g){return u||(u=f()),u(h,g)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var fh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",uh=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=fh[Math.random()*64|0];return t},ph=["name","message","stack","code"],ai=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),O2=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),hh=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=ph;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Wb=function(){function e(t,o,n){var a=xt(t+"/fulfilled",function(h,g,y,v){return{payload:h,meta:oi(bt({},v||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),i=xt(t+"/pending",function(h,g,y){return{payload:void 0,meta:oi(bt({},y||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=xt(t+"/rejected",function(h,g,y,v,x){return{payload:v,error:(n&&n.serializeError||hh)(h||"Rejected"),meta:oi(bt({},x||{}),{arg:y,requestId:g,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,f=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 u(h){return function(g,y,v){var x=n?.idGenerator?n.idGenerator(h):uh(),C=new f,L,_=!1;function R(P){L=P,C.abort()}var M=function(){return eh(this,null,function(){var P,U,F,le,ee,ze,te;return Z8(this,function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),le=(P=n?.condition)==null?void 0:P.call(n,h,{getState:y,extra:v}),gh(le)?[4,le]:[3,2];case 1:le=b.sent(),b.label=2;case 2:if(le===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,ee=new Promise(function(S,k){return C.signal.addEventListener("abort",function(){return k({name:"AbortError",message:L||"Aborted"})})}),g(i(x,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:h},{getState:y,extra:v}))),[4,Promise.race([ee,Promise.resolve(o(h,{dispatch:g,getState:y,extra:v,requestId:x,signal:C.signal,abort:R,rejectWithValue:function(S,k){return new ai(S,k)},fulfillWithValue:function(S,k){return new O2(S,k)}})).then(function(S){if(S instanceof ai)throw S;return S instanceof O2?a(S.payload,x,h,S.meta):a(S,x,h)})])];case 3:return F=b.sent(),[3,5];case 4:return ze=b.sent(),F=ze instanceof ai?s(null,x,h,ze.payload,ze.meta):s(ze,x,h),[3,5];case 5:return te=n&&!n.dispatchConditionRejection&&s.match(F)&&F.meta.condition,te||g(F),[2,F]}})})}();return Object.assign(M,{abort:R,requestId:x,arg:h,unwrap:function(){return M.then(mh)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function mh(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function gh(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var M2="listener",P2="completed",z2="cancelled",Fb="task-"+z2,$b="task-"+P2,jb=M2+"-"+z2,Vb=M2+"-"+P2;var si="listenerMiddleware";var Kb=xt(si+"/add"),Zb=xt(si+"/removeAll"),Yb=xt(si+"/remove");var R2,qb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(R2||(R2=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},yh=function(e){return function(t){setTimeout(t,e)}},Xb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yh(10);u2();var bh=Do(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),Zo=class extends bh(Object){};window.ftReduxStores||(window.ftReduxStores={});var k2=class e extends Zo{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Wo(i))return i;if(a==null)return;let s=T2({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=_2({reducer:(f,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let h=$1(s.getInitialState());for(let g of u.keeping)h[g]=(f??h)[g];return h}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...u.overwrites};return s.reducer(f,u)}});return window.ftReduxStores[a.name]=new e(s,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Uo;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let f=s,u=i[f];return u?(...h)=>{let g=u(...h.map(a));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[f]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Yo=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let i=typeof t=="string"?new Date(t):t,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${s} ${l}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var qo=A(D()),xh="ft-app-info",Ut=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ut.eventName="authentication-change";var vh={session:(e,t)=>{(0,qo.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>T.dispatchEvent(new Ut(t.payload)),0))}},T=qo.FtReduxStore.get({name:xh,reducers:vh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var I2=A(D()),Xo=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Lx=(0,I2.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>Yo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Xo([(0,ci.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Xo([(0,ci.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Xo([Ua({store:T.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Xo([Ua({store:T.name})],t.prototype,"uiLocale",void 0),t});var Ch=A(U2(),1);var B2;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(B2||(B2={}));var H2;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(H2||(H2={}));var G2;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(G2||(G2={}));var W2;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(W2||(W2={}));var F2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(F2||(F2={}));var $2;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})($2||($2={}));var j2;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(j2||(j2={}));var V2;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(V2||(V2={}));var K2;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(K2||(K2={}));var Z2;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Z2||(Z2={}));var Y2;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Y2||(Y2={}));var q2;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(q2||(q2={}));var X2;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(X2||(X2={}));var Q2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Q2||(Q2={}));var J2;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(J2||(J2={}));var e0;(function(e){e.ASC="ASC",e.DESC="DESC"})(e0||(e0={}));var t0;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(t0||(t0={}));var r0;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(r0||(r0={}));var o0;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(o0||(o0={}));var n0;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(n0||(n0={}));var a0;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(a0||(a0={}));var i0;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(i0||(i0={}));var s0;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(s0||(s0={}));var c0;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(c0||(c0={}));var l0;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(l0||(l0={}));var Y;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(Y||(Y={}));var Ce;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ce||(Ce={}));var d0;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(d0||(d0={}));var f0;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(f0||(f0={}));var u0;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.OTHER="OTHER"})(u0||(u0={}));var p0;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(p0||(p0={}));var h0;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(h0||(h0={}));var m0;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(m0||(m0={}));var g0;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(g0||(g0={}));var y0;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(y0||(y0={}));var b0;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(b0||(b0={}));var Sh={[Y.PERSONAL_BOOK_SHARE_USER]:[Y.PERSONAL_BOOK_USER],[Y.HTML_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.PDF_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.KHUB_ADMIN]:[Y.CONTENT_PUBLISHER],[Y.ADMIN]:[Y.KHUB_ADMIN,Y.USERS_ADMIN,Y.PORTAL_ADMIN,Y.BEHAVIOR_DATA_USER],[Y.GENERATIVE_AI_EXPORT_USER]:[Y.GENERATIVE_AI_USER]};function x0(e,t){return e===t||(Sh[e]??[]).some(o=>x0(o,t))}function v0(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>x0(n,t))}var an=A(D());var li=A(D());var Bt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=T.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=T.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var en=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Bt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Bt.await()}};var me=class extends en{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new li.CacheRegistry,this.cache=t?a.commonCache:new li.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var tn=class extends me{async listMySearches(){let{session:t}=T.getState();return v0(t,Y.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var rn=class extends me{async listMyBookmarks(){let t=T.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var on=class extends me{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=T.getState().session;return!!t?.sessionAuthenticated}};var nn=class extends me{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=T.getState().session;return!!t?.sessionAuthenticated}};var Eh="ft-user-assets",Ah={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(Ce).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;fi(e,o,[...di(e,o),a]),S0(e,o,1,n),C0(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;fi(e,o,di(e,o).map(a=>a.id===n.id?n:a)),C0(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;fi(e,o,di(e,o).filter(i=>i.id!==a)),S0(e,o,-1,n)}},E0={[Ce.SEARCHES]:"savedSearches",[Ce.BOOKMARKS]:"bookmarks",[Ce.BOOKS]:void 0,[Ce.COLLECTIONS]:void 0},di=(e,t)=>{var o;let n=E0[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},fi=(e,t,o)=>{let n=E0[t];n&&(e[n]=o)},S0=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===Ce.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},C0=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},ge=an.FtReduxStore.get({name:Eh,reducers:Ah,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ce).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ui=class{constructor(t=new on,o=new nn){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rn,this.savedSearchesService=new tn,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=T.getState();(0,an.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ge.actions.clearAssetCount(),ge.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ge.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ge.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ge.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ge.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&ge.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&ge.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(ge.getState().assetCounts.bookmarkByMap).length!==0;t===Ce.BOOKMARKS&&o&&ge.actions.clearBookmarkCountByMap(),ge.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ge.actions.bookmarks(o)}}},Lh=new ui;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Lh);var pi=class{addCommand(t,o=!1){T.commands.add(t,o)}consumeCommand(t){return T.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new pi;var Ee=A(D());var A0,vr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Oh=Symbol("clearAfterUnitTest"),sn=class extends(0,Ee.withEventBus)(me){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[A0]=()=>{this.defaultMessages={},this.cache=new Ee.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=T.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Ee.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),s=this.resolveContext(i);return new Ee.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Ee.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new vr({loadedContexts:t})),this.dispatchEvent(new vr({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new vr({loadedContexts:[t]})),this.dispatchEvent(new vr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Ee.delay)(0).then(()=>n()).catch(()=>null)))}};A0=Oh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Jr=window.FluidTopicsI18nService,hi=window.FluidTopicsCustomI18nService;var L0=A(D()),mi=class{highlightHtml(t,o,n){(0,L0.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new mi;var O0=A(D());var gi=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;if(t==null)return"";try{return O0.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}catch(s){throw console.error(`Date ${JSON.stringify(t)} is not valid`,s),s}}};window.FluidTopicsDateService=new gi;var R0=A(D());var eo=class{static get(t,o){var n,a;let i=T.getState(),{lang:s,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new R0.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var yi=class{urlToSearchRequest(t){return eo.get().parse(t)}searchRequestToUrl(t){return eo.get().serialize(t)}};window.FluidTopicsUrlService=new yi;var St=A(D());var Ht=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Ht.eventName="change";var bi=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},w0=new bi;var cn=class e extends St.WithEventBus{static build(){return new e(window.history,w0,()=>window.location,!1)}constructor(t,o,n,a){var i,s;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,St.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ht(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,s,l])=>{let f=o(),u={...f===this.currentIndex?this.currentState:void 0,...i,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Ht.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Ht.eventName,t)}currentItem(){return(0,St.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,St.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,St.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=cn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var _0=A(V());var N0=_0.css`
913
+ `;var g1=["top","right","bottom","left"],m1=["start","end"],Na=g1.reduce((e,t)=>e.concat(t,t+"-"+m1[0],t+"-"+m1[1]),[]),Fr=Math.min,pt=Math.max,$r=Math.round;var _e=e=>({x:e,y:e}),p8={left:"right",right:"left",bottom:"top",top:"bottom"};function Ta(e,t,o){return pt(e,Fr(t,o))}function Ro(e,t){return typeof e=="function"?e(t):e}function lr(e){return e.split("-")[0]}function ht(e){return e.split("-")[1]}function Ma(e){return e==="x"?"y":"x"}function Pa(e){return e==="y"?"height":"width"}function wo(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function za(e){return Ma(wo(e))}function y1(e,t,o){o===void 0&&(o=!1);let n=ht(e),a=za(e),i=Pa(a),s=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=_a(s)),[s,_a(s)]}function b1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function _a(e){let t=lr(e);return p8[t]+e.slice(t.length)}function h8(e){return{top:0,right:0,bottom:0,left:0,...e}}function x1(e){return typeof e!="number"?h8(e):{top:e,right:e,bottom:e,left:e}}function Nt(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function v1(e,t,o){let{reference:n,floating:a}=e,i=wo(t),s=za(t),l=Pa(s),f=lr(t),u=i==="y",h=n.x+n.width/2-a.width/2,g=n.y+n.height/2-a.height/2,y=n[l]/2-a[l]/2,v;switch(f){case"top":v={x:h,y:n.y-a.height};break;case"bottom":v={x:h,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:g};break;case"left":v={x:n.x-a.width,y:g};break;default:v={x:n.x,y:n.y}}switch(ht(t)){case"start":v[s]-=y*(o&&u?-1:1);break;case"end":v[s]+=y*(o&&u?-1:1);break}return v}async function S1(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:y=!1,padding:v=0}=Ro(t,e),x=x1(v),L=l[y?g==="floating"?"reference":"floating":g],_=Nt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(L)))==null||o?L:L.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:f})),R=g==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),P=await(i.isElement==null?void 0:i.isElement(M))?await(i.getScale==null?void 0:i.getScale(M))||{x:1,y:1}:{x:1,y:1},U=Nt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:R,offsetParent:M,strategy:f}):R);return{top:(_.top-U.top+x.top)/P.y,bottom:(U.bottom-_.bottom+x.bottom)/P.y,left:(_.left-U.left+x.left)/P.x,right:(U.right-_.right+x.right)/P.x}}var m8=50,C1=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=o,l=s.detectOverflow?s:{...s,detectOverflow:S1},f=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:h,y:g}=v1(u,n,f),y=n,v=0,x={};for(let C=0;C<i.length;C++){let L=i[C];if(!L)continue;let{name:_,fn:R}=L,{x:M,y:P,data:U,reset:F}=await R({x:h,y:g,initialPlacement:n,placement:y,strategy:a,middlewareData:x,rects:u,platform:l,elements:{reference:e,floating:t}});h=M??h,g=P??g,x[_]={...x[_],...U},F&&v<m8&&(v++,typeof F=="object"&&(F.placement&&(y=F.placement),F.rects&&(u=F.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):F.rects),{x:h,y:g}=v1(u,y,f)),C=-1)}return{x:h,y:g,placement:y,strategy:a,middlewareData:x}};function g8(e,t,o){return(e?[...o.filter(a=>ht(a)===e),...o.filter(a=>ht(a)!==e)]:o.filter(a=>lr(a)===a)).filter(a=>e?ht(a)===e||(t?b1(a)!==a:!1):!0)}var E1=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:i,middlewareData:s,placement:l,platform:f,elements:u}=t,{crossAxis:h=!1,alignment:g,allowedPlacements:y=Na,autoAlignment:v=!0,...x}=Ro(e,t),C=g!==void 0||y===Na?g8(g||null,v,y):y,L=await f.detectOverflow(t,x),_=((o=s.autoPlacement)==null?void 0:o.index)||0,R=C[_];if(R==null)return{};let M=y1(R,i,await(f.isRTL==null?void 0:f.isRTL(u.floating)));if(l!==R)return{reset:{placement:C[0]}};let P=[L[lr(R)],L[M[0]],L[M[1]]],U=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:R,overflows:P}],F=C[_+1];if(F)return{data:{index:_+1,overflows:U},reset:{placement:F}};let le=U.map(te=>{let b=ht(te.placement);return[te.placement,b&&h?te.overflows.slice(0,2).reduce((S,k)=>S+k,0):te.overflows[0],te.overflows]}).sort((te,b)=>te[1]-b[1]),ze=((a=le.filter(te=>te[2].slice(0,ht(te[0])?2:3).every(b=>b<=0))[0])==null?void 0:a[0])||le[0][0];return ze!==l?{data:{index:_+1,overflows:U},reset:{placement:ze}}:{}}}};var A1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a,platform:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:f={fn:_=>{let{x:R,y:M}=_;return{x:R,y:M}}},...u}=Ro(e,t),h={x:o,y:n},g=await i.detectOverflow(t,u),y=wo(lr(a)),v=Ma(y),x=h[v],C=h[y];if(s){let _=v==="y"?"top":"left",R=v==="y"?"bottom":"right",M=x+g[_],P=x-g[R];x=Ta(M,x,P)}if(l){let _=y==="y"?"top":"left",R=y==="y"?"bottom":"right",M=C+g[_],P=C-g[R];C=Ta(M,C,P)}let L=f.fn({...t,[v]:x,[y]:C});return{...L,data:{x:L.x-o,y:L.y-n,enabled:{[v]:s,[y]:l}}}}}};function No(){return typeof window<"u"}function Mt(e){return O1(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Be(e){var t;return(t=(O1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function O1(e){return No()?e instanceof Node||e instanceof fe(e).Node:!1}function xe(e){return No()?e instanceof Element||e instanceof fe(e).Element:!1}function He(e){return No()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function L1(e){return!No()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}function dr(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&a!=="inline"&&a!=="contents"}function R1(e){return/^(table|td|th)$/.test(Mt(e))}function jr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var y8=/transform|translate|scale|rotate|perspective|filter/,b8=/paint|layout|strict|content/,Tt=e=>!!e&&e!=="none",ka;function To(e){let t=xe(e)?ve(e):e;return Tt(t.transform)||Tt(t.translate)||Tt(t.scale)||Tt(t.rotate)||Tt(t.perspective)||!Mo()&&(Tt(t.backdropFilter)||Tt(t.filter))||y8.test(t.willChange||"")||b8.test(t.contain||"")}function w1(e){let t=Je(e);for(;He(t)&&!Pt(t);){if(To(t))return t;if(jr(t))return null;t=Je(t)}return null}function Mo(){return ka==null&&(ka=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ka}function Pt(e){return/^(html|body|#document)$/.test(Mt(e))}function ve(e){return fe(e).getComputedStyle(e)}function Vr(e){return xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if(Mt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||L1(e)&&e.host||Be(e);return L1(t)?t.host:t}function _1(e){let t=Je(e);return Pt(t)?e.ownerDocument?e.ownerDocument.body:e.body:He(t)&&dr(t)?t:_1(t)}function _o(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=_1(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),s=fe(a);if(i){let l=Po(s);return t.concat(s,s.visualViewport||[],dr(a)?a:[],l&&o?_o(l):[])}else return t.concat(a,_o(a,[],o))}function Po(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function P1(e){let t=ve(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=He(e),i=a?e.offsetWidth:o,s=a?e.offsetHeight:n,l=$r(o)!==i||$r(n)!==s;return l&&(o=i,n=s),{width:o,height:n,$:l}}function z1(e){return xe(e)?e:e.contextElement}function fr(e){let t=z1(e);if(!He(t))return _e(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:i}=P1(t),s=(i?$r(o.width):o.width)/n,l=(i?$r(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var x8=_e(0);function k1(e){let t=fe(e);return!Mo()||!t.visualViewport?x8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function v8(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==fe(e)?!1:t}function Kr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=z1(e),s=_e(1);t&&(n?xe(n)&&(s=fr(n)):s=fr(e));let l=v8(i,o,n)?k1(i):_e(0),f=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,h=a.width/s.x,g=a.height/s.y;if(i){let y=fe(i),v=n&&xe(n)?fe(n):n,x=y,C=Po(x);for(;C&&n&&v!==x;){let L=fr(C),_=C.getBoundingClientRect(),R=ve(C),M=_.left+(C.clientLeft+parseFloat(R.paddingLeft))*L.x,P=_.top+(C.clientTop+parseFloat(R.paddingTop))*L.y;f*=L.x,u*=L.y,h*=L.x,g*=L.y,f+=M,u+=P,x=fe(C),C=Po(x)}}return Nt({width:h,height:g,x:f,y:u})}function zo(e,t){let o=Vr(e).scrollLeft;return t?t.left+o:Kr(Be(e)).left+o}function I1(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-zo(e,o),a=o.top+t.scrollTop;return{x:n,y:a}}function S8(e){let{elements:t,rect:o,offsetParent:n,strategy:a}=e,i=a==="fixed",s=Be(n),l=t?jr(t.floating):!1;if(n===s||l&&i)return o;let f={scrollLeft:0,scrollTop:0},u=_e(1),h=_e(0),g=He(n);if((g||!g&&!i)&&((Mt(n)!=="body"||dr(s))&&(f=Vr(n)),g)){let v=Kr(n);u=fr(n),h.x=v.x+n.clientLeft,h.y=v.y+n.clientTop}let y=s&&!g&&!i?I1(s,f):_e(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-f.scrollLeft*u.x+h.x+y.x,y:o.y*u.y-f.scrollTop*u.y+h.y+y.y}}function C8(e){return Array.from(e.getClientRects())}function E8(e){let t=Be(e),o=Vr(e),n=e.ownerDocument.body,a=pt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=pt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+zo(e),l=-o.scrollTop;return ve(n).direction==="rtl"&&(s+=pt(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}var N1=25;function A8(e,t){let o=fe(e),n=Be(e),a=o.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,f=0;if(a){i=a.width,s=a.height;let h=Mo();(!h||h&&t==="fixed")&&(l=a.offsetLeft,f=a.offsetTop)}let u=zo(n);if(u<=0){let h=n.ownerDocument,g=h.body,y=getComputedStyle(g),v=h.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,x=Math.abs(n.clientWidth-g.clientWidth-v);x<=N1&&(i-=x)}else u<=N1&&(i+=u);return{width:i,height:s,x:l,y:f}}function L8(e,t){let o=Kr(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=He(e)?fr(e):_e(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,f=a*i.x,u=n*i.y;return{width:s,height:l,x:f,y:u}}function T1(e,t,o){let n;if(t==="viewport")n=A8(e,o);else if(t==="document")n=E8(Be(e));else if(xe(t))n=L8(t,o);else{let a=k1(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Nt(n)}function D1(e,t){let o=Je(e);return o===t||!xe(o)||Pt(o)?!1:ve(o).position==="fixed"||D1(o,t)}function O8(e,t){let o=t.get(e);if(o)return o;let n=_o(e,[],!1).filter(l=>xe(l)&&Mt(l)!=="body"),a=null,i=ve(e).position==="fixed",s=i?Je(e):e;for(;xe(s)&&!Pt(s);){let l=ve(s),f=To(s);!f&&l.position==="fixed"&&(a=null),(i?!f&&!a:!f&&l.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||dr(s)&&!f&&D1(e,s))?n=n.filter(h=>h!==s):a=l,s=Je(s)}return t.set(e,n),n}function R8(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,s=[...o==="clippingAncestors"?jr(t)?[]:O8(t,this._c):[].concat(o),n],l=T1(t,s[0],a),f=l.top,u=l.right,h=l.bottom,g=l.left;for(let y=1;y<s.length;y++){let v=T1(t,s[y],a);f=pt(v.top,f),u=Fr(v.right,u),h=Fr(v.bottom,h),g=pt(v.left,g)}return{width:u-g,height:h-f,x:g,y:f}}function w8(e){let{width:t,height:o}=P1(e);return{width:t,height:o}}function _8(e,t,o){let n=He(t),a=Be(t),i=o==="fixed",s=Kr(e,!0,i,t),l={scrollLeft:0,scrollTop:0},f=_e(0);function u(){f.x=zo(a)}if(n||!n&&!i)if((Mt(t)!=="body"||dr(a))&&(l=Vr(t)),n){let v=Kr(t,!0,i,t);f.x=v.x+t.clientLeft,f.y=v.y+t.clientTop}else a&&u();i&&!n&&a&&u();let h=a&&!n&&!i?I1(a,l):_e(0),g=s.left+l.scrollLeft-f.x-h.x,y=s.top+l.scrollTop-f.y-h.y;return{x:g,y,width:s.width,height:s.height}}function Ia(e){return ve(e).position==="static"}function M1(e,t){if(!He(e)||ve(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Be(e)===o&&(o=o.ownerDocument.body),o}function U1(e,t){let o=fe(e);if(jr(e))return o;if(!He(e)){let a=Je(e);for(;a&&!Pt(a);){if(xe(a)&&!Ia(a))return a;a=Je(a)}return o}let n=M1(e,t);for(;n&&R1(n)&&Ia(n);)n=M1(n,t);return n&&Pt(n)&&Ia(n)&&!To(n)?o:n||w1(e)||o}var N8=async function(e){let t=this.getOffsetParent||U1,o=this.getDimensions,n=await o(e.floating);return{reference:_8(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function T8(e){return ve(e).direction==="rtl"}var ko={convertOffsetParentRelativeRectToViewportRelativeRect:S8,getDocumentElement:Be,getClippingRect:R8,getOffsetParent:U1,getElementRects:N8,getClientRects:C8,getDimensions:w8,getScale:fr,isElement:xe,isRTL:T8};var B1=E1,H1=A1;var G1=(e,t,o)=>{let n=new Map,a={platform:ko,...o},i={...a.platform,_c:n};return C1(e,t,{...a,platform:i})};function W1(e){return M8(e)}function Da(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function M8(e){for(let t=e;t;t=Da(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Da(e);t;t=Da(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function F1(e,t,o){let n;return typeof o=="object"?n=o:n={placement:o},G1(e,t,{strategy:n.strategy,platform:{...ko,getOffsetParent:a=>ko.getOffsetParent(a,W1)},middleware:[H1({crossAxis:!0}),B1({allowedPlacements:[n.placement]})]})}var Cr=A(D());var ci=A(Q());function P8(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!Io(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Io(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let s=a[n];if(!Io(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Io(e,t){try{return P8(e,t)}catch{return!1}}function Zr(e,t){return!Io(e,t)}function $1(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Do(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var j1=A(Q(),1);var Ua=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:Zr,attribute:!1,...t};(0,j1.property)(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}};var Uo=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var zt=A(Q(),1);var V1=A(Q(),1);function K1(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,V1.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Zr,...t??{}})}var Bo=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Y1=A(V(),1);var Ho=globalThis,z8=Ho.ShadowRoot&&(Ho.ShadyCSS===void 0||Ho.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,eb=Symbol();var Z1=(e,t)=>{if(z8)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=Ho.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Go=class extends Y1.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Z1(n,t.elementStyles),n}};function q1(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var pr=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},e2,X1=Symbol("constructorPrototype"),Q1=Symbol("constructorName"),t2=Symbol("exportpartsDebouncer"),J1=Symbol("dynamicDependenciesLoaded"),ur=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};ur.eventName="exportparts-updated";var Ge=class extends Go{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[e2]=new Bo(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[t2].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Q1]=this.constructor.name,this[X1]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Q1]&&Object.setPrototypeOf(this,this[X1])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[J1]||(o[J1]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(ur.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(ur.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new ur)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=q1(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var o,n,a,i,s,l;let f=y=>y!=null&&y.trim().length>0,u=t.filter(f).map(y=>y.trim());if(u.length===0){this.exportparts=void 0;return}let h=new Set;for(let y of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=y.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(L=>L.split(":")[1]))!==null&&l!==void 0?l:[],C=[...v,...x].filter(f).map(L=>L.trim());for(let L of C)h.add(L)}if(h.size===0){this.exportparts=void 0;return}let g=[...h.values()].flatMap(y=>u.map(v=>`${y}:${v}--${y}`));this.exportparts=[...this.part,...g].join(", ")}};e2=t2;pr([(0,zt.property)()],Ge.prototype,"exportpartsPrefix",void 0);pr([K1([])],Ge.prototype,"exportpartsPrefixes",void 0);pr([(0,zt.property)({reflect:!0})],Ge.prototype,"exportparts",void 0);pr([(0,zt.property)()],Ge.prototype,"customStylesheet",void 0);pr([(0,zt.property)()],Ge.prototype,"elementToFocus",void 0);pr([(0,zt.state)()],Ge.prototype,"useAdoptedStyleSheets",void 0);function Wo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Yr=Symbol("internalReduxEventsUnsubscribers"),mt=Symbol("internalStoresUnsubscribers"),kt=Symbol("internalStores"),k8=Do(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[kt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[kt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[kt].get(s)}addStore(s,l){var f;l=(f=l??s.name)!==null&&f!==void 0?f:"default-store",this.unsubscribeFromStore(l),this[kt].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[kt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[kt].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let f=this.constructor.getPropertyOptions(l);if(!f?.attribute||!this.hasAttribute(typeof f?.attribute=="string"?f.attribute:l)){let u=this.getStore(s.store);u&&(s.store?this[mt].has(s.store):this[mt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var f;this[mt].set(s,l.subscribe(()=>this.updateFromStores())),this[Yr].set(s,[]),Wo(l)&&l.eventBus&&((f=this.reduxConstructor.reduxEventListeners)===null||f===void 0||f.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let g=y=>this[h](y);l.addEventListener(u.eventName,g),this[Yr].get(s).push(()=>l.removeEventListener(u.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[mt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[mt].has(s)&&this[mt].get(s)(),this[mt].delete(s),(l=this[Yr].get(s))===null||l===void 0||l.forEach(f=>f()),this[Yr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=mt,o=kt,n=Yr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),r2=class extends k8(Ge){};function Se(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function et(e){return!!e&&!!e[$]}function Ne(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===F8}(e)||Array.isArray(e)||!!e[l2]||!!(!((t=e.constructor)===null||t===void 0)&&t[l2])||Ka(e)||Za(e))}function It(e,t,o){o===void 0&&(o=!1),gr(e)===0?(o?Object.keys:mr)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function gr(e){var t=e[$];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ka(e)?2:Za(e)?3:0}function hr(e,t){return gr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function I8(e,t){return gr(e)===2?e.get(t):e[t]}function d2(e,t,o){var n=gr(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function f2(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ka(e){return G8&&e instanceof Map}function Za(e){return W8&&e instanceof Set}function gt(e){return e.o||e.t}function Ya(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=h2(e);delete t[$];for(var o=mr(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function qa(e,t){return t===void 0&&(t=!1),Xa(e)||et(e)||!Ne(e)||(gr(e)>1&&(e.set=e.add=e.clear=e.delete=D8),Object.freeze(e),t&&It(e,function(o,n){return qa(n,!0)},!0)),e}function D8(){Se(2)}function Xa(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function We(e){var t=Va[e];return t||Se(18,e),t}function U8(e,t){Va[e]||(Va[e]=t)}function Fa(){return Xr}function Ba(e,t){t&&(We("Patches"),e.u=[],e.s=[],e.v=t)}function Fo(e){$a(e),e.p.forEach(B8),e.p=null}function $a(e){e===Xr&&(Xr=e.l)}function o2(e){return Xr={p:[],l:Xr,h:e,m:!0,_:0}}function B8(e){var t=e[$];t.i===0||t.i===1?t.j():t.g=!0}function Ha(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||We("ES5").S(t,e,n),n?(o[$].P&&(Fo(t),Se(4)),Ne(e)&&(e=$o(t,e),t.l||jo(t,e)),t.u&&We("Patches").M(o[$].t,e,t.u,t.s)):e=$o(t,o,[]),Fo(t),t.u&&t.v(t.u,t.s),e!==p2?e:void 0}function $o(e,t,o){if(Xa(t))return t;var n=t[$];if(!n)return It(t,function(l,f){return n2(e,n,t,l,f,o)},!0),t;if(n.A!==e)return t;if(!n.P)return jo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Ya(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),It(i,function(l,f){return n2(e,n,a,l,f,o,s)}),jo(e,a,!1),o&&e.u&&We("Patches").N(n,o,e.u,e.s)}return n.o}function n2(e,t,o,n,a,i,s){if(et(a)){var l=$o(e,a,i&&t&&t.i!==3&&!hr(t.R,n)?i.concat(n):void 0);if(d2(o,n,l),!et(l))return;e.m=!1}else s&&o.add(a);if(Ne(a)&&!Xa(a)){if(!e.h.D&&e._<1)return;$o(e,a),t&&t.A.l||jo(e,a)}}function jo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&qa(t,o)}function Ga(e,t){var o=e[$];return(o?gt(o):e)[t]}function a2(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function yt(e){e.P||(e.P=!0,e.l&&yt(e.l))}function Wa(e){e.o||(e.o=Ya(e.t))}function ja(e,t,o){var n=Ka(t)?We("MapSet").F(t,o):Za(t)?We("MapSet").T(t,o):e.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Fa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,u=Qr;s&&(f=[l],u=qr);var h=Proxy.revocable(f,u),g=h.revoke,y=h.proxy;return l.k=y,l.j=g,y}(t,o):We("ES5").J(t,o);return(o?o.A:Fa()).p.push(n),n}function H8(e){return et(e)||Se(22,e),function t(o){if(!Ne(o))return o;var n,a=o[$],i=gr(o);if(a){if(!a.P&&(a.i<4||!We("ES5").K(a)))return a.t;a.I=!0,n=i2(o,i),a.I=!1}else n=i2(o,i);return It(n,function(s,l){a&&I8(a.t,s)===l||d2(n,s,t(l))}),i===3?new Set(n):n}(e)}function i2(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ya(e)}function u2(){function e(s,l){var f=i[s];return f?f.enumerable=l:i[s]=f={configurable:!0,enumerable:l,get:function(){var u=this[$];return Qr.get(u,s)},set:function(u){var h=this[$];Qr.set(h,s,u)}},f}function t(s){for(var l=s.length-1;l>=0;l--){var f=s[l][$];if(!f.P)switch(f.i){case 5:n(f)&&yt(f);break;case 4:o(f)&&yt(f)}}}function o(s){for(var l=s.t,f=s.k,u=mr(f),h=u.length-1;h>=0;h--){var g=u[h];if(g!==$){var y=l[g];if(y===void 0&&!hr(l,g))return!0;var v=f[g],x=v&&v[$];if(x?x.t!==y:!f2(v,y))return!0}}var C=!!l[$];return u.length!==mr(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&Se(3,JSON.stringify(gt(s)))}var i={};U8("ES5",{J:function(s,l){var f=Array.isArray(s),u=function(g,y){if(g){for(var v=Array(y.length),x=0;x<y.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var C=h2(y);delete C[$];for(var L=mr(C),_=0;_<L.length;_++){var R=L[_];C[R]=e(R,g||!!C[R].enumerable)}return Object.create(Object.getPrototypeOf(y),C)}(f,s),h={i:f?5:4,A:l?l.A:Fa(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,$,{value:h,writable:!0}),u},S:function(s,l,f){f?et(l)&&l[$].A===s&&t(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var g=h[$];if(g){var y=g.t,v=g.k,x=g.R,C=g.i;if(C===4)It(v,function(P){P!==$&&(y[P]!==void 0||hr(y,P)?x[P]||u(v[P]):(x[P]=!0,yt(g)))}),It(y,function(P){v[P]!==void 0||hr(v,P)||(x[P]=!1,yt(g))});else if(C===5){if(n(g)&&(yt(g),x.length=!0),v.length<y.length)for(var L=v.length;L<y.length;L++)x[L]=!1;else for(var _=y.length;_<v.length;_++)x[_]=!0;for(var R=Math.min(v.length,y.length),M=0;M<R;M++)v.hasOwnProperty(M)||(x[M]=!0),x[M]===void 0&&u(v[M])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var s2,Xr,Qa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",G8=typeof Map<"u",W8=typeof Set<"u",c2=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",p2=Qa?Symbol.for("immer-nothing"):((s2={})["immer-nothing"]=!0,s2),l2=Qa?Symbol.for("immer-draftable"):"__$immer_draftable",$=Qa?Symbol.for("immer-state"):"__$immer_state";var F8=""+Object.prototype.constructor,mr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,h2=Object.getOwnPropertyDescriptors||function(e){var t={};return mr(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Va={},Qr={get:function(e,t){if(t===$)return e;var o=gt(e);if(!hr(o,t))return function(a,i,s){var l,f=a2(i,s);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Ne(n)?n:n===Ga(e.t,t)?(Wa(e),e.o[t]=ja(e.A.h,n,e)):n},has:function(e,t){return t in gt(e)},ownKeys:function(e){return Reflect.ownKeys(gt(e))},set:function(e,t,o){var n=a2(gt(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Ga(gt(e),t),i=a?.[$];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(f2(o,a)&&(o!==void 0||hr(e.t,t)))return!0;Wa(e),yt(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ga(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Wa(e),yt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=gt(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Se(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Se(12)}},qr={};It(Qr,function(e,t){qr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),qr.deleteProperty=function(e,t){return qr.set.call(this,e,t,void 0)},qr.set=function(e,t,o){return Qr.set.call(this,e[0],t,o,e[0])};var $8=function(){function e(o){var n=this;this.O=c2,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=n;return function(C){var L=this;C===void 0&&(C=l);for(var _=arguments.length,R=Array(_>1?_-1:0),M=1;M<_;M++)R[M-1]=arguments[M];return f.produce(C,function(P){var U;return(U=i).call.apply(U,[L,P].concat(R))})}}var u;if(typeof i!="function"&&Se(6),s!==void 0&&typeof s!="function"&&Se(7),Ne(a)){var h=o2(n),g=ja(n,a,void 0),y=!0;try{u=i(g),y=!1}finally{y?Fo(h):$a(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(C){return Ba(h,s),Ha(C,h)},function(C){throw Fo(h),C}):(Ba(h,s),Ha(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===p2&&(u=void 0),n.D&&qa(u,!0),s){var v=[],x=[];We("Patches").M(a,u,v,x),s(v,x)}return u}Se(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,g=Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(g))})};var s,l,f=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,s,l]}):[f,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Ne(o)||Se(8),et(o)&&(o=H8(o));var n=o2(this),a=ja(this,o,void 0);return a[$].C=!0,$a(n),a},t.finishDraft=function(o,n){var a=o&&o[$],i=a.A;return Ba(i,n),Ha(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!c2&&Se(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=We("Patches").$;return et(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},e}(),he=new $8,j8=he.produce,mb=he.produceWithPatches.bind(he),gb=he.setAutoFreeze.bind(he),yb=he.setUseProxies.bind(he),bb=he.applyPatches.bind(he),xb=he.createDraft.bind(he),vb=he.finishDraft.bind(he),Vo=j8;function Dt(e){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(e)}function m2(e,t){if(Dt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(Dt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g2(e){var t=m2(e,"string");return Dt(t)=="symbol"?t:t+""}function y2(e,t,o){return(t=g2(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function b2(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Ja(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?b2(Object(o),!0).forEach(function(n){y2(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):b2(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function se(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var x2=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ei=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ko={INIT:"@@redux/INIT"+ei(),REPLACE:"@@redux/REPLACE"+ei(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ei()}};function V8(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ti(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(se(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(se(1));return o(ti)(e,t)}if(typeof e!="function")throw new Error(se(2));var a=e,i=t,s=[],l=s,f=!1;function u(){l===s&&(l=s.slice())}function h(){if(f)throw new Error(se(3));return i}function g(C){if(typeof C!="function")throw new Error(se(4));if(f)throw new Error(se(5));var L=!0;return u(),l.push(C),function(){if(L){if(f)throw new Error(se(6));L=!1,u();var R=l.indexOf(C);l.splice(R,1),s=null}}}function y(C){if(!V8(C))throw new Error(se(7));if(typeof C.type>"u")throw new Error(se(8));if(f)throw new Error(se(9));try{f=!0,i=a(i,C)}finally{f=!1}for(var L=s=l,_=0;_<L.length;_++){var R=L[_];R()}return C}function v(C){if(typeof C!="function")throw new Error(se(10));a=C,y({type:Ko.REPLACE})}function x(){var C,L=g;return C={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(se(11));function M(){R.next&&R.next(h())}M();var P=L(M);return{unsubscribe:P}}},C[x2]=function(){return this},C}return y({type:Ko.INIT}),n={dispatch:y,subscribe:g,getState:h,replaceReducer:v},n[x2]=x,n}function K8(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Ko.INIT});if(typeof n>"u")throw new Error(se(12));if(typeof o(void 0,{type:Ko.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(se(13))})}function v2(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),s,l;try{K8(o)}catch(f){l=f}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var g;for(var y=!1,v={},x=0;x<i.length;x++){var C=i[x],L=o[C],_=u[C],R=L(_,h);if(typeof R>"u"){var M=h&&h.type;throw new Error(se(14))}v[C]=R,y=y||R!==_}return y=y||i.length!==Object.keys(u).length,y?v:u}}function yr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function S2(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(se(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(f){return f(s)});return i=yr.apply(void 0,l)(a.dispatch),Ja(Ja({},a),{},{dispatch:i})}}}function C2(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,e):s(l)}}};return t}var E2=C2();E2.withExtraArgument=C2;var ri=E2;var w2=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Z8=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return f([u,h])}}function f(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},br=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Y8=Object.defineProperty,q8=Object.defineProperties,X8=Object.getOwnPropertyDescriptors,A2=Object.getOwnPropertySymbols,Q8=Object.prototype.hasOwnProperty,J8=Object.prototype.propertyIsEnumerable,L2=function(e,t,o){return t in e?Y8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},bt=function(e,t){for(var o in t||(t={}))Q8.call(t,o)&&L2(e,o,t[o]);if(A2)for(var n=0,a=A2(t);n<a.length;n++){var o=a[n];J8.call(t,o)&&L2(e,o,t[o])}return e},oi=function(e,t){return q8(e,X8(t))},eh=function(e,t,o){return new Promise(function(n,a){var i=function(f){try{l(o.next(f))}catch(u){a(u)}},s=function(f){try{l(o.throw(f))}catch(u){a(u)}},l=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,s)};l((o=o.apply(e,t)).next())})};var th=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?yr:yr.apply(null,arguments)},Ub=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function rh(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var oh=function(e){w2(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,br([void 0],o[0].concat(this)))):new(t.bind.apply(t,br([void 0],o.concat(this))))},t}(Array),nh=function(e){w2(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,br([void 0],o[0].concat(this)))):new(t.bind.apply(t,br([void 0],o.concat(this))))},t}(Array);function ii(e){return Ne(e)?Vo(e,function(){}):e}function ah(e){return typeof e=="boolean"}function ih(){return function(t){return sh(t)}}function sh(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,s=i===void 0?!0:i,l=new oh;if(o&&(ah(o)?l.push(ri):l.push(ri.withExtraArgument(o.extraArgument))),0){if(a)var f;if(s)var u}return l}var ni=!0;function _2(e){var t=ih(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?t():i,l=o.devTools,f=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,g=o.enhancers,y=g===void 0?void 0:g,v;if(typeof a=="function")v=a;else if(rh(a))v=v2(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(t),!ni&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ni&&x.some(function(P){return typeof P!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=S2.apply(void 0,x),L=yr;f&&(L=th(bt({trace:!ni},typeof f=="object"&&f)));var _=new nh(C),R=_;Array.isArray(y)?R=br([C],y):typeof y=="function"&&(R=y(_));var M=L.apply(void 0,R);return ti(v,h,M)}function xt(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return bt(bt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function N2(e){var t={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function ch(e){return typeof e=="function"}function lh(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?N2(t):[t,o,n],i=a[0],s=a[1],l=a[2],f;if(ch(e))f=function(){return ii(e())};else{var u=ii(e);f=function(){return u}}function h(g,y){g===void 0&&(g=f());var v=br([i[y.type]],s.filter(function(x){var C=x.matcher;return C(y)}).map(function(x){var C=x.reducer;return C}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,C){if(C)if(et(x)){var L=x,_=C(L,y);return _===void 0?x:_}else{if(Ne(x))return Vo(x,function(R){return C(R,y)});var _=C(x,y);if(_===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return x},g)}return h.getInitialState=f,h}function dh(e,t){return e+"/"+t}function T2(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:ii(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var g=n[h],y=dh(t,h),v,x;"reducer"in g?(v=g.reducer,x=g.prepare):v=g,i[h]=v,s[y]=v,l[h]=x?xt(y,x):xt(y)});function f(){var h=typeof e.extraReducers=="function"?N2(e.extraReducers):[e.extraReducers],g=h[0],y=g===void 0?{}:g,v=h[1],x=v===void 0?[]:v,C=h[2],L=C===void 0?void 0:C,_=bt(bt({},y),s);return lh(o,function(R){for(var M in _)R.addCase(M,_[M]);for(var P=0,U=x;P<U.length;P++){var F=U[P];R.addMatcher(F.matcher,F.reducer)}L&&R.addDefaultCase(L)})}var u;return{name:t,reducer:function(h,g){return u||(u=f()),u(h,g)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var fh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",uh=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=fh[Math.random()*64|0];return t},ph=["name","message","stack","code"],ai=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),O2=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),hh=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=ph;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Wb=function(){function e(t,o,n){var a=xt(t+"/fulfilled",function(h,g,y,v){return{payload:h,meta:oi(bt({},v||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),i=xt(t+"/pending",function(h,g,y){return{payload:void 0,meta:oi(bt({},y||{}),{arg:g,requestId:h,requestStatus:"pending"})}}),s=xt(t+"/rejected",function(h,g,y,v,x){return{payload:v,error:(n&&n.serializeError||hh)(h||"Rejected"),meta:oi(bt({},x||{}),{arg:y,requestId:g,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,f=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 u(h){return function(g,y,v){var x=n?.idGenerator?n.idGenerator(h):uh(),C=new f,L,_=!1;function R(P){L=P,C.abort()}var M=function(){return eh(this,null,function(){var P,U,F,le,ee,ze,te;return Z8(this,function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),le=(P=n?.condition)==null?void 0:P.call(n,h,{getState:y,extra:v}),gh(le)?[4,le]:[3,2];case 1:le=b.sent(),b.label=2;case 2:if(le===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,ee=new Promise(function(S,k){return C.signal.addEventListener("abort",function(){return k({name:"AbortError",message:L||"Aborted"})})}),g(i(x,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:h},{getState:y,extra:v}))),[4,Promise.race([ee,Promise.resolve(o(h,{dispatch:g,getState:y,extra:v,requestId:x,signal:C.signal,abort:R,rejectWithValue:function(S,k){return new ai(S,k)},fulfillWithValue:function(S,k){return new O2(S,k)}})).then(function(S){if(S instanceof ai)throw S;return S instanceof O2?a(S.payload,x,h,S.meta):a(S,x,h)})])];case 3:return F=b.sent(),[3,5];case 4:return ze=b.sent(),F=ze instanceof ai?s(null,x,h,ze.payload,ze.meta):s(ze,x,h),[3,5];case 5:return te=n&&!n.dispatchConditionRejection&&s.match(F)&&F.meta.condition,te||g(F),[2,F]}})})}();return Object.assign(M,{abort:R,requestId:x,arg:h,unwrap:function(){return M.then(mh)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function mh(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function gh(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var M2="listener",P2="completed",z2="cancelled",Fb="task-"+z2,$b="task-"+P2,jb=M2+"-"+z2,Vb=M2+"-"+P2;var si="listenerMiddleware";var Kb=xt(si+"/add"),Zb=xt(si+"/removeAll"),Yb=xt(si+"/remove");var R2,qb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(R2||(R2=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},yh=function(e){return function(t){setTimeout(t,e)}},Xb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yh(10);u2();var bh=Do(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),Zo=class extends bh(Object){};window.ftReduxStores||(window.ftReduxStores={});var k2=class e extends Zo{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Wo(i))return i;if(a==null)return;let s=T2({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=_2({reducer:(f,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let h=$1(s.getInitialState());for(let g of u.keeping)h[g]=(f??h)[g];return h}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...f,...u.overwrites};return s.reducer(f,u)}});return window.ftReduxStores[a.name]=new e(s,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Uo;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let f=s,u=i[f];return u?(...h)=>{let g=u(...h.map(a));return this.reduxStore.dispatch(g),g}:h=>{this.setState({[f]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Yo=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let i=typeof t=="string"?new Date(t):t,s=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return s;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${s} ${l}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var qo=A(D()),xh="ft-app-info",Ut=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ut.eventName="authentication-change";var vh={session:(e,t)=>{(0,qo.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>T.dispatchEvent(new Ut(t.payload)),0))}},T=qo.FtReduxStore.get({name:xh,reducers:vh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var I2=A(D()),Xo=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Lx=(0,I2.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(T)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?l=>Yo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Xo([(0,ci.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Xo([(0,ci.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Xo([Ua({store:T.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Xo([Ua({store:T.name})],t.prototype,"uiLocale",void 0),t});var Ch=A(U2(),1);var B2;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(B2||(B2={}));var H2;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(H2||(H2={}));var G2;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(G2||(G2={}));var W2;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(W2||(W2={}));var F2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(F2||(F2={}));var $2;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})($2||($2={}));var j2;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(j2||(j2={}));var V2;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(V2||(V2={}));var K2;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(K2||(K2={}));var Z2;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Z2||(Z2={}));var Y2;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Y2||(Y2={}));var q2;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(q2||(q2={}));var X2;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(X2||(X2={}));var Q2;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Q2||(Q2={}));var J2;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(J2||(J2={}));var e0;(function(e){e.ASC="ASC",e.DESC="DESC"})(e0||(e0={}));var t0;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(t0||(t0={}));var r0;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(r0||(r0={}));var o0;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(o0||(o0={}));var n0;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(n0||(n0={}));var a0;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(a0||(a0={}));var i0;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(i0||(i0={}));var s0;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(s0||(s0={}));var c0;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(c0||(c0={}));var l0;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(l0||(l0={}));var Y;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(Y||(Y={}));var Ce;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(Ce||(Ce={}));var d0;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(d0||(d0={}));var f0;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(f0||(f0={}));var u0;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.OTHER="OTHER"})(u0||(u0={}));var p0;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(p0||(p0={}));var h0;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(h0||(h0={}));var m0;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(m0||(m0={}));var g0;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(g0||(g0={}));var y0;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(y0||(y0={}));var b0;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(b0||(b0={}));var Sh={[Y.PERSONAL_BOOK_SHARE_USER]:[Y.PERSONAL_BOOK_USER],[Y.HTML_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.PDF_EXPORT_USER]:[Y.PERSONAL_BOOK_USER],[Y.KHUB_ADMIN]:[Y.CONTENT_PUBLISHER],[Y.ADMIN]:[Y.KHUB_ADMIN,Y.USERS_ADMIN,Y.PORTAL_ADMIN,Y.BEHAVIOR_DATA_USER],[Y.GENERATIVE_AI_EXPORT_USER]:[Y.GENERATIVE_AI_USER]};function x0(e,t){return e===t||(Sh[e]??[]).some(o=>x0(o,t))}function v0(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>x0(n,t))}var an=A(D());var li=A(D());var Bt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=T.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=T.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var en=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Bt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Bt.await()}};var me=class extends en{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[f])=>l.localeCompare(f)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new li.CacheRegistry,this.cache=t?a.commonCache:new li.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var tn=class extends me{async listMySearches(){let{session:t}=T.getState();return v0(t,Y.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var rn=class extends me{async listMyBookmarks(){let t=T.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var on=class extends me{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=T.getState().session;return!!t?.sessionAuthenticated}};var nn=class extends me{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=T.getState().session;return!!t?.sessionAuthenticated}};var Eh="ft-user-assets",Ah={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(Ce).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;fi(e,o,[...di(e,o),a]),S0(e,o,1,n),C0(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;fi(e,o,di(e,o).map(a=>a.id===n.id?n:a)),C0(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;fi(e,o,di(e,o).filter(i=>i.id!==a)),S0(e,o,-1,n)}},E0={[Ce.SEARCHES]:"savedSearches",[Ce.BOOKMARKS]:"bookmarks",[Ce.BOOKS]:void 0,[Ce.COLLECTIONS]:void 0},di=(e,t)=>{var o;let n=E0[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},fi=(e,t,o)=>{let n=E0[t];n&&(e[n]=o)},S0=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===Ce.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},C0=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},ge=an.FtReduxStore.get({name:Eh,reducers:Ah,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ce).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ui=class{constructor(t=new on,o=new nn){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rn,this.savedSearchesService=new tn,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=T.getState();(0,an.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ge.actions.clearAssetCount(),ge.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ge.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ge.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ge.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ge.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&ge.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&ge.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(ge.getState().assetCounts.bookmarkByMap).length!==0;t===Ce.BOOKMARKS&&o&&ge.actions.clearBookmarkCountByMap(),ge.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ge.actions.bookmarks(o)}}},Lh=new ui;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Lh);var pi=class{addCommand(t,o=!1){T.commands.add(t,o)}consumeCommand(t){return T.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new pi;var Ee=A(D());var A0,vr=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Oh=Symbol("clearAfterUnitTest"),sn=class extends(0,Ee.withEventBus)(me){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[A0]=()=>{this.defaultMessages={},this.cache=new Ee.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=T.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Ee.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),s=this.resolveContext(i);return new Ee.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Ee.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new vr({loadedContexts:t})),this.dispatchEvent(new vr({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new vr({loadedContexts:[t]})),this.dispatchEvent(new vr({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Ee.delay)(0).then(()=>n()).catch(()=>null)))}};A0=Oh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Jr=window.FluidTopicsI18nService,hi=window.FluidTopicsCustomI18nService;var L0=A(D()),mi=class{highlightHtml(t,o,n){(0,L0.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new mi;var O0=A(D());var gi=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;if(t==null)return"";try{return O0.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}catch(s){throw console.error(`Date ${JSON.stringify(t)} is not valid`,s),s}}};window.FluidTopicsDateService=new gi;var R0=A(D());var eo=class{static get(t,o){var n,a;let i=T.getState(),{lang:s,region:l}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new R0.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${s}-${l}`)}};var yi=class{urlToSearchRequest(t){return eo.get().parse(t)}searchRequestToUrl(t){return eo.get().serialize(t)}};window.FluidTopicsUrlService=new yi;var St=A(D());var Ht=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Ht.eventName="change";var bi=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},w0=new bi;var cn=class e extends St.WithEventBus{static build(){return new e(window.history,w0,()=>window.location,!1)}constructor(t,o,n,a){var i,s;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,St.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Ht(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,s,l])=>{let f=o(),u={...f===this.currentIndex?this.currentState:void 0,...i,index:f,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[u,s,l]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Ht.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Ht.eventName,t)}currentItem(){return(0,St.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,St.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,St.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=cn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var _0=A(V());var N0=_0.css`
914
914
  `;var M0=A(V()),ne=A(Q()),Te=A(D());function T0(e,t){let{authenticationRequired:o,session:n}=T.getState();return o&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var q=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},W=class extends Te.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Bt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Te.CacheRegistry,this.cleanSessionDebouncer=new Te.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return M0.html`
915
915
  <slot></slot>
916
916
  `}connectedCallback(){super.connectedCallback(),T.addEventListener(Ut.eventName,this.reloadConfiguration)}disconnectedCallback(){T.addEventListener(Ut.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,n,a,i,s,l,f;super.update(t),t.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&T.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&T.actions.noCustom(this.noCustom),t.has("editorMode")&&T.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&T.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Jr.addContext(u)),t.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(T.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),T.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),T.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),t.has("authenticationRequired")&&T.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&T.actions.availableContentLocales((f=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&f!==void 0?f:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>T0(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};W.elementDefinitions={};W.styles=N0;q([(0,ne.property)()],W.prototype,"baseUrl",void 0);q([(0,ne.property)()],W.prototype,"apiIntegrationIdentifier",void 0);q([(0,ne.property)()],W.prototype,"apiIntegrationAppVersion",void 0);q([(0,ne.property)()],W.prototype,"uiLocale",void 0);q([(0,Te.jsonProperty)(null)],W.prototype,"availableUiLocales",void 0);q([(0,Te.jsonProperty)(null)],W.prototype,"metadataConfiguration",void 0);q([(0,ne.property)({type:Boolean})],W.prototype,"editorMode",void 0);q([(0,ne.property)({type:Boolean})],W.prototype,"noCustom",void 0);q([(0,ne.property)({type:Boolean})],W.prototype,"openExternalDocumentInNewTab",void 0);q([(0,ne.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],W.prototype,"noCustomComponent",void 0);q([(0,ne.property)({type:Boolean})],W.prototype,"withManualResources",void 0);q([(0,ne.property)({type:Boolean})],W.prototype,"navigatorOnline",void 0);q([(0,ne.property)({type:Boolean})],W.prototype,"forcedOffline",void 0);q([(0,ne.property)({type:Object})],W.prototype,"apiProvider",void 0);q([(0,ne.property)({type:Boolean})],W.prototype,"authenticationRequired",void 0);q([(0,Te.jsonProperty)([])],W.prototype,"messageContexts",void 0);q([(0,Te.jsonProperty)(void 0)],W.prototype,"session",void 0);q([(0,ne.state)()],W.prototype,"localesConfiguration",void 0);q([(0,ne.state)()],W.prototype,"availableContentLocales",void 0);var P0=A(D());(0,P0.customElement)("ft-app-context")(W);var z0=A(Q());var xi=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[o,n]=t.split(".");return{context:o,key:n,custom:o!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Sr=new xi;var Rh=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(a<3?s(i):a>3?s(t,o,i):s(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},ro=Symbol("i18nAttributes"),k0=Symbol("i18nListAttributes"),I0=Symbol("i18nProperties"),ln=Symbol("i18nContexts"),to=Symbol("i18nUnsubs"),D0=(0,Cr.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?hi:Jr}i18n(i){let{context:s,key:l,message:f}=i,{custom:u,args:h,argsProvider:g}=i;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let y=h??(g?g(this):[]);return this.getI18nService(u).resolveMessage(s,l,...y)}return f}async awaitI18n(i){let{context:s,custom:l}=i;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(i)}customI18n(i,s){if(Sr.isI18nKey(i)){let[l,f]=i.split(".");return this.i18n({custom:!0,context:l,key:f,...s})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((s,l,f)=>i.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((s,l,f)=>{var u;return((u=f?.context)===null||u===void 0?void 0:u.toLowerCase())===i}),this.updateI18nProperties(s=>s.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var s,l;let f=this,u=(h,g,y)=>y?.context&&y.key&&i(h,g,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...h})}:y;(s=this[ro])===null||s===void 0||s.forEach((h,g)=>f[g]=u(h,g,f[g])),(l=this[k0])===null||l===void 0||l.forEach((h,g)=>{var y;return f[g]=(y=f[g])===null||y===void 0?void 0:y.map(v=>u(h,g,v))})}updateI18nProperties(i){var s;(s=this[I0])===null||s===void 0||s.forEach((l,f)=>{i(l,f)&&(this[f]=this.i18n(l))})}addI18nMessages(i,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,s,l)}addI18nContext(i,s,l){let f=(typeof i=="string"?i:i.name).toLowerCase();l=typeof i=="string"?l:i.custom,this[ln].set(f,{isCustomContext:l}),this[to].has(f)||this[to].set(f,this.getI18nService(l).subscribe(f,()=>this.onI18nUpdate(f))),this.getI18nService(l).prepareContext(f,s)}hasI18nContext(i){return this[ln].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ln].forEach((i,s)=>this.addI18nContext(s,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[to].forEach(i=>i()),this[to].clear()}}return t=ln,o=to,Rh([(0,z0.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),dn=class extends D0(Cr.FtLitElement){},fn=class extends D0(Cr.FtLitElementRedux){};var U0=A(D());var vi=class{fromAttribute(t){if(!t)return[];try{let o=JSON.parse(t);return Array.isArray(o)?o.map(n=>typeof n=="string"?Sr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},wh=new vi;var B0=(e,t)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:U0.hasChanged,converter:Sr,...t}),o[ro]=(a=o[ro])!==null&&a!==void 0?a:new Map,o[ro].set(n,e??{})};var H0=A(V());var G0=H0.css`