@fluid-topics/ft-reader-feedback 1.1.26 → 1.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(t,e,o,i,r,n,a){var s;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(s||(s={}));var l=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class c extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const d=Symbol("registerInterval");class f extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[d]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[d]):this.dispatchEvent(new c)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=d,l([i.state()],o.prototype,"stateManager",void 0),o}(e.FtLitElementRedux)){}const h=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorContent),p={color:h,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color","",h),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},u=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorPrimary),g=u,y=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",u),b=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorSecondary),m=b,v=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",b),x=o.css`
1
+ !function(t,e,o,i,r,n,a){var s;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(s||(s={}));var l=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class c extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const d=Symbol("registerInterval");class f extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[d]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[d]):this.dispatchEvent(new c)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=d,l([i.state()],o.prototype,"stateManager",void 0),o}(e.FtLitElementRedux)){}const p=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorContent),h={color:p,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color","",p),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},u=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorPrimary),g=u,y=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",u),b=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorSecondary),m=b,v=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",b),x=o.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -11,7 +11,7 @@
11
11
 
12
12
  .ft-ripple:not(.ft-ripple--unbounded) {
13
13
  overflow: hidden;
14
- border-radius: ${p.borderRadius};
14
+ border-radius: ${h.borderRadius};
15
15
  }
16
16
 
17
17
  .ft-ripple .ft-ripple--background,
@@ -45,11 +45,11 @@
45
45
  }
46
46
 
47
47
  .ft-ripple .ft-ripple--background {
48
- background-color: ${p.backgroundColor};
48
+ background-color: ${h.backgroundColor};
49
49
  }
50
50
 
51
51
  .ft-ripple .ft-ripple--effect {
52
- background-color: ${p.color};
52
+ background-color: ${h.color};
53
53
  }
54
54
 
55
55
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
@@ -95,22 +95,22 @@
95
95
  }
96
96
 
97
97
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
98
- opacity: ${p.opacityContentOnSurfaceHover};
98
+ opacity: ${h.opacityContentOnSurfaceHover};
99
99
  }
100
100
 
101
101
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
102
- opacity: ${p.opacityContentOnSurfaceSelected};
102
+ opacity: ${h.opacityContentOnSurfaceSelected};
103
103
  }
104
104
 
105
105
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
106
- opacity: ${p.opacityContentOnSurfaceFocused};
106
+ opacity: ${h.opacityContentOnSurfaceFocused};
107
107
  }
108
108
 
109
109
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
110
- opacity: ${p.opacityContentOnSurfacePressed};
110
+ opacity: ${h.opacityContentOnSurfacePressed};
111
111
  transform: translate(-50%, -50%) scale(1);
112
112
  }
113
- `,w=t=>"string"==typeof t?o.unsafeCSS(t):t;class O{static create(t,e,i,r){const n=t=>w(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,e,i,r){const n=t=>i.get(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i.category,a.fallbackVariable=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),a}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):w(null!=e?e:t.lastResortDefaultValue()),r=o.css`var(${w(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=i,r.get=e=>o.css`var(${w(t.name)}, ${i(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const $={colorWhite:O.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:O.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:O.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:O.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:O.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:O.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:O.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:O.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:O.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:O.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:O.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:O.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:O.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:O.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:O.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:O.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:O.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:O.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:O.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:O.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:O.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:O.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:O.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:O.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:O.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:O.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:O.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:O.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:O.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:O.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:O.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:O.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:O.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:O.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:O.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:O.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:O.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:O.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:O.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:O.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:O.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:O.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:O.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:O.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:O.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:O.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:O.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:O.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:O.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:O.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:O.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:O.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:O.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:O.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:O.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:O.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:O.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:O.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:O.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:O.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:O.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:O.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:O.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:O.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:O.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:O.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:O.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:O.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:O.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:O.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:O.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:O.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:O.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:O.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:O.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:O.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:O.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:O.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:O.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:O.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:O.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:O.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:O.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:O.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:O.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:O.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:O.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:O.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:O.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:O.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:O.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:O.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:O.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:O.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:O.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:O.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:O.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:O.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:O.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:O.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:O.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:O.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:O.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:O.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:O.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:O.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:O.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:O.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:O.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:O.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:O.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:O.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:O.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:O.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:O.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:O.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:O.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:O.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:O.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:O.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:O.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:O.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:O.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:O.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:O.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:O.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:O.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:O.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:O.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:O.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:O.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:O.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:O.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:O.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:O.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:O.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:O.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:O.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:O.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:O.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:O.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:O.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:O.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:O.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:O.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:O.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:O.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:O.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:O.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:O.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:O.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:O.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:O.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:O.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:O.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:O.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:O.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:O.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:O.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:O.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:O.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:O.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:O.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:O.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:O.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:O.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:O.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:O.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:O.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:O.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:O.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:O.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:O.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:O.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:O.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:O.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:O.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:O.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:O.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:O.create("--ft-icon-size-6","","SIZE","48px"),opacity0:O.create("--ft-opacity-0","","NUMBER","0"),opacity8:O.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:O.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:O.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:O.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:O.create("--ft-opacity-80","","NUMBER","0.8")},S={display:{fontFamily:O.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:O.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:O.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:O.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:O.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:O.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:O.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:O.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:O.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:O.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:O.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:O.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:O.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:O.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:O.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:O.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:O.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:O.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:O.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:O.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:O.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:O.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:O.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:O.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:O.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:O.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:O.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:O.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:O.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},N={backgroundActionPrimary:O.extend("--ft-background-action-primary","Used as backgorund of primary action components.",$.colorBrand0),backgroundErrorPrimary:O.extend("--ft-background-error-primary","Used as background of error components.",$.colorRed0),backgroundErrorSubtle:O.extend("--ft-background-error-subtle","Used as background of subtle error components.",$.colorRed10),backgroundInfoPrimary:O.extend("--ft-background-info-primary","Used as background of information components.",$.colorCyan200),backgroundInfoSubtle:O.extend("--ft-background-info-subtle","Used as background of subtle information components.",$.colorCyan10),backgroundWarningPrimary:O.extend("--ft-background-warning-primary","Used as background of warning components.",$.colorOrange300),backgroundWarningSubtle:O.extend("--ft-background-warning-subtle","Used as background of subtle information components.",$.colorOrange10),backgroundSuccessPrimary:O.extend("--ft-background-success-primary","Used as background of success components.",$.colorGreen200),backgroundSuccessSubtle:O.extend("--ft-background-success-subtle","Used as background of subtle success components.",$.colorGreen10),backgroundGlobalSurface:O.extend("--ft-background-global-surface","Used as app background.",$.colorWhite),backgroundGlobalOnSurface:O.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",$.colorGray10),backgroundGlobalOnSurfaceDark:O.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",$.colorGray30),contentActionPrimary:O.extend("--ft-content-action-primary","Used on label of primary action on light surface.",$.colorBrand0),contentWarningPrimary:O.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",$.colorOrange300),contentWarningIconOnly:O.extend("--ft-content-warning-icon-only","Used on warning status icons alone",$.colorOrange0),contentErrorPrimary:O.extend("--ft-content-error-primary","Used on label of error messages on light surface.",$.colorRed0),contentErrorIconOnly:O.extend("--ft-content-error-icon-only","Used on error status icons alone",$.colorRed0),contentInfoPrimary:O.extend("--ft-content-info-primary","Used on label of information messages on light surface.",$.colorCyan200),contentInfoIconOnly:O.extend("--ft-content-info-icon-only","Used on info status icons alone",$.colorCyan0),contentSuccessIconOnly:O.extend("--ft-content-success-icon-only","Used on success status icons alone",$.colorGreen0),contentSuccessPrimary:O.extend("--ft-content-success-primary","Used on label of success messages on light surface.",$.colorGreen200),contentGlobalPrimary:O.extend("--ft-content-global-primary","Used for main content on the page.",$.colorGray500),contentGlobalSecondary:O.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",$.colorGray200),contentGlobalSubtle:O.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",$.colorGray0),contentGlobalOnColor:O.extend("--ft-content-global-on-color","Used for content on a dominant color.",$.colorWhite),borderActionPrimary:O.extend("--ft-border-action-primary","Used as border for primary action components.",$.colorBrand0),borderActionFocusRing:O.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",$.colorCyan0),borderWarningPrimary:O.extend("--ft-border-warning-primary","Used as border for warning components.",$.colorOrange30),borderSuccessPrimary:O.extend("--ft-border-success-primary","Used as border for success components.",$.colorGreen30),borderErrorPrimary:O.extend("--ft-border-error-primary","Used as border for error components.",$.colorRed30),borderInfoPrimary:O.extend("--ft-border-info-primary","Used as border for information components.",$.colorCyan30),borderGlobalSubtle:O.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",$.colorGray30),borderGlobalPrimary:O.extend("--ft-border-global-primary","Used as border for element like input.",$.colorGray50),borderInputPrimary:O.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",$.colorGray80)},C={largeHeight:O.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:O.extend("--ft-button-large-horizontal-padding","",$.spacing4),largeGap:O.extend("--ft-button-large-gap","",$.spacing2),largeBorderRadius:O.extend("--ft-button-large-border-radius","",$.borderRadiusS),largeIconSize:O.extend("--ft-button-large-icon-size","",$.iconSize3),largeBorderWidth:O.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:O.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:O.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:O.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:O.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:O.extend("--ft-button-small-horizontal-padding","",$.spacing3),smallGap:O.extend("--ft-button-small-gap","",$.spacing2),smallBorderRadius:O.extend("--ft-button-small-border-radius","",$.borderRadiusS),smallIconSize:O.extend("--ft-button-small-icon-size","",$.iconSize2),smallBorderWidth:O.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:O.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:O.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:O.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:O.extend("--ft-button-primary-background-color","",N.backgroundActionPrimary),primaryColor:O.extend("--ft-button-primary-color","",N.contentGlobalOnColor),primaryIconColor:O.extend("--ft-button-primary-icon-color","",N.contentGlobalOnColor),primaryStateLayerColor:O.extend("--ft-button-primary-state-layer-color","",N.contentGlobalOnColor),primaryStateLayerOpacityHover:O.extend("--ft-button-primary-state-layer-opacity-hover","",$.opacity16),primaryStateLayerOpacityFocus:O.extend("--ft-button-primary-state-layer-opacity-focus","",$.opacity16),primaryStateLayerOpacityActive:O.extend("--ft-button-primary-state-layer-opacity-active","",$.opacity24),primaryComponentOpacityDisabled:O.extend("--ft-button-primary-component-opacity-disabled","",$.opacity40),focusFocusRingColor:O.extend("--ft-button-focus-focus-ring-color","",N.borderActionFocusRing),tertiaryBackgroundColor:O.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:O.extend("--ft-button-tertiary-color","",N.contentActionPrimary),tertiaryIconColor:O.extend("--ft-button-tertiary-icon-color","",N.contentActionPrimary),tertiaryStateLayerColor:O.extend("--ft-button-tertiary-state-layer-color","",N.contentActionPrimary),tertiaryStateLayerOpacityHover:O.extend("--ft-button-tertiary-state-layer-opacity-hover","",$.opacity8),tertiaryStateLayerOpacityFocus:O.extend("--ft-button-tertiary-state-layer-opacity-focus","",$.opacity8),tertiaryStateLayerOpacityActive:O.extend("--ft-button-tertiary-state-layer-opacity-active","",$.opacity16),tertiaryComponentOpacityDisabled:O.extend("--ft-button-tertiary-component-opacity-disabled","",$.opacity40),secondaryBackgroundColor:O.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:O.extend("--ft-button-secondary-color","",N.contentActionPrimary),secondaryIconColor:O.extend("--ft-button-secondary-icon-color","",N.contentActionPrimary),secondaryStateLayerColor:O.extend("--ft-button-secondary-state-layer-color","",N.contentActionPrimary),secondaryStateLayerOpacityHover:O.extend("--ft-button-secondary-state-layer-opacity-hover","",$.opacity8),secondaryStateLayerOpacityFocus:O.extend("--ft-button-secondary-state-layer-opacity-focus","",$.opacity8),secondaryStateLayerOpacityActive:O.extend("--ft-button-secondary-state-layer-opacity-active","",$.opacity16),secondaryComponentOpacityDisabled:O.extend("--ft-button-secondary-component-opacity-disabled","",$.opacity40),secondaryBorderColor:O.extend("--ft-button-secondary-border-color","",N.borderActionPrimary),neutralBackgroundColor:O.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:O.extend("--ft-button-neutral-icon-color","",N.contentGlobalSecondary),neutralColor:O.extend("--ft-button-neutral-color","",N.contentGlobalSecondary),neutralStateLayerColor:O.extend("--ft-button-neutral-state-layer-color","",N.contentGlobalSecondary),neutralStateLayerOpacityHover:O.extend("--ft-button-neutral-state-layer-opacity-hover","",$.opacity8),neutralStateLayerOpacityFocus:O.extend("--ft-button-neutral-state-layer-opacity-focus","",$.opacity8),neutralStateLayerOpacityActive:O.extend("--ft-button-neutral-state-layer-opacity-active","",$.opacity16),neutralComponentOpacityDisabled:O.extend("--ft-button-neutral-component-opacity-disabled","",$.opacity40)};O.extend("--ft-tabs-top-left-border-radius","",$.borderRadiusS),O.extend("--ft-tabs-top-right-border-radius","",$.borderRadiusS),O.extend("--ft-tabs-label-horizontal-padding","",$.spacing4),O.extend("--ft-tabs-label-vertical-padding","",$.spacing3),O.extend("--ft-tabs-label-gap","",$.spacing1),O.extend("--ft-switch-group-horizontal-padding","",$.spacing1),O.extend("--ft-switch-group-vertical-padding","",$.spacing1),O.extend("--ft-switch-group-gap","",$.spacing1),O.extend("--ft-switch-group-background-color","",N.backgroundGlobalSurface),O.extend("--ft-switch-group-border-color","",N.borderGlobalSubtle),O.create("--ft-switch-group-border-radius","","SIZE","6px"),O.extend("--ft-switch-label-horizontal-padding","",$.spacing2),O.extend("--ft-switch-label-vertical-padding","",$.spacing1),O.extend("--ft-switch-icon-horizontal-padding","",$.spacing1),O.extend("--ft-switch-icon-vertical-padding","",$.spacing1),O.create("--ft-switch-focus-outline-width","","SIZE","2px"),O.extend("--ft-switch-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-switch-option-border-radius","",$.borderRadiusS),O.extend("--ft-switch-off-state-layer-opacity-hover","",$.opacity8),O.extend("--ft-switch-off-state-layer-opacity-focus","",$.opacity8),O.extend("--ft-switch-off-state-layer-opacity-active","",$.opacity16),O.extend("--ft-switch-off-component-opacity-disabled","",$.opacity40),O.extend("--ft-switch-off-color","",N.contentGlobalSubtle),O.extend("--ft-switch-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-chart-1-light","for area color charts",$.colorBrand40),O.extend("--ft-chart-1-base","for line charts",$.colorBrand0),O.extend("--ft-chart-2-light","for area color charts",$.colorYellow60),O.extend("--ft-chart-2-base","for line charts",$.colorYellow100),O.extend("--ft-chart-3-light","",$.colorUltramarine40),O.extend("--ft-chart-3-base","",$.colorUltramarine70),O.extend("--ft-chart-4-light","",$.colorCyan50),O.extend("--ft-chart-4-base","",$.colorCyan100),O.extend("--ft-chart-5-light","",$.colorRed40),O.extend("--ft-chart-5-base","",$.colorRed60),O.extend("--ft-chart-6-light","",$.colorGreen40),O.extend("--ft-chart-6-base","",$.colorGreen70),O.extend("--ft-chart-7-light","",$.colorOrange70),O.extend("--ft-chart-7-base","",$.colorOrange100),O.extend("--ft-chart-8-light","",$.colorAvocado70),O.extend("--ft-chart-8-base","",$.colorAvocado200),O.extend("--ft-chart-9-light","",$.colorBrown50),O.extend("--ft-chart-9-base","",$.colorBrown200),O.extend("--ft-chart-10-light","",$.colorGray50),O.extend("--ft-chart-10-base","",$.colorGray80),O.extend("--ft-chart-monochrome-10","",$.colorBrand10),O.extend("--ft-chart-monochrome-20","",$.colorBrand20),O.extend("--ft-chart-monochrome-30","",$.colorBrand40),O.extend("--ft-chart-monochrome-40","",$.colorBrand60),O.extend("--ft-chart-monochrome-50","",$.colorBrand0),O.extend("--ft-chart-monochrome-60","",$.colorBrand200),O.extend("--ft-chip-large-horizontal-padding","",$.spacing4),O.extend("--ft-chip-large-vertical-padding","",$.spacing2),O.extend("--ft-chip-large-gap","",$.spacing1),O.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-large-border-radius","",$.borderRadiusPill),O.create("--ft-chip-large-border-width","","SIZE","1px"),O.extend("--ft-chip-large-icon-size","",$.iconSize3),O.extend("--ft-chip-medium-horizontal-padding","",$.spacing3),O.extend("--ft-chip-medium-vertical-padding","",$.spacing1),O.extend("--ft-chip-medium-gap","",$.spacing1),O.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-medium-border-radius","",$.borderRadiusPill),O.create("--ft-chip-medium-border-width","","SIZE","1px"),O.extend("--ft-chip-medium-icon-size","",$.iconSize2),O.extend("--ft-chip-small-horizontal-padding","",$.spacing2),O.extend("--ft-chip-small-vertical-padding","",$.spacing05),O.extend("--ft-chip-small-gap","",$.spacing1),O.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-small-border-radius","",$.borderRadiusPill),O.create("--ft-chip-small-border-width","","SIZE","1px"),O.extend("--ft-chip-small-icon-size","",$.iconSize1),O.extend("--ft-chip-neutral-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-chip-neutral-color","",N.contentGlobalPrimary),O.extend("--ft-chip-neutral-border-color","",N.borderGlobalSubtle),O.extend("--ft-chip-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-chip-info-color","",N.contentInfoPrimary),O.extend("--ft-chip-info-border-color","",N.borderInfoPrimary),O.extend("--ft-chip-success-background-color","",N.backgroundSuccessSubtle),O.extend("--ft-chip-success-color","",N.contentSuccessPrimary),O.extend("--ft-chip-success-border-color","",N.borderSuccessPrimary),O.extend("--ft-chip-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-chip-warning-color","",N.contentWarningPrimary),O.extend("--ft-chip-warning-border-color","",N.borderWarningPrimary),O.extend("--ft-chip-error-background-color","",N.backgroundErrorSubtle),O.extend("--ft-chip-error-color","",N.contentErrorPrimary),O.extend("--ft-chip-error-border-color","",N.borderErrorPrimary),O.create("--ft-notice-border-width","","SIZE","1px"),O.extend("--ft-notice-horizontal-padding","",$.spacing2),O.extend("--ft-notice-vertical-padding","",$.spacing1),O.extend("--ft-notice-border-radius","",$.borderRadiusS),O.extend("--ft-notice-gap","",$.spacing2),O.extend("--ft-notice-icon-size","",$.iconSize3),O.extend("--ft-notice-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-notice-info-border-color","",N.borderInfoPrimary),O.extend("--ft-notice-info-color","",N.contentInfoPrimary),O.extend("--ft-notice-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-notice-warning-border-color","",N.borderWarningPrimary),O.extend("--ft-notice-warning-color","",N.contentWarningPrimary),O.extend("--ft-checkbox-label-color","",N.contentGlobalPrimary),O.extend("--ft-checkbox-checked-background-color","",N.contentActionPrimary),O.extend("--ft-checkbox-checked-state-layer-color","",N.contentActionPrimary),O.extend("--ft-checkbox-checked-color","",N.contentGlobalOnColor),O.extend("--ft-checkbox-checked-state-layer-opacity-hover","",$.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-active","",$.opacity24),O.extend("--ft-checkbox-checked-component-opacity-disabled","",$.opacity40),O.extend("--ft-checkbox-unchecked-border-color","",$.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-color","",$.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",$.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",$.opacity24),O.extend("--ft-checkbox-unchecked-component-opacity-disabled","",$.opacity40),O.extend("--ft-checkbox-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),O.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),O.extend("--ft-checkbox-gap","",$.spacing3),O.extend("--ft-toggle-off-state-layer-opacity-hover","",$.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-active","",$.opacity24),O.extend("--ft-toggle-off-component-opacity-disabled","",$.opacity40),O.extend("--ft-toggle-off-background-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-off-icon-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-on-state-layer-opacity-hover","",$.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-active","",$.opacity24),O.extend("--ft-toggle-on-component-opacity-disabled","",$.opacity40),O.extend("--ft-toggle-on-background-color","",N.contentActionPrimary),O.extend("--ft-toggle-on-icon-color","",N.contentActionPrimary),O.extend("--ft-toggle-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-toggle-label-color","",N.contentGlobalPrimary),O.extend("--ft-toggle-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-toggle-gap","",$.spacing3),O.extend("--ft-radio-label-color","",N.contentGlobalPrimary),O.extend("--ft-radio-selected-color","",N.contentActionPrimary),O.extend("--ft-radio-selected-state-layer-color","",N.contentActionPrimary),O.extend("--ft-radio-selected-state-layer-opacity-hover","",$.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-active","",$.opacity24),O.extend("--ft-radio-selected-component-opacity-disabled","",$.opacity40),O.extend("--ft-radio-unselected-state-layer-color","",$.colorGray80),O.extend("--ft-radio-unselected-state-layer-opacity-hover","",$.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-focus","",$.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-active","",$.opacity24),O.extend("--ft-radio-unselected-component-opacity-disabled","",$.opacity40),O.extend("--ft-radio-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-radio-focus-outline-offset","","SIZE","3px"),O.create("--ft-radio-focus-outline-width","","SIZE","2px"),O.extend("--ft-radio-gap","",$.spacing3),O.extend("--ft-notification-icon-size","",$.iconSize4),O.extend("--ft-notification-horizontal-padding","",$.spacing4),O.extend("--ft-notification-vertical-padding","",$.spacing4),O.extend("--ft-notification-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-notification-info-color","",N.contentInfoPrimary),O.extend("--ft-notification-info-border-color","",N.borderInfoPrimary),O.extend("--ft-notification-success-background-color","",N.backgroundSuccessSubtle),O.extend("--ft-notification-success-color","",N.contentSuccessPrimary),O.extend("--ft-notification-success-border-color","",N.borderSuccessPrimary),O.extend("--ft-notification-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-notification-warning-color","",N.contentWarningPrimary),O.extend("--ft-notification-warning-border-color","",N.borderWarningPrimary),O.extend("--ft-notification-error-background-color","",N.backgroundErrorSubtle),O.extend("--ft-notification-error-color","",N.contentErrorPrimary),O.extend("--ft-notification-error-border-color","",N.borderErrorPrimary),O.extend("--ft-notification-border-radius","",$.borderRadiusPill),O.create("--ft-notification-border-width","","SIZE","1px"),O.extend("--ft-notification-gap-leading","",$.spacing2),O.extend("--ft-notification-gap-trailing","",$.spacing8);const k=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),I=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),E={fontFamily:I,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},R={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},U={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},L=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",I),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",I),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),K=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),Z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),P=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit"),M={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},H=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",I),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),G=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),V=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),Y=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),q=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit"),X={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},Q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",I),J=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),tt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit"),rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",I),nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),at=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),ct=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase"),dt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},ft=o.css`
113
+ `,w=t=>"string"==typeof t?o.unsafeCSS(t):t;class O{static create(t,e,i,r){const n=t=>w(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,e,i,r){const n=t=>i.get(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i.category,a.fallbackVariable=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),a}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):w(null!=e?e:t.lastResortDefaultValue()),r=o.css`var(${w(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=i,r.get=e=>o.css`var(${w(t.name)}, ${i(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const S={colorWhite:O.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:O.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:O.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:O.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:O.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:O.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:O.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:O.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:O.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:O.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:O.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:O.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:O.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:O.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:O.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:O.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:O.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:O.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:O.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:O.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:O.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:O.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:O.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:O.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:O.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:O.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:O.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:O.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:O.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:O.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:O.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:O.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:O.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:O.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:O.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:O.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:O.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:O.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:O.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:O.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:O.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:O.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:O.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:O.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:O.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:O.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:O.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:O.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:O.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:O.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:O.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:O.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:O.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:O.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:O.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:O.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:O.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:O.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:O.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:O.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:O.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:O.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:O.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:O.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:O.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:O.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:O.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:O.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:O.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:O.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:O.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:O.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:O.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:O.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:O.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:O.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:O.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:O.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:O.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:O.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:O.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:O.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:O.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:O.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:O.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:O.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:O.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:O.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:O.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:O.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:O.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:O.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:O.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:O.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:O.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:O.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:O.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:O.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:O.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:O.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:O.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:O.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:O.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:O.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:O.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:O.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:O.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:O.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:O.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:O.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:O.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:O.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:O.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:O.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:O.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:O.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:O.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:O.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:O.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:O.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:O.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:O.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:O.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:O.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:O.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:O.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:O.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:O.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:O.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:O.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:O.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:O.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:O.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:O.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:O.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:O.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:O.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:O.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:O.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:O.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:O.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:O.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:O.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:O.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:O.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:O.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:O.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:O.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:O.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:O.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:O.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:O.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:O.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:O.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:O.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:O.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:O.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:O.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:O.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:O.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:O.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:O.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:O.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:O.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:O.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:O.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:O.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:O.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:O.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:O.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:O.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:O.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:O.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:O.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:O.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:O.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:O.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:O.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:O.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:O.create("--ft-icon-size-6","","SIZE","48px"),opacity0:O.create("--ft-opacity-0","","NUMBER","0"),opacity8:O.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:O.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:O.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:O.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:O.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:O.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:O.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:O.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:O.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:O.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:O.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:O.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:O.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:O.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},$={display:{fontFamily:O.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:O.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:O.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:O.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:O.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:O.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:O.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:O.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:O.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:O.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:O.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:O.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:O.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:O.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:O.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:O.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:O.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:O.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:O.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:O.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:O.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:O.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:O.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:O.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:O.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:O.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:O.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:O.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:O.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},"caption-3-medium":{fontFamily:O.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},"caption-3-semibold":{fontFamily:O.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},"caption-3-bold":{fontFamily:O.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")}},N={backgroundActionPrimary:O.extend("--ft-background-action-primary","Used as backgorund of primary action components.",S.colorBrand0),backgroundErrorPrimary:O.extend("--ft-background-error-primary","Used as background of error components.",S.colorRed0),backgroundErrorSubtle:O.extend("--ft-background-error-subtle","Used as background of subtle error components.",S.colorRed10),backgroundInfoPrimary:O.extend("--ft-background-info-primary","Used as background of information components.",S.colorCyan200),backgroundInfoSubtle:O.extend("--ft-background-info-subtle","Used as background of subtle information components.",S.colorCyan10),backgroundWarningPrimary:O.extend("--ft-background-warning-primary","Used as background of warning components.",S.colorOrange300),backgroundWarningSubtle:O.extend("--ft-background-warning-subtle","Used as background of subtle information components.",S.colorOrange10),backgroundSuccessPrimary:O.extend("--ft-background-success-primary","Used as background of success components.",S.colorGreen200),backgroundSuccessSubtle:O.extend("--ft-background-success-subtle","Used as background of subtle success components.",S.colorGreen10),backgroundGlobalSurface:O.extend("--ft-background-global-surface","Used as app background.",S.colorWhite),backgroundGlobalOnSurface:O.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",S.colorGray10),backgroundGlobalOnSurfaceDark:O.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",S.colorGray30),contentActionPrimary:O.extend("--ft-content-action-primary","Used on label of primary action on light surface.",S.colorBrand0),contentWarningPrimary:O.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",S.colorOrange300),contentWarningIconOnly:O.extend("--ft-content-warning-icon-only","Used on warning status icons alone",S.colorOrange0),contentErrorPrimary:O.extend("--ft-content-error-primary","Used on label of error messages on light surface.",S.colorRed0),contentErrorIconOnly:O.extend("--ft-content-error-icon-only","Used on error status icons alone",S.colorRed0),contentInfoPrimary:O.extend("--ft-content-info-primary","Used on label of information messages on light surface.",S.colorCyan200),contentInfoIconOnly:O.extend("--ft-content-info-icon-only","Used on info status icons alone",S.colorCyan0),contentSuccessPrimary:O.extend("--ft-content-success-primary","Used on label of success messages on light surface.",S.colorGreen200),contentSuccessIconOnly:O.extend("--ft-content-success-icon-only","Used on success status icons alone",S.colorGreen0),contentGlobalPrimary:O.extend("--ft-content-global-primary","Used for main content on the page.",S.colorGray500),contentGlobalSecondary:O.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",S.colorGray200),contentGlobalSubtle:O.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",S.colorGray0),contentGlobalOnColor:O.extend("--ft-content-global-on-color","Used for content on a dominant color.",S.colorWhite),borderActionPrimary:O.extend("--ft-border-action-primary","Used as border for primary action components.",S.colorBrand0),borderActionFocusRing:O.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",S.colorCyan0),borderWarningPrimary:O.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",S.colorOrange300),borderWarningSubtle:O.extend("--ft-border-warning-subtle","Used as border for warning components.",S.colorOrange30),borderSuccessPrimary:O.extend("--ft-border-success-primary","Used as border for success buttons.",S.colorGreen200),borderSuccessSubtle:O.extend("--ft-border-success-subtle","Used as border for success components.",S.colorGreen30),borderErrorPrimary:O.extend("--ft-border-error-primary","Used as border for text fields in error states.",S.colorRed0),borderErrorSubtle:O.extend("--ft-border-error-subtle","Used as border for error components.",S.colorRed30),borderInfoPrimary:O.extend("--ft-border-info-primary","Used as border for buttons in info color.",S.colorCyan200),borderInfoSubtle:O.extend("--ft-border-info-subtle","Used as border for information components.",S.colorCyan30),borderGlobalPrimary:O.extend("--ft-border-global-primary","Used as border for element like input.",S.colorGray50),borderGlobalSubtle:O.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",S.colorGray30),borderInputPrimary:O.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",S.colorGray80)},C={largeHeight:O.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:O.extend("--ft-button-large-horizontal-padding","",S.spacing4),largeGap:O.extend("--ft-button-large-gap","",S.spacing2),largeBorderRadius:O.extend("--ft-button-large-border-radius","",S.borderRadiusS),largeIconSize:O.extend("--ft-button-large-icon-size","",S.iconSize3),largeBorderWidth:O.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:O.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:O.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:O.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:O.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:O.extend("--ft-button-small-horizontal-padding","",S.spacing3),smallGap:O.extend("--ft-button-small-gap","",S.spacing2),smallBorderRadius:O.extend("--ft-button-small-border-radius","",S.borderRadiusS),smallIconSize:O.extend("--ft-button-small-icon-size","",S.iconSize2),smallBorderWidth:O.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:O.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:O.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:O.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:O.extend("--ft-button-primary-background-color","",N.backgroundActionPrimary),primaryColor:O.extend("--ft-button-primary-color","",N.contentGlobalOnColor),primaryIconColor:O.extend("--ft-button-primary-icon-color","",N.contentGlobalOnColor),primaryStateLayerColor:O.extend("--ft-button-primary-state-layer-color","",N.contentGlobalOnColor),primaryStateLayerOpacityHover:O.extend("--ft-button-primary-state-layer-opacity-hover","",S.opacity16),primaryStateLayerOpacityFocus:O.extend("--ft-button-primary-state-layer-opacity-focus","",S.opacity16),primaryStateLayerOpacityActive:O.extend("--ft-button-primary-state-layer-opacity-active","",S.opacity24),primaryComponentOpacityDisabled:O.extend("--ft-button-primary-component-opacity-disabled","",S.opacity40),focusFocusRingColor:O.extend("--ft-button-focus-focus-ring-color","",N.borderActionFocusRing),tertiaryBackgroundColor:O.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:O.extend("--ft-button-tertiary-color","",N.contentActionPrimary),tertiaryIconColor:O.extend("--ft-button-tertiary-icon-color","",N.contentActionPrimary),tertiaryStateLayerColor:O.extend("--ft-button-tertiary-state-layer-color","",N.contentActionPrimary),tertiaryStateLayerOpacityHover:O.extend("--ft-button-tertiary-state-layer-opacity-hover","",S.opacity8),tertiaryStateLayerOpacityFocus:O.extend("--ft-button-tertiary-state-layer-opacity-focus","",S.opacity8),tertiaryStateLayerOpacityActive:O.extend("--ft-button-tertiary-state-layer-opacity-active","",S.opacity16),tertiaryComponentOpacityDisabled:O.extend("--ft-button-tertiary-component-opacity-disabled","",S.opacity40),secondaryBackgroundColor:O.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:O.extend("--ft-button-secondary-color","",N.contentActionPrimary),secondaryIconColor:O.extend("--ft-button-secondary-icon-color","",N.contentActionPrimary),secondaryStateLayerColor:O.extend("--ft-button-secondary-state-layer-color","",N.contentActionPrimary),secondaryStateLayerOpacityHover:O.extend("--ft-button-secondary-state-layer-opacity-hover","",S.opacity8),secondaryStateLayerOpacityFocus:O.extend("--ft-button-secondary-state-layer-opacity-focus","",S.opacity8),secondaryStateLayerOpacityActive:O.extend("--ft-button-secondary-state-layer-opacity-active","",S.opacity16),secondaryComponentOpacityDisabled:O.extend("--ft-button-secondary-component-opacity-disabled","",S.opacity40),secondaryBorderColor:O.extend("--ft-button-secondary-border-color","",N.borderActionPrimary),neutralBackgroundColor:O.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:O.extend("--ft-button-neutral-icon-color","",N.contentGlobalSecondary),neutralColor:O.extend("--ft-button-neutral-color","",N.contentGlobalSecondary),neutralStateLayerColor:O.extend("--ft-button-neutral-state-layer-color","",N.contentGlobalSecondary),neutralStateLayerOpacityHover:O.extend("--ft-button-neutral-state-layer-opacity-hover","",S.opacity8),neutralStateLayerOpacityFocus:O.extend("--ft-button-neutral-state-layer-opacity-focus","",S.opacity8),neutralStateLayerOpacityActive:O.extend("--ft-button-neutral-state-layer-opacity-active","",S.opacity16),neutralComponentOpacityDisabled:O.extend("--ft-button-neutral-component-opacity-disabled","",S.opacity40)};O.extend("--ft-floating-menu-horizontal-padding","",S.spacing4),O.extend("--ft-floating-menu-vertical-padding","",S.spacing4),O.extend("--ft-floating-menu-off-icon-color","",N.contentGlobalPrimary),O.extend("--ft-floating-menu-off-color","",N.contentGlobalPrimary),O.extend("--ft-floating-menu-on-color","",N.contentActionPrimary),O.extend("--ft-floating-menu-on-icon-color","",N.contentActionPrimary),O.extend("--ft-floating-menu-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-floating-menu-gap","",S.spacing3),O.extend("--ft-floating-menu-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),O.extend("--ft-floating-menu-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-floating-menu-state-layer-opacity-active","",S.opacity16),O.extend("--ft-floating-menu-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-floating-menu-component-opacity-disabled","",S.opacity40),O.extend("--ft-floating-menu-icon-size","",S.iconSize3),O.extend("--ft-floating-menu-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-tabs-top-left-border-radius","",S.borderRadiusS),O.extend("--ft-tabs-top-right-border-radius","",S.borderRadiusS),O.extend("--ft-tabs-label-horizontal-padding","",S.spacing4),O.extend("--ft-tabs-label-vertical-padding","",S.spacing3),O.extend("--ft-tabs-label-gap","",S.spacing1),O.extend("--ft-tabs-icon-horizontal-padding","",S.spacing1),O.extend("--ft-tabs-icon-vertical-padding","",S.spacing4),O.create("--ft-tabs-focus-outline-width","","SIZE","2px"),O.extend("--ft-tabs-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-tabs-off-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-tabs-off-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-tabs-off-state-layer-opacity-active","",S.opacity16),O.extend("--ft-tabs-off-component-opacity-disabled","",S.opacity40),O.extend("--ft-tabs-off-color","",N.contentGlobalSubtle),O.extend("--ft-tabs-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-tabs-on-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-tabs-on-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-tabs-on-state-layer-opacity-active","",S.opacity16),O.extend("--ft-tabs-on-component-opacity-disabled","",S.opacity40),O.extend("--ft-tabs-on-color","",N.contentActionPrimary),O.extend("--ft-tabs-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-collapsible-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-collapsible-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-collapsible-state-layer-opacity-active","",S.opacity16),O.extend("--ft-collapsible-component-opacity-disabled","",S.opacity40),O.extend("--ft-collapsible-horizontal-padding","",S.spacing4),O.extend("--ft-collapsible-vertical-padding","",S.spacing3),O.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),O.extend("--ft-collapsible-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-collapsible-color","",N.contentGlobalPrimary),O.extend("--ft-collapsible-state-layer-color","",N.contentGlobalPrimary),O.extend("--ft-collapsible-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-collapsible-border-color","",N.borderGlobalSubtle),O.extend("--ft-collapsible-icon-size","",S.iconSize3),O.extend("--ft-switch-group-horizontal-padding","",S.spacing1),O.extend("--ft-switch-group-vertical-padding","",S.spacing1),O.extend("--ft-switch-group-gap","",S.spacing1),O.extend("--ft-switch-group-background-color","",N.backgroundGlobalSurface),O.extend("--ft-switch-group-border-color","",N.borderGlobalSubtle),O.create("--ft-switch-group-border-radius","","SIZE","6px"),O.extend("--ft-switch-label-horizontal-padding","",S.spacing2),O.extend("--ft-switch-label-vertical-padding","",S.spacing1),O.extend("--ft-switch-icon-horizontal-padding","",S.spacing1),O.extend("--ft-switch-icon-vertical-padding","",S.spacing1),O.create("--ft-switch-focus-outline-width","","SIZE","2px"),O.extend("--ft-switch-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-switch-option-border-radius","",S.borderRadiusS),O.extend("--ft-switch-off-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-switch-off-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-switch-off-state-layer-opacity-active","",S.opacity16),O.extend("--ft-switch-off-component-opacity-disabled","",S.opacity40),O.extend("--ft-switch-off-color","",N.contentGlobalSubtle),O.extend("--ft-switch-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-switch-on-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-switch-on-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-switch-on-state-layer-opacity-active","",S.opacity16),O.extend("--ft-switch-on-component-opacity-disabled","",S.opacity40),O.extend("--ft-switch-on-color","",N.contentActionPrimary),O.extend("--ft-switch-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-chart-1-light","for area color charts",S.colorBrand40),O.extend("--ft-chart-1-base","for line charts",S.colorBrand0),O.extend("--ft-chart-2-light","for area color charts",S.colorYellow60),O.extend("--ft-chart-2-base","for line charts",S.colorYellow100),O.extend("--ft-chart-3-light","",S.colorUltramarine40),O.extend("--ft-chart-3-base","",S.colorUltramarine70),O.extend("--ft-chart-4-light","",S.colorCyan50),O.extend("--ft-chart-4-base","",S.colorCyan100),O.extend("--ft-chart-5-light","",S.colorRed40),O.extend("--ft-chart-5-base","",S.colorRed60),O.extend("--ft-chart-6-light","",S.colorGreen40),O.extend("--ft-chart-6-base","",S.colorGreen70),O.extend("--ft-chart-7-light","",S.colorOrange70),O.extend("--ft-chart-7-base","",S.colorOrange100),O.extend("--ft-chart-8-light","",S.colorAvocado70),O.extend("--ft-chart-8-base","",S.colorAvocado200),O.extend("--ft-chart-9-light","",S.colorBrown50),O.extend("--ft-chart-9-base","",S.colorBrown200),O.extend("--ft-chart-10-light","",S.colorGray50),O.extend("--ft-chart-10-base","",S.colorGray80),O.extend("--ft-chart-monochrome-10","",S.colorBrand10),O.extend("--ft-chart-monochrome-20","",S.colorBrand20),O.extend("--ft-chart-monochrome-30","",S.colorBrand40),O.extend("--ft-chart-monochrome-40","",S.colorBrand60),O.extend("--ft-chart-monochrome-50","",S.colorBrand0),O.extend("--ft-chart-monochrome-60","",S.colorBrand200),O.extend("--ft-chip-large-horizontal-padding","",S.spacing4),O.extend("--ft-chip-large-vertical-padding","",S.spacing2),O.extend("--ft-chip-large-gap","",S.spacing1),O.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-large-border-radius","",S.borderRadiusPill),O.create("--ft-chip-large-border-width","","SIZE","1px"),O.extend("--ft-chip-large-icon-size","",S.iconSize3),O.extend("--ft-chip-medium-horizontal-padding","",S.spacing3),O.extend("--ft-chip-medium-vertical-padding","",S.spacing1),O.extend("--ft-chip-medium-gap","",S.spacing1),O.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-medium-border-radius","",S.borderRadiusPill),O.create("--ft-chip-medium-border-width","","SIZE","1px"),O.extend("--ft-chip-medium-icon-size","",S.iconSize2),O.extend("--ft-chip-small-horizontal-padding","",S.spacing2),O.extend("--ft-chip-small-vertical-padding","",S.spacing05),O.extend("--ft-chip-small-gap","",S.spacing1),O.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-small-border-radius","",S.borderRadiusPill),O.create("--ft-chip-small-border-width","","SIZE","1px"),O.extend("--ft-chip-small-icon-size","",S.iconSize1),O.extend("--ft-chip-neutral-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-chip-neutral-color","",N.contentGlobalPrimary),O.extend("--ft-chip-neutral-border-color","",N.borderGlobalSubtle),O.extend("--ft-chip-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-chip-info-color","",N.contentInfoPrimary),O.extend("--ft-chip-info-border-color","",N.borderInfoSubtle),O.extend("--ft-chip-success-background-color","",N.backgroundSuccessSubtle),O.extend("--ft-chip-success-color","",N.contentSuccessPrimary),O.extend("--ft-chip-success-border-color","",N.borderSuccessSubtle),O.extend("--ft-chip-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-chip-warning-color","",N.contentWarningPrimary),O.extend("--ft-chip-warning-border-color","",N.borderWarningSubtle),O.extend("--ft-chip-error-background-color","",N.backgroundErrorSubtle),O.extend("--ft-chip-error-color","",N.contentErrorPrimary),O.extend("--ft-chip-error-border-color","",N.borderErrorSubtle),O.create("--ft-notice-border-width","","SIZE","1px"),O.extend("--ft-notice-horizontal-padding","",S.spacing2),O.extend("--ft-notice-vertical-padding","",S.spacing1),O.extend("--ft-notice-border-radius","",S.borderRadiusS),O.extend("--ft-notice-gap","",S.spacing2),O.extend("--ft-notice-icon-size","",S.iconSize3),O.extend("--ft-notice-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-notice-info-border-color","",N.borderInfoSubtle),O.extend("--ft-notice-info-color","",N.contentInfoPrimary),O.extend("--ft-notice-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-notice-warning-border-color","",N.borderWarningSubtle),O.extend("--ft-notice-warning-color","",N.contentWarningPrimary),O.extend("--ft-checkbox-label-color","",N.contentGlobalPrimary),O.extend("--ft-checkbox-checked-background-color","",N.contentActionPrimary),O.extend("--ft-checkbox-checked-state-layer-color","",N.contentActionPrimary),O.extend("--ft-checkbox-checked-color","",N.contentGlobalOnColor),O.extend("--ft-checkbox-checked-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-active","",S.opacity24),O.extend("--ft-checkbox-checked-component-opacity-disabled","",S.opacity40),O.extend("--ft-checkbox-unchecked-border-color","",S.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-color","",S.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",S.opacity24),O.extend("--ft-checkbox-unchecked-component-opacity-disabled","",S.opacity40),O.extend("--ft-checkbox-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),O.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),O.extend("--ft-checkbox-gap","",S.spacing3),O.extend("--ft-toggle-off-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-active","",S.opacity24),O.extend("--ft-toggle-off-component-opacity-disabled","",S.opacity40),O.extend("--ft-toggle-off-background-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-off-icon-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-on-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-active","",S.opacity24),O.extend("--ft-toggle-on-component-opacity-disabled","",S.opacity40),O.extend("--ft-toggle-on-background-color","",N.contentActionPrimary),O.extend("--ft-toggle-on-icon-color","",N.contentActionPrimary),O.extend("--ft-toggle-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-toggle-label-color","",N.contentGlobalPrimary),O.extend("--ft-toggle-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-toggle-gap","",S.spacing3),O.extend("--ft-radio-label-color","",N.contentGlobalPrimary),O.extend("--ft-radio-selected-color","",N.contentActionPrimary),O.extend("--ft-radio-selected-state-layer-color","",N.contentActionPrimary),O.extend("--ft-radio-selected-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-active","",S.opacity24),O.extend("--ft-radio-selected-component-opacity-disabled","",S.opacity40),O.extend("--ft-radio-unselected-state-layer-color","",S.colorGray80),O.extend("--ft-radio-unselected-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-active","",S.opacity24),O.extend("--ft-radio-unselected-component-opacity-disabled","",S.opacity40),O.extend("--ft-radio-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-radio-focus-outline-offset","","SIZE","3px"),O.create("--ft-radio-focus-outline-width","","SIZE","2px"),O.extend("--ft-radio-gap","",S.spacing3),O.extend("--ft-notification-icon-size","",S.iconSize4),O.extend("--ft-notification-horizontal-padding","",S.spacing4),O.extend("--ft-notification-vertical-padding","",S.spacing4),O.extend("--ft-notification-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-notification-info-color","",N.contentInfoPrimary),O.extend("--ft-notification-info-border-color","",N.borderInfoSubtle),O.extend("--ft-notification-success-background-color","",N.backgroundSuccessSubtle),O.extend("--ft-notification-success-color","",N.contentSuccessPrimary),O.extend("--ft-notification-success-border-color","",N.borderSuccessSubtle),O.extend("--ft-notification-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-notification-warning-color","",N.contentWarningPrimary),O.extend("--ft-notification-warning-border-color","",N.borderWarningSubtle),O.extend("--ft-notification-error-background-color","",N.backgroundErrorSubtle),O.extend("--ft-notification-error-color","",N.contentErrorPrimary),O.extend("--ft-notification-error-border-color","",N.borderErrorSubtle),O.extend("--ft-notification-border-radius","",S.borderRadiusPill),O.create("--ft-notification-border-width","","SIZE","1px"),O.extend("--ft-notification-gap-leading","",S.spacing2),O.extend("--ft-notification-gap-trailing","",S.spacing8),O.extend("--ft-tooltip-horizontal-padding","",S.spacing2),O.extend("--ft-tooltip-vertical-padding","",S.spacing2),O.extend("--ft-tooltip-border-radius","",S.borderRadiusS),O.extend("--ft-tooltip-label","",N.contentGlobalOnColor),O.extend("--ft-tooltip-background","",N.contentGlobalPrimary),O.extend("--ft-tooltip-background-opacity","",S.opacity80),O.extend("--ft-tooltip-shadow","",S.shadowElevation03);const I=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),k=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),E={fontFamily:k,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},R={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},U={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",I),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},L=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",k),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",k),F=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),K=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),Z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),P=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit"),M={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},H=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",k),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),G=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),V=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),Y=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),q=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit"),X={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},Q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",k),J=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),tt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit"),rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",k),nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),at=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),ct=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase"),dt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},ft=o.css`
114
114
  .ft-typography--title {
115
115
  font-family: ${R.fontFamily};
116
116
  font-size: ${R.fontSize};
@@ -119,7 +119,7 @@
119
119
  line-height: ${R.lineHeight};
120
120
  text-transform: ${R.textTransform};
121
121
  }
122
- `,ht=o.css`
122
+ `,pt=o.css`
123
123
  .ft-typography--title-dense {
124
124
  font-family: ${U.fontFamily};
125
125
  font-size: ${U.fontSize};
@@ -128,21 +128,21 @@
128
128
  line-height: ${U.lineHeight};
129
129
  text-transform: ${U.textTransform};
130
130
  }
131
- `,pt=o.css`
131
+ `,ht=o.css`
132
132
  .ft-typography--subtitle1 {
133
133
  font-family: ${L};
134
- font-size: ${T};
135
- font-weight: ${W};
136
- letter-spacing: ${_};
137
- line-height: ${D};
134
+ font-size: ${W};
135
+ font-weight: ${T};
136
+ letter-spacing: ${D};
137
+ line-height: ${_};
138
138
  text-transform: ${A};
139
139
  }
140
140
  `,ut=o.css`
141
141
  .ft-typography--subtitle2 {
142
142
  font-family: ${z};
143
- font-size: ${B};
144
- font-weight: ${F};
145
- letter-spacing: ${K};
143
+ font-size: ${F};
144
+ font-weight: ${K};
145
+ letter-spacing: ${B};
146
146
  line-height: ${Z};
147
147
  text-transform: ${P};
148
148
  }
@@ -205,7 +205,7 @@
205
205
  .ft-typography {
206
206
  vertical-align: inherit;
207
207
  }
208
- `,Ot=[Object.keys(S).map((t=>function(t){const e=S[t];return o.css`
208
+ `,Ot=[Object.keys($).map((t=>function(t){const e=$[t];return o.css`
209
209
  .ft-typography--${o.unsafeCSS(t)} {
210
210
  font-family: ${e.fontFamily};
211
211
  font-size: ${e.fontSize};
@@ -214,7 +214,7 @@
214
214
  line-height: ${e.lineHeight};
215
215
  text-transform: ${e.textCase};
216
216
  }
217
- `}(t)))],$t={color:e.FtCssVariableFactory.extend("--ft-loader-color","",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},St=o.css`
217
+ `}(t)))],St={color:e.FtCssVariableFactory.extend("--ft-loader-color","",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},$t=o.css`
218
218
  :host {
219
219
  line-height: 0;
220
220
  }
@@ -223,8 +223,8 @@
223
223
  display: inline-block;
224
224
  position: relative;
225
225
 
226
- width: ${$t.size};
227
- height: ${$t.size};
226
+ width: ${St.size};
227
+ height: ${St.size};
228
228
  }
229
229
 
230
230
  .ft-loader div {
@@ -233,7 +233,7 @@
233
233
  width: 25%;
234
234
  height: 25%;
235
235
  border-radius: 50%;
236
- background: ${$t.color};
236
+ background: ${St.color};
237
237
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
238
238
  }
239
239
 
@@ -280,7 +280,7 @@
280
280
  transform: translate(0, 0);
281
281
  }
282
282
  100% {
283
- transform: translate(calc(0.35 * ${$t.size}), 0);
283
+ transform: translate(calc(0.35 * ${St.size}), 0);
284
284
  }
285
285
  }
286
286
  `,Nt={size:e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ct=o.css`
@@ -331,7 +331,7 @@
331
331
  .ft-icon--material {
332
332
  font-family: ${Nt.materialFontFamily}, "Material Icons", sans-serif;
333
333
  }
334
- `,kt=e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorPrimary),It={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusL),color:kt,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color","",kt),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Et=e.FtCssVariableFactory.extend("--ft-button-primary-color","",e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorOnPrimary)),Rt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color","",e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorPrimary)),color:Et,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Et)},Ut=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusM)),Lt=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Tt=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Wt=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),_t=[o.css`
334
+ `,It=e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorPrimary),kt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusL),color:It,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color","",It),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Et=e.FtCssVariableFactory.extend("--ft-button-primary-color","",e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorOnPrimary)),Rt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color","",e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorPrimary)),color:Et,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Et)},Ut=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusM)),Lt=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Wt=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Tt=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),Dt=[o.css`
335
335
  :host {
336
336
  display: inline-block;
337
337
  max-width: 100%;
@@ -342,7 +342,7 @@
342
342
  box-shadow: 0px 0px 0px transparent;
343
343
  border: 0px solid transparent;
344
344
  text-shadow: 0px 0px 0px transparent;
345
- font-size: ${It.fontSize};
345
+ font-size: ${kt.fontSize};
346
346
  }
347
347
 
348
348
  button:hover {
@@ -371,31 +371,31 @@
371
371
  border: none;
372
372
  pointer-events: auto;
373
373
 
374
- --ft-button-internal-line-height: max(calc(${It.fontSize} + 2px), ${It.iconSize});
375
- --ft-button-internal-color: ${It.color};
376
- ${e.setVariable(Nt.size,It.iconSize)};
377
- ${e.setVariable(p.color,It.rippleColor)};
374
+ --ft-button-internal-line-height: max(calc(${kt.fontSize} + 2px), ${kt.iconSize});
375
+ --ft-button-internal-color: ${kt.color};
376
+ ${e.setVariable(Nt.size,kt.iconSize)};
377
+ ${e.setVariable(h.color,kt.rippleColor)};
378
378
 
379
- border-radius: ${It.borderRadius};
380
- padding: ${It.verticalPadding} ${It.horizontalPadding};
381
- background-color: ${It.backgroundColor};
379
+ border-radius: ${kt.borderRadius};
380
+ padding: ${kt.verticalPadding} ${kt.horizontalPadding};
381
+ background-color: ${kt.backgroundColor};
382
382
  color: var(--ft-button-internal-color);
383
383
  -webkit-mask-image: radial-gradient(white, black);
384
384
  }
385
385
 
386
386
  .ft-button.ft-button--outlined {
387
387
  border: 1px solid var(--ft-button-internal-color);
388
- padding: calc(${It.verticalPadding} - 1px) calc(${It.horizontalPadding} - 1px);
388
+ padding: calc(${kt.verticalPadding} - 1px) calc(${kt.horizontalPadding} - 1px);
389
389
  }
390
390
 
391
391
  .ft-button.ft-button--dense {
392
- padding: ${Lt} ${Tt};
392
+ padding: ${Lt} ${Wt};
393
393
  border-radius: ${Ut};
394
- gap: ${Wt};
394
+ gap: ${Tt};
395
395
  }
396
396
 
397
397
  .ft-button.ft-button--dense.ft-button--outlined {
398
- padding: calc(${Lt} - 1px) calc(${Tt} - 1px);
398
+ padding: calc(${Lt} - 1px) calc(${Wt} - 1px);
399
399
  }
400
400
 
401
401
  .ft-button:not([disabled]):hover {
@@ -403,7 +403,7 @@
403
403
  }
404
404
 
405
405
  .ft-button--round {
406
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${It.verticalPadding});
406
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${kt.verticalPadding});
407
407
  }
408
408
 
409
409
  .ft-button--round.ft-button--dense {
@@ -412,13 +412,13 @@
412
412
 
413
413
  .ft-button[disabled] {
414
414
  filter: grayscale(1);
415
- opacity: ${It.opacityDisabled};
415
+ opacity: ${kt.opacityDisabled};
416
416
  }
417
417
 
418
418
  .ft-button.ft-button--primary {
419
419
  background-color: ${Rt.backgroundColor};
420
420
  --ft-button-internal-color: ${Rt.color};
421
- ${e.setVariable(p.color,Rt.rippleColor)};
421
+ ${e.setVariable(h.color,Rt.rippleColor)};
422
422
  }
423
423
 
424
424
  .ft-button:focus {
@@ -431,13 +431,13 @@
431
431
  white-space: nowrap;
432
432
  text-overflow: ellipsis;
433
433
  display: block;
434
- margin: 0 ${It.iconPadding};
434
+ margin: 0 ${kt.iconPadding};
435
435
  ${e.setVariable(dt.fontSize,"1em")};
436
436
  ${e.setVariable(dt.lineHeight,"var(--ft-button-internal-line-height)")};
437
437
  }
438
438
 
439
439
  .ft-button--dense .ft-button--label {
440
- margin: 0 ${Wt};
440
+ margin: 0 ${Tt};
441
441
  }
442
442
 
443
443
  .ft-button--label[hidden] {
@@ -450,12 +450,12 @@
450
450
  }
451
451
 
452
452
  .ft-button--label[hidden] + ft-icon {
453
- margin: 0 calc(${It.horizontalPadding} * -1);
454
- padding: 0 ${It.verticalPadding};
453
+ margin: 0 calc(${kt.horizontalPadding} * -1);
454
+ padding: 0 ${kt.verticalPadding};
455
455
  }
456
456
 
457
457
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
458
- margin: 0 calc(${Tt} * -1);
458
+ margin: 0 calc(${Wt} * -1);
459
459
  padding: 0 ${Lt};
460
460
  }
461
461
 
@@ -465,10 +465,10 @@
465
465
  }
466
466
 
467
467
  ft-loader {
468
- ${e.setVariable($t.size,It.iconSize)};
469
- ${e.setVariable($t.color,"var(--ft-button-internal-color)")};
468
+ ${e.setVariable(St.size,kt.iconSize)};
469
+ ${e.setVariable(St.color,"var(--ft-button-internal-color)")};
470
470
  }
471
- `,e.noTextSelect],Dt={textColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceHigh),backgroundColor:e.FtCssVariableFactory.extend("--ft-switch-background-color","",e.designSystemVariables.colorSurface),selectedTextColor:e.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",e.designSystemVariables.colorPrimary),selectedBackgroundColor:e.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",e.designSystemVariables.colorPrimary),borderColor:e.FtCssVariableFactory.extend("--ft-switch-border-color","",e.designSystemVariables.colorOutline),borderRadius:e.FtCssVariableFactory.extend("--ft-switch-border-radius","",e.designSystemVariables.borderRadiusL),fontSize:e.FtCssVariableFactory.extend("--ft-switch-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceMedium),rippleColor:e.FtCssVariableFactory.extend("--ft-switch-ripple-color","",e.designSystemVariables.colorPrimary),outlineColor:e.FtCssVariableFactory.extend("--ft-switch-outline-color","",e.designSystemVariables.colorPrimary)},At={feedbackInputMinWidth:e.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",e.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",e.designSystemVariables.colorPrimary),filledRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",e.designSystemVariables.colorPrimary),emptyRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",e.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:e.FtCssVariableFactory.external(R.fontSize,"Typography"),sectionTitleFontSize:e.FtCssVariableFactory.external(U.fontSize,"Typography"),starsBackgroundColor:e.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",e.designSystemVariables.colorSurface)},zt=o.css`
471
+ `,e.noTextSelect],_t={textColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceHigh),backgroundColor:e.FtCssVariableFactory.extend("--ft-switch-background-color","",e.designSystemVariables.colorSurface),selectedTextColor:e.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",e.designSystemVariables.colorPrimary),selectedBackgroundColor:e.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",e.designSystemVariables.colorPrimary),borderColor:e.FtCssVariableFactory.extend("--ft-switch-border-color","",e.designSystemVariables.colorOutline),borderRadius:e.FtCssVariableFactory.extend("--ft-switch-border-radius","",e.designSystemVariables.borderRadiusL),fontSize:e.FtCssVariableFactory.extend("--ft-switch-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceMedium),rippleColor:e.FtCssVariableFactory.extend("--ft-switch-ripple-color","",e.designSystemVariables.colorPrimary),outlineColor:e.FtCssVariableFactory.extend("--ft-switch-outline-color","",e.designSystemVariables.colorPrimary)},At={feedbackInputMinWidth:e.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",e.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",e.designSystemVariables.colorPrimary),filledRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",e.designSystemVariables.colorPrimary),emptyRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",e.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:e.FtCssVariableFactory.external(R.fontSize,"Typography"),sectionTitleFontSize:e.FtCssVariableFactory.external(U.fontSize,"Typography"),starsBackgroundColor:e.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",e.designSystemVariables.colorSurface)},zt=o.css`
472
472
  .ft-reader-feedback {
473
473
  box-sizing: border-box;
474
474
  display: flex;
@@ -481,7 +481,7 @@
481
481
  flex-direction: row;
482
482
  align-items: center;
483
483
  margin-left: -6px;
484
- ${e.setVariable(It.backgroundColor,At.starsBackgroundColor)}
484
+ ${e.setVariable(kt.backgroundColor,At.starsBackgroundColor)}
485
485
  }
486
486
 
487
487
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -494,14 +494,14 @@
494
494
  }
495
495
 
496
496
  .ft-reader-feedback--rating {
497
- ${e.setVariable(It.color,At.emptyRatingColor)};
498
- ${e.setVariable(It.rippleColor,At.filledRatingColor)};
499
- ${e.setVariable(Dt.textColor,At.emptyRatingColor)};
500
- ${e.setVariable(Dt.selectedTextColor,At.filledRatingColor)};
497
+ ${e.setVariable(kt.color,At.emptyRatingColor)};
498
+ ${e.setVariable(kt.rippleColor,At.filledRatingColor)};
499
+ ${e.setVariable(_t.textColor,At.emptyRatingColor)};
500
+ ${e.setVariable(_t.selectedTextColor,At.filledRatingColor)};
501
501
  }
502
502
 
503
503
  .ft-reader-feedback--rating .ft-reader-feedback--active {
504
- ${e.setVariable(It.color,At.filledRatingColor)};
504
+ ${e.setVariable(kt.color,At.filledRatingColor)};
505
505
  }
506
506
 
507
507
  .ft-reader-feedback--feedback {
@@ -518,28 +518,28 @@
518
518
 
519
519
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
520
520
  align-self: flex-end;
521
- ${e.setVariable(It.color,At.sendFeedbackColor)};
522
- ${e.setVariable(It.backgroundColor,At.sendFeedbackBackgroundColor)};
521
+ ${e.setVariable(kt.color,At.sendFeedbackColor)};
522
+ ${e.setVariable(kt.backgroundColor,At.sendFeedbackBackgroundColor)};
523
523
  }
524
524
  `
525
525
  /**
526
526
  * @license
527
527
  * Copyright 2017 Google LLC
528
528
  * SPDX-License-Identifier: BSD-3-Clause
529
- */,Bt=globalThis,Ft=Bt.trustedTypes,Kt=Ft?Ft.createPolicy("lit-html",{createHTML:t=>t}):void 0,Zt="$lit$",Pt=`lit$${(Math.random()+"").slice(9)}$`,Mt="?"+Pt,Ht=`<${Mt}>`,jt=document,Gt=()=>jt.createComment(""),Vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Yt=Array.isArray,qt="[ \t\n\f\r]",Xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qt=/-->/g,Jt=/>/g,te=RegExp(`>|${qt}(?:([^\\s"'>=/]+)(${qt}*=${qt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ee=/'/g,oe=/"/g,ie=/^(?:script|style|textarea|title)$/i,re=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ne=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),se=new WeakMap,le=jt.createTreeWalker(jt,129);function ce(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Kt?Kt.createHTML(e):e}const de=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=Xt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===Xt?"!--"===l[1]?a=Qt:void 0!==l[1]?a=Jt:void 0!==l[2]?(ie.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=te):void 0!==l[3]&&(a=te):a===te?">"===l[0]?(a=r??Xt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?te:'"'===l[3]?oe:ee):a===oe||a===ee?a=te:a===Qt||a===Jt?a=Xt:(a=te,r=void 0);const f=a===te&&t[e+1].startsWith("/>")?" ":"";n+=a===Xt?o+Ht:c>=0?(i.push(s),o.slice(0,c)+Zt+o.slice(c)+Pt+f):o+Pt+(-2===c?e:f)}return[ce(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class fe{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=de(t,e);if(this.el=fe.createElement(l,o),le.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=le.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Zt)){const e=c[n++],o=i.getAttribute(t).split(Pt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?ye:"?"===a[1]?be:"@"===a[1]?me:ge}),i.removeAttribute(t)}else t.startsWith(Pt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(ie.test(i.tagName)){const t=i.textContent.split(Pt),e=t.length-1;if(e>0){i.textContent=Ft?Ft.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Gt()),le.nextNode(),s.push({type:2,index:++r});i.append(t[e],Gt())}}}else if(8===i.nodeType)if(i.data===Mt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Pt,t+1));)s.push({type:7,index:r}),t+=Pt.length-1}r++}}static createElement(t,e){const o=jt.createElement("template");return o.innerHTML=t,o}}function he(t,e,o=t,i){if(e===ne)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Vt(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=he(t,r._$AS(t,e.values),r,i)),e}class pe{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??jt).importNode(e,!0);le.currentNode=i;let r=le.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ue(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new ve(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=le.nextNode(),n++)}return le.currentNode=jt,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ue{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ae,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=he(this,t,e),Vt(t)?t===ae||null==t||""===t?(this._$AH!==ae&&this._$AR(),this._$AH=ae):t!==this._$AH&&t!==ne&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Yt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ae&&Vt(this._$AH)?this._$AA.nextSibling.data=t:this.$(jt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=fe.createElement(ce(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new pe(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=se.get(t.strings);return void 0===e&&se.set(t.strings,e=new fe(t)),e}T(t){Yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new ue(this.k(Gt()),this.k(Gt()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ge{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ae,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ae}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=he(this,t,e,0),n=!Vt(t)||t!==this._$AH&&t!==ne,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=he(this,i[o+a],e,a),s===ne&&(s=this._$AH[a]),n||=!Vt(s)||s!==this._$AH[a],s===ae?t=ae:t!==ae&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ye extends ge{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ae?void 0:t}}class be extends ge{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ae)}}class me extends ge{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=he(this,t,e,0)??ae)===ne)return;const o=this._$AH,i=t===ae&&o!==ae||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ae&&(o===ae||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ve{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){he(this,t)}}const xe=Bt.litHtmlPolyfillSupport;xe?.(fe,ue),(Bt.litHtmlVersions??=[]).push("3.1.0");
529
+ */,Ft=globalThis,Kt=Ft.trustedTypes,Bt=Kt?Kt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Zt="$lit$",Pt=`lit$${(Math.random()+"").slice(9)}$`,Mt="?"+Pt,Ht=`<${Mt}>`,jt=document,Gt=()=>jt.createComment(""),Vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Yt=Array.isArray,qt="[ \t\n\f\r]",Xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qt=/-->/g,Jt=/>/g,te=RegExp(`>|${qt}(?:([^\\s"'>=/]+)(${qt}*=${qt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ee=/'/g,oe=/"/g,ie=/^(?:script|style|textarea|title)$/i,re=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ne=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),se=new WeakMap,le=jt.createTreeWalker(jt,129);function ce(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Bt?Bt.createHTML(e):e}const de=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=Xt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===Xt?"!--"===l[1]?a=Qt:void 0!==l[1]?a=Jt:void 0!==l[2]?(ie.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=te):void 0!==l[3]&&(a=te):a===te?">"===l[0]?(a=r??Xt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?te:'"'===l[3]?oe:ee):a===oe||a===ee?a=te:a===Qt||a===Jt?a=Xt:(a=te,r=void 0);const f=a===te&&t[e+1].startsWith("/>")?" ":"";n+=a===Xt?o+Ht:c>=0?(i.push(s),o.slice(0,c)+Zt+o.slice(c)+Pt+f):o+Pt+(-2===c?e:f)}return[ce(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class fe{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=de(t,e);if(this.el=fe.createElement(l,o),le.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=le.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Zt)){const e=c[n++],o=i.getAttribute(t).split(Pt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?ye:"?"===a[1]?be:"@"===a[1]?me:ge}),i.removeAttribute(t)}else t.startsWith(Pt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(ie.test(i.tagName)){const t=i.textContent.split(Pt),e=t.length-1;if(e>0){i.textContent=Kt?Kt.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Gt()),le.nextNode(),s.push({type:2,index:++r});i.append(t[e],Gt())}}}else if(8===i.nodeType)if(i.data===Mt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Pt,t+1));)s.push({type:7,index:r}),t+=Pt.length-1}r++}}static createElement(t,e){const o=jt.createElement("template");return o.innerHTML=t,o}}function pe(t,e,o=t,i){if(e===ne)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Vt(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=pe(t,r._$AS(t,e.values),r,i)),e}class he{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??jt).importNode(e,!0);le.currentNode=i;let r=le.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ue(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new ve(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=le.nextNode(),n++)}return le.currentNode=jt,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ue{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ae,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pe(this,t,e),Vt(t)?t===ae||null==t||""===t?(this._$AH!==ae&&this._$AR(),this._$AH=ae):t!==this._$AH&&t!==ne&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Yt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ae&&Vt(this._$AH)?this._$AA.nextSibling.data=t:this.$(jt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=fe.createElement(ce(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new he(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=se.get(t.strings);return void 0===e&&se.set(t.strings,e=new fe(t)),e}T(t){Yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new ue(this.k(Gt()),this.k(Gt()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ge{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ae,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ae}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=pe(this,t,e,0),n=!Vt(t)||t!==this._$AH&&t!==ne,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=pe(this,i[o+a],e,a),s===ne&&(s=this._$AH[a]),n||=!Vt(s)||s!==this._$AH[a],s===ae?t=ae:t!==ae&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ye extends ge{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ae?void 0:t}}class be extends ge{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ae)}}class me extends ge{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=pe(this,t,e,0)??ae)===ne)return;const o=this._$AH,i=t===ae&&o!==ae||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ae&&(o===ae||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ve{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){pe(this,t)}}const xe=Ft.litHtmlPolyfillSupport;xe?.(fe,ue),(Ft.litHtmlVersions??=[]).push("3.1.0");
530
530
  /**
531
531
  * @license
532
532
  * Copyright 2020 Google LLC
533
533
  * SPDX-License-Identifier: BSD-3-Clause
534
534
  */
535
- const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$litStatic$:t,r:we}),Se=new Map,Ne=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,d=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Oe(n));)l+=r+e[++c],d=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),d){const t=a.join("$$lit$$");void 0===(e=Se.get(t))&&(a.raw=a,Se.set(t,e=a)),o=s}return t(e,...o)})(re);var Ce;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Ce||(Ce={}));var ke=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ie extends e.FtLitElement{constructor(){super(...arguments),this.variant=Ce.body1}render(){return this.element?Ne`
536
- <${$e(this.element)}
535
+ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$litStatic$:t,r:we}),$e=new Map,Ne=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,d=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Oe(n));)l+=r+e[++c],d=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),d){const t=a.join("$$lit$$");void 0===(e=$e.get(t))&&(a.raw=a,$e.set(t,e=a)),o=s}return t(e,...o)})(re);var Ce;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Ce||(Ce={}));var Ie=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ke extends e.FtLitElement{constructor(){super(...arguments),this.variant=Ce.body1}render(){return this.element?Ne`
536
+ <${Se(this.element)}
537
537
  class="ft-typography ft-typography--${this.variant}">
538
538
  <slot></slot>
539
- </${$e(this.element)}>
539
+ </${Se(this.element)}>
540
540
  `:Ne`
541
541
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
542
- `}}Ie.styles=[ft,ht,pt,ut,gt,yt,bt,mt,vt,xt,wt,...Ot],ke([i.property()],Ie.prototype,"element",void 0),ke([i.property()],Ie.prototype,"variant",void 0),e.customElement("ft-typography")(Ie);var Ee=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Re extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return o.html`
542
+ `}}ke.styles=[ft,pt,ht,ut,gt,yt,bt,mt,vt,xt,wt,...Ot],Ie([i.property()],ke.prototype,"element",void 0),Ie([i.property()],ke.prototype,"variant",void 0),e.customElement("ft-typography")(ke);var Ee=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Re extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return o.html`
543
543
  <style>
544
544
  .ft-ripple .ft-ripple--effect {
545
545
  left: ${this.originX}px;
@@ -550,7 +550,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
550
550
  <div class="ft-ripple--background"></div>
551
551
  <div class="ft-ripple--effect"></div>
552
552
  </div>
553
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Re.elementDefinitions={},Re.styles=x,Ee([i.property({type:Boolean})],Re.prototype,"primary",void 0),Ee([i.property({type:Boolean})],Re.prototype,"secondary",void 0),Ee([i.property({type:Boolean})],Re.prototype,"unbounded",void 0),Ee([i.property({type:Boolean})],Re.prototype,"activated",void 0),Ee([i.property({type:Boolean})],Re.prototype,"selected",void 0),Ee([i.property({type:Boolean})],Re.prototype,"disabled",void 0),Ee([i.state()],Re.prototype,"hovered",void 0),Ee([i.state()],Re.prototype,"focused",void 0),Ee([i.state()],Re.prototype,"pressed",void 0),Ee([i.state()],Re.prototype,"rippling",void 0),Ee([i.state()],Re.prototype,"originX",void 0),Ee([i.state()],Re.prototype,"originY",void 0),Ee([i.query(".ft-ripple")],Re.prototype,"ripple",void 0),Ee([i.query(".ft-ripple--effect")],Re.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Re);const Ue=e.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),Le=e.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Te=e.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),We=e.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),_e=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),De=e.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),Ae=o.css`
553
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Re.elementDefinitions={},Re.styles=x,Ee([i.property({type:Boolean})],Re.prototype,"primary",void 0),Ee([i.property({type:Boolean})],Re.prototype,"secondary",void 0),Ee([i.property({type:Boolean})],Re.prototype,"unbounded",void 0),Ee([i.property({type:Boolean})],Re.prototype,"activated",void 0),Ee([i.property({type:Boolean})],Re.prototype,"selected",void 0),Ee([i.property({type:Boolean})],Re.prototype,"disabled",void 0),Ee([i.state()],Re.prototype,"hovered",void 0),Ee([i.state()],Re.prototype,"focused",void 0),Ee([i.state()],Re.prototype,"pressed",void 0),Ee([i.state()],Re.prototype,"rippling",void 0),Ee([i.state()],Re.prototype,"originX",void 0),Ee([i.state()],Re.prototype,"originY",void 0),Ee([i.query(".ft-ripple")],Re.prototype,"ripple",void 0),Ee([i.query(".ft-ripple--effect")],Re.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Re);const Ue=e.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),Le=e.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),We=e.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),Te=e.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),De=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),_e=e.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),Ae=o.css`
554
554
  .ft-tooltip--container {
555
555
  display: block;
556
556
  }
@@ -565,21 +565,21 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
565
565
  box-sizing: border-box;
566
566
  overflow: hidden;
567
567
  width: max-content;
568
- max-width: ${De};
568
+ max-width: ${_e};
569
569
  text-align: center;
570
570
  padding: ${Ue};
571
- z-index: ${We};
571
+ z-index: ${Te};
572
572
  }
573
573
 
574
574
  .ft-tooltip--content {
575
575
  padding: 4px 8px;
576
- border-radius: ${_e};
577
- background-color: ${Te};
576
+ border-radius: ${De};
577
+ background-color: ${We};
578
578
  color: ${Le};
579
579
  position: relative;
580
580
  word-break: break-word;
581
581
  }
582
- `,ze=["start","end"],Be=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ze[0],e+"-"+ze[1])),[]),Fe=Math.min,Ke=Math.max,Ze=Math.round,Pe=t=>({x:t,y:t}),Me={left:"right",right:"left",bottom:"top",top:"bottom"},He={start:"end",end:"start"};function je(t,e,o){return Ke(t,Fe(e,o))}function Ge(t,e){return"function"==typeof t?t(e):t}function Ve(t){return t.split("-")[0]}function Ye(t){return t.split("-")[1]}function qe(t){return"x"===t?"y":"x"}function Xe(t){return"y"===t?"height":"width"}function Qe(t){return["top","bottom"].includes(Ve(t))?"y":"x"}function Je(t){return qe(Qe(t))}function to(t){return t.replace(/left|right|bottom|top/g,(t=>Me[t]))}function eo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function oo(t,e,o){let{reference:i,floating:r}=t;const n=Qe(e),a=Je(e),s=Xe(a),l=Ve(e),c="y"===n,d=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,h=i[s]/2-r[s]/2;let p;switch(l){case"top":p={x:d,y:i.y-r.height};break;case"bottom":p={x:d,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:f};break;case"left":p={x:i.x-r.width,y:f};break;default:p={x:i.x,y:i.y}}switch(Ye(e)){case"start":p[a]-=h*(o&&c?-1:1);break;case"end":p[a]+=h*(o&&c?-1:1)}return p}async function io(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=Ge(e,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(p),g=s[h?"floating"===f?"reference":"floating":f],y=eo(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===f?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=eo(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(y.top-x.top+u.top)/v.y,bottom:(x.bottom-y.bottom+u.bottom)/v.y,left:(y.left-x.left+u.left)/v.x,right:(x.right-y.right+u.right)/v.x}}function ro(t,e,o){return(t?[...o.filter((e=>Ye(e)===t)),...o.filter((e=>Ye(e)!==t))]:o.filter((t=>Ve(t)===t))).filter((o=>!t||(Ye(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>He[t]))}(o)!==o)))}const no=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:f,allowedPlacements:h=Be,autoAlignment:p=!0,...u}=Ge(t,e),g=void 0!==f||h===Be?ro(f||null,p,h):h,y=await io(e,u),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Ye(t),r=Je(t),n=Xe(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=to(a)),[a,to(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[y[Ve(m)],y[v[0]],y[v[1]]],w=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],O=g[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const $=w.map((t=>{const e=Ye(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),S=$.filter((t=>t[2].slice(0,Ye(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=S[0])?void 0:r[0])||$[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function ao(t){return co(t)?(t.nodeName||"").toLowerCase():"#document"}function so(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function lo(t){var e;return null==(e=(co(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function co(t){return t instanceof Node||t instanceof so(t).Node}function fo(t){return t instanceof Element||t instanceof so(t).Element}function ho(t){return t instanceof HTMLElement||t instanceof so(t).HTMLElement}function po(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof so(t).ShadowRoot)}function uo(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=vo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function go(t){return["table","td","th"].includes(ao(t))}function yo(t){const e=bo(),o=vo(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function bo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function mo(t){return["html","body","#document"].includes(ao(t))}function vo(t){return so(t).getComputedStyle(t)}function xo(t){return fo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wo(t){if("html"===ao(t))return t;const e=t.assignedSlot||t.parentNode||po(t)&&t.host||lo(t);return po(e)?e.host:e}function Oo(t){const e=wo(t);return mo(e)?t.ownerDocument?t.ownerDocument.body:t.body:ho(e)&&uo(e)?e:Oo(e)}function $o(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Oo(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=so(r);return n?e.concat(a,a.visualViewport||[],uo(r)?r:[],a.frameElement&&o?$o(a.frameElement):[]):e.concat(r,$o(r,[],o))}function So(t){const e=vo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=ho(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Ze(o)!==n||Ze(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function No(t){return fo(t)?t:t.contextElement}function Co(t){const e=No(t);if(!ho(e))return Pe(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=So(e);let a=(n?Ze(o.width):o.width)/i,s=(n?Ze(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ko=Pe(0);function Io(t){const e=so(t);return bo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ko}function Eo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=No(t);let a=Pe(1);e&&(i?fo(i)&&(a=Co(i)):a=Co(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==so(t))&&e}(n,o,i)?Io(n):Pe(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(n){const t=so(n),e=i&&fo(i)?so(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Co(o),e=o.getBoundingClientRect(),i=vo(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,f*=t.y,l+=r,c+=n,o=so(o).frameElement}}return eo({width:d,height:f,x:l,y:c})}function Ro(t){return Eo(lo(t)).left+xo(t).scrollLeft}function Uo(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=so(t),i=lo(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=bo();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=lo(t),o=xo(t),i=t.ownerDocument.body,r=Ke(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Ke(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+Ro(t);const s=-o.scrollTop;return"rtl"===vo(i).direction&&(a+=Ke(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(lo(t));else if(fo(e))i=function(t,e){const o=Eo(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=ho(t)?Co(t):Pe(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=Io(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return eo(i)}function Lo(t,e){const o=wo(t);return!(o===e||!fo(o)||mo(o))&&("fixed"===vo(o).position||Lo(o,e))}function To(t,e,o){const i=ho(e),r=lo(e),n="fixed"===o,a=Eo(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Pe(0);if(i||!i&&!n)if(("body"!==ao(e)||uo(r))&&(s=xo(e)),i){const t=Eo(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Ro(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Wo(t,e){return ho(t)&&"fixed"!==vo(t).position?e?e(t):t.offsetParent:null}function _o(t,e){const o=so(t);if(!ho(t))return o;let i=Wo(t,e);for(;i&&go(i)&&"static"===vo(i).position;)i=Wo(i,e);return i&&("html"===ao(i)||"body"===ao(i)&&"static"===vo(i).position&&!yo(i))?o:i||function(t){let e=wo(t);for(;ho(e)&&!mo(e);){if(yo(e))return e;e=wo(e)}return null}(t)||o}const Do={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=ho(o),n=lo(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Pe(1);const l=Pe(0);if((r||!r&&"fixed"!==i)&&(("body"!==ao(o)||uo(n))&&(a=xo(o)),ho(o))){const t=Eo(o);s=Co(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:lo,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=$o(t,[],!1).filter((t=>fo(t)&&"body"!==ao(t))),r=null;const n="fixed"===vo(t).position;let a=n?wo(t):t;for(;fo(a)&&!mo(a);){const e=vo(a),o=yo(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||uo(a)&&!o&&Lo(t,a))?i=i.filter((t=>t!==a)):r=e,a=wo(a)}return e.set(t,i),i}(e,this._c):[].concat(o),a=[...n,i],s=a[0],l=a.reduce(((t,o)=>{const i=Uo(e,o,r);return t.top=Ke(i.top,t.top),t.right=Fe(i.right,t.right),t.bottom=Fe(i.bottom,t.bottom),t.left=Ke(i.left,t.left),t}),Uo(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:_o,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||_o,n=this.getDimensions;return{reference:To(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return So(t)},getScale:Co,isElement:fo,isRTL:function(t){return"rtl"===vo(t).direction}},Ao=(t,e,o)=>{const i=new Map,r={platform:Do,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:f}=oo(c,i,l),h=i,p={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:y,y:b,data:m,reset:v}=await g({x:d,y:f,initialPlacement:i,placement:h,strategy:r,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=y?y:d,f=null!=b?b:f,p={...p,[n]:{...p[n],...m}},v&&u<=50&&(u++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:f}=oo(c,h,l))),o=-1)}return{x:d,y:f,placement:h,strategy:r,middlewareData:p}})(t,e,{...r,platform:n})};function zo(t){return function(t){for(let e=t;e;e=Bo(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Bo(t);e;e=Bo(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Bo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Fo,Ko,Zo,Po=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mo extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return o.html`
582
+ `,ze=["start","end"],Fe=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ze[0],e+"-"+ze[1])),[]),Ke=Math.min,Be=Math.max,Ze=Math.round,Pe=t=>({x:t,y:t}),Me={left:"right",right:"left",bottom:"top",top:"bottom"},He={start:"end",end:"start"};function je(t,e,o){return Be(t,Ke(e,o))}function Ge(t,e){return"function"==typeof t?t(e):t}function Ve(t){return t.split("-")[0]}function Ye(t){return t.split("-")[1]}function qe(t){return"x"===t?"y":"x"}function Xe(t){return"y"===t?"height":"width"}function Qe(t){return["top","bottom"].includes(Ve(t))?"y":"x"}function Je(t){return qe(Qe(t))}function to(t){return t.replace(/left|right|bottom|top/g,(t=>Me[t]))}function eo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function oo(t,e,o){let{reference:i,floating:r}=t;const n=Qe(e),a=Je(e),s=Xe(a),l=Ve(e),c="y"===n,d=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,p=i[s]/2-r[s]/2;let h;switch(l){case"top":h={x:d,y:i.y-r.height};break;case"bottom":h={x:d,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:f};break;case"left":h={x:i.x-r.width,y:f};break;default:h={x:i.x,y:i.y}}switch(Ye(e)){case"start":h[a]-=p*(o&&c?-1:1);break;case"end":h[a]+=p*(o&&c?-1:1)}return h}async function io(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Ge(e,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=s[p?"floating"===f?"reference":"floating":f],y=eo(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===f?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=eo(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(y.top-x.top+u.top)/v.y,bottom:(x.bottom-y.bottom+u.bottom)/v.y,left:(y.left-x.left+u.left)/v.x,right:(x.right-y.right+u.right)/v.x}}function ro(t,e,o){return(t?[...o.filter((e=>Ye(e)===t)),...o.filter((e=>Ye(e)!==t))]:o.filter((t=>Ve(t)===t))).filter((o=>!t||(Ye(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>He[t]))}(o)!==o)))}const no=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:f,allowedPlacements:p=Fe,autoAlignment:h=!0,...u}=Ge(t,e),g=void 0!==f||p===Fe?ro(f||null,h,p):p,y=await io(e,u),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Ye(t),r=Je(t),n=Xe(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=to(a)),[a,to(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[y[Ve(m)],y[v[0]],y[v[1]]],w=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],O=g[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ye(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),$=S.filter((t=>t[2].slice(0,Ye(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=$[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function ao(t){return co(t)?(t.nodeName||"").toLowerCase():"#document"}function so(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function lo(t){var e;return null==(e=(co(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function co(t){return t instanceof Node||t instanceof so(t).Node}function fo(t){return t instanceof Element||t instanceof so(t).Element}function po(t){return t instanceof HTMLElement||t instanceof so(t).HTMLElement}function ho(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof so(t).ShadowRoot)}function uo(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=vo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function go(t){return["table","td","th"].includes(ao(t))}function yo(t){const e=bo(),o=vo(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function bo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function mo(t){return["html","body","#document"].includes(ao(t))}function vo(t){return so(t).getComputedStyle(t)}function xo(t){return fo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wo(t){if("html"===ao(t))return t;const e=t.assignedSlot||t.parentNode||ho(t)&&t.host||lo(t);return ho(e)?e.host:e}function Oo(t){const e=wo(t);return mo(e)?t.ownerDocument?t.ownerDocument.body:t.body:po(e)&&uo(e)?e:Oo(e)}function So(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Oo(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=so(r);return n?e.concat(a,a.visualViewport||[],uo(r)?r:[],a.frameElement&&o?So(a.frameElement):[]):e.concat(r,So(r,[],o))}function $o(t){const e=vo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=po(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Ze(o)!==n||Ze(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function No(t){return fo(t)?t:t.contextElement}function Co(t){const e=No(t);if(!po(e))return Pe(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=$o(e);let a=(n?Ze(o.width):o.width)/i,s=(n?Ze(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Io=Pe(0);function ko(t){const e=so(t);return bo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Io}function Eo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=No(t);let a=Pe(1);e&&(i?fo(i)&&(a=Co(i)):a=Co(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==so(t))&&e}(n,o,i)?ko(n):Pe(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(n){const t=so(n),e=i&&fo(i)?so(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Co(o),e=o.getBoundingClientRect(),i=vo(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,f*=t.y,l+=r,c+=n,o=so(o).frameElement}}return eo({width:d,height:f,x:l,y:c})}function Ro(t){return Eo(lo(t)).left+xo(t).scrollLeft}function Uo(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=so(t),i=lo(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=bo();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=lo(t),o=xo(t),i=t.ownerDocument.body,r=Be(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Be(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+Ro(t);const s=-o.scrollTop;return"rtl"===vo(i).direction&&(a+=Be(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(lo(t));else if(fo(e))i=function(t,e){const o=Eo(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=po(t)?Co(t):Pe(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=ko(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return eo(i)}function Lo(t,e){const o=wo(t);return!(o===e||!fo(o)||mo(o))&&("fixed"===vo(o).position||Lo(o,e))}function Wo(t,e,o){const i=po(e),r=lo(e),n="fixed"===o,a=Eo(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Pe(0);if(i||!i&&!n)if(("body"!==ao(e)||uo(r))&&(s=xo(e)),i){const t=Eo(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Ro(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function To(t,e){return po(t)&&"fixed"!==vo(t).position?e?e(t):t.offsetParent:null}function Do(t,e){const o=so(t);if(!po(t))return o;let i=To(t,e);for(;i&&go(i)&&"static"===vo(i).position;)i=To(i,e);return i&&("html"===ao(i)||"body"===ao(i)&&"static"===vo(i).position&&!yo(i))?o:i||function(t){let e=wo(t);for(;po(e)&&!mo(e);){if(yo(e))return e;e=wo(e)}return null}(t)||o}const _o={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=po(o),n=lo(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Pe(1);const l=Pe(0);if((r||!r&&"fixed"!==i)&&(("body"!==ao(o)||uo(n))&&(a=xo(o)),po(o))){const t=Eo(o);s=Co(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:lo,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=So(t,[],!1).filter((t=>fo(t)&&"body"!==ao(t))),r=null;const n="fixed"===vo(t).position;let a=n?wo(t):t;for(;fo(a)&&!mo(a);){const e=vo(a),o=yo(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||uo(a)&&!o&&Lo(t,a))?i=i.filter((t=>t!==a)):r=e,a=wo(a)}return e.set(t,i),i}(e,this._c):[].concat(o),a=[...n,i],s=a[0],l=a.reduce(((t,o)=>{const i=Uo(e,o,r);return t.top=Be(i.top,t.top),t.right=Ke(i.right,t.right),t.bottom=Ke(i.bottom,t.bottom),t.left=Be(i.left,t.left),t}),Uo(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Do,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Do,n=this.getDimensions;return{reference:Wo(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return $o(t)},getScale:Co,isElement:fo,isRTL:function(t){return"rtl"===vo(t).direction}},Ao=(t,e,o)=>{const i=new Map,r={platform:_o,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:f}=oo(c,i,l),p=i,h={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:y,y:b,data:m,reset:v}=await g({x:d,y:f,initialPlacement:i,placement:p,strategy:r,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=y?y:d,f=null!=b?b:f,h={...h,[n]:{...h[n],...m}},v&&u<=50&&(u++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:f}=oo(c,p,l))),o=-1)}return{x:d,y:f,placement:p,strategy:r,middlewareData:h}})(t,e,{...r,platform:n})};function zo(t){return function(t){for(let e=t;e;e=Fo(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Fo(t);e;e=Fo(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Fo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Ko,Bo,Zo,Po=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mo extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return o.html`
583
583
  <div part="container"
584
584
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
585
585
  @mouseenter=${this.onHover}
@@ -597,12 +597,12 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
597
597
  </div>
598
598
  </div>
599
599
  </div>
600
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",async function(t,e,o){return Ao(t,e,{platform:{...Do,getOffsetParent:t=>Do.getOffsetParent(t,zo)},middleware:[(i={crossAxis:!0},void 0===i&&(i={}),{name:"shift",options:i,async fn(t){const{x:e,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=Ge(i,t),c={x:e,y:o},d=await io(t,l),f=Qe(Ve(r)),h=qe(f);let p=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";p=je(p+d["y"===h?"top":"left"],p,p-d[t])}if(a){const t="y"===f?"bottom":"right";u=je(u+d["y"===f?"top":"left"],u,u-d[t])}const g=s.fn({...t,[h]:p,[f]:u});return{...g,data:{x:g.x-e,y:g.y-o}}}}),no({allowedPlacements:[o]})]});var i}(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Mo.elementDefinitions={"ft-typography":Ie},Mo.styles=Ae,Po([i.property()],Mo.prototype,"text",void 0),Po([i.property({type:Boolean})],Mo.prototype,"manual",void 0),Po([i.property({type:Boolean})],Mo.prototype,"inline",void 0),Po([i.property({type:Number})],Mo.prototype,"delay",void 0),Po([i.property()],Mo.prototype,"position",void 0),Po([i.queryAssignedNodes()],Mo.prototype,"slotNodes",void 0),Po([i.query(".ft-tooltip--container")],Mo.prototype,"container",void 0),Po([i.query(".ft-tooltip")],Mo.prototype,"tooltip",void 0),Po([i.query(".ft-tooltip--content")],Mo.prototype,"tooltipContent",void 0),Po([i.state()],Mo.prototype,"visible",void 0),Po([i.eventOptions({passive:!0})],Mo.prototype,"onTouch",null),Po([i.eventOptions({passive:!0})],Mo.prototype,"onHover",null),Po([i.eventOptions({passive:!0})],Mo.prototype,"onOut",null),Po([i.eventOptions({passive:!0})],Mo.prototype,"onClick",null),e.customElement("ft-tooltip")(Mo),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(Fo||(Fo={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Ko||(Ko={})),new Map([...["abw"].map((t=>[t,Ko.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ko.AUDIO])),...["avi"].map((t=>[t,Ko.AVI])),...["chm","xhs"].map((t=>[t,Ko.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ko.CODE])),...["csv"].map((t=>[t,Ko.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ko.DITA])),...["epub"].map((t=>[t,Ko.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ko.EXCEL])),...["flac"].map((t=>[t,Ko.FLAC])),...["gif"].map((t=>[t,Ko.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ko.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ko.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,Ko.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ko.JPEG])),...["json"].map((t=>[t,Ko.JSON])),...["m4a","m4p"].map((t=>[t,Ko.M4A])),...["mov","qt"].map((t=>[t,Ko.MOV])),...["mp3"].map((t=>[t,Ko.MP3])),...["mp4","m4v"].map((t=>[t,Ko.MP4])),...["ogg","oga"].map((t=>[t,Ko.OGG])),...["pdf","ps"].map((t=>[t,Ko.PDF])),...["png"].map((t=>[t,Ko.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ko.POWERPOINT])),...["rar"].map((t=>[t,Ko.RAR])),...["stp"].map((t=>[t,Ko.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ko.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ko.VIDEO])),...["wav"].map((t=>[t,Ko.WAV])),...["wma"].map((t=>[t,Ko.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ko.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ko.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ko.YAML])),...["zip"].map((t=>[t,Ko.ZIP]))]),Ko.ABW,Ko.AUDIO,Ko.AVI,Ko.CHM,Ko.CODE,Ko.CSV,Ko.DITA,Ko.EPUB,Ko.EXCEL,Ko.FLAC,Ko.GIF,Ko.GZIP,Ko.HTML,Ko.IMAGE,Ko.JPEG,Ko.JSON,Ko.M4A,Ko.MOV,Ko.MP3,Ko.MP4,Ko.OGG,Ko.PDF,Ko.PNG,Ko.POWERPOINT,Ko.RAR,Ko.STP,Ko.TEXT,Ko.UNKNOWN,Ko.VIDEO,Ko.WAV,Ko.WMA,Ko.WORD,Ko.XML,Ko.YAML,Ko.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Zo||(Zo={}));var Ho=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class jo extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=o.nothing}render(){const t=this.variant&&Object.values(Zo).includes(this.variant)?this.variant:Zo.fluid_topics,e=t!==Zo.material||!!this.value;return o.html`
600
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",async function(t,e,o){return Ao(t,e,{platform:{..._o,getOffsetParent:t=>_o.getOffsetParent(t,zo)},middleware:[(i={crossAxis:!0},void 0===i&&(i={}),{name:"shift",options:i,async fn(t){const{x:e,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=Ge(i,t),c={x:e,y:o},d=await io(t,l),f=Qe(Ve(r)),p=qe(f);let h=c[p],u=c[f];if(n){const t="y"===p?"bottom":"right";h=je(h+d["y"===p?"top":"left"],h,h-d[t])}if(a){const t="y"===f?"bottom":"right";u=je(u+d["y"===f?"top":"left"],u,u-d[t])}const g=s.fn({...t,[p]:h,[f]:u});return{...g,data:{x:g.x-e,y:g.y-o}}}}),no({allowedPlacements:[o]})]});var i}(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Mo.elementDefinitions={"ft-typography":ke},Mo.styles=Ae,Po([i.property()],Mo.prototype,"text",void 0),Po([i.property({type:Boolean})],Mo.prototype,"manual",void 0),Po([i.property({type:Boolean})],Mo.prototype,"inline",void 0),Po([i.property({type:Number})],Mo.prototype,"delay",void 0),Po([i.property()],Mo.prototype,"position",void 0),Po([i.queryAssignedNodes()],Mo.prototype,"slotNodes",void 0),Po([i.query(".ft-tooltip--container")],Mo.prototype,"container",void 0),Po([i.query(".ft-tooltip")],Mo.prototype,"tooltip",void 0),Po([i.query(".ft-tooltip--content")],Mo.prototype,"tooltipContent",void 0),Po([i.state()],Mo.prototype,"visible",void 0),Po([i.eventOptions({passive:!0})],Mo.prototype,"onTouch",null),Po([i.eventOptions({passive:!0})],Mo.prototype,"onHover",null),Po([i.eventOptions({passive:!0})],Mo.prototype,"onOut",null),Po([i.eventOptions({passive:!0})],Mo.prototype,"onClick",null),e.customElement("ft-tooltip")(Mo),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(Ko||(Ko={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Bo||(Bo={})),new Map([...["abw"].map((t=>[t,Bo.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Bo.AUDIO])),...["avi"].map((t=>[t,Bo.AVI])),...["chm","xhs"].map((t=>[t,Bo.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Bo.CODE])),...["csv"].map((t=>[t,Bo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Bo.DITA])),...["epub"].map((t=>[t,Bo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Bo.EXCEL])),...["flac"].map((t=>[t,Bo.FLAC])),...["gif"].map((t=>[t,Bo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Bo.GZIP])),...["html","htm","xhtml"].map((t=>[t,Bo.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,Bo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Bo.JPEG])),...["json"].map((t=>[t,Bo.JSON])),...["m4a","m4p"].map((t=>[t,Bo.M4A])),...["mov","qt"].map((t=>[t,Bo.MOV])),...["mp3"].map((t=>[t,Bo.MP3])),...["mp4","m4v"].map((t=>[t,Bo.MP4])),...["ogg","oga"].map((t=>[t,Bo.OGG])),...["pdf","ps"].map((t=>[t,Bo.PDF])),...["png"].map((t=>[t,Bo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Bo.POWERPOINT])),...["rar"].map((t=>[t,Bo.RAR])),...["stp"].map((t=>[t,Bo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Bo.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Bo.VIDEO])),...["wav"].map((t=>[t,Bo.WAV])),...["wma"].map((t=>[t,Bo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Bo.WORD])),...["xml","xsl","rdf"].map((t=>[t,Bo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Bo.YAML])),...["zip"].map((t=>[t,Bo.ZIP]))]),Bo.ABW,Bo.AUDIO,Bo.AVI,Bo.CHM,Bo.CODE,Bo.CSV,Bo.DITA,Bo.EPUB,Bo.EXCEL,Bo.FLAC,Bo.GIF,Bo.GZIP,Bo.HTML,Bo.IMAGE,Bo.JPEG,Bo.JSON,Bo.M4A,Bo.MOV,Bo.MP3,Bo.MP4,Bo.OGG,Bo.PDF,Bo.PNG,Bo.POWERPOINT,Bo.RAR,Bo.STP,Bo.TEXT,Bo.UNKNOWN,Bo.VIDEO,Bo.WAV,Bo.WMA,Bo.WORD,Bo.XML,Bo.YAML,Bo.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Zo||(Zo={}));var Ho=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class jo extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=o.nothing}render(){const t=this.variant&&Object.values(Zo).includes(this.variant)?this.variant:Zo.fluid_topics,e=t!==Zo.material||!!this.value;return o.html`
601
601
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
602
602
  ${n.unsafeHTML(this.resolvedIcon)}
603
603
  <slot ?hidden=${e}></slot>
604
604
  </i>
605
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Zo.file_format:this.resolvedIcon=null!==(t=Ko[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Zo.material:this.resolvedIcon=this.value||o.nothing;break;default:this.resolvedIcon=null!==(e=Fo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}jo.elementDefinitions={},jo.styles=Ct,Ho([i.property()],jo.prototype,"variant",void 0),Ho([i.property()],jo.prototype,"value",void 0),Ho([i.state()],jo.prototype,"resolvedIcon",void 0),Ho([i.query("slot")],jo.prototype,"slottedContent",void 0),e.customElement("ft-icon")(jo);const Go={borderRadiusLeft:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",e.designSystemVariables.borderRadiusL),borderRadiusRight:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",e.designSystemVariables.borderRadiusL),borderWidthLeft:e.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:e.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:e.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Vo=o.css`
605
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Zo.file_format:this.resolvedIcon=null!==(t=Bo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Zo.material:this.resolvedIcon=this.value||o.nothing;break;default:this.resolvedIcon=null!==(e=Ko[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}jo.elementDefinitions={},jo.styles=Ct,Ho([i.property()],jo.prototype,"variant",void 0),Ho([i.property()],jo.prototype,"value",void 0),Ho([i.state()],jo.prototype,"resolvedIcon",void 0),Ho([i.query("slot")],jo.prototype,"slottedContent",void 0),e.customElement("ft-icon")(jo);const Go={borderRadiusLeft:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",e.designSystemVariables.borderRadiusL),borderRadiusRight:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",e.designSystemVariables.borderRadiusL),borderWidthLeft:e.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:e.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:e.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Vo=o.css`
606
606
  .ft-switch-option {
607
607
  position: relative;
608
608
  display: inline-block;
@@ -616,20 +616,20 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
616
616
  }
617
617
 
618
618
  .ft-switch-option--content {
619
- --ft-switch-option-internal-line-height: calc(${Dt.fontSize} + 2px);
620
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Dt.iconSize});
619
+ --ft-switch-option-internal-line-height: calc(${_t.fontSize} + 2px);
620
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${_t.iconSize});
621
621
 
622
622
  border-style: solid;
623
- border-color: ${Dt.borderColor};
623
+ border-color: ${_t.borderColor};
624
624
  border-width: ${Go.borderWidthVertical} ${Go.borderWidthRight} ${Go.borderWidthVertical} ${Go.borderWidthLeft};
625
625
  border-radius: ${Go.borderRadiusLeft} ${Go.borderRadiusRight} ${Go.borderRadiusRight} ${Go.borderRadiusLeft};
626
626
  display: flex;
627
627
  align-items: center;
628
628
  justify-content: center;
629
629
  overflow: hidden;
630
- ${e.setVariable(Nt.size,Dt.iconSize)};
630
+ ${e.setVariable(Nt.size,_t.iconSize)};
631
631
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
632
- background-color: ${Dt.backgroundColor};
632
+ background-color: ${_t.backgroundColor};
633
633
  -webkit-mask-image: radial-gradient(white, black);
634
634
  }
635
635
 
@@ -638,7 +638,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
638
638
  }
639
639
 
640
640
  .ft-switch-option--selected .ft-switch-option--content:before {
641
- background-color: ${Dt.selectedBackgroundColor};
641
+ background-color: ${_t.selectedBackgroundColor};
642
642
  border-radius: ${Go.borderRadiusLeft} ${Go.borderRadiusRight} ${Go.borderRadiusRight} ${Go.borderRadiusLeft};
643
643
  position: absolute;
644
644
  inset: 0;
@@ -648,18 +648,18 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
648
648
  }
649
649
 
650
650
  .ft-switch-option--label {
651
- color: ${Dt.textColor};
651
+ color: ${_t.textColor};
652
652
  overflow: hidden;
653
653
  white-space: nowrap;
654
654
  text-overflow: ellipsis;
655
655
  display: block;
656
656
  margin: 0 8px;
657
- ${e.setVariable(dt.fontSize,Dt.fontSize)};
657
+ ${e.setVariable(dt.fontSize,_t.fontSize)};
658
658
  ${e.setVariable(dt.lineHeight,"var(--ft-switch-option-internal-content-height)")}
659
659
  }
660
660
 
661
661
  .ft-switch-option--selected .ft-switch-option--label {
662
- color: ${Dt.selectedTextColor};
662
+ color: ${_t.selectedTextColor};
663
663
  }
664
664
 
665
665
  .ft-switch-option--label[hidden] {
@@ -667,7 +667,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
667
667
  }
668
668
 
669
669
  .ft-switch-option--ripple {
670
- ${e.setVariable(p.color,Dt.rippleColor)};
670
+ ${e.setVariable(h.color,_t.rippleColor)};
671
671
  }
672
672
 
673
673
  ft-icon, ft-ripple, ft-typography {
@@ -680,11 +680,11 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
680
680
 
681
681
  ft-icon {
682
682
  flex-shrink: 0;
683
- color: ${Dt.iconColor};
683
+ color: ${_t.iconColor};
684
684
  }
685
685
 
686
686
  .ft-switch-option--selected ft-icon {
687
- color: ${Dt.selectedTextColor};
687
+ color: ${_t.selectedTextColor};
688
688
  }
689
689
  `;var Yo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class qo extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Xo extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Qo extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Xo(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(o.html`
690
690
  <label part="label" for="input" class=${r.classMap(t)}
@@ -710,7 +710,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
710
710
  </ft-tooltip>
711
711
  `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new qo(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?o.html`
712
712
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
713
- `:o.nothing}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Qo.elementDefinitions={"ft-ripple":Re,"ft-typography":Ie,"ft-tooltip":Mo,"ft-icon":jo},Qo.styles=[e.safariEllipsisFix,Vo],Yo([i.property()],Qo.prototype,"value",void 0),Yo([i.property()],Qo.prototype,"icon",void 0),Yo([i.property()],Qo.prototype,"iconVariant",void 0),Yo([i.property()],Qo.prototype,"label",void 0),Yo([i.property()],Qo.prototype,"tooltipPosition",void 0),Yo([i.property({type:Boolean,reflect:!0})],Qo.prototype,"selected",void 0),Yo([i.property({type:Boolean})],Qo.prototype,"trailingIcon",void 0),Yo([i.property({type:Boolean})],Qo.prototype,"unselectable",void 0),Yo([i.query(".ft-switch-option--content slot")],Qo.prototype,"slottedContent",void 0),Yo([i.query(".ft-switch-option--input")],Qo.prototype,"input",void 0);var Jo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ti extends CustomEvent{constructor(t){super("change",{detail:t})}}class ei extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return o.html`
713
+ `:o.nothing}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Qo.elementDefinitions={"ft-ripple":Re,"ft-typography":ke,"ft-tooltip":Mo,"ft-icon":jo},Qo.styles=[e.safariEllipsisFix,Vo],Yo([i.property()],Qo.prototype,"value",void 0),Yo([i.property()],Qo.prototype,"icon",void 0),Yo([i.property()],Qo.prototype,"iconVariant",void 0),Yo([i.property()],Qo.prototype,"label",void 0),Yo([i.property()],Qo.prototype,"tooltipPosition",void 0),Yo([i.property({type:Boolean,reflect:!0})],Qo.prototype,"selected",void 0),Yo([i.property({type:Boolean})],Qo.prototype,"trailingIcon",void 0),Yo([i.property({type:Boolean})],Qo.prototype,"unselectable",void 0),Yo([i.query(".ft-switch-option--content slot")],Qo.prototype,"slottedContent",void 0),Yo([i.query(".ft-switch-option--input")],Qo.prototype,"input",void 0);var Jo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ti extends CustomEvent{constructor(t){super("change",{detail:t})}}class ei extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return o.html`
714
714
  <div @keydown=${this.onKeyDown} tabindex="0" class="${r.classMap(t)}">
715
715
  <slot @slotchange=${this.onSlotchange}
716
716
  @option-change=${this.onOptionChangeByScript}
@@ -723,8 +723,8 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
723
723
  }
724
724
 
725
725
  .ft-switch {
726
- border-radius: ${Dt.borderRadius};
727
- outline-color: ${Dt.outlineColor};
726
+ border-radius: ${_t.borderRadius};
727
+ outline-color: ${_t.outlineColor};
728
728
  }
729
729
 
730
730
  .ft-switch slot {
@@ -739,12 +739,12 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
739
739
  }
740
740
 
741
741
  .ft-switch slot::slotted(ft-switch-option:first-child) {
742
- ${e.setVariable(Go.borderRadiusLeft,Dt.borderRadius)};
742
+ ${e.setVariable(Go.borderRadiusLeft,_t.borderRadius)};
743
743
  ${e.setVariable(Go.borderWidthLeft,"1px")};
744
744
  }
745
745
 
746
746
  .ft-switch slot::slotted(ft-switch-option:last-child) {
747
- ${e.setVariable(Go.borderRadiusRight,Dt.borderRadius)};
747
+ ${e.setVariable(Go.borderRadiusRight,_t.borderRadius)};
748
748
  }
749
749
 
750
750
  .ft-switch--dense slot::slotted(ft-switch-option) {
@@ -911,7 +911,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
911
911
  </div>
912
912
  `:null}
913
913
  </div>
914
- `}}fi.elementDefinitions={},fi.styles=[bt,ci],di([i.property({type:String})],fi.prototype,"text",void 0),di([i.property({type:Boolean})],fi.prototype,"raised",void 0),di([i.property({type:Boolean})],fi.prototype,"outlined",void 0),di([i.property({type:Boolean})],fi.prototype,"disabled",void 0),di([i.property({type:Boolean})],fi.prototype,"error",void 0),e.customElement("ft-input-label")(fi);const hi={fontSize:e.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-area-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},pi=o.css`
914
+ `}}fi.elementDefinitions={},fi.styles=[bt,ci],di([i.property({type:String})],fi.prototype,"text",void 0),di([i.property({type:Boolean})],fi.prototype,"raised",void 0),di([i.property({type:Boolean})],fi.prototype,"outlined",void 0),di([i.property({type:Boolean})],fi.prototype,"disabled",void 0),di([i.property({type:Boolean})],fi.prototype,"error",void 0),e.customElement("ft-input-label")(fi);const pi={fontSize:e.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-area-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},hi=o.css`
915
915
  *:focus {
916
916
  outline: none;
917
917
  }
@@ -923,10 +923,10 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
923
923
  }
924
924
 
925
925
  ft-input-label {
926
- ${e.setVariable(li.fontSize,hi.fontSize)};
927
- ${e.setVariable(li.raisedFontSize,hi.labelSize)};
928
- ${e.setVariable(li.verticalSpacing,hi.verticalSpacing)};
929
- ${e.setVariable(li.horizontalSpacing,hi.horizontalSpacing)};
926
+ ${e.setVariable(li.fontSize,pi.fontSize)};
927
+ ${e.setVariable(li.raisedFontSize,pi.labelSize)};
928
+ ${e.setVariable(li.verticalSpacing,pi.verticalSpacing)};
929
+ ${e.setVariable(li.horizontalSpacing,pi.horizontalSpacing)};
930
930
  }
931
931
 
932
932
  .ft-text-area--main-panel {
@@ -944,8 +944,8 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
944
944
  }
945
945
 
946
946
  .ft-text-area--input-panel ft-ripple {
947
- ${e.setVariable(p.opacityContentOnSurfaceHover,"0.08")};
948
- ${e.setVariable(p.opacityContentOnSurfacePressed,"0.04")};
947
+ ${e.setVariable(h.opacityContentOnSurfaceHover,"0.08")};
948
+ ${e.setVariable(h.opacityContentOnSurfacePressed,"0.04")};
949
949
  }
950
950
 
951
951
  .ft-text-area--input {
@@ -957,12 +957,12 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
957
957
  align-self: stretch;
958
958
  resize: none;
959
959
 
960
- ${e.setVariable(M.fontSize,hi.fontSize)};
961
- ${e.setVariable(M.lineHeight,hi.fontSize)};
962
- color: ${hi.colorOnSurface};
960
+ ${e.setVariable(M.fontSize,pi.fontSize)};
961
+ ${e.setVariable(M.lineHeight,pi.fontSize)};
962
+ color: ${pi.colorOnSurface};
963
963
 
964
- padding: 0 ${hi.horizontalSpacing};
965
- margin: calc(${hi.verticalSpacing} + ${hi.labelSize} / 2) 0 ${hi.verticalSpacing} 0;
964
+ padding: 0 ${pi.horizontalSpacing};
965
+ margin: calc(${pi.verticalSpacing} + ${pi.labelSize} / 2) 0 ${pi.verticalSpacing} 0;
966
966
 
967
967
  border: none;
968
968
  background: none;
@@ -971,7 +971,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
971
971
  }
972
972
 
973
973
  .ft-text-area--disabled .ft-text-area--input {
974
- color: ${hi.colorOnSurfaceDisabled};
974
+ color: ${pi.colorOnSurfaceDisabled};
975
975
  }
976
976
 
977
977
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -979,32 +979,32 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
979
979
  }
980
980
 
981
981
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
982
- ${e.setVariable(li.borderColor,hi.colorPrimary)};
983
- ${e.setVariable(li.textColor,hi.colorPrimary)};
982
+ ${e.setVariable(li.borderColor,pi.colorPrimary)};
983
+ ${e.setVariable(li.textColor,pi.colorPrimary)};
984
984
  }
985
985
 
986
986
  .ft-text-area--filled .ft-text-area--input-panel {
987
- border-radius: ${hi.borderRadiusS} ${hi.borderRadiusS} 0 0;
987
+ border-radius: ${pi.borderRadiusS} ${pi.borderRadiusS} 0 0;
988
988
  }
989
989
 
990
990
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
991
991
  align-self: stretch;
992
- margin-bottom: ${hi.verticalSpacing};
993
- margin-top: calc(${hi.labelSize} + 2 * ${hi.verticalSpacing});
992
+ margin-bottom: ${pi.verticalSpacing};
993
+ margin-top: calc(${pi.labelSize} + 2 * ${pi.verticalSpacing});
994
994
  }
995
995
 
996
996
  .ft-text-area--outlined .ft-text-area--input-panel {
997
- border-radius: ${hi.borderRadiusS};
997
+ border-radius: ${pi.borderRadiusS};
998
998
  }
999
999
 
1000
1000
  .ft-text-area--helper-text {
1001
- padding: 0 12px 0 ${hi.horizontalSpacing};
1002
- color: ${hi.helperColor};
1001
+ padding: 0 12px 0 ${pi.horizontalSpacing};
1002
+ color: ${pi.helperColor};
1003
1003
  }
1004
1004
 
1005
1005
  .ft-text-area--in-error .ft-text-area--input,
1006
1006
  .ft-text-area--in-error .ft-text-area--helper-text {
1007
- color: ${hi.colorError};
1007
+ color: ${pi.colorError};
1008
1008
  }
1009
1009
 
1010
1010
  ft-resizer {
@@ -1014,7 +1014,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1014
1014
  `;var ui=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class gi extends(e.toFtFormComponent(e.FtLitElement,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return o.html`
1015
1015
  <style>
1016
1016
  .ft-text-area--main-panel {
1017
- height: calc(4 * ${hi.verticalSpacing} + ${hi.labelSize} + ${hi.fontSize} + ${this.height}px);
1017
+ height: calc(4 * ${pi.verticalSpacing} + ${pi.labelSize} + ${pi.fontSize} + ${this.height}px);
1018
1018
  }
1019
1019
 
1020
1020
  ft-resizer {
@@ -1053,14 +1053,14 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1053
1053
  ${this.helper}
1054
1054
  </ft-typography>`:void 0}
1055
1055
  </div>
1056
- `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}gi.elementDefinitions={"ft-input-label":fi,"ft-resizer":si,"ft-ripple":Re,"ft-typography":Ie},gi.styles=[gt,pi],ui([i.property({type:String})],gi.prototype,"label",void 0),ui([i.property({reflect:!0})],gi.prototype,"value",void 0),ui([i.property({type:String})],gi.prototype,"helper",void 0),ui([i.property({type:Boolean})],gi.prototype,"outlined",void 0),ui([i.property({type:Boolean})],gi.prototype,"disabled",void 0),ui([i.property({type:Boolean})],gi.prototype,"error",void 0),ui([i.property({type:Number,reflect:!0})],gi.prototype,"height",void 0),ui([i.query("textarea")],gi.prototype,"textarea",void 0),ui([i.state()],gi.prototype,"focused",void 0),e.customElement("ft-text-area")(gi);class yi extends e.FtLitElement{render(){return o.html`
1056
+ `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}gi.elementDefinitions={"ft-input-label":fi,"ft-resizer":si,"ft-ripple":Re,"ft-typography":ke},gi.styles=[gt,hi],ui([i.property({type:String})],gi.prototype,"label",void 0),ui([i.property({reflect:!0})],gi.prototype,"value",void 0),ui([i.property({type:String})],gi.prototype,"helper",void 0),ui([i.property({type:Boolean})],gi.prototype,"outlined",void 0),ui([i.property({type:Boolean})],gi.prototype,"disabled",void 0),ui([i.property({type:Boolean})],gi.prototype,"error",void 0),ui([i.property({type:Number,reflect:!0})],gi.prototype,"height",void 0),ui([i.query("textarea")],gi.prototype,"textarea",void 0),ui([i.state()],gi.prototype,"focused",void 0),e.customElement("ft-text-area")(gi);class yi extends e.FtLitElement{render(){return o.html`
1057
1057
  <div class="ft-loader">
1058
1058
  <div></div>
1059
1059
  <div></div>
1060
1060
  <div></div>
1061
1061
  <div></div>
1062
1062
  </div>
1063
- `}}yi.styles=St,e.customElement("ft-loader")(yi);var bi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class mi extends(e.toFtFormComponent(e.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(o.html`
1063
+ `}}yi.styles=$t,e.customElement("ft-loader")(yi);var bi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class mi extends(e.toFtFormComponent(e.FtLitElement,"button")){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",(t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}))}render(){return this.addTooltipIfNeeded(o.html`
1064
1064
  <button part="button"
1065
1065
  class="${r.classMap(this.buttonClasses)}"
1066
1066
  aria-label="${this.getLabel()}"
@@ -1083,7 +1083,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1083
1083
  </ft-tooltip>
1084
1084
  `:t}resolveIcon(){return this.loading?o.html`
1085
1085
  <ft-loader part="loader icon"></ft-loader> `:this.icon?o.html`
1086
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:o.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}mi.elementDefinitions={"ft-ripple":Re,"ft-tooltip":Mo,"ft-typography":Ie,"ft-icon":jo,"ft-loader":yi},bi([i.property({type:String,reflect:!0})],mi.prototype,"role",void 0),bi([i.property()],mi.prototype,"type",void 0),bi([i.property({type:Boolean})],mi.prototype,"disabled",void 0),bi([i.property()],mi.prototype,"label",void 0),bi([i.property()],mi.prototype,"icon",void 0),bi([i.property()],mi.prototype,"iconVariant",void 0),bi([i.property({type:Boolean})],mi.prototype,"trailingIcon",void 0),bi([i.property({type:Boolean})],mi.prototype,"loading",void 0),bi([i.property()],mi.prototype,"tooltipPosition",void 0),bi([i.property({type:Boolean})],mi.prototype,"hideTooltip",void 0),bi([i.property({type:Boolean})],mi.prototype,"forceTooltip",void 0),bi([i.query(".ft-button")],mi.prototype,"button",void 0),bi([i.query(".ft-button--label slot")],mi.prototype,"slottedContent",void 0);var vi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xi extends mi{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}xi.styles=[e.safariEllipsisFix,_t],vi([i.property({type:Boolean})],xi.prototype,"primary",void 0),vi([i.property({type:Boolean})],xi.prototype,"outlined",void 0),vi([i.property({type:Boolean})],xi.prototype,"dense",void 0),vi([i.property({type:Boolean})],xi.prototype,"round",void 0);const wi=[o.css`
1086
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:o.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}mi.elementDefinitions={"ft-ripple":Re,"ft-tooltip":Mo,"ft-typography":ke,"ft-icon":jo,"ft-loader":yi},bi([i.property({type:String,reflect:!0})],mi.prototype,"role",void 0),bi([i.property()],mi.prototype,"type",void 0),bi([i.property({type:Boolean})],mi.prototype,"disabled",void 0),bi([i.property()],mi.prototype,"label",void 0),bi([i.property()],mi.prototype,"icon",void 0),bi([i.property()],mi.prototype,"iconVariant",void 0),bi([i.property({type:Boolean})],mi.prototype,"trailingIcon",void 0),bi([i.property({type:Boolean})],mi.prototype,"loading",void 0),bi([i.property()],mi.prototype,"tooltipPosition",void 0),bi([i.property({type:Boolean})],mi.prototype,"hideTooltip",void 0),bi([i.property({type:Boolean})],mi.prototype,"forceTooltip",void 0),bi([i.query(".ft-button")],mi.prototype,"button",void 0),bi([i.query(".ft-button--label slot")],mi.prototype,"slottedContent",void 0);var vi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xi extends mi{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}xi.styles=[e.safariEllipsisFix,Dt],vi([i.property({type:Boolean})],xi.prototype,"primary",void 0),vi([i.property({type:Boolean})],xi.prototype,"outlined",void 0),vi([i.property({type:Boolean})],xi.prototype,"dense",void 0),vi([i.property({type:Boolean})],xi.prototype,"round",void 0);const wi=[o.css`
1087
1087
  :host {
1088
1088
  display: inline-block;
1089
1089
  max-width: 100%;
@@ -1162,13 +1162,13 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1162
1162
  /** Primary styles **/
1163
1163
 
1164
1164
  .ft-button--primary {
1165
- ${e.setVariable($t.color,C.primaryIconColor)};
1165
+ ${e.setVariable(St.color,C.primaryIconColor)};
1166
1166
 
1167
- ${e.setVariable(p.color,C.primaryStateLayerColor)};
1168
- ${e.setVariable(p.opacityContentOnSurfaceHover,C.primaryStateLayerOpacityHover)};
1169
- ${e.setVariable(p.opacityContentOnSurfaceFocused,C.primaryStateLayerOpacityFocus)};
1170
- ${e.setVariable(p.opacityContentOnSurfaceSelected,C.primaryStateLayerOpacityActive)};
1171
- ${e.setVariable(p.opacityContentOnSurfacePressed,C.primaryStateLayerOpacityActive)};
1167
+ ${e.setVariable(h.color,C.primaryStateLayerColor)};
1168
+ ${e.setVariable(h.opacityContentOnSurfaceHover,C.primaryStateLayerOpacityHover)};
1169
+ ${e.setVariable(h.opacityContentOnSurfaceFocused,C.primaryStateLayerOpacityFocus)};
1170
+ ${e.setVariable(h.opacityContentOnSurfaceSelected,C.primaryStateLayerOpacityActive)};
1171
+ ${e.setVariable(h.opacityContentOnSurfacePressed,C.primaryStateLayerOpacityActive)};
1172
1172
 
1173
1173
  background-color: ${C.primaryBackgroundColor};
1174
1174
  color: ${C.primaryColor};
@@ -1186,13 +1186,13 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1186
1186
  /** Secondary styles **/
1187
1187
 
1188
1188
  .ft-button--secondary {
1189
- ${e.setVariable($t.color,C.secondaryIconColor)};
1189
+ ${e.setVariable(St.color,C.secondaryIconColor)};
1190
1190
 
1191
- ${e.setVariable(p.color,C.secondaryStateLayerColor)};
1192
- ${e.setVariable(p.opacityContentOnSurfaceHover,C.secondaryStateLayerOpacityHover)};
1193
- ${e.setVariable(p.opacityContentOnSurfaceFocused,C.secondaryStateLayerOpacityFocus)};
1194
- ${e.setVariable(p.opacityContentOnSurfaceSelected,C.secondaryStateLayerOpacityActive)};
1195
- ${e.setVariable(p.opacityContentOnSurfacePressed,C.secondaryStateLayerOpacityActive)};
1191
+ ${e.setVariable(h.color,C.secondaryStateLayerColor)};
1192
+ ${e.setVariable(h.opacityContentOnSurfaceHover,C.secondaryStateLayerOpacityHover)};
1193
+ ${e.setVariable(h.opacityContentOnSurfaceFocused,C.secondaryStateLayerOpacityFocus)};
1194
+ ${e.setVariable(h.opacityContentOnSurfaceSelected,C.secondaryStateLayerOpacityActive)};
1195
+ ${e.setVariable(h.opacityContentOnSurfacePressed,C.secondaryStateLayerOpacityActive)};
1196
1196
 
1197
1197
  background-color: ${C.secondaryBackgroundColor};
1198
1198
  color: ${C.secondaryColor};
@@ -1211,13 +1211,13 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1211
1211
  /** Tertiary styles **/
1212
1212
 
1213
1213
  .ft-button--tertiary {
1214
- ${e.setVariable($t.color,C.tertiaryIconColor)};
1214
+ ${e.setVariable(St.color,C.tertiaryIconColor)};
1215
1215
 
1216
- ${e.setVariable(p.color,C.tertiaryStateLayerColor)};
1217
- ${e.setVariable(p.opacityContentOnSurfaceHover,C.tertiaryStateLayerOpacityHover)};
1218
- ${e.setVariable(p.opacityContentOnSurfaceFocused,C.tertiaryStateLayerOpacityFocus)};
1219
- ${e.setVariable(p.opacityContentOnSurfaceSelected,C.tertiaryStateLayerOpacityActive)};
1220
- ${e.setVariable(p.opacityContentOnSurfacePressed,C.tertiaryStateLayerOpacityActive)};
1216
+ ${e.setVariable(h.color,C.tertiaryStateLayerColor)};
1217
+ ${e.setVariable(h.opacityContentOnSurfaceHover,C.tertiaryStateLayerOpacityHover)};
1218
+ ${e.setVariable(h.opacityContentOnSurfaceFocused,C.tertiaryStateLayerOpacityFocus)};
1219
+ ${e.setVariable(h.opacityContentOnSurfaceSelected,C.tertiaryStateLayerOpacityActive)};
1220
+ ${e.setVariable(h.opacityContentOnSurfacePressed,C.tertiaryStateLayerOpacityActive)};
1221
1221
 
1222
1222
  background-color: ${C.tertiaryBackgroundColor};
1223
1223
  color: ${C.tertiaryColor};
@@ -1235,13 +1235,13 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1235
1235
  /** Neutral styles **/
1236
1236
 
1237
1237
  .ft-button--neutral {
1238
- ${e.setVariable($t.color,C.neutralIconColor)};
1238
+ ${e.setVariable(St.color,C.neutralIconColor)};
1239
1239
 
1240
- ${e.setVariable(p.backgroundColor,C.neutralStateLayerColor)};
1241
- ${e.setVariable(p.opacityContentOnSurfaceHover,C.neutralStateLayerOpacityHover)};
1242
- ${e.setVariable(p.opacityContentOnSurfaceFocused,C.neutralStateLayerOpacityFocus)};
1243
- ${e.setVariable(p.opacityContentOnSurfaceSelected,C.neutralStateLayerOpacityActive)};
1244
- ${e.setVariable(p.opacityContentOnSurfacePressed,C.neutralStateLayerOpacityActive)};
1240
+ ${e.setVariable(h.backgroundColor,C.neutralStateLayerColor)};
1241
+ ${e.setVariable(h.opacityContentOnSurfaceHover,C.neutralStateLayerOpacityHover)};
1242
+ ${e.setVariable(h.opacityContentOnSurfaceFocused,C.neutralStateLayerOpacityFocus)};
1243
+ ${e.setVariable(h.opacityContentOnSurfaceSelected,C.neutralStateLayerOpacityActive)};
1244
+ ${e.setVariable(h.opacityContentOnSurfacePressed,C.neutralStateLayerOpacityActive)};
1245
1245
 
1246
1246
  background-color: ${C.neutralBackgroundColor};
1247
1247
  color: ${C.neutralColor};
@@ -1260,7 +1260,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1260
1260
 
1261
1261
  .ft-button--large {
1262
1262
  ${e.setVariable(Nt.size,C.largeIconSize)};
1263
- ${e.setVariable($t.size,C.largeIconSize)};
1263
+ ${e.setVariable(St.size,C.largeIconSize)};
1264
1264
 
1265
1265
  height: ${C.largeHeight};
1266
1266
  padding: 0 ${C.largeHorizontalPadding};
@@ -1283,7 +1283,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1283
1283
 
1284
1284
  .ft-button--small {
1285
1285
  ${e.setVariable(Nt.size,C.smallIconSize)};
1286
- ${e.setVariable($t.size,C.smallIconSize)};
1286
+ ${e.setVariable(St.size,C.smallIconSize)};
1287
1287
 
1288
1288
  height: ${C.smallHeight};
1289
1289
  padding: 0 ${C.smallHorizontalPadding};
@@ -1301,15 +1301,15 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1301
1301
  width: ${C.smallIconOnlyWidth};
1302
1302
  padding: unset;
1303
1303
  }
1304
- `,e.noTextSelect];var Oi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class $i extends mi{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Ce.caption1medium:Ce.body2medium}}$i.styles=[e.safariEllipsisFix,wi],Oi([i.property({type:Boolean})],$i.prototype,"primary",void 0),Oi([i.property({type:Boolean})],$i.prototype,"secondary",void 0),Oi([i.property({type:Boolean})],$i.prototype,"tertiary",void 0),Oi([i.property({type:Boolean})],$i.prototype,"neutral",void 0),Oi([i.property({type:Boolean})],$i.prototype,"small",void 0),e.customElement("ft-button")(xi),e.customElement("ftds-button")($i);const Si=o.css`
1304
+ `,e.noTextSelect];var Oi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Si extends mi{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Ce.caption1medium:Ce.body2medium}}Si.styles=[e.safariEllipsisFix,wi],Oi([i.property({type:Boolean})],Si.prototype,"primary",void 0),Oi([i.property({type:Boolean})],Si.prototype,"secondary",void 0),Oi([i.property({type:Boolean})],Si.prototype,"tertiary",void 0),Oi([i.property({type:Boolean})],Si.prototype,"neutral",void 0),Oi([i.property({type:Boolean})],Si.prototype,"small",void 0),e.customElement("ft-button")(xi),e.customElement("ftds-button")(Si);const $i=o.css`
1305
1305
  `,Ni=o.css`
1306
- `,Ci=e.FtReduxStore.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0}});class ki{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Ci.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?ki.build(t):null!==(e=ki.API)&&void 0!==e?e:ki.API=ki.build()}static await(t){return new Promise((e=>{let o=ki.get(t);if(o)e(o);else{const i=Ci.subscribe((()=>{o=ki.get(t),o&&(i(),e(o))}))}}))}}var Ii;const Ei=Symbol("clearAfterUnitTest");class Ri{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Ii]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=Ci.getState().uiLocale,Ci.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ci.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var i;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...o};e.deepEqual(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...i){var r,n,a;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new e.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},s).resolve(o,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>e.delay(0).then((()=>t())).catch((()=>null)))))}}Ii=Ei,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ri((async(t,e)=>(await ki.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ri((async(t,e)=>(await ki.await()).getCustomMessageContext(t,e))));const Ui=window.FluidTopicsI18nService,Li=window.FluidTopicsCustomI18nService;var Ti=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Wi extends e.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>ki.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return o.html`
1306
+ `,Ci=e.FtReduxStore.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0}});class Ii{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Ci.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?Ii.build(t):null!==(e=Ii.API)&&void 0!==e?e:Ii.API=Ii.build()}static await(t){return new Promise((e=>{let o=Ii.get(t);if(o)e(o);else{const i=Ci.subscribe((()=>{o=Ii.get(t),o&&(i(),e(o))}))}}))}}var ki;const Ei=Symbol("clearAfterUnitTest");class Ri{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={},this.currentUiLocale="",this[ki]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=Ci.getState().uiLocale,Ci.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ci.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var i;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...o};e.deepEqual(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...i){var r,n,a;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new e.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},s).resolve(o,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>e.delay(0).then((()=>t())).catch((()=>null)))))}}ki=Ei,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ri((async(t,e)=>(await Ii.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ri((async(t,e)=>(await Ii.await()).getCustomMessageContext(t,e))));const Ui=window.FluidTopicsI18nService,Li=window.FluidTopicsCustomI18nService;var Wi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ti extends e.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Ii.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return o.html`
1307
1307
  <slot></slot>
1308
- `}update(t){super.update(t),t.has("baseUrl")&&(Ci.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Ci.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ci.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Ci.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Ci.actions.noCustom(this.noCustom),t.has("editorMode")&&Ci.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Ci.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Ci.actions.session(this.session),t.has("availableUiLocales")&&Ci.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ui.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Wi.elementDefinitions={},Wi.styles=Ni,Ti([i.property()],Wi.prototype,"baseUrl",void 0),Ti([i.property()],Wi.prototype,"apiIntegrationIdentifier",void 0),Ti([i.property()],Wi.prototype,"uiLocale",void 0),Ti([e.jsonProperty(null)],Wi.prototype,"availableUiLocales",void 0),Ti([e.jsonProperty(null)],Wi.prototype,"metadataConfiguration",void 0),Ti([i.property({type:Boolean})],Wi.prototype,"editorMode",void 0),Ti([i.property({type:Boolean})],Wi.prototype,"noCustom",void 0),Ti([i.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Wi.prototype,"noCustomComponent",void 0),Ti([i.property({type:Boolean})],Wi.prototype,"withManualResources",void 0),Ti([e.jsonProperty([])],Wi.prototype,"messageContexts",void 0),Ti([e.jsonProperty(void 0)],Wi.prototype,"session",void 0),Ti([i.property({type:Object})],Wi.prototype,"apiProvider",void 0);class _i{async listMySearches(){var t;return(null===(t=Ci.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await ki.await()).listMySearches(Ci.getState().session.profile.userId):[]}}const Di=new e.CacheRegistry;class Ai{async listMyBookmarks(){return Di.get("bookmarks",(async()=>(await ki.await()).listMyBookmarks(Ci.getState().session.profile.userId)))}clearCache(){Di.clear("bookmarks")}}const zi=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Bi=new class{constructor(){this.currentSession=Ci.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ai,Ci.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=Ci.getState();e.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){zi.actions.savedSearches(void 0)}clearMyBookmarks(){zi.actions.bookmarks(void 0)}async reloadMySearches(){const t=new _i,e=await t.listMySearches();zi.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;zi.actions.bookmarks(e)}}};e.customElement("ft-app-context")(Wi);var Fi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ki=Symbol("i18nProperties"),Zi=Symbol("i18nUnsubs");function Pi(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Li:Ui}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[Ki])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ki])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ki]&&new Set([...this[Ki].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Zi].has(t)||this[Zi].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Zi].forEach((t=>t())),this[Zi].clear()}}return e=Zi,Fi([i.property({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Mi extends(Pi(e.FtLitElement)){}class Hi extends(Pi(e.FtLitElementRedux)){}var ji=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Gi extends Hi{constructor(){super(),this.editorMode=!1,this.addStore(Ci)}render(){return this.key&&this.context?o.html`
1308
+ `}update(t){super.update(t),t.has("baseUrl")&&(Ci.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Ci.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ci.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Ci.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Ci.actions.noCustom(this.noCustom),t.has("editorMode")&&Ci.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Ci.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Ci.actions.session(this.session),t.has("availableUiLocales")&&Ci.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ui.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Ti.elementDefinitions={},Ti.styles=Ni,Wi([i.property()],Ti.prototype,"baseUrl",void 0),Wi([i.property()],Ti.prototype,"apiIntegrationIdentifier",void 0),Wi([i.property()],Ti.prototype,"uiLocale",void 0),Wi([e.jsonProperty(null)],Ti.prototype,"availableUiLocales",void 0),Wi([e.jsonProperty(null)],Ti.prototype,"metadataConfiguration",void 0),Wi([i.property({type:Boolean})],Ti.prototype,"editorMode",void 0),Wi([i.property({type:Boolean})],Ti.prototype,"noCustom",void 0),Wi([i.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ti.prototype,"noCustomComponent",void 0),Wi([i.property({type:Boolean})],Ti.prototype,"withManualResources",void 0),Wi([e.jsonProperty([])],Ti.prototype,"messageContexts",void 0),Wi([e.jsonProperty(void 0)],Ti.prototype,"session",void 0),Wi([i.property({type:Object})],Ti.prototype,"apiProvider",void 0);class Di{async listMySearches(){var t;return(null===(t=Ci.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Ii.await()).listMySearches(Ci.getState().session.profile.userId):[]}}const _i=new e.CacheRegistry;class Ai{async listMyBookmarks(){return _i.get("bookmarks",(async()=>(await Ii.await()).listMyBookmarks(Ci.getState().session.profile.userId)))}clearCache(){_i.clear("bookmarks")}}const zi=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Fi=new class{constructor(){this.currentSession=Ci.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ai,Ci.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=Ci.getState();e.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){zi.actions.savedSearches(void 0)}clearMyBookmarks(){zi.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Di,e=await t.listMySearches();zi.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;zi.actions.bookmarks(e)}}};e.customElement("ft-app-context")(Ti);var Ki=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Bi=Symbol("i18nProperties"),Zi=Symbol("i18nUnsubs");function Pi(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Li:Ui}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[Bi])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Bi])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Bi]&&new Set([...this[Bi].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Zi].has(t)||this[Zi].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Zi].forEach((t=>t())),this[Zi].clear()}}return e=Zi,Ki([i.property({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Mi extends(Pi(e.FtLitElement)){}class Hi extends(Pi(e.FtLitElementRedux)){}var ji=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Gi extends Hi{constructor(){super(),this.editorMode=!1,this.addStore(Ci)}render(){return this.key&&this.context?o.html`
1309
1309
  <span class="ft-i18n">
1310
1310
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1311
1311
  </span>
1312
- `:this.editorMode?"Select a context and a label key.":o.nothing}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Gi.elementDefinitions={},Gi.styles=Si,ji([e.redux()],Gi.prototype,"editorMode",void 0),ji([i.property()],Gi.prototype,"context",void 0),ji([i.property()],Gi.prototype,"key",void 0),ji([e.jsonProperty([])],Gi.prototype,"args",void 0),ji([i.property()],Gi.prototype,"defaultMessage",void 0);class Vi{static build(t){return new Vi(t)}static fromGwt(t){return new Vi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Ui.resolveMessage(this.name,e,...t)})}}const Yi=(t,e)=>(o,i)=>{var r,n;o.constructor.createProperty(i,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:i};o[Ki]=null!==(n=o[Ki])&&void 0!==n?n:new Map,o[Ki].set(i,a)};e.customElement("ft-i18n")(Gi);const qi=Vi.build("integratedFeedbackComponent"),Xi={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},Qi={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color","",e.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:e.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),suggestSize:e.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Ji=o.css`
1312
+ `:this.editorMode?"Select a context and a label key.":o.nothing}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Gi.elementDefinitions={},Gi.styles=$i,ji([e.redux()],Gi.prototype,"editorMode",void 0),ji([i.property()],Gi.prototype,"context",void 0),ji([i.property()],Gi.prototype,"key",void 0),ji([e.jsonProperty([])],Gi.prototype,"args",void 0),ji([i.property()],Gi.prototype,"defaultMessage",void 0);class Vi{static build(t){return new Vi(t)}static fromGwt(t){return new Vi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Ui.resolveMessage(this.name,e,...t)})}}const Yi=(t,e)=>(o,i)=>{var r,n;o.constructor.createProperty(i,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:i};o[Bi]=null!==(n=o[Bi])&&void 0!==n?n:new Map,o[Bi].set(i,a)};e.customElement("ft-i18n")(Gi);const qi=Vi.build("integratedFeedbackComponent"),Xi={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},Qi={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color","",e.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:e.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),suggestSize:e.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Ji=o.css`
1313
1313
  *:focus {
1314
1314
  outline: none;
1315
1315
  }
@@ -1347,8 +1347,8 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1347
1347
  }
1348
1348
 
1349
1349
  .ft-text-field--input-panel ft-ripple {
1350
- ${e.setVariable(p.opacityContentOnSurfaceHover,"0.08")};
1351
- ${e.setVariable(p.opacityContentOnSurfacePressed,"0.04")};
1350
+ ${e.setVariable(h.opacityContentOnSurfaceHover,"0.08")};
1351
+ ${e.setVariable(h.opacityContentOnSurfacePressed,"0.04")};
1352
1352
  }
1353
1353
 
1354
1354
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
@@ -1465,7 +1465,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1465
1465
  .ft-text-field--with-password ft-icon:hover {
1466
1466
  cursor: pointer;
1467
1467
  }
1468
- `;var tr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class er extends(e.toFtFormComponent(e.FtLitElement,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Fo.EYE_SLASH,this.passwordRevealedIcon=Fo.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return o.html`
1468
+ `;var tr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class er extends(e.toFtFormComponent(e.FtLitElement,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Ko.EYE_SLASH,this.passwordRevealedIcon=Ko.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return o.html`
1469
1469
  <div class="${r.classMap(t)}">
1470
1470
  <div class="ft-text-field--main-panel"
1471
1471
  @keydown=${this.handleKeyboardNavigation}
@@ -1517,7 +1517,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1517
1517
  .variant=${this.iconVariant}
1518
1518
  .value=${this.icon}
1519
1519
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1520
- `:o.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,o;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),i=null===(o=this.suggestionsContainer)||void 0===o?void 0:o.getBoundingClientRect();t&&i&&(this.suggestionsOnTop=t.bottom+i.height>window.innerHeight&&t.top-i.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}er.elementDefinitions={"ft-input-label":fi,"ft-ripple":Re,"ft-typography":Ie,"ft-icon":jo},er.styles=[gt,Ji],tr([i.property()],er.prototype,"label",void 0),tr([i.property({noAccessor:!0})],er.prototype,"value",null),tr([i.state()],er.prototype,"dispatchedValue",void 0),tr([i.property()],er.prototype,"helper",void 0),tr([i.property({type:Boolean})],er.prototype,"outlined",void 0),tr([i.property({type:Boolean})],er.prototype,"disabled",void 0),tr([i.property({type:Boolean})],er.prototype,"error",void 0),tr([i.property()],er.prototype,"prefix",void 0),tr([i.property()],er.prototype,"icon",void 0),tr([i.property()],er.prototype,"passwordHiddenIcon",void 0),tr([i.property()],er.prototype,"passwordRevealedIcon",void 0),tr([i.property()],er.prototype,"iconVariant",void 0),tr([i.property({type:Boolean})],er.prototype,"filterSuggestions",void 0),tr([i.property({type:Number})],er.prototype,"maxLength",void 0),tr([i.property({type:Boolean})],er.prototype,"password",void 0),tr([i.state()],er.prototype,"focused",void 0),tr([i.state()],er.prototype,"hidePassword",void 0),tr([i.state()],er.prototype,"suggestionsOnTop",void 0),tr([i.state()],er.prototype,"hideSuggestions",void 0),tr([i.state()],er.prototype,"visibleSuggestions",void 0),tr([i.query(".ft-text-field--main-panel")],er.prototype,"mainPanel",void 0),tr([i.query(".ft-text-field--input")],er.prototype,"input",void 0),tr([i.query(".ft-text-field--suggestions")],er.prototype,"suggestionsContainer",void 0),tr([i.queryAssignedElements({selector:"ft-text-field-suggestion"})],er.prototype,"suggestions",void 0);const or=o.css`
1520
+ `:o.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,o;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),i=null===(o=this.suggestionsContainer)||void 0===o?void 0:o.getBoundingClientRect();t&&i&&(this.suggestionsOnTop=t.bottom+i.height>window.innerHeight&&t.top-i.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}er.elementDefinitions={"ft-input-label":fi,"ft-ripple":Re,"ft-typography":ke,"ft-icon":jo},er.styles=[gt,Ji],tr([i.property()],er.prototype,"label",void 0),tr([i.property({noAccessor:!0})],er.prototype,"value",null),tr([i.state()],er.prototype,"dispatchedValue",void 0),tr([i.property()],er.prototype,"helper",void 0),tr([i.property({type:Boolean})],er.prototype,"outlined",void 0),tr([i.property({type:Boolean})],er.prototype,"disabled",void 0),tr([i.property({type:Boolean})],er.prototype,"error",void 0),tr([i.property()],er.prototype,"prefix",void 0),tr([i.property()],er.prototype,"icon",void 0),tr([i.property()],er.prototype,"passwordHiddenIcon",void 0),tr([i.property()],er.prototype,"passwordRevealedIcon",void 0),tr([i.property()],er.prototype,"iconVariant",void 0),tr([i.property({type:Boolean})],er.prototype,"filterSuggestions",void 0),tr([i.property({type:Number})],er.prototype,"maxLength",void 0),tr([i.property({type:Boolean})],er.prototype,"password",void 0),tr([i.state()],er.prototype,"focused",void 0),tr([i.state()],er.prototype,"hidePassword",void 0),tr([i.state()],er.prototype,"suggestionsOnTop",void 0),tr([i.state()],er.prototype,"hideSuggestions",void 0),tr([i.state()],er.prototype,"visibleSuggestions",void 0),tr([i.query(".ft-text-field--main-panel")],er.prototype,"mainPanel",void 0),tr([i.query(".ft-text-field--input")],er.prototype,"input",void 0),tr([i.query(".ft-text-field--suggestions")],er.prototype,"suggestionsContainer",void 0),tr([i.queryAssignedElements({selector:"ft-text-field-suggestion"})],er.prototype,"suggestions",void 0);const or=o.css`
1521
1521
  .ft-text-field-suggestion {
1522
1522
  position: relative;
1523
1523
  padding: 8px 16px;
@@ -1554,15 +1554,15 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1554
1554
  <slot></slot>
1555
1555
  </ft-typography>
1556
1556
  </div>
1557
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new rr(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}nr.elementDefinitions={"ft-ripple":Re,"ft-typography":Ie,"ft-icon":jo},nr.styles=or,ir([i.property()],nr.prototype,"value",void 0),ir([i.query(".ft-text-field-suggestion")],nr.prototype,"container",void 0),ir([i.queryAssignedNodes()],nr.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(er),e.customElement("ft-text-field-suggestion")(nr);class ar{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var i,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(i=t.pageToc)&&void 0!==i?i:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var i;let r=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,i,r,n,a,s;const l={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(i=t.tocId)&&void 0!==i?i:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),d=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,d[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class sr{convertPaginatedToc(t){return new ar(t).build()}}var lr,cr,dr,fr,hr,pr,ur,gr,yr,br,mr,vr,xr,wr,Or,$r,Sr,Nr;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=d(e);return e.readAsArrayBuffer(t),o}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=h(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t,e,o,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,o=d(e),e.readAsText(t),o;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,i,r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},p.call(g.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var a=new g(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,Object.defineProperty(e,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(lr||(lr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(cr||(cr={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(dr||(dr={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(fr||(fr={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(hr||(hr={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(pr||(pr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(ur||(ur={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(gr||(gr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(yr||(yr={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(br||(br={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(mr||(mr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(vr||(vr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(xr||(xr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(wr||(wr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Or||(Or={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}($r||($r={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Sr||(Sr={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Nr||(Nr={}));const Cr={[Sr.PERSONAL_BOOK_SHARE_USER]:[Sr.PERSONAL_BOOK_USER],[Sr.HTML_EXPORT_USER]:[Sr.PERSONAL_BOOK_USER],[Sr.PDF_EXPORT_USER]:[Sr.PERSONAL_BOOK_USER],[Sr.KHUB_ADMIN]:[Sr.CONTENT_PUBLISHER],[Sr.ADMIN]:[Sr.KHUB_ADMIN,Sr.USERS_ADMIN,Sr.PORTAL_ADMIN],[Sr.DEVELOPER]:[Sr.BETA_USER,Sr.DEBUG_USER]};function kr(t,e){return t===e||(Cr[t]??[]).some((t=>kr(t,e)))}function Ir(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>kr(t,e)))}class Er{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o,i){this.converter=t,this.api=e,this.cache=o,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Ir(null!==(e=null===(t=Ci.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const i=this.getNavigationData(t,e,o),r=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=i.page&&n.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&n.searchParams.set("tocId",i.tocId),null!=i.section&&n.searchParams.set("section",i.section),n.href}getNavigationData(t,e,o){var i,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(i=null==s?void 0:s.title)&&void 0!==i?i:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Ci.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],i=this.getTocNodeNow(e.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){if(!this.isFeatureAvailable(t))return!1;switch(t){case s.FEEDBACK:return Ir(null!=e?e:[],Sr.FEEDBACK_USER);case s.RATING:return Ir(null!=e?e:[],Sr.RATING_USER)&&null!=o&&o!==ur.NO_RATING;case s.PRINT:return Ir(null!=e?e:[],Sr.PRINT_USER);case s.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case s.COLLECTIONS:return Ir(null!=e?e:[],Sr.COLLECTION_USER);case s.PERSONAL_BOOKS:return Ir(null!=e?e:[],Sr.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Rr extends Er{static async build(t){return new Rr(new sr,await ki.await(),new e.CacheRegistry,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Ur{static build(t,o){return new Ur((t=>e.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0}}))(t.trim()||"context"),null!=o?o:Rr.build)}constructor(t,o){this.store=t,this.loadDebouncer=new e.Debouncer(10),this.initService(o)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return e.waitFor((()=>this.service))}async navigateToTopic(t,e,o){const i=await this.awaitService(),r=await(null!=o?i.getPage(o):i.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var o,i,r;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(i=e.topics[0])&&void 0!==i?i:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),null===(t=this.service)||void 0===t||t.clear()}reload(){return this.clear(),this.load()}async fetchData(){var t,o,i,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(o=this.service)||void 0===o?void 0:o.getMap().then((t=>this.store.actions.map(t))),null===(i=this.service)||void 0===i?void 0:i.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e.CanceledPromiseError||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const Lr=o.css`
1558
- `;class Tr extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Wr extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class _r extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Dr extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Ar extends Event{constructor(){super("ft-reader-map-not-found")}}class zr extends Event{constructor(){super("ft-reader-map-unauthorized")}}var Br=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Fr extends e.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new e.Debouncer(5),this.navigationDebouncer=new e.Debouncer(10),this.addStore(Ci)}render(){return o.html`
1557
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new rr(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}nr.elementDefinitions={"ft-ripple":Re,"ft-typography":ke,"ft-icon":jo},nr.styles=or,ir([i.property()],nr.prototype,"value",void 0),ir([i.query(".ft-text-field-suggestion")],nr.prototype,"container",void 0),ir([i.queryAssignedNodes()],nr.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(er),e.customElement("ft-text-field-suggestion")(nr);class ar{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var i,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(i=t.pageToc)&&void 0!==i?i:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var i;let r=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,i,r,n,a,s;const l={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(i=t.tocId)&&void 0!==i?i:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),d=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,d[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class sr{convertPaginatedToc(t){return new ar(t).build()}}var lr,cr,dr,fr,pr,hr,ur,gr,yr,br,mr,vr,xr,wr,Or,Sr,$r,Nr;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=d(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t,e,o,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,o=d(e),e.readAsText(t),o;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,i,r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},h.call(g.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var a=new g(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,Object.defineProperty(e,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(lr||(lr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(cr||(cr={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(dr||(dr={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(fr||(fr={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(pr||(pr={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(hr||(hr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(ur||(ur={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(gr||(gr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(yr||(yr={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(br||(br={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(mr||(mr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(vr||(vr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(xr||(xr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(wr||(wr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Or||(Or={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Sr||(Sr={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}($r||($r={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Nr||(Nr={}));const Cr={[$r.PERSONAL_BOOK_SHARE_USER]:[$r.PERSONAL_BOOK_USER],[$r.HTML_EXPORT_USER]:[$r.PERSONAL_BOOK_USER],[$r.PDF_EXPORT_USER]:[$r.PERSONAL_BOOK_USER],[$r.KHUB_ADMIN]:[$r.CONTENT_PUBLISHER],[$r.ADMIN]:[$r.KHUB_ADMIN,$r.USERS_ADMIN,$r.PORTAL_ADMIN],[$r.DEVELOPER]:[$r.BETA_USER,$r.DEBUG_USER]};function Ir(t,e){return t===e||(Cr[t]??[]).some((t=>Ir(t,e)))}function kr(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Ir(t,e)))}class Er{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o,i){this.converter=t,this.api=e,this.cache=o,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return kr(null!==(e=null===(t=Ci.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const i=this.getNavigationData(t,e,o),r=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=i.page&&n.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&n.searchParams.set("tocId",i.tocId),null!=i.section&&n.searchParams.set("section",i.section),n.href}getNavigationData(t,e,o){var i,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(i=null==s?void 0:s.title)&&void 0!==i?i:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Ci.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],i=this.getTocNodeNow(e.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){if(!this.isFeatureAvailable(t))return!1;switch(t){case s.FEEDBACK:return kr(null!=e?e:[],$r.FEEDBACK_USER);case s.RATING:return kr(null!=e?e:[],$r.RATING_USER)&&null!=o&&o!==ur.NO_RATING;case s.PRINT:return kr(null!=e?e:[],$r.PRINT_USER);case s.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case s.COLLECTIONS:return kr(null!=e?e:[],$r.COLLECTION_USER);case s.PERSONAL_BOOKS:return kr(null!=e?e:[],$r.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Rr extends Er{static async build(t){return new Rr(new sr,await Ii.await(),new e.CacheRegistry,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Ur extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Lr extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Wr extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Tr extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Dr extends Event{constructor(){super("ft-reader-map-not-found")}}class _r extends Event{constructor(){super("ft-reader-map-unauthorized")}}class Ar extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}class zr{static build(t,o){return new zr((t=>e.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=o?o:Rr.build)}constructor(t,o){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new e.Debouncer(10),this.initService(o)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return e.waitFor((()=>this.service))}async navigateToTopic(t,e,o){const i=await this.awaitService(),r=await(null!=o?i.getPage(o):i.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var o,i,r;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(i=e.topics[0])&&void 0!==i?i:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.metadataForSwitchToRelatives=new Set,this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,o,i,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(o=this.service)||void 0===o?void 0:o.getMap().then((t=>this.store.actions.map(t))),null===(i=this.service)||void 0===i?void 0:i.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof e.CanceledPromiseError||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const i=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==i&&i.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,i).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,o;this.store.getState().relatives&&(this.clusteringHelper=new e.ClusteringHelper(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(o=null===(t=Ci.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==o?o:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t,e){var o,i,r;if(t&&e){const n=this.store.getState().configuration.relativeTopicPivotMetadata,a=await this.awaitService(),s=await a.getRelativesForTopicInMap(t,n,e.values);if(await this.setMapId(t),null===(r=null===(i=null===(o=null==s?void 0:s.results)||void 0===o?void 0:o[0])||void 0===i?void 0:i.entries)||void 0===r?void 0:r[0]){const t=s.results[0].entries[0].topic.tocId;await this.navigateToTopic(t)}else this.store.eventBus.dispatchEvent(new Ar)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const Fr=o.css`
1558
+ `;var Kr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Br extends e.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new e.Debouncer(5),this.navigationDebouncer=new e.Debouncer(10),this.addStore(Ci)}render(){return o.html`
1559
1559
  ${this.importStyleIfNeeded()}
1560
1560
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1561
1561
  `}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?o.nothing:o.html`
1562
1562
  <style>
1563
1563
  @import "${i}"
1564
1564
  </style>
1565
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Ur.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Tr(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new _r(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Wr(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;404===e.status?this.dispatchEvent(new Ar):401===e.status?this.dispatchEvent(new zr):this.dispatchEvent(new Dr(t))}reloadBookmarks(){Bi.reloadBookmarks()}reloadRating(){var t;null===(t=this.stateManager.service)||void 0===t||t.reloadRating()}}var Kr;Fr.styles=Lr,Br([e.redux({store:Ci.name})],Fr.prototype,"baseUrl",void 0),Br([i.property()],Fr.prototype,"mapId",void 0),Br([i.property()],Fr.prototype,"tocId",void 0),Br([i.property()],Fr.prototype,"section",void 0),Br([i.property()],Fr.prototype,"searchInDocumentQuery",void 0),Br([i.property({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Kr}})],Fr.prototype,"page",void 0),Br([e.redux({store:"reader"})],Fr.prototype,"map",void 0),Br([e.redux({store:"reader"})],Fr.prototype,"toc",void 0),Br([e.redux({store:"reader"})],Fr.prototype,"visibleTopics",void 0),Br([e.redux({store:"reader"})],Fr.prototype,"currentPage",void 0),Br([e.redux({store:"reader"})],Fr.prototype,"scrollTarget",void 0),Br([i.property({attribute:!1})],Fr.prototype,"readerServiceProvider",void 0),e.customElement("ft-reader-context")(Fr);var Zr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Pr extends(Pi(f)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(qi,Xi)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==o?o:"NO_RATING"}get ratingValue(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==o?o:-1}get ratingDate(){var t,o;const i=null===(o=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===o?void 0:o.date;return"string"==typeof i?e.parseDate(i):i}render(){return this.canAccessFeedback||this.canAccessRating?o.html`
1565
+ `}get stateManager(){return null==this._stateManager&&(this._stateManager=zr.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Ur(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new Wr(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Lr(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;404===e.status?this.dispatchEvent(new Dr):401===e.status?this.dispatchEvent(new _r):this.dispatchEvent(new Tr(t))}reloadBookmarks(){Fi.reloadBookmarks()}reloadRating(){var t;null===(t=this.stateManager.service)||void 0===t||t.reloadRating()}}var Zr;Br.styles=Fr,Kr([e.redux({store:Ci.name})],Br.prototype,"baseUrl",void 0),Kr([i.property()],Br.prototype,"mapId",void 0),Kr([i.property()],Br.prototype,"tocId",void 0),Kr([i.property()],Br.prototype,"section",void 0),Kr([i.property()],Br.prototype,"searchInDocumentQuery",void 0),Kr([i.property({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Zr}})],Br.prototype,"page",void 0),Kr([e.redux({store:"reader"})],Br.prototype,"map",void 0),Kr([e.redux({store:"reader"})],Br.prototype,"toc",void 0),Kr([e.redux({store:"reader"})],Br.prototype,"visibleTopics",void 0),Kr([e.redux({store:"reader"})],Br.prototype,"currentPage",void 0),Kr([e.redux({store:"reader"})],Br.prototype,"scrollTarget",void 0),Kr([i.property({attribute:!1})],Br.prototype,"readerServiceProvider",void 0),e.customElement("ft-reader-context")(Br);var Pr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mr extends(Pi(f)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(qi,Xi)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==o?o:"NO_RATING"}get ratingValue(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==o?o:-1}get ratingDate(){var t,o;const i=null===(o=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===o?void 0:o.date;return"string"==typeof i?e.parseDate(i):i}render(){return this.canAccessFeedback||this.canAccessRating?o.html`
1566
1566
  <div class="ft-reader-feedback">
1567
1567
  ${this.hideTitle?o.nothing:o.html`
1568
1568
  <ft-typography variant="title" part="main-title">
@@ -1659,7 +1659,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1659
1659
  ></ft-text-area>
1660
1660
  ${n}
1661
1661
  </form>
1662
- `}return o.nothing}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Pr.elementDefinitions={"ft-button":xi,"ft-typography":Ie,"ft-switch":ei,"ft-switch-option":Qo,"ft-text-area":gi,"ft-text-field":er},Pr.styles=zt,Zr([i.property({type:Boolean})],Pr.prototype,"editorMode",void 0),Zr([i.property({type:Boolean})],Pr.prototype,"hideTitle",void 0),Zr([i.property({type:Boolean})],Pr.prototype,"ratingAllowed",void 0),Zr([i.property({attribute:!1})],Pr.prototype,"i18nProperties",void 0),Zr([i.property({attribute:!1})],Pr.prototype,"ratingSummary",void 0),Zr([i.property({attribute:!1})],Pr.prototype,"session",void 0),Zr([i.query(".ft-reader-feedback--feedback-input")],Pr.prototype,"feedbackInput",void 0),Zr([i.state()],Pr.prototype,"from",void 0),Zr([i.state()],Pr.prototype,"feedbackMessage",void 0),Zr([i.property()],Pr.prototype,"iconVariant",void 0),Zr([i.property()],Pr.prototype,"emptyStarIcon",void 0),Zr([i.property()],Pr.prototype,"filledStarIcon",void 0),Zr([i.property()],Pr.prototype,"emptyLikeIcon",void 0),Zr([i.property()],Pr.prototype,"filledLikeIcon",void 0),Zr([i.property()],Pr.prototype,"emptyDislikeIcon",void 0),Zr([i.property()],Pr.prototype,"filledDislikeIcon",void 0),Zr([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Pr.prototype,"configuration",void 0),Zr([i.property()],Pr.prototype,"feedbackMailLinkBuilder",void 0);const Mr=Vi.fromGwt("server");class Hr{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,i,r){var n;this.subject=t,this.url=e,this.configuration=i,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(o,i.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(o,null!==(n=i.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,o,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Mr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${r}&body=${n}`}}const jr=Vi.build("inDesignerFeedbackComponent"),Gr={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Vr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Yr extends(Pi(f)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Zo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Hr,this.i18nProperties={feedbackMainTitle:qi.properties.mapFeedbackMainTitle(),ratingSectionTitle:qi.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:qi.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:qi.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ci)}render(){return o.html`
1662
+ `}return o.nothing}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Mr.elementDefinitions={"ft-button":xi,"ft-typography":ke,"ft-switch":ei,"ft-switch-option":Qo,"ft-text-area":gi,"ft-text-field":er},Mr.styles=zt,Pr([i.property({type:Boolean})],Mr.prototype,"editorMode",void 0),Pr([i.property({type:Boolean})],Mr.prototype,"hideTitle",void 0),Pr([i.property({type:Boolean})],Mr.prototype,"ratingAllowed",void 0),Pr([i.property({attribute:!1})],Mr.prototype,"i18nProperties",void 0),Pr([i.property({attribute:!1})],Mr.prototype,"ratingSummary",void 0),Pr([i.property({attribute:!1})],Mr.prototype,"session",void 0),Pr([i.query(".ft-reader-feedback--feedback-input")],Mr.prototype,"feedbackInput",void 0),Pr([i.state()],Mr.prototype,"from",void 0),Pr([i.state()],Mr.prototype,"feedbackMessage",void 0),Pr([i.property()],Mr.prototype,"iconVariant",void 0),Pr([i.property()],Mr.prototype,"emptyStarIcon",void 0),Pr([i.property()],Mr.prototype,"filledStarIcon",void 0),Pr([i.property()],Mr.prototype,"emptyLikeIcon",void 0),Pr([i.property()],Mr.prototype,"filledLikeIcon",void 0),Pr([i.property()],Mr.prototype,"emptyDislikeIcon",void 0),Pr([i.property()],Mr.prototype,"filledDislikeIcon",void 0),Pr([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Mr.prototype,"configuration",void 0),Pr([i.property()],Mr.prototype,"feedbackMailLinkBuilder",void 0);const Hr=Vi.fromGwt("server");class jr{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,i,r){var n;this.subject=t,this.url=e,this.configuration=i,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(o,i.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(o,null!==(n=i.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,o,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Hr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${r}&body=${n}`}}const Gr=Vi.build("inDesignerFeedbackComponent"),Vr={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Yr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class qr extends(Pi(f)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Zo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new jr,this.i18nProperties={feedbackMainTitle:qi.properties.mapFeedbackMainTitle(),ratingSectionTitle:qi.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:qi.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:qi.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ci)}render(){return o.html`
1663
1663
  <ft-reader-feedback
1664
1664
  ratingAllowed
1665
1665
  .i18nProperties=${this.i18nProperties}
@@ -1679,7 +1679,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1679
1679
  @send-feedback=${this.sendFeedback}
1680
1680
  @mailer-feedback=${this.onMailerFeedbackSent}
1681
1681
  ></ft-reader-feedback>
1682
- `}update(t){var e,o,i,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(jr,Gr),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,o;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(o=this.service)||void 0===o?void 0:o.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:qi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:jr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:jr.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(o=this.service)||void 0===o?void 0:o.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:qi.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:qi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}Yr.elementDefinitions={"ft-reader-feedback":Pr},Vr([e.redux({store:Ci.name})],Yr.prototype,"session",void 0),Vr([e.redux({store:"reader"})],Yr.prototype,"map",void 0),Vr([e.redux({store:Ci.name})],Yr.prototype,"editorMode",void 0),Vr([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Yr.prototype,"configuration",void 0),Vr([i.state()],Yr.prototype,"ratingSummary",void 0),Vr([i.property({type:Boolean})],Yr.prototype,"hideTitle",void 0),Vr([i.property()],Yr.prototype,"iconVariant",void 0),Vr([i.property()],Yr.prototype,"emptyStarIcon",void 0),Vr([i.property()],Yr.prototype,"filledStarIcon",void 0),Vr([i.property()],Yr.prototype,"emptyLikeIcon",void 0),Vr([i.property()],Yr.prototype,"filledLikeIcon",void 0),Vr([i.property()],Yr.prototype,"emptyDislikeIcon",void 0),Vr([i.property()],Yr.prototype,"filledDislikeIcon",void 0),Vr([i.query("ft-reader-feedback")],Yr.prototype,"readerFeedback",void 0),Vr([Yi(Mr.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Yr.prototype,"mailSubject",void 0);var qr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Xr extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Qr=Symbol("registerInterval");class Jr extends(function(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Qr]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Qr]):this.dispatchEvent(new Xr)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Qr,qr([i.state()],o.prototype,"tocNode",void 0),qr([i.state()],o.prototype,"disableContextInteractions",void 0),o}(f)){}var tn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class en extends(Pi(Jr)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Zo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Hr,this.i18nProperties={feedbackMainTitle:qi.properties.topicFeedbackMainTitle(),ratingSectionTitle:qi.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:qi.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:qi.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ci)}render(){var t;return o.html`
1682
+ `}update(t){var e,o,i,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Gr,Vr),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,o;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(o=this.service)||void 0===o?void 0:o.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:qi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Gr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Gr.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(o=this.service)||void 0===o?void 0:o.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:qi.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:qi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}qr.elementDefinitions={"ft-reader-feedback":Mr},Yr([e.redux({store:Ci.name})],qr.prototype,"session",void 0),Yr([e.redux({store:"reader"})],qr.prototype,"map",void 0),Yr([e.redux({store:Ci.name})],qr.prototype,"editorMode",void 0),Yr([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],qr.prototype,"configuration",void 0),Yr([i.state()],qr.prototype,"ratingSummary",void 0),Yr([i.property({type:Boolean})],qr.prototype,"hideTitle",void 0),Yr([i.property()],qr.prototype,"iconVariant",void 0),Yr([i.property()],qr.prototype,"emptyStarIcon",void 0),Yr([i.property()],qr.prototype,"filledStarIcon",void 0),Yr([i.property()],qr.prototype,"emptyLikeIcon",void 0),Yr([i.property()],qr.prototype,"filledLikeIcon",void 0),Yr([i.property()],qr.prototype,"emptyDislikeIcon",void 0),Yr([i.property()],qr.prototype,"filledDislikeIcon",void 0),Yr([i.query("ft-reader-feedback")],qr.prototype,"readerFeedback",void 0),Yr([Yi(Hr.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],qr.prototype,"mailSubject",void 0);var Xr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Qr extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Jr=Symbol("registerInterval");class tn extends(function(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Jr]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Jr]):this.dispatchEvent(new Qr)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Jr,Xr([i.state()],o.prototype,"tocNode",void 0),Xr([i.state()],o.prototype,"disableContextInteractions",void 0),o}(f)){}var en=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class on extends(Pi(tn)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Zo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new jr,this.i18nProperties={feedbackMainTitle:qi.properties.topicFeedbackMainTitle(),ratingSectionTitle:qi.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:qi.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:qi.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ci)}render(){var t;return o.html`
1683
1683
  <ft-reader-feedback
1684
1684
  .i18nProperties=${this.i18nProperties}
1685
1685
  ?ratingAllowed=${null===(t=this.tocNode)||void 0===t?void 0:t.hasRating}
@@ -1699,4 +1699,4 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},$e=t=>({_$li
1699
1699
  @send-feedback=${this.sendFeedback}
1700
1700
  @mailer-feedback=${this.onMailerFeedbackSent}
1701
1701
  ></ft-reader-feedback>
1702
- `}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(jr,Gr),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,o;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(o=this.service)||void 0===o?void 0:o.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:qi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:jr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{!this.editorMode&&this.tocNode?(await(null===(o=this.service)||void 0===o?void 0:o.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:qi.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:jr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:qi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}en.elementDefinitions={"ft-reader-feedback":Pr},tn([e.redux({store:Ci.name})],en.prototype,"session",void 0),tn([e.redux({store:"reader"})],en.prototype,"map",void 0),tn([e.redux({store:Ci.name})],en.prototype,"editorMode",void 0),tn([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],en.prototype,"configuration",void 0),tn([i.state()],en.prototype,"ratingSummary",void 0),tn([i.property({type:Boolean})],en.prototype,"hideTitle",void 0),tn([i.property()],en.prototype,"iconVariant",void 0),tn([i.property()],en.prototype,"emptyStarIcon",void 0),tn([i.property()],en.prototype,"filledStarIcon",void 0),tn([i.property()],en.prototype,"emptyLikeIcon",void 0),tn([i.property()],en.prototype,"filledLikeIcon",void 0),tn([i.property()],en.prototype,"emptyDislikeIcon",void 0),tn([i.property()],en.prototype,"filledDislikeIcon",void 0),tn([i.query("ft-reader-feedback")],en.prototype,"readerFeedback",void 0),tn([Yi(Mr.properties["mail.feedback.subject"]((t=>{var e,o;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(o=t.map)||void 0===o?void 0:o.title]})))],en.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(Yr),e.customElement("ft-reader-topic-feedback")(en),t.FtReaderFeedbackCssVariables=At,t.FtReaderMapFeedback=Yr,t.FtReaderTopicFeedback=en,t.styles=zt}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);
1702
+ `}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Gr,Vr),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,o;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(o=this.service)||void 0===o?void 0:o.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:qi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Gr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{!this.editorMode&&this.tocNode?(await(null===(o=this.service)||void 0===o?void 0:o.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:qi.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Gr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:qi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}on.elementDefinitions={"ft-reader-feedback":Mr},en([e.redux({store:Ci.name})],on.prototype,"session",void 0),en([e.redux({store:"reader"})],on.prototype,"map",void 0),en([e.redux({store:Ci.name})],on.prototype,"editorMode",void 0),en([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],on.prototype,"configuration",void 0),en([i.state()],on.prototype,"ratingSummary",void 0),en([i.property({type:Boolean})],on.prototype,"hideTitle",void 0),en([i.property()],on.prototype,"iconVariant",void 0),en([i.property()],on.prototype,"emptyStarIcon",void 0),en([i.property()],on.prototype,"filledStarIcon",void 0),en([i.property()],on.prototype,"emptyLikeIcon",void 0),en([i.property()],on.prototype,"filledLikeIcon",void 0),en([i.property()],on.prototype,"emptyDislikeIcon",void 0),en([i.property()],on.prototype,"filledDislikeIcon",void 0),en([i.query("ft-reader-feedback")],on.prototype,"readerFeedback",void 0),en([Yi(Hr.properties["mail.feedback.subject"]((t=>{var e,o;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(o=t.map)||void 0===o?void 0:o.title]})))],on.prototype,"mailSubject",void 0),e.customElement("ft-reader-map-feedback")(qr),e.customElement("ft-reader-topic-feedback")(on),t.FtReaderFeedbackCssVariables=At,t.FtReaderMapFeedback=qr,t.FtReaderTopicFeedback=on,t.styles=zt}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);