@fluid-topics/ft-search-results 1.0.63 → 1.1.1
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.
|
@@ -3,10 +3,16 @@ import { ClusterPolicy, FtSearchResultsProperties } from "./ft-search-results.pr
|
|
|
3
3
|
import { FtSearchComponent } from "@fluid-topics/ft-search-context/build/registration";
|
|
4
4
|
import { FtSearchResultClusterEntry } from "@fluid-topics/public-api";
|
|
5
5
|
import "@fluid-topics/ft-search-result-context";
|
|
6
|
-
|
|
6
|
+
import "@fluid-topics/ft-search-result-title";
|
|
7
|
+
import "@fluid-topics/ft-search-result-abstract";
|
|
8
|
+
declare const FtSearchResults_base: typeof FtSearchComponent & (new (...args: any[]) => import("@fluid-topics/ft-i18n").FtLitElementWithI18nInterface);
|
|
9
|
+
export declare class FtSearchResults extends FtSearchResults_base implements FtSearchResultsProperties {
|
|
7
10
|
static styles: import("lit").CSSResult;
|
|
8
11
|
clusterPolicy: ClusterPolicy;
|
|
12
|
+
displayNoResultsMessage: boolean;
|
|
9
13
|
renderResult: (result: FtSearchResultClusterEntry, index: number) => TemplateResult | string;
|
|
10
14
|
private results?;
|
|
15
|
+
constructor();
|
|
11
16
|
protected render(): unknown;
|
|
12
17
|
}
|
|
18
|
+
export {};
|
|
@@ -11,29 +11,45 @@ import { redux } from "@fluid-topics/ft-wc-utils";
|
|
|
11
11
|
import { styles } from "./ft-search-results.css";
|
|
12
12
|
import { FtSearchComponent } from "@fluid-topics/ft-search-context/build/registration";
|
|
13
13
|
import "@fluid-topics/ft-search-result-context";
|
|
14
|
-
|
|
14
|
+
import "@fluid-topics/ft-search-result-title";
|
|
15
|
+
import "@fluid-topics/ft-search-result-abstract";
|
|
16
|
+
import { withI18n } from "@fluid-topics/ft-i18n";
|
|
17
|
+
import { resultsNumberContext } from "@fluid-topics/ft-search-results-number/build/SearchResultsNumberMessages";
|
|
18
|
+
class FtSearchResults extends withI18n(FtSearchComponent) {
|
|
15
19
|
constructor() {
|
|
16
|
-
super(
|
|
20
|
+
super();
|
|
17
21
|
this.clusterPolicy = "display-first-result";
|
|
22
|
+
this.displayNoResultsMessage = false;
|
|
18
23
|
this.renderResult = () => html `
|
|
24
|
+
<ft-search-result-title></ft-search-result-title>
|
|
25
|
+
<ft-search-result-abstract></ft-search-result-abstract>
|
|
19
26
|
`;
|
|
27
|
+
this.addI18nContext(resultsNumberContext);
|
|
20
28
|
}
|
|
21
29
|
render() {
|
|
22
30
|
var _a;
|
|
31
|
+
if (this.displayNoResultsMessage && this.results != null && this.results.length == 0) {
|
|
32
|
+
return html `
|
|
33
|
+
<ft-typography part="no-results-message" variant="body1">${resultsNumberContext.messages.results(0)}</ft-typography>
|
|
34
|
+
`;
|
|
35
|
+
}
|
|
23
36
|
return repeat(((_a = this.results) !== null && _a !== void 0 ? _a : [])
|
|
24
37
|
.flatMap(result => this.clusterPolicy == "display-first-result"
|
|
25
38
|
? [result.entries[0]]
|
|
26
39
|
: result.entries), (result) => { var _a, _b, _c, _d, _e; return (_d = (_b = (_a = result.document) === null || _a === void 0 ? void 0 : _a.documentId) !== null && _b !== void 0 ? _b : (_c = result.map) === null || _c === void 0 ? void 0 : _c.mapId) !== null && _d !== void 0 ? _d : (_e = result.topic) === null || _e === void 0 ? void 0 : _e.tocId; }, (result, index) => html `
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
40
|
+
<ft-search-result-context .result=${result} index="${index}">
|
|
41
|
+
${this.renderResult(result, index)}
|
|
42
|
+
</ft-search-result-context>
|
|
43
|
+
`);
|
|
31
44
|
}
|
|
32
45
|
}
|
|
33
46
|
FtSearchResults.styles = styles;
|
|
34
47
|
__decorate([
|
|
35
48
|
property({ type: String, attribute: "cluster-policy" })
|
|
36
49
|
], FtSearchResults.prototype, "clusterPolicy", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
property({ type: Boolean })
|
|
52
|
+
], FtSearchResults.prototype, "displayNoResultsMessage", void 0);
|
|
37
53
|
__decorate([
|
|
38
54
|
property({ attribute: false })
|
|
39
55
|
], FtSearchResults.prototype, "renderResult", void 0);
|
|
@@ -1,19 +1,174 @@
|
|
|
1
|
-
!function(t,
|
|
2
|
-
`;var o,a,u,h,c,l,f,d,v,w,E,b,y,A;!function(t){!function(i){var e={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(e.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};function r(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 o(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var i={next:function(){var i=t.shift();return{done:void 0===i,value:i}}};return e.iterable&&(i[Symbol.iterator]=function(){return i}),i}function u(t){this.map={},t instanceof u?t.forEach((function(t,i){this.append(i,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(i){this.append(i,t[i])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new Promise((function(i,e){t.onload=function(){i(t.result)},t.onerror=function(){e(t.error)}}))}function l(t){var i=new FileReader,e=c(i);return i.readAsArrayBuffer(t),e}function f(t){if(t.slice)return t.slice(0);var i=new Uint8Array(t.byteLength);return i.set(new Uint8Array(t)),i.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var i;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((i=t)&&DataView.prototype.isPrototypeOf(i))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=f(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):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=h(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?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(l)}),this.text=function(){var t,i,e,n=h(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,i=new FileReader,e=c(i),i.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var i=new Uint8Array(t),e=new Array(i.length),n=0;n<i.length;n++)e[n]=String.fromCharCode(i[n]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(t,i){t=r(t),i=o(i);var e=this.map[t];this.map[t]=e?e+", "+i:i},u.prototype.delete=function(t){delete this.map[r(t)]},u.prototype.get=function(t){return t=r(t),this.has(t)?this.map[t]:null},u.prototype.has=function(t){return this.map.hasOwnProperty(r(t))},u.prototype.set=function(t,i){this.map[r(t)]=o(i)},u.prototype.forEach=function(t,i){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(i,this.map[e],e,this)},u.prototype.keys=function(){var t=[];return this.forEach((function(i,e){t.push(e)})),a(t)},u.prototype.values=function(){var t=[];return this.forEach((function(i){t.push(i)})),a(t)},u.prototype.entries=function(){var t=[];return this.forEach((function(i,e){t.push([e,i])})),a(t)},e.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(t,i){var e,n,s=(i=i||{}).body;if(t instanceof w){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,i.headers||(this.headers=new u(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,s||null==t._bodyInit||(s=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=i.credentials||this.credentials||"same-origin",!i.headers&&this.headers||(this.headers=new u(i.headers)),this.method=(e=i.method||this.method||"GET",n=e.toUpperCase(),v.indexOf(n)>-1?n:e),this.mode=i.mode||this.mode||null,this.signal=i.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(s)}function E(t){var i=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),n=e.shift().replace(/\+/g," "),s=e.join("=").replace(/\+/g," ");i.append(decodeURIComponent(n),decodeURIComponent(s))}})),i}function b(t,i){i||(i={}),this.type="default",this.status=void 0===i.status?200:i.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in i?i.statusText:"OK",this.headers=new u(i.headers),this.url=i.url||"",this._initBody(t)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},d.call(w.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var y=[301,302,303,307,308];b.redirect=function(t,i){if(-1===y.indexOf(i))throw new RangeError("Invalid status code");return new b(null,{status:i,headers:{location:t}})},i.DOMException=t.DOMException;try{new i.DOMException}catch(t){i.DOMException=function(t,i){this.message=t,this.name=i;var e=Error(t);this.stack=e.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function A(t,n){return new Promise((function(s,r){var o=new w(t,n);if(o.signal&&o.signal.aborted)return r(new i.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function h(){a.abort()}a.onload=function(){var t,i,e={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",i=new u,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),n=e.shift().trim();if(n){var s=e.join(":").trim();i.append(n,s)}})),i)};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;s(new b(n,e))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.onabort=function(){r(new i.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&e.blob&&(a.responseType="blob"),o.headers.forEach((function(t,i){a.setRequestHeader(i,t)})),o.signal&&(o.signal.addEventListener("abort",h),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",h)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}A.polyfill=!0,t.fetch||(t.fetch=A,t.Headers=u,t.Request=w,t.Response=b),i.Headers=u,i.Request=w,i.Response=b,i.fetch=A,Object.defineProperty(i,"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"}(o||(o={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(a||(a={})),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"}(u||(u={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(h||(h={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(c||(c={})),function(t){t.ASC="ASC",t.DESC="DESC"}(l||(l={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(f||(f={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(d||(d={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(v||(v={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(w||(w={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(E||(E={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(b||(b={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(y||(y={})),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"}(A||(A={})),A.PERSONAL_BOOK_SHARE_USER,A.PERSONAL_BOOK_USER,A.HTML_EXPORT_USER,A.PERSONAL_BOOK_USER,A.PDF_EXPORT_USER,A.PERSONAL_BOOK_USER,A.KHUB_ADMIN,A.CONTENT_PUBLISHER,A.ADMIN,A.KHUB_ADMIN,A.USERS_ADMIN,A.PORTAL_ADMIN,A.DEVELOPER,A.BETA_USER,A.DEBUG_USER;const p=e.css`
|
|
3
|
-
|
|
1
|
+
!function(t,o,r,e,a,n){const i=r.css`
|
|
2
|
+
[part="no-results-message"] {
|
|
3
|
+
text-align: center;
|
|
4
|
+
padding: 12px;
|
|
5
|
+
}
|
|
6
|
+
`;var l,c,s,f,p,h,y,d,g,u,b,m,O,N;!function(t){!function(o){var r={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(r.arrayBuffer)var e=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(t){return t&&e.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 i(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return r.iterable&&(o[Symbol.iterator]=function(){return o}),o}function c(t){this.map={},t instanceof c?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function s(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(o,r){t.onload=function(){o(t.result)},t.onerror=function(){r(t.error)}}))}function p(t){var o=new FileReader,r=f(o);return o.readAsArrayBuffer(t),r}function h(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:r.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:r.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():r.arrayBuffer&&r.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||a(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):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var t=s(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?s(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,o,r,e=s(this);if(e)return e;if(this._bodyBlob)return t=this._bodyBlob,o=new FileReader,r=f(o),o.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),r=new Array(o.length),e=0;e<o.length;e++)r[e]=String.fromCharCode(o[e]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,o){t=n(t),o=i(o);var r=this.map[t];this.map[t]=r?r+", "+o:o},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,o){this.map[n(t)]=i(o)},c.prototype.forEach=function(t,o){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(o,this.map[r],r,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(o,r){t.push(r)})),l(t)},c.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),l(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(o,r){t.push([r,o])})),l(t)},r.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,o){var r,e,a=(o=o||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,a||null==t._bodyInit||(a=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new c(o.headers)),this.method=(r=o.method||this.method||"GET",e=r.toUpperCase(),d.indexOf(e)>-1?e:r),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function u(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),e=r.shift().replace(/\+/g," "),a=r.join("=").replace(/\+/g," ");o.append(decodeURIComponent(e),decodeURIComponent(a))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new c(o.headers),this.url=o.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},y.call(g.prototype),y.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(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,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var r=Error(t);this.stack=r.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function O(t,e){return new Promise((function(a,n){var i=new g(t,e);if(i.signal&&i.signal.aborted)return n(new o.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function s(){l.abort()}l.onload=function(){var t,o,r={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",o=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),e=r.shift().trim();if(e){var a=r.join(":").trim();o.append(e,a)}})),o)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var e="response"in l?l.response:l.responseText;a(new b(e,r))},l.onerror=function(){n(new TypeError("Network request failed"))},l.ontimeout=function(){n(new TypeError("Network request failed"))},l.onabort=function(){n(new o.DOMException("Aborted","AbortError"))},l.open(i.method,i.url,!0),"include"===i.credentials?l.withCredentials=!0:"omit"===i.credentials&&(l.withCredentials=!1),"responseType"in l&&r.blob&&(l.responseType="blob"),i.headers.forEach((function(t,o){l.setRequestHeader(o,t)})),i.signal&&(i.signal.addEventListener("abort",s),l.onreadystatechange=function(){4===l.readyState&&i.signal.removeEventListener("abort",s)}),l.send(void 0===i._bodyInit?null:i._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=c,t.Request=g,t.Response=b),o.Headers=c,o.Request=g,o.Response=b,o.fetch=O,Object.defineProperty(o,"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"}(l||(l={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(c||(c={})),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"}(s||(s={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(f||(f={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(p||(p={})),function(t){t.ASC="ASC",t.DESC="DESC"}(h||(h={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(y||(y={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(d||(d={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(g||(g={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(u||(u={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(b||(b={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(m||(m={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(O||(O={})),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"}(N||(N={})),N.PERSONAL_BOOK_SHARE_USER,N.PERSONAL_BOOK_USER,N.HTML_EXPORT_USER,N.PERSONAL_BOOK_USER,N.PDF_EXPORT_USER,N.PERSONAL_BOOK_USER,N.KHUB_ADMIN,N.CONTENT_PUBLISHER,N.ADMIN,N.KHUB_ADMIN,N.USERS_ADMIN,N.PORTAL_ADMIN,N.DEVELOPER,N.BETA_USER,N.DEBUG_USER;const S=r.css`
|
|
7
|
+
`,C=o.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,o)=>{t.baseUrl=o.payload},setApiIntegrationIdentifier:(t,o)=>{t.apiIntegrationIdentifier=o.payload},setUiLocale:(t,o)=>{t.uiLocale=o.payload},setAvailableUiLocales:(t,o)=>{t.availableUiLocales=o.payload},setEditorMode:(t,o)=>{t.editorMode=o.payload},setNoCustom:(t,o)=>{t.noCustom=o.payload},setNoCustomComponent:(t,o)=>{t.noCustomComponent=o.payload},setSession:(t,o)=>{t.session=o.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class v{static build(t){const{baseUrl:o,apiIntegrationIdentifier:r}=C.getState(),e=null!=t?t:r;if(o&&e&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,e,!0)}static get(t){var o;return null!=t?v.build(t):null!==(o=v.API)&&void 0!==o?o:v.API=v.build()}static await(t){return new Promise((o=>{let r=v.get(t);if(r)o(r);else{const e=C.subscribe((()=>{r=v.get(t),r&&(e(),o(r))}))}}))}}var w;const x=Symbol("clearAfterUnitTest");class R{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={},this.currentUiLocale="",this[w]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=C.getState().uiLocale,C.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=C.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var e;if(t=t.toLowerCase(),Object.keys(r).length>0){const a={...null!==(e=this.defaultMessages[t])&&void 0!==e?e:{},...r};o.deepEqual(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,r,...e){var a,n,i;t=t.toLowerCase(),this.fetchContext(t);const l=null!==(n=null===(a=this.cache.getNow(t))||void 0===a?void 0:a.messages)&&void 0!==n?n:{};return new o.ParametrizedLabelResolver(null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},l).resolve(r,...e)}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,o){var r;return t=t.toLowerCase(),this.listeners[t]=null!==(r=this.listeners[t])&&void 0!==r?r:new Set,this.listeners[t].add(o),()=>{var r;return null===(r=this.listeners[t])||void 0===r?void 0:r.delete(o)}}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=>o.delay(0).then((()=>t())).catch((()=>null)))))}}w=x,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new R((async(t,o)=>(await v.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new R((async(t,o)=>(await v.await()).getCustomMessageContext(t,o))));const E=window.FluidTopicsI18nService,U=window.FluidTopicsCustomI18nService;var I=function(t,o,r,e){for(var a,n=arguments.length,i=n<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,r,i):a(o,r))||i);return n>3&&i&&Object.defineProperty(o,r,i),i};class L extends o.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>v.get(),this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return r.html`
|
|
4
8
|
<slot></slot>
|
|
5
|
-
`}update(t){super.update(t),t.has("baseUrl")&&
|
|
9
|
+
`}update(t){super.update(t),t.has("baseUrl")&&C.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&C.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&C.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&C.actions.setNoCustom(this.noCustom),t.has("editorMode")&&C.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&C.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&C.actions.setSession(this.session),t.has("availableUiLocales")&&C.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>E.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const o=await t.getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),o.idleTimeoutInMillis),o}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}L.elementDefinitions={},L.styles=S,I([a.property()],L.prototype,"baseUrl",void 0),I([a.property()],L.prototype,"apiIntegrationIdentifier",void 0),I([a.property()],L.prototype,"uiLocale",void 0),I([o.jsonProperty([])],L.prototype,"availableUiLocales",void 0),I([a.property({type:Boolean})],L.prototype,"editorMode",void 0),I([a.property({type:Boolean})],L.prototype,"noCustom",void 0),I([a.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],L.prototype,"noCustomComponent",void 0),I([a.property({type:Boolean})],L.prototype,"withManualResources",void 0),I([o.jsonProperty([])],L.prototype,"messageContexts",void 0),I([o.jsonProperty(void 0)],L.prototype,"session",void 0),I([a.property({type:Object})],L.prototype,"apiProvider",void 0);class W{async listMySearches(){var t;return(null===(t=C.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await v.await()).listMySearches(C.getState().session.profile.userId):[]}}const K=new o.CacheRegistry;class k{async listMyBookmarks(){return K.get("bookmarks",(async()=>(await v.await()).listMyBookmarks(C.getState().session.profile.userId)))}clearCache(){K.clear("bookmarks")}}const $=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=C.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new k,C.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:r}=C.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==r?void 0:r.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){$.actions.savedSearches(void 0)}clearMyBookmarks(){$.actions.bookmarks(void 0)}async reloadMySearches(){const t=new W,o=await t.listMySearches();$.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;$.actions.bookmarks(o)}}},o.customElement("ft-app-context")(L);class A extends Event{constructor(){super(A.eventName)}}A.eventName="search-context-clear-all-filters";var Z=function(t,o,r,e){for(var a,n=arguments.length,i=n<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,r,i):a(o,r))||i);return n>3&&i&&Object.defineProperty(o,r,i),i};class D extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const z=Symbol("registerInterval");class F extends(function(t){var o;class r extends t{constructor(){super(...arguments),this[o]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[z]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[z]):this.dispatchEvent(new D)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=z,Z([a.state()],r.prototype,"stateManager",void 0),r}(o.FtLitElementRedux)){}const B=r.css`
|
|
6
10
|
a {
|
|
7
11
|
color: inherit;
|
|
8
12
|
text-decoration: inherit;
|
|
9
13
|
}
|
|
10
|
-
`;var
|
|
14
|
+
`;var T=function(t,o,r,e){for(var a,n=arguments.length,i=n<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,r,i):a(o,r))||i);return n>3&&i&&Object.defineProperty(o,r,i),i};class P extends CustomEvent{constructor(t,o){super("ft-search-result-click",{detail:{result:t,rank:o},bubbles:!0,composed:!0})}}class H extends o.FtLitElement{constructor(){super(...arguments),this.index=0,this.registeredComponents=[]}render(){return r.html`
|
|
11
15
|
<a href="${this.url}" @click=${this.onResultClick}>
|
|
12
16
|
<slot @register-ft-search-result-component=${this.registerComponent}></slot>
|
|
13
17
|
</a>
|
|
14
|
-
`}get url(){var t;switch(null===(t=this.result)||void 0===t?void 0:t.type){case
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
`}get url(){var t;switch(null===(t=this.result)||void 0===t?void 0:t.type){case m.MAP:return this.result.map.readerUrl;case m.DOCUMENT:return this.result.document.viewerUrl;case m.TOPIC:return this.result.topic.readerUrl}return""}onResultClick(){this.dispatchEvent(new P(this.result,this.index+1))}registerComponent(t){t.stopPropagation();const o=t.composedPath()[0];this.register(o)}register(t){this.registeredComponents.push(t),t.result=this.result}update(t){super.update(t),t.has("result")&&this.registeredComponents.forEach((t=>t.result=this.result))}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}}H.elementDefinitions={},H.styles=B,T([a.property({attribute:!1})],H.prototype,"result",void 0),T([a.property()],H.prototype,"index",void 0),o.customElement("ft-search-result-context")(H);var G=function(t,o,r,e){for(var a,n=arguments.length,i=n<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,r,i):a(o,r))||i);return n>3&&i&&Object.defineProperty(o,r,i),i};class _ extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const M=Symbol("registerInterval");class j extends(function(t){var o;class r extends t{constructor(){super(...arguments),this[o]=0}connectedCallback(){super.connectedCallback(),this[M]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[M]):this.dispatchEvent(new _)}disconnectedCallback(){super.disconnectedCallback(),this.result=void 0}}return o=M,G([a.property({attribute:!1})],r.prototype,"result",void 0),r}(F)){}const Y=o.FtCssVariableFactory.create("--ft-srt-highlight-background-color","","COLOR","transparent"),X=r.css`
|
|
19
|
+
.kwicmatch {
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
background-color: ${Y};
|
|
22
|
+
}
|
|
23
|
+
`
|
|
24
|
+
/**
|
|
25
|
+
* @license
|
|
26
|
+
* Copyright 2017 Google LLC
|
|
27
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
+
*/,q=globalThis,V=q.trustedTypes,J=V?V.createPolicy("lit-html",{createHTML:t=>t}):void 0,Q="$lit$",tt=`lit$${(Math.random()+"").slice(9)}$`,ot="?"+tt,rt=`<${ot}>`,et=document,at=()=>et.createComment(""),nt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,it=Array.isArray,lt="[ \t\n\f\r]",ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,st=/-->/g,ft=/>/g,pt=RegExp(`>|${lt}(?:([^\\s"'>=/]+)(${lt}*=${lt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ht=/'/g,yt=/"/g,dt=/^(?:script|style|textarea|title)$/i,gt=(t=>(o,...r)=>({_$litType$:t,strings:o,values:r}))(1),ut=Symbol.for("lit-noChange"),bt=Symbol.for("lit-nothing"),mt=new WeakMap,Ot=et.createTreeWalker(et,129);function Nt(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==J?J.createHTML(o):o}const St=(t,o)=>{const r=t.length-1,e=[];let a,n=2===o?"<svg>":"",i=ct;for(let o=0;o<r;o++){const r=t[o];let l,c,s=-1,f=0;for(;f<r.length&&(i.lastIndex=f,c=i.exec(r),null!==c);)f=i.lastIndex,i===ct?"!--"===c[1]?i=st:void 0!==c[1]?i=ft:void 0!==c[2]?(dt.test(c[2])&&(a=RegExp("</"+c[2],"g")),i=pt):void 0!==c[3]&&(i=pt):i===pt?">"===c[0]?(i=a??ct,s=-1):void 0===c[1]?s=-2:(s=i.lastIndex-c[2].length,l=c[1],i=void 0===c[3]?pt:'"'===c[3]?yt:ht):i===yt||i===ht?i=pt:i===st||i===ft?i=ct:(i=pt,a=void 0);const p=i===pt&&t[o+1].startsWith("/>")?" ":"";n+=i===ct?r+rt:s>=0?(e.push(l),r.slice(0,s)+Q+r.slice(s)+tt+p):r+tt+(-2===s?o:p)}return[Nt(t,n+(t[r]||"<?>")+(2===o?"</svg>":"")),e]};class Ct{constructor({strings:t,_$litType$:o},r){let e;this.parts=[];let a=0,n=0;const i=t.length-1,l=this.parts,[c,s]=St(t,o);if(this.el=Ct.createElement(c,r),Ot.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(e=Ot.nextNode())&&l.length<i;){if(1===e.nodeType){if(e.hasAttributes())for(const t of e.getAttributeNames())if(t.endsWith(Q)){const o=s[n++],r=e.getAttribute(t).split(tt),i=/([.?@])?(.*)/.exec(o);l.push({type:1,index:a,name:i[2],strings:r,ctor:"."===i[1]?Et:"?"===i[1]?Ut:"@"===i[1]?It:Rt}),e.removeAttribute(t)}else t.startsWith(tt)&&(l.push({type:6,index:a}),e.removeAttribute(t));if(dt.test(e.tagName)){const t=e.textContent.split(tt),o=t.length-1;if(o>0){e.textContent=V?V.emptyScript:"";for(let r=0;r<o;r++)e.append(t[r],at()),Ot.nextNode(),l.push({type:2,index:++a});e.append(t[o],at())}}}else if(8===e.nodeType)if(e.data===ot)l.push({type:2,index:a});else{let t=-1;for(;-1!==(t=e.data.indexOf(tt,t+1));)l.push({type:7,index:a}),t+=tt.length-1}a++}}static createElement(t,o){const r=et.createElement("template");return r.innerHTML=t,r}}function vt(t,o,r=t,e){if(o===ut)return o;let a=void 0!==e?r._$Co?.[e]:r._$Cl;const n=nt(o)?void 0:o._$litDirective$;return a?.constructor!==n&&(a?._$AO?.(!1),void 0===n?a=void 0:(a=new n(t),a._$AT(t,r,e)),void 0!==e?(r._$Co??=[])[e]=a:r._$Cl=a),void 0!==a&&(o=vt(t,a._$AS(t,o.values),a,e)),o}class wt{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:r}=this._$AD,e=(t?.creationScope??et).importNode(o,!0);Ot.currentNode=e;let a=Ot.nextNode(),n=0,i=0,l=r[0];for(;void 0!==l;){if(n===l.index){let o;2===l.type?o=new xt(a,a.nextSibling,this,t):1===l.type?o=new l.ctor(a,l.name,l.strings,this,t):6===l.type&&(o=new Lt(a,this,t)),this._$AV.push(o),l=r[++i]}n!==l?.index&&(a=Ot.nextNode(),n++)}return Ot.currentNode=et,e}p(t){let o=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,o),o+=r.strings.length-2):r._$AI(t[o])),o++}}class xt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,r,e){this.type=2,this._$AH=bt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=r,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=vt(this,t,o),nt(t)?t===bt||null==t||""===t?(this._$AH!==bt&&this._$AR(),this._$AH=bt):t!==this._$AH&&t!==ut&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>it(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!==bt&&nt(this._$AH)?this._$AA.nextSibling.data=t:this.$(et.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:r}=t,e="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Ct.createElement(Nt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===e)this._$AH.p(o);else{const t=new wt(e,this),r=t.u(this.options);t.p(o),this.$(r),this._$AH=t}}_$AC(t){let o=mt.get(t.strings);return void 0===o&&mt.set(t.strings,o=new Ct(t)),o}T(t){it(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,e=0;for(const a of t)e===o.length?o.push(r=new xt(this.k(at()),this.k(at()),this,this.options)):r=o[e],r._$AI(a),e++;e<o.length&&(this._$AR(r&&r._$AB.nextSibling,e),o.length=e)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Rt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,r,e,a){this.type=1,this._$AH=bt,this._$AN=void 0,this.element=t,this.name=o,this._$AM=e,this.options=a,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=bt}_$AI(t,o=this,r,e){const a=this.strings;let n=!1;if(void 0===a)t=vt(this,t,o,0),n=!nt(t)||t!==this._$AH&&t!==ut,n&&(this._$AH=t);else{const e=t;let i,l;for(t=a[0],i=0;i<a.length-1;i++)l=vt(this,e[r+i],o,i),l===ut&&(l=this._$AH[i]),n||=!nt(l)||l!==this._$AH[i],l===bt?t=bt:t!==bt&&(t+=(l??"")+a[i+1]),this._$AH[i]=l}n&&!e&&this.O(t)}O(t){t===bt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Et extends Rt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===bt?void 0:t}}class Ut extends Rt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==bt)}}class It extends Rt{constructor(t,o,r,e,a){super(t,o,r,e,a),this.type=5}_$AI(t,o=this){if((t=vt(this,t,o,0)??bt)===ut)return;const r=this._$AH,e=t===bt&&r!==bt||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==bt&&(r===bt||e);e&&this.element.removeEventListener(this.name,this,r),a&&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 Lt{constructor(t,o,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){vt(this,t)}}const Wt=q.litHtmlPolyfillSupport;Wt?.(Ct,xt),(q.litHtmlVersions??=[]).push("3.1.0");
|
|
29
|
+
/**
|
|
30
|
+
* @license
|
|
31
|
+
* Copyright 2020 Google LLC
|
|
32
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
+
*/
|
|
34
|
+
const Kt=Symbol.for(""),kt=t=>{if(t?.r===Kt)return t?._$litStatic$},$t=t=>({_$litStatic$:t,r:Kt}),At=new Map,Zt=(t=>(o,...r)=>{const e=r.length;let a,n;const i=[],l=[];let c,s=0,f=!1;for(;s<e;){for(c=o[s];s<e&&void 0!==(n=r[s],a=kt(n));)c+=a+o[++s],f=!0;s!==e&&l.push(n),i.push(c),s++}if(s===e&&i.push(o[e]),f){const t=i.join("$$lit$$");void 0===(o=At.get(t))&&(i.raw=i,At.set(t,o=i)),r=l}return t(o,...r)})(gt);var Dt;!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"}(Dt||(Dt={}));const zt=t=>"string"==typeof t?r.unsafeCSS(t):t;class Ft{static create(t,o,e,a){const n=t=>zt(null!=t?t:a),i=r.css`var(${zt(t)}, ${n(a)})`;return i.name=t,i.description=o,i.category=e,i.defaultValue=a,i.defaultCssValue=n,i.get=o=>r.css`var(${zt(t)}, ${n(o)})`,i.breadcrumb=()=>[],i.lastResortDefaultValue=()=>a,i}static extend(t,o,e,a){const n=t=>e.get(null!=t?t:a),i=r.css`var(${zt(t)}, ${n(a)})`;return i.name=t,i.description=o,i.category=e.category,i.fallbackVariable=e,i.defaultValue=a,i.defaultCssValue=n,i.get=o=>r.css`var(${zt(t)}, ${n(o)})`,i.breadcrumb=()=>[e.name,...e.breadcrumb()],i.lastResortDefaultValue=()=>null!=a?a:e.lastResortDefaultValue(),i}static external(t,o){const e=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):zt(null!=o?o:t.lastResortDefaultValue()),a=r.css`var(${zt(t.name)}, ${e(t.defaultValue)})`;return a.name=t.name,a.category=t.category,a.fallbackVariable=t.fallbackVariable,a.defaultValue=t.defaultValue,a.context=o,a.defaultCssValue=e,a.get=o=>r.css`var(${zt(t.name)}, ${e(o)})`,a.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],a.lastResortDefaultValue=()=>t.lastResortDefaultValue(),a}}const Bt={colorWhite:Ft.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Ft.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Ft.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Ft.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Ft.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Ft.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Ft.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Ft.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Ft.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Ft.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Ft.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Ft.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Ft.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Ft.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Ft.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Ft.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Ft.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Ft.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Ft.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Ft.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Ft.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Ft.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Ft.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Ft.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Ft.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Ft.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Ft.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Ft.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Ft.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Ft.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Ft.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Ft.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Ft.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Ft.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Ft.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Ft.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Ft.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Ft.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Ft.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Ft.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Ft.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Ft.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Ft.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Ft.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Ft.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Ft.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Ft.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Ft.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Ft.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Ft.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Ft.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Ft.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Ft.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Ft.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Ft.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Ft.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Ft.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Ft.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Ft.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Ft.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Ft.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Ft.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Ft.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Ft.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Ft.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Ft.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Ft.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Ft.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Ft.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Ft.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Ft.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Ft.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Ft.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Ft.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Ft.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Ft.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Ft.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Ft.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Ft.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Ft.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Ft.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Ft.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Ft.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Ft.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Ft.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Ft.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Ft.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Ft.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Ft.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Ft.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Ft.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Ft.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Ft.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Ft.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Ft.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Ft.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Ft.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Ft.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Ft.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Ft.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Ft.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Ft.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Ft.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Ft.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Ft.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Ft.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Ft.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Ft.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Ft.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Ft.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Ft.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Ft.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Ft.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Ft.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Ft.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Ft.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Ft.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Ft.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Ft.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Ft.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Ft.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Ft.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Ft.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Ft.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Ft.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Ft.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Ft.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Ft.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Ft.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Ft.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Ft.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Ft.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Ft.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Ft.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Ft.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Ft.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Ft.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Ft.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Ft.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Ft.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Ft.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Ft.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Ft.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Ft.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Ft.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Ft.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Ft.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Ft.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Ft.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Ft.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Ft.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Ft.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Ft.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Ft.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Ft.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Ft.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Ft.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Ft.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Ft.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Ft.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Ft.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Ft.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Ft.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Ft.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Ft.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Ft.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Ft.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Ft.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Ft.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Ft.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Ft.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Ft.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Ft.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Ft.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Ft.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Ft.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Ft.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Ft.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Ft.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Ft.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Ft.create("--ft-opacity-0","","NUMBER","0"),opacity8:Ft.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Ft.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Ft.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Ft.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Ft.create("--ft-opacity-80","","NUMBER","0.8")},Tt={display:{fontFamily:Ft.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Ft.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Ft.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Ft.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ft.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Ft.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Ft.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Ft.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Ft.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Ft.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ft.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Ft.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Ft.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Ft.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Ft.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Ft.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ft.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Ft.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Ft.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Ft.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Ft.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Ft.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Ft.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Ft.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Ft.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ft.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Ft.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Ft.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ft.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Ft.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Ft.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ft.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Ft.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Ft.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ft.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Ft.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Ft.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ft.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Ft.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Ft.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ft.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Ft.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Ft.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ft.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Ft.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Ft.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ft.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Ft.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Ft.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ft.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Ft.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ft.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ft.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Ft.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Ft.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ft.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Ft.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ft.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ft.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Ft.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Ft.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ft.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Ft.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ft.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Ft.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ft.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Ft.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ft.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Ft.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ft.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ft.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ft.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Ft.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ft.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Ft.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Ft.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Ft.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ft.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Ft.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ft.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Ft.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ft.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Ft.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ft.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Ft.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ft.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Ft.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ft.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ft.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ft.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Ft.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ft.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Ft.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ft.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Ft.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ft.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Ft.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ft.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Ft.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ft.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Ft.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ft.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Ft.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ft.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Ft.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ft.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Ft.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ft.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Ft.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ft.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Ft.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ft.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Ft.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ft.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Ft.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ft.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Ft.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Ft.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Ft.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ft.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Ft.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ft.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Ft.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ft.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Ft.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ft.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Ft.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ft.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ft.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Ft.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ft.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Ft.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ft.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ft.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ft.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Pt={backgroundActionPrimary:Ft.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Bt.colorBrand0),backgroundErrorPrimary:Ft.extend("--ft-background-error-primary","Used as background of error components.",Bt.colorRed0),backgroundErrorSubtle:Ft.extend("--ft-background-error-subtle","Used as background of subtle error components.",Bt.colorRed10),backgroundInfoPrimary:Ft.extend("--ft-background-info-primary","Used as background of information components.",Bt.colorCyan200),backgroundInfoSubtle:Ft.extend("--ft-background-info-subtle","Used as background of subtle information components.",Bt.colorCyan10),backgroundWarningPrimary:Ft.extend("--ft-background-warning-primary","Used as background of warning components.",Bt.colorOrange300),backgroundWarningSubtle:Ft.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Bt.colorOrange10),backgroundSuccessPrimary:Ft.extend("--ft-background-success-primary","Used as background of success components.",Bt.colorGreen200),backgroundSuccessSubtle:Ft.extend("--ft-background-success-subtle","Used as background of subtle success components.",Bt.colorGreen10),backgroundGlobalSurface:Ft.extend("--ft-background-global-surface","Used as app background.",Bt.colorWhite),backgroundGlobalOnSurface:Ft.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Bt.colorGray10),backgroundGlobalOnSurfaceDark:Ft.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Bt.colorGray30),contentActionPrimary:Ft.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Bt.colorBrand0),contentWarningPrimary:Ft.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Bt.colorOrange300),contentWarningIconOnly:Ft.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Bt.colorOrange0),contentErrorPrimary:Ft.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Bt.colorRed0),contentErrorIconOnly:Ft.extend("--ft-content-error-icon-only","Used on error status icons alone",Bt.colorRed0),contentInfoPrimary:Ft.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Bt.colorCyan200),contentInfoIconOnly:Ft.extend("--ft-content-info-icon-only","Used on info status icons alone",Bt.colorCyan0),contentSuccessIconOnly:Ft.extend("--ft-content-success-icon-only","Used on success status icons alone",Bt.colorGreen0),contentSuccessPrimary:Ft.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Bt.colorGreen200),contentGlobalPrimary:Ft.extend("--ft-content-global-primary","Used for main content on the page.",Bt.colorGray500),contentGlobalSecondary:Ft.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Bt.colorGray200),contentGlobalSubtle:Ft.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Bt.colorGray0),contentGlobalOnColor:Ft.extend("--ft-content-global-on-color","Used for content on a dominant color.",Bt.colorWhite),borderActionPrimary:Ft.extend("--ft-border-action-primary","Used as border for primary action components.",Bt.colorBrand0),borderActionFocusRing:Ft.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Bt.colorCyan0),borderWarningPrimary:Ft.extend("--ft-border-warning-primary","Used as border for warning components.",Bt.colorOrange30),borderSuccessPrimary:Ft.extend("--ft-border-success-primary","Used as border for success components.",Bt.colorGreen30),borderErrorPrimary:Ft.extend("--ft-border-error-primary","Used as border for error components.",Bt.colorRed30),borderInfoPrimary:Ft.extend("--ft-border-info-primary","Used as border for information components.",Bt.colorCyan30),borderGlobalSubtle:Ft.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Bt.colorGray30),borderGlobalPrimary:Ft.extend("--ft-border-global-primary","Used as border for element like input.",Bt.colorGray50),borderInputPrimary:Ft.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Bt.colorGray80)};Ft.create("--ft-button-large-height","","SIZE","40px"),Ft.extend("--ft-button-large-horizontal-padding","",Bt.spacing4),Ft.extend("--ft-button-large-gap","",Bt.spacing2),Ft.extend("--ft-button-large-border-radius","",Bt.borderRadiusS),Ft.extend("--ft-button-large-icon-size","",Bt.iconSize3),Ft.create("--ft-button-large-border-width","","SIZE","1px"),Ft.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),Ft.create("--ft-button-large-focus-outline-width","","SIZE","2px"),Ft.create("--ft-button-large-icon-only-width","","SIZE","40px"),Ft.create("--ft-button-small-height","","SIZE","30px"),Ft.extend("--ft-button-small-horizontal-padding","",Bt.spacing3),Ft.extend("--ft-button-small-gap","",Bt.spacing2),Ft.extend("--ft-button-small-border-radius","",Bt.borderRadiusS),Ft.extend("--ft-button-small-icon-size","",Bt.iconSize2),Ft.create("--ft-button-small-border-width","","SIZE","1px"),Ft.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),Ft.create("--ft-button-small-focus-outline-width","","SIZE","2px"),Ft.create("--ft-button-small-icon-only-width","","SIZE","30px"),Ft.extend("--ft-button-primary-background-color","",Pt.backgroundActionPrimary),Ft.extend("--ft-button-primary-color","",Pt.contentGlobalOnColor),Ft.extend("--ft-button-primary-icon-color","",Pt.contentGlobalOnColor),Ft.extend("--ft-button-primary-state-layer-color","",Pt.contentGlobalOnColor),Ft.extend("--ft-button-primary-state-layer-opacity-hover","",Bt.opacity16),Ft.extend("--ft-button-primary-state-layer-opacity-focus","",Bt.opacity16),Ft.extend("--ft-button-primary-state-layer-opacity-active","",Bt.opacity24),Ft.extend("--ft-button-primary-component-opacity-disabled","",Bt.opacity40),Ft.extend("--ft-button-focus-focus-ring-color","",Pt.borderActionFocusRing),Ft.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),Ft.extend("--ft-button-tertiary-color","",Pt.contentActionPrimary),Ft.extend("--ft-button-tertiary-icon-color","",Pt.contentActionPrimary),Ft.extend("--ft-button-tertiary-state-layer-color","",Pt.contentActionPrimary),Ft.extend("--ft-button-tertiary-state-layer-opacity-hover","",Bt.opacity8),Ft.extend("--ft-button-tertiary-state-layer-opacity-focus","",Bt.opacity8),Ft.extend("--ft-button-tertiary-state-layer-opacity-active","",Bt.opacity16),Ft.extend("--ft-button-tertiary-component-opacity-disabled","",Bt.opacity40),Ft.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),Ft.extend("--ft-button-secondary-color","",Pt.contentActionPrimary),Ft.extend("--ft-button-secondary-icon-color","",Pt.contentActionPrimary),Ft.extend("--ft-button-secondary-state-layer-color","",Pt.contentActionPrimary),Ft.extend("--ft-button-secondary-state-layer-opacity-hover","",Bt.opacity8),Ft.extend("--ft-button-secondary-state-layer-opacity-focus","",Bt.opacity8),Ft.extend("--ft-button-secondary-state-layer-opacity-active","",Bt.opacity16),Ft.extend("--ft-button-secondary-component-opacity-disabled","",Bt.opacity40),Ft.extend("--ft-button-secondary-border-color","",Pt.borderActionPrimary),Ft.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),Ft.extend("--ft-button-neutral-icon-color","",Pt.contentGlobalSecondary),Ft.extend("--ft-button-neutral-color","",Pt.contentGlobalSecondary),Ft.extend("--ft-button-neutral-state-layer-color","",Pt.contentGlobalSecondary),Ft.extend("--ft-button-neutral-state-layer-opacity-hover","",Bt.opacity8),Ft.extend("--ft-button-neutral-state-layer-opacity-focus","",Bt.opacity8),Ft.extend("--ft-button-neutral-state-layer-opacity-active","",Bt.opacity16),Ft.extend("--ft-button-neutral-component-opacity-disabled","",Bt.opacity40),Ft.extend("--ft-tabs-top-left-border-radius","",Bt.borderRadiusS),Ft.extend("--ft-tabs-top-right-border-radius","",Bt.borderRadiusS),Ft.extend("--ft-tabs-label-horizontal-padding","",Bt.spacing4),Ft.extend("--ft-tabs-label-vertical-padding","",Bt.spacing3),Ft.extend("--ft-tabs-label-gap","",Bt.spacing1),Ft.extend("--ft-switch-group-horizontal-padding","",Bt.spacing1),Ft.extend("--ft-switch-group-vertical-padding","",Bt.spacing1),Ft.extend("--ft-switch-group-gap","",Bt.spacing1),Ft.extend("--ft-switch-group-background-color","",Pt.backgroundGlobalSurface),Ft.extend("--ft-switch-group-border-color","",Pt.borderGlobalSubtle),Ft.create("--ft-switch-group-border-radius","","SIZE","6px"),Ft.extend("--ft-switch-label-horizontal-padding","",Bt.spacing2),Ft.extend("--ft-switch-label-vertical-padding","",Bt.spacing1),Ft.extend("--ft-switch-icon-horizontal-padding","",Bt.spacing1),Ft.extend("--ft-switch-icon-vertical-padding","",Bt.spacing1),Ft.create("--ft-switch-focus-outline-width","","SIZE","2px"),Ft.extend("--ft-switch-focus-focus-ring-color","",Pt.borderActionFocusRing),Ft.extend("--ft-switch-option-border-radius","",Bt.borderRadiusS),Ft.extend("--ft-switch-off-state-layer-opacity-hover","",Bt.opacity8),Ft.extend("--ft-switch-off-state-layer-opacity-focus","",Bt.opacity8),Ft.extend("--ft-switch-off-state-layer-opacity-active","",Bt.opacity16),Ft.extend("--ft-switch-off-component-opacity-disabled","",Bt.opacity40),Ft.extend("--ft-switch-off-color","",Pt.contentGlobalSubtle),Ft.extend("--ft-switch-off-state-layer-color","",Pt.contentGlobalSubtle),Ft.extend("--ft-chart-1-light","for area color charts",Bt.colorBrand40),Ft.extend("--ft-chart-1-base","for line charts",Bt.colorBrand0),Ft.extend("--ft-chart-2-light","for area color charts",Bt.colorYellow60),Ft.extend("--ft-chart-2-base","for line charts",Bt.colorYellow100),Ft.extend("--ft-chart-3-light","",Bt.colorUltramarine40),Ft.extend("--ft-chart-3-base","",Bt.colorUltramarine70),Ft.extend("--ft-chart-4-light","",Bt.colorCyan50),Ft.extend("--ft-chart-4-base","",Bt.colorCyan100),Ft.extend("--ft-chart-5-light","",Bt.colorRed40),Ft.extend("--ft-chart-5-base","",Bt.colorRed60),Ft.extend("--ft-chart-6-light","",Bt.colorGreen40),Ft.extend("--ft-chart-6-base","",Bt.colorGreen70),Ft.extend("--ft-chart-7-light","",Bt.colorOrange70),Ft.extend("--ft-chart-7-base","",Bt.colorOrange100),Ft.extend("--ft-chart-8-light","",Bt.colorAvocado70),Ft.extend("--ft-chart-8-base","",Bt.colorAvocado200),Ft.extend("--ft-chart-9-light","",Bt.colorBrown50),Ft.extend("--ft-chart-9-base","",Bt.colorBrown200),Ft.extend("--ft-chart-10-light","",Bt.colorGray50),Ft.extend("--ft-chart-10-base","",Bt.colorGray80),Ft.extend("--ft-chart-monochrome-10","",Bt.colorBrand10),Ft.extend("--ft-chart-monochrome-20","",Bt.colorBrand20),Ft.extend("--ft-chart-monochrome-30","",Bt.colorBrand40),Ft.extend("--ft-chart-monochrome-40","",Bt.colorBrand60),Ft.extend("--ft-chart-monochrome-50","",Bt.colorBrand0),Ft.extend("--ft-chart-monochrome-60","",Bt.colorBrand200),Ft.extend("--ft-chip-large-horizontal-padding","",Bt.spacing4),Ft.extend("--ft-chip-large-vertical-padding","",Bt.spacing2),Ft.extend("--ft-chip-large-gap","",Bt.spacing1),Ft.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Ft.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Ft.extend("--ft-chip-large-border-radius","",Bt.borderRadiusPill),Ft.create("--ft-chip-large-border-width","","SIZE","1px"),Ft.extend("--ft-chip-large-icon-size","",Bt.iconSize3),Ft.extend("--ft-chip-medium-horizontal-padding","",Bt.spacing3),Ft.extend("--ft-chip-medium-vertical-padding","",Bt.spacing1),Ft.extend("--ft-chip-medium-gap","",Bt.spacing1),Ft.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Ft.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Ft.extend("--ft-chip-medium-border-radius","",Bt.borderRadiusPill),Ft.create("--ft-chip-medium-border-width","","SIZE","1px"),Ft.extend("--ft-chip-medium-icon-size","",Bt.iconSize2),Ft.extend("--ft-chip-small-horizontal-padding","",Bt.spacing2),Ft.extend("--ft-chip-small-vertical-padding","",Bt.spacing05),Ft.extend("--ft-chip-small-gap","",Bt.spacing1),Ft.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Ft.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Ft.extend("--ft-chip-small-border-radius","",Bt.borderRadiusPill),Ft.create("--ft-chip-small-border-width","","SIZE","1px"),Ft.extend("--ft-chip-small-icon-size","",Bt.iconSize1),Ft.extend("--ft-chip-neutral-background-color","",Pt.backgroundGlobalOnSurface),Ft.extend("--ft-chip-neutral-color","",Pt.contentGlobalPrimary),Ft.extend("--ft-chip-neutral-border-color","",Pt.borderGlobalSubtle),Ft.extend("--ft-chip-info-background-color","",Pt.backgroundInfoSubtle),Ft.extend("--ft-chip-info-color","",Pt.contentInfoPrimary),Ft.extend("--ft-chip-info-border-color","",Pt.borderInfoPrimary),Ft.extend("--ft-chip-success-background-color","",Pt.backgroundSuccessSubtle),Ft.extend("--ft-chip-success-color","",Pt.contentSuccessPrimary),Ft.extend("--ft-chip-success-border-color","",Pt.borderSuccessPrimary),Ft.extend("--ft-chip-warning-background-color","",Pt.backgroundWarningSubtle),Ft.extend("--ft-chip-warning-color","",Pt.contentWarningPrimary),Ft.extend("--ft-chip-warning-border-color","",Pt.borderWarningPrimary),Ft.extend("--ft-chip-error-background-color","",Pt.backgroundErrorSubtle),Ft.extend("--ft-chip-error-color","",Pt.contentErrorPrimary),Ft.extend("--ft-chip-error-border-color","",Pt.borderErrorPrimary),Ft.create("--ft-notice-border-width","","SIZE","1px"),Ft.extend("--ft-notice-horizontal-padding","",Bt.spacing2),Ft.extend("--ft-notice-vertical-padding","",Bt.spacing1),Ft.extend("--ft-notice-border-radius","",Bt.borderRadiusS),Ft.extend("--ft-notice-gap","",Bt.spacing2),Ft.extend("--ft-notice-icon-size","",Bt.iconSize3),Ft.extend("--ft-notice-info-background-color","",Pt.backgroundInfoSubtle),Ft.extend("--ft-notice-info-border-color","",Pt.borderInfoPrimary),Ft.extend("--ft-notice-info-color","",Pt.contentInfoPrimary),Ft.extend("--ft-notice-warning-background-color","",Pt.backgroundWarningSubtle),Ft.extend("--ft-notice-warning-border-color","",Pt.borderWarningPrimary),Ft.extend("--ft-notice-warning-color","",Pt.contentWarningPrimary),Ft.extend("--ft-checkbox-label-color","",Pt.contentGlobalPrimary),Ft.extend("--ft-checkbox-checked-background-color","",Pt.contentActionPrimary),Ft.extend("--ft-checkbox-checked-state-layer-color","",Pt.contentActionPrimary),Ft.extend("--ft-checkbox-checked-color","",Pt.contentGlobalOnColor),Ft.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Bt.opacity16),Ft.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Bt.opacity16),Ft.extend("--ft-checkbox-checked-state-layer-opacity-active","",Bt.opacity24),Ft.extend("--ft-checkbox-checked-component-opacity-disabled","",Bt.opacity40),Ft.extend("--ft-checkbox-unchecked-border-color","",Bt.colorGray80),Ft.extend("--ft-checkbox-unchecked-state-layer-color","",Bt.colorGray80),Ft.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Bt.opacity16),Ft.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Bt.opacity16),Ft.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Bt.opacity24),Ft.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Bt.opacity40),Ft.extend("--ft-checkbox-focus-focus-ring-color","",Pt.borderActionFocusRing),Ft.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Ft.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Ft.extend("--ft-checkbox-gap","",Bt.spacing3),Ft.extend("--ft-toggle-off-state-layer-opacity-hover","",Bt.opacity16),Ft.extend("--ft-toggle-off-state-layer-opacity-focus","",Bt.opacity16),Ft.extend("--ft-toggle-off-state-layer-opacity-active","",Bt.opacity24),Ft.extend("--ft-toggle-off-component-opacity-disabled","",Bt.opacity40),Ft.extend("--ft-toggle-off-background-color","",Pt.contentGlobalSubtle),Ft.extend("--ft-toggle-off-icon-color","",Pt.contentGlobalSubtle),Ft.extend("--ft-toggle-off-state-layer-color","",Pt.contentGlobalSubtle),Ft.extend("--ft-toggle-on-state-layer-opacity-hover","",Bt.opacity16),Ft.extend("--ft-toggle-on-state-layer-opacity-focus","",Bt.opacity16),Ft.extend("--ft-toggle-on-state-layer-opacity-active","",Bt.opacity24),Ft.extend("--ft-toggle-on-component-opacity-disabled","",Bt.opacity40),Ft.extend("--ft-toggle-on-background-color","",Pt.contentActionPrimary),Ft.extend("--ft-toggle-on-icon-color","",Pt.contentActionPrimary),Ft.extend("--ft-toggle-on-state-layer-color","",Pt.contentActionPrimary),Ft.extend("--ft-toggle-label-color","",Pt.contentGlobalPrimary),Ft.extend("--ft-toggle-focus-focus-ring-color","",Pt.borderActionFocusRing),Ft.extend("--ft-toggle-gap","",Bt.spacing3),Ft.extend("--ft-radio-label-color","",Pt.contentGlobalPrimary),Ft.extend("--ft-radio-selected-color","",Pt.contentActionPrimary),Ft.extend("--ft-radio-selected-state-layer-color","",Pt.contentActionPrimary),Ft.extend("--ft-radio-selected-state-layer-opacity-hover","",Bt.opacity16),Ft.extend("--ft-radio-selected-state-layer-opacity-focus","",Bt.opacity16),Ft.extend("--ft-radio-selected-state-layer-opacity-active","",Bt.opacity24),Ft.extend("--ft-radio-selected-component-opacity-disabled","",Bt.opacity40),Ft.extend("--ft-radio-unselected-state-layer-color","",Bt.colorGray80),Ft.extend("--ft-radio-unselected-state-layer-opacity-hover","",Bt.opacity16),Ft.extend("--ft-radio-unselected-state-layer-opacity-focus","",Bt.opacity16),Ft.extend("--ft-radio-unselected-state-layer-opacity-active","",Bt.opacity24),Ft.extend("--ft-radio-unselected-component-opacity-disabled","",Bt.opacity40),Ft.extend("--ft-radio-focus-focus-ring-color","",Pt.borderActionFocusRing),Ft.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Ft.create("--ft-radio-focus-outline-width","","SIZE","2px"),Ft.extend("--ft-radio-gap","",Bt.spacing3),Ft.extend("--ft-notification-icon-size","",Bt.iconSize4),Ft.extend("--ft-notification-horizontal-padding","",Bt.spacing4),Ft.extend("--ft-notification-vertical-padding","",Bt.spacing4),Ft.extend("--ft-notification-info-background-color","",Pt.backgroundInfoSubtle),Ft.extend("--ft-notification-info-color","",Pt.contentInfoPrimary),Ft.extend("--ft-notification-info-border-color","",Pt.borderInfoPrimary),Ft.extend("--ft-notification-success-background-color","",Pt.backgroundSuccessSubtle),Ft.extend("--ft-notification-success-color","",Pt.contentSuccessPrimary),Ft.extend("--ft-notification-success-border-color","",Pt.borderSuccessPrimary),Ft.extend("--ft-notification-warning-background-color","",Pt.backgroundWarningSubtle),Ft.extend("--ft-notification-warning-color","",Pt.contentWarningPrimary),Ft.extend("--ft-notification-warning-border-color","",Pt.borderWarningPrimary),Ft.extend("--ft-notification-error-background-color","",Pt.backgroundErrorSubtle),Ft.extend("--ft-notification-error-color","",Pt.contentErrorPrimary),Ft.extend("--ft-notification-error-border-color","",Pt.borderErrorPrimary),Ft.extend("--ft-notification-border-radius","",Bt.borderRadiusPill),Ft.create("--ft-notification-border-width","","SIZE","1px"),Ft.extend("--ft-notification-gap-leading","",Bt.spacing2),Ft.extend("--ft-notification-gap-trailing","",Bt.spacing8);const Ht=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),Gt=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),_t={fontFamily:Gt,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Mt=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ht),jt=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",_t.fontSize,"20px"),Yt=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",_t.fontWeight,"normal"),Xt=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",_t.letterSpacing,"0.15px"),qt=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",_t.lineHeight,"1.2"),Vt=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",_t.textTransform,"inherit"),Jt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ht),Qt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",_t.fontSize,"14px"),to=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",_t.fontWeight,"normal"),oo=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",_t.letterSpacing,"0.105px"),ro=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",_t.lineHeight,"1.7"),eo=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",_t.textTransform,"inherit"),ao=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Gt),no=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",_t.fontSize,"16px"),io=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",_t.fontWeight,"600"),lo=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",_t.letterSpacing,"0.144px"),co=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",_t.lineHeight,"1.5"),so=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",_t.textTransform,"inherit"),fo=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Gt),po=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",_t.fontSize,"14px"),ho=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",_t.fontWeight,"normal"),yo=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",_t.letterSpacing,"0.098px"),go=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",_t.lineHeight,"1.7"),uo=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",_t.textTransform,"inherit"),bo=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Gt),mo=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",_t.fontSize,"16px"),Oo=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",_t.fontWeight,"normal"),No=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",_t.letterSpacing,"0.496px"),So=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",_t.lineHeight,"1.5"),Co=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",_t.textTransform,"inherit"),vo=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Gt),wo=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",_t.fontSize,"14px"),xo=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",_t.fontWeight,"normal"),Ro=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",_t.letterSpacing,"0.252px"),Eo=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",_t.lineHeight,"1.4"),Uo=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",_t.textTransform,"inherit"),Io=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Gt),Lo=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",_t.fontSize,"12px"),Wo=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",_t.fontWeight,"normal"),Ko=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",_t.letterSpacing,"0.396px"),ko=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",_t.lineHeight,"1.33"),$o=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",_t.textTransform,"inherit"),Ao=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Gt),Zo=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",_t.fontSize,"10px"),Do=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",_t.fontWeight,"normal"),zo=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",_t.letterSpacing,"0.33px"),Fo=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",_t.lineHeight,"1.6"),Bo=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",_t.textTransform,"inherit"),To=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Gt),Po=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",_t.fontSize,"10px"),Ho=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",_t.fontWeight,"normal"),Go=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",_t.letterSpacing,"1.5px"),_o=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",_t.lineHeight,"1.6"),Mo=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",_t.textTransform,"uppercase"),jo=o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Gt),Yo=o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",_t.fontSize,"14px"),Xo=o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",_t.fontWeight,"600"),qo=o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",_t.letterSpacing,"1.246px"),Vo=o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",_t.lineHeight,"1.15"),Jo=o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",_t.textTransform,"uppercase"),Qo=r.css`
|
|
35
|
+
.ft-typography--title {
|
|
36
|
+
font-family: ${Mt};
|
|
37
|
+
font-size: ${jt};
|
|
38
|
+
font-weight: ${Yt};
|
|
39
|
+
letter-spacing: ${Xt};
|
|
40
|
+
line-height: ${qt};
|
|
41
|
+
text-transform: ${Vt};
|
|
42
|
+
}
|
|
43
|
+
`,tr=r.css`
|
|
44
|
+
.ft-typography--title-dense {
|
|
45
|
+
font-family: ${Jt};
|
|
46
|
+
font-size: ${Qt};
|
|
47
|
+
font-weight: ${to};
|
|
48
|
+
letter-spacing: ${oo};
|
|
49
|
+
line-height: ${ro};
|
|
50
|
+
text-transform: ${eo};
|
|
51
|
+
}
|
|
52
|
+
`,or=r.css`
|
|
53
|
+
.ft-typography--subtitle1 {
|
|
54
|
+
font-family: ${ao};
|
|
55
|
+
font-size: ${no};
|
|
56
|
+
font-weight: ${io};
|
|
57
|
+
letter-spacing: ${lo};
|
|
58
|
+
line-height: ${co};
|
|
59
|
+
text-transform: ${so};
|
|
60
|
+
}
|
|
61
|
+
`,rr=r.css`
|
|
62
|
+
.ft-typography--subtitle2 {
|
|
63
|
+
font-family: ${fo};
|
|
64
|
+
font-size: ${po};
|
|
65
|
+
font-weight: ${ho};
|
|
66
|
+
letter-spacing: ${yo};
|
|
67
|
+
line-height: ${go};
|
|
68
|
+
text-transform: ${uo};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
`,er=r.css`
|
|
72
|
+
.ft-typography--body1 {
|
|
73
|
+
font-family: ${bo};
|
|
74
|
+
font-size: ${mo};
|
|
75
|
+
font-weight: ${Oo};
|
|
76
|
+
letter-spacing: ${No};
|
|
77
|
+
line-height: ${So};
|
|
78
|
+
text-transform: ${Co};
|
|
79
|
+
}
|
|
80
|
+
`,ar=r.css`
|
|
81
|
+
.ft-typography--body2 {
|
|
82
|
+
font-family: ${vo};
|
|
83
|
+
font-size: ${wo};
|
|
84
|
+
font-weight: ${xo};
|
|
85
|
+
letter-spacing: ${Ro};
|
|
86
|
+
line-height: ${Eo};
|
|
87
|
+
text-transform: ${Uo};
|
|
88
|
+
}
|
|
89
|
+
`,nr=r.css`
|
|
90
|
+
.ft-typography--caption {
|
|
91
|
+
font-family: ${Io};
|
|
92
|
+
font-size: ${Lo};
|
|
93
|
+
font-weight: ${Wo};
|
|
94
|
+
letter-spacing: ${Ko};
|
|
95
|
+
line-height: ${ko};
|
|
96
|
+
text-transform: ${$o};
|
|
97
|
+
}
|
|
98
|
+
`,ir=r.css`
|
|
99
|
+
.ft-typography--breadcrumb {
|
|
100
|
+
font-family: ${Ao};
|
|
101
|
+
font-size: ${Zo};
|
|
102
|
+
font-weight: ${Do};
|
|
103
|
+
letter-spacing: ${zo};
|
|
104
|
+
line-height: ${Fo};
|
|
105
|
+
text-transform: ${Bo};
|
|
106
|
+
}
|
|
107
|
+
`,lr=r.css`
|
|
108
|
+
.ft-typography--overline {
|
|
109
|
+
font-family: ${To};
|
|
110
|
+
font-size: ${Po};
|
|
111
|
+
font-weight: ${Ho};
|
|
112
|
+
letter-spacing: ${Go};
|
|
113
|
+
line-height: ${_o};
|
|
114
|
+
text-transform: ${Mo};
|
|
115
|
+
}
|
|
116
|
+
`,cr=r.css`
|
|
117
|
+
.ft-typography--button {
|
|
118
|
+
font-family: ${jo};
|
|
119
|
+
font-size: ${Yo};
|
|
120
|
+
font-weight: ${Xo};
|
|
121
|
+
letter-spacing: ${qo};
|
|
122
|
+
line-height: ${Vo};
|
|
123
|
+
text-transform: ${Jo};
|
|
124
|
+
}
|
|
125
|
+
`,sr=r.css`
|
|
126
|
+
.ft-typography {
|
|
127
|
+
vertical-align: inherit;
|
|
128
|
+
}
|
|
129
|
+
`,fr=[Object.keys(Tt).map((t=>function(t){const o=Tt[t];return r.css`
|
|
130
|
+
.ft-typography--${r.unsafeCSS(t)} {
|
|
131
|
+
font-family: ${o.fontFamily};
|
|
132
|
+
font-size: ${o.fontSize};
|
|
133
|
+
font-weight: ${o.fontWeight};
|
|
134
|
+
letter-spacing: ${o.letterSpacing};
|
|
135
|
+
line-height: ${o.lineHeight};
|
|
136
|
+
text-transform: ${o.textCase};
|
|
137
|
+
}
|
|
138
|
+
`}(t)))];var pr=function(t,o,r,e){for(var a,n=arguments.length,i=n<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,r,i):a(o,r))||i);return n>3&&i&&Object.defineProperty(o,r,i),i};class hr extends o.FtLitElement{constructor(){super(...arguments),this.variant=Dt.body1}render(){return this.element?Zt`
|
|
139
|
+
<${$t(this.element)}
|
|
140
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
141
|
+
<slot></slot>
|
|
142
|
+
</${$t(this.element)}>
|
|
143
|
+
`:Zt`
|
|
144
|
+
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
145
|
+
`}}hr.styles=[Qo,tr,or,rr,er,ar,nr,ir,lr,cr,sr,...fr],pr([a.property()],hr.prototype,"element",void 0),pr([a.property()],hr.prototype,"variant",void 0),o.customElement("ft-typography")(hr);class yr extends j{render(){return this.result?r.html`
|
|
146
|
+
<ft-typography variant="title" part="text">${n.unsafeHTML(this.selectTitle(this.result))}</ft-typography>
|
|
147
|
+
`:r.nothing}selectTitle(t){switch(t.type){case"MAP":return t.map.htmlTitle;case"DOCUMENT":return t.document.htmlTitle;case"TOPIC":return t.topic.htmlTitle}return""}}yr.elementDefinitions={"ft-typography":hr},yr.styles=X,o.customElement("ft-search-result-title")(yr);const dr=o.FtCssVariableFactory.create("--ft-sra-highlight-background-color","","COLOR","transparent"),gr=r.css`
|
|
148
|
+
.kwicmatch {
|
|
149
|
+
font-weight: 700;
|
|
150
|
+
background-color: ${dr};
|
|
151
|
+
}
|
|
152
|
+
`;class ur extends j{render(){let t=this.result?this.selectAbstract(this.result):void 0;return t?r.html`
|
|
153
|
+
<ft-typography variant="body1" part="text">${n.unsafeHTML(t)}</ft-typography>
|
|
154
|
+
`:r.html`
|
|
155
|
+
<style>
|
|
156
|
+
:host {
|
|
157
|
+
display: none !important;
|
|
158
|
+
}
|
|
159
|
+
</style>
|
|
160
|
+
`}selectAbstract(t){switch(t.type){case"MAP":return t.map.htmlExcerpt;case"DOCUMENT":return t.document.htmlExcerpt;case"TOPIC":return t.topic.htmlExcerpt}return""}}ur.elementDefinitions={"ft-typography":hr},ur.styles=gr,o.customElement("ft-search-result-abstract")(ur);const br=r.css`
|
|
161
|
+
`;var mr=function(t,o,r,e){for(var a,n=arguments.length,i=n<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,r,i):a(o,r))||i);return n>3&&i&&Object.defineProperty(o,r,i),i};const Or=Symbol("i18nProperties"),Nr=Symbol("i18nUnsubs");function Sr(t){var o;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?U:E}i18n(t,o,...r){var e;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...r);const a=null!==(e=t.args)&&void 0!==e?e:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...a)}onI18nUpdate(t){var o;null===(o=this[Or])||void 0===o||o.forEach(((o,r)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[r]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[Or])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Or]&&new Set([...this[Or].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[Nr].has(t)||this[Nr].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[Nr].forEach((t=>t())),this[Nr].clear()}}return o=Nr,mr([a.property({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}class Cr extends(Sr(o.FtLitElement)){}class vr extends(Sr(o.FtLitElementRedux)){}var wr=function(t,o,r,e){for(var a,n=arguments.length,i=n<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,r,i):a(o,r))||i);return n>3&&i&&Object.defineProperty(o,r,i),i};class xr extends vr{constructor(){super(),this.editorMode=!1,this.addStore(C)}render(){return this.key&&this.context?r.html`
|
|
162
|
+
<span class="ft-i18n">
|
|
163
|
+
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
164
|
+
</span>
|
|
165
|
+
`:this.editorMode?"Select a context and a label key.":r.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}xr.elementDefinitions={},xr.styles=br,wr([o.redux()],xr.prototype,"editorMode",void 0),wr([a.property()],xr.prototype,"context",void 0),wr([a.property()],xr.prototype,"key",void 0),wr([o.jsonProperty([])],xr.prototype,"args",void 0),wr([a.property()],xr.prototype,"defaultMessage",void 0);class Rr{static build(t){return new Rr(t)}static fromGwt(t){return new Rr(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const r=o;return t=>({context:this.name,key:r,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>E.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(xr);const Er=Rr.build("searchResultsNumber");var Ur=function(t,o,r,e){for(var a,n=arguments.length,i=n<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,r,i):a(o,r))||i);return n>3&&i&&Object.defineProperty(o,r,i),i};class Ir extends(Sr(F)){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>r.html`
|
|
166
|
+
<ft-search-result-title></ft-search-result-title>
|
|
167
|
+
<ft-search-result-abstract></ft-search-result-abstract>
|
|
168
|
+
`,this.addI18nContext(Er)}render(){var t;return this.displayNoResultsMessage&&null!=this.results&&0==this.results.length?r.html`
|
|
169
|
+
<ft-typography part="no-results-message" variant="body1">${Er.messages.results(0)}</ft-typography>
|
|
170
|
+
`:e.repeat((null!==(t=this.results)&&void 0!==t?t:[]).flatMap((t=>"display-first-result"==this.clusterPolicy?[t.entries[0]]:t.entries)),(t=>{var o,r,e,a,n;return null!==(a=null!==(r=null===(o=t.document)||void 0===o?void 0:o.documentId)&&void 0!==r?r:null===(e=t.map)||void 0===e?void 0:e.mapId)&&void 0!==a?a:null===(n=t.topic)||void 0===n?void 0:n.tocId}),((t,o)=>r.html`
|
|
171
|
+
<ft-search-result-context .result=${t} index="${o}">
|
|
172
|
+
${this.renderResult(t,o)}
|
|
173
|
+
</ft-search-result-context>
|
|
174
|
+
`))}}Ir.styles=i,Ur([a.property({type:String,attribute:"cluster-policy"})],Ir.prototype,"clusterPolicy",void 0),Ur([a.property({type:Boolean})],Ir.prototype,"displayNoResultsMessage",void 0),Ur([a.property({attribute:!1})],Ir.prototype,"renderResult",void 0),Ur([o.redux()],Ir.prototype,"results",void 0),o.customElement("ft-search-results")(Ir),t.FtSearchResults=Ir,t.FtSearchResultsCssVariables={},t.styles=i}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litRepeat,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
|