@aiconomy/aico-components 0.0.78 → 0.0.82

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.
Files changed (32) hide show
  1. package/dist/aico-components/aico-components.esm.js +1 -1
  2. package/dist/aico-components/p-59bfd021.js +2 -0
  3. package/dist/aico-components/p-59bfd021.js.map +1 -0
  4. package/dist/aico-components/{p-368503ee.entry.js → p-7ea04e72.entry.js} +2 -2
  5. package/dist/aico-components/{p-7e0074f7.entry.js → p-80cb133a.entry.js} +2 -2
  6. package/dist/aico-components/{p-c9eea1b1.entry.js → p-918b9928.entry.js} +2 -2
  7. package/dist/aico-components/{p-bccf08d0.entry.js → p-c900f292.entry.js} +2 -2
  8. package/dist/cjs/aico-album-content_19.cjs.entry.js +1 -1
  9. package/dist/cjs/aico-fetch-article-detail.cjs.entry.js +1 -1
  10. package/dist/cjs/aico-news-list.cjs.entry.js +1 -1
  11. package/dist/cjs/aico-special-news-carousel.cjs.entry.js +1 -1
  12. package/dist/cjs/{utils-c1b7a052.js → utils-9ae3486f.js} +3 -3
  13. package/dist/cjs/{utils-c1b7a052.js.map → utils-9ae3486f.js.map} +1 -1
  14. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js +2 -0
  15. package/dist/collection/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.js.map +1 -1
  16. package/dist/collection/utils/utils.js +2 -2
  17. package/dist/collection/utils/utils.js.map +1 -1
  18. package/dist/components/utils.js +2 -2
  19. package/dist/components/utils.js.map +1 -1
  20. package/dist/esm/aico-album-content_19.entry.js +1 -1
  21. package/dist/esm/aico-fetch-article-detail.entry.js +1 -1
  22. package/dist/esm/aico-news-list.entry.js +1 -1
  23. package/dist/esm/aico-special-news-carousel.entry.js +1 -1
  24. package/dist/esm/{utils-b4eec8e9.js → utils-25eef7c7.js} +3 -3
  25. package/dist/esm/{utils-b4eec8e9.js.map → utils-25eef7c7.js.map} +1 -1
  26. package/package.json +1 -1
  27. package/dist/aico-components/p-2677f2ab.js +0 -2
  28. package/dist/aico-components/p-2677f2ab.js.map +0 -1
  29. /package/dist/aico-components/{p-368503ee.entry.js.map → p-7ea04e72.entry.js.map} +0 -0
  30. /package/dist/aico-components/{p-7e0074f7.entry.js.map → p-80cb133a.entry.js.map} +0 -0
  31. /package/dist/aico-components/{p-c9eea1b1.entry.js.map → p-918b9928.entry.js.map} +0 -0
  32. /package/dist/aico-components/{p-bccf08d0.entry.js.map → p-c900f292.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as e,b as t}from"./p-ae20e789.js";export{s as setNonce}from"./p-ae20e789.js";const o=()=>{const t=import.meta.url;const o={};if(t!==""){o.resourcesUrl=new URL(".",t).href}return e(o)};o().then((e=>t([["p-bccf08d0",[[2,"aico-fetch-article-detail",{aicoUrl:[1,"aico-url"],aicoBearerToken:[1,"aico-bearer-token"],locale:[1],articleId:[1,"article-id"],articleUrlHandle:[1,"article-url-handle"],article:[32]}]]],["p-7e0074f7",[[2,"aico-news-list",{aicoUrl:[1,"aico-url"],aicoBearerToken:[1,"aico-bearer-token"],newsChannels:[16],nextButtonText:[1,"next-button-text"],previousButtonText:[1,"previous-button-text"],newsResponse:[32],pageNumber:[32]}]]],["p-68930822",[[6,"aico-asking-list-content"]]],["p-90c2d3dc",[[6,"aico-collection-content"]]],["p-c9eea1b1",[[2,"aico-special-news-carousel",{aicoUrl:[1,"aico-url"],aicoBearerToken:[1,"aico-bearer-token"],newsChannels:[16],numberOfArticles:[2,"number-of-articles"],newsResponse:[32]}]]],["p-0b6e7469",[[2,"aico-title-content",{content:[16],locale:[1]}],[2,"aico-no-content"]]],["p-368503ee",[[2,"aico-bullet-content",{content:[16],locale:[1]}],[2,"aico-carousel-content",{content:[16],hasArrows:[4,"has-arrows"],locale:[1]}],[2,"aico-content-card-content",{content:[16],locale:[1]}],[2,"aico-heading-content",{content:[16],locale:[1]}],[2,"aico-table-content",{content:[16],locale:[1]}],[2,"aico-text-content",{content:[16],locale:[1]}],[2,"aico-upload-content",{content:[16],locale:[1]}],[2,"aico-video-content",{content:[16],locale:[1]}],[2,"aico-album-content",{content:[16]}],[2,"aico-asking-content",{content:[16],locale:[1]}],[2,"aico-block-quote-content",{content:[16],locale:[1]}],[2,"aico-divider-content",{content:[16],locale:[1]}],[2,"aico-document-content",{content:[16],locale:[1]}],[2,"aico-faq-content",{content:[16],locale:[1]}],[2,"aico-html-content",{content:[16],locale:[1]}],[2,"aico-link-content",{content:[16],locale:[1]}],[2,"aico-news-content",{content:[16]}],[2,"aico-page-content",{content:[16],locale:[1]}],[2,"aico-testimonial-content",{content:[16]}]]],["p-19752961",[[2,"aico-article-detail",{article:[16],locale:[1]}]]],["p-9ea26390",[[2,"aico-news-list-item",{article:[16]}]]]],e)));
1
+ import{p as e,b as t}from"./p-ae20e789.js";export{s as setNonce}from"./p-ae20e789.js";const o=()=>{const t=import.meta.url;const o={};if(t!==""){o.resourcesUrl=new URL(".",t).href}return e(o)};o().then((e=>t([["p-c900f292",[[2,"aico-fetch-article-detail",{aicoUrl:[1,"aico-url"],aicoBearerToken:[1,"aico-bearer-token"],locale:[1],articleId:[1,"article-id"],articleUrlHandle:[1,"article-url-handle"],article:[32]}]]],["p-80cb133a",[[2,"aico-news-list",{aicoUrl:[1,"aico-url"],aicoBearerToken:[1,"aico-bearer-token"],newsChannels:[16],nextButtonText:[1,"next-button-text"],previousButtonText:[1,"previous-button-text"],newsResponse:[32],pageNumber:[32]}]]],["p-68930822",[[6,"aico-asking-list-content"]]],["p-90c2d3dc",[[6,"aico-collection-content"]]],["p-918b9928",[[2,"aico-special-news-carousel",{aicoUrl:[1,"aico-url"],aicoBearerToken:[1,"aico-bearer-token"],newsChannels:[16],numberOfArticles:[2,"number-of-articles"],newsResponse:[32]}]]],["p-0b6e7469",[[2,"aico-title-content",{content:[16],locale:[1]}],[2,"aico-no-content"]]],["p-7ea04e72",[[2,"aico-bullet-content",{content:[16],locale:[1]}],[2,"aico-carousel-content",{content:[16],hasArrows:[4,"has-arrows"],locale:[1]}],[2,"aico-content-card-content",{content:[16],locale:[1]}],[2,"aico-heading-content",{content:[16],locale:[1]}],[2,"aico-table-content",{content:[16],locale:[1]}],[2,"aico-text-content",{content:[16],locale:[1]}],[2,"aico-upload-content",{content:[16],locale:[1]}],[2,"aico-video-content",{content:[16],locale:[1]}],[2,"aico-album-content",{content:[16]}],[2,"aico-asking-content",{content:[16],locale:[1]}],[2,"aico-block-quote-content",{content:[16],locale:[1]}],[2,"aico-divider-content",{content:[16],locale:[1]}],[2,"aico-document-content",{content:[16],locale:[1]}],[2,"aico-faq-content",{content:[16],locale:[1]}],[2,"aico-html-content",{content:[16],locale:[1]}],[2,"aico-link-content",{content:[16],locale:[1]}],[2,"aico-news-content",{content:[16]}],[2,"aico-page-content",{content:[16],locale:[1]}],[2,"aico-testimonial-content",{content:[16]}]]],["p-19752961",[[2,"aico-article-detail",{article:[16],locale:[1]}]]],["p-9ea26390",[[2,"aico-news-list-item",{article:[16]}]]]],e)));
2
2
  //# sourceMappingURL=aico-components.esm.js.map
@@ -0,0 +1,2 @@
1
+ const t=t=>{const e=new Headers;e.append("Accept","application/vnd.api+json");e.append("Authorization",`Bearer ${t}`);return e};const e=(e,n,a,r)=>new Request(new URL(`${n}?${a.toString()}`,e.baseApi),{headers:t(e.bearerToken),signal:r});async function n(t,n,a,r,s=[]){const c=new URLSearchParams;c.set("page[number]",String(n));c.set("page[size]",String(a));c.set("sort","-publishDate");c.set("filter[isActive]","1");c.set("filter[excludeTag][]","Eisnull");for(const t of s){c.append("filter[channel][]",t)}const i=e(t,"news",c,r);const o=await fetch(i);return await o.json()}async function a(t,n,a,r,s=[]){const c=new URLSearchParams;c.set("page[number]",String(n));c.set("page[size]",String(a));c.set("sort","-publishDate");c.set("filter[isActive]","1");c.set("filter[isSpecialArticle]","1");c.set("filter[isLightVersion]","true");c.set("filter[excludeTag][]","Eisnull");for(const t of s){c.append("filter[channel][]",t)}const i=e(t,"news",c,r);const o=await fetch(i);return await o.json()}async function r(t,n,a){const r=e(t,`news/${n}`,new URLSearchParams,a);const s=await fetch(r);const c=await s.json();return c.data}async function s(t,n,a){const r=new URLSearchParams;r.set("filter[urlHandle]",n);const s=e(t,"news",r,a);const c=await fetch(s);const i=await c.json();return i.data[0]}function c(t){switch(t){case"extra-small":return"28%";case"small":return"40%";case"large":return"80%";case"extra large":return"100%";default:return"60%"}}function i(t){const e=/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#&?]*).*/;const n=t.match(e);if(n&&n[1].length==11){return`https://www.youtube.com/embed/${n[1]}`}return null}function o(t){if(!t||t===" "){return true}return false}function u(t){const e=[];for(const n of Object.entries(t)){if(n[1]){e.push(n[0])}}return e.join(" ")}export{r as a,n as b,a as c,u as d,i as e,s as f,c as g,o as s};
2
+ //# sourceMappingURL=p-59bfd021.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getAuthenticatedHeaders","bearerToken","headers","Headers","append","getAuthenticatedRequest","api","route","query","signal","Request","URL","toString","baseApi","async","fetchNewsArticles","page","size","newsChannels","queryParams","URLSearchParams","set","String","newsChannel","request","response","fetch","json","fetchSpecialNewsArticles","fetchNewsArticle","articleId","article","data","fetchNewsArticleByHandle","urlHandle","articles","getImageWidthPrc","pictureSize","getYoutubeURL","url","regExp","match","length","strIsNullOrEmptyOrWhitespace","str","getClass","conditions","classes","kvp","Object","entries","push","join"],"sources":["src/model/AicoApiRequestInfo.ts","src/utils/utils.ts"],"sourcesContent":["export type AicoApiRequestInfo = {\n baseApi: string;\n bearerToken: string;\n};\n\nexport const getAuthenticatedHeaders = (bearerToken: string): Headers => {\n const headers = new Headers();\n headers.append('Accept', 'application/vnd.api+json');\n headers.append('Authorization', `Bearer ${bearerToken}`);\n return headers;\n};\n\nexport const getAuthenticatedRequest = (api: AicoApiRequestInfo, route: string, query: URLSearchParams, signal?: AbortSignal): Request => {\n return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {\n headers: getAuthenticatedHeaders(api.bearerToken),\n signal,\n });\n};\n","import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.append('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.append('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"],"mappings":"AAKO,MAAMA,EAA2BC,IACtC,MAAMC,EAAU,IAAIC,QACpBD,EAAQE,OAAO,SAAU,4BACzBF,EAAQE,OAAO,gBAAiB,UAAUH,KAC1C,OAAOC,CAAO,EAGT,MAAMG,EAA0B,CAACC,EAAyBC,EAAeC,EAAwBC,IAC/F,IAAIC,QAAQ,IAAIC,IAAI,GAAGJ,KAASC,EAAMI,aAAcN,EAAIO,SAAU,CACvEX,QAASF,EAAwBM,EAAIL,aACrCQ,WCXGK,eAAeC,EAAkBT,EAAyBU,EAAcC,EAAcR,EAAqBS,EAAyB,IACzI,MAAMC,EAAc,IAAIC,gBACxBD,EAAYE,IAAI,eAAgBC,OAAON,IACvCG,EAAYE,IAAI,aAAcC,OAAOL,IACrCE,EAAYE,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QACH,MAAO,MACT,IAAK,QACH,MAAO,MACT,IAAK,cACH,MAAO,OACT,QACE,MAAO,MAEb,C,SAEgBC,EAAcC,GAC5B,MAAMC,EAAS,4DACf,MAAMC,EAAQF,EAAIE,MAAMD,GACxB,GAAIC,GAASA,EAAM,GAAGC,QAAU,GAAI,CAClC,MAAO,iCAAiCD,EAAM,I,CAGhD,OAAO,IACT,C,SAEgBE,EAA6BC,GAC3C,IAAKA,GAAOA,IAAQ,IAAK,CACvB,OAAO,I,CAGT,OAAO,KACT,C,SAEgBC,EAASC,GACvB,MAAMC,EAAoB,GAC1B,IAAK,MAAMC,KAAOC,OAAOC,QAAQJ,GAAa,CAC5C,GAAIE,EAAI,GAAI,CACVD,EAAQI,KAAKH,EAAI,G,EAIrB,OAAOD,EAAQK,KAAK,IACtB,Q"}
@@ -1,7 +1,7 @@
1
- import{r as t,h as e,H as i,c as n,F as s}from"./p-ae20e789.js";import{j as o}from"./p-86c7fdc7.js";import{s as r,g as a,d as c,e as l}from"./p-2677f2ab.js";const u="";const h=class{constructor(e){t(this,e);this.content=undefined}componentDidLoad(){const t=o(".album-full-content");const e=o(".album-preview-content");t.slick({lazyLoad:"progressive",autoplay:true,autoplaySpeed:6e3,fade:true,asNavFor:e,arrows:false,rows:0});e.slick({lazyLoad:"ondemand",slidesToShow:Math.min(7,this.content.album.images.length),slidesToScroll:1,infinite:true,arrows:false,centerMode:true,centerPadding:"0",focusOnSelect:true,asNavFor:t,responsive:[{breakpoint:1024,settings:{slidesToShow:7}},{breakpoint:768,settings:{slidesToShow:5}},{breakpoint:378,settings:{slidesToShow:3}}],rows:0})}render(){return e("div",{class:"card border-0"},e("div",{class:"card-body"},e("div",{class:"album-full-content mb-3"},this.content.album.images.sort(((t,e)=>{var i,n;return((i=t.order)!==null&&i!==void 0?i:0)-((n=e.order)!==null&&n!==void 0?n:0)})).map((t=>{var i;return e("div",{class:"album-full-content-item"},e("div",{class:"ratio ratio-4x3 mx-auto",style:{"max-width":"50%"}},e("img",{class:"object-fit-cover h-100","data-lazy":(i=t.optimizedImage)!==null&&i!==void 0?i:t.url})))}))),e("div",{class:"album-preview-content"},this.content.album.images.sort(((t,e)=>{var i,n;return((i=t.order)!==null&&i!==void 0?i:0)-((n=e.order)!==null&&n!==void 0?n:0)})).map((t=>{var i;return e("div",{class:"album-preview-content-item"},e("div",{class:"ratio ratio-1x1 mx-auto",style:{"max-width":"90%"}},e("img",{class:"object-fit-cover h-100","data-lazy":(i=t.optimizedImage)!==null&&i!==void 0?i:t.url})))})))))}};h.style=u;const d=".sc-aico-asking-content-h{display:block}.card.sc-aico-asking-content{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0, 0, 0, 0.125);border-radius:0.25rem}.card-img-top.sc-aico-asking-content{border-top-left-radius:calc(0.25rem - 1px);border-top-right-radius:calc(0.25rem - 1px)}.card-body.sc-aico-asking-content{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;padding:1.25rem}.card-title.sc-aico-asking-content{margin-bottom:0.75rem}.team-table.sc-aico-asking-content,.more-details-table.sc-aico-asking-content{border:0;color:black;border-collapse:collapse}.more-details-table.sc-aico-asking-content th.sc-aico-asking-content{text-transform:uppercase}.more-details-table.sc-aico-asking-content{width:100%;text-align:left;margin-left:1%}.team-table.sc-aico-asking-content{width:100%;max-width:700px;margin:1rem 0}.more-details-table.sc-aico-asking-content tr.sc-aico-asking-content:nth-child(odd){background-color:#fafafa}";const f=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t,i,n;const s=(t=this.content.asking.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;return e("div",{class:"card"},e("div",{class:"card-body"},e("div",{class:"card-text d-block"},e("h1",{class:"card-title"},"Asking"),e("table",{class:"team-table"},e("tbody",null,e("tr",{class:"agenda-event"},e("td",null,e("h3",null,this.content.asking.startsAt.toLocaleDateString())),e("td",null,`${this.content.asking.startTime.toLocaleDateString()} - ${(n=(i=this.content.asking.endTime)===null||i===void 0?void 0:i.toLocaleDateString())!==null&&n!==void 0?n:"N/A"}`),e("td",{style:{width:"49%"}},s===null||s===void 0?void 0:s.title)),e("tr",{class:"event-details"},e("td",{colSpan:3,style:{padding:"0"}},e("table",{class:"more-details-table"},e("tbody",null,e("tr",null,e("th",null,"Description"),e("td",null,this.content.asking.description)),e("tr",null,e("th",null,"Gathering"),e("td",null,this.content.asking.meetingPoint)),e("tr",null,e("th",null,"Place (Address)"),e("td",null,this.content.asking.location)),e("tr",null,e("th",null,"Asking for"),e("td",{style:{"white-space":"pre"}},this.content.asking.recipents)),e("tr",null,e("th",null,"Clothing / Equipment"),e("td",{style:{"white-space":"pre"}},this.content.asking.clothingEquipment)),e("tr",null,e("th",null,"Provisions"),e("td",null,this.content.asking.catering)),e("tr",null,e("th",null,"Coaching"),e("td",null,this.content.asking.coaching)))))))))))}};f.style=d;const p=({condition:t},e)=>t&&e&&e.length>0?e:[];const v="";const m=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t;const i=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;return e(p,{condition:i!==null},e("blockquote",{class:"blockquote",style:{"background-color":this.content.quotesColor}},e("p",{class:"mb-2",style:{color:this.content.textColor}},i.quoteText),e("footer",{class:"blockquote-footer ms-2",style:{color:this.content.authorColor}},i.quoteAuthorLine)))}};m.style=v;const g="";const b=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t;const i=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;const n=new Map;if(this.content.fontSize){n.set("font-size",this.content.fontSize)}if(this.content.fontFamily){n.set("font-family",this.content.fontFamily)}return e("div",{class:"content",style:Object.fromEntries(n)},e(p,{condition:i!==null},e("aico-title-content",{content:this.makeTitleContent(i),locale:this.locale})),e("ul",null,this.content.bulletBullets.sort(((t,e)=>{var i,n;return((i=t.sort)!==null&&i!==void 0?i:0)-((n=e.sort)!==null&&n!==void 0?n:0)})).map((t=>{if(t.translations.length===0){return null}const i=t.translations.find((t=>t.locale===this.locale));if(r(i===null||i===void 0?void 0:i.text)){return null}return e("li",null,i===null||i===void 0?void 0:i.text)}))))}makeTitleContent(t){var e;return{id:this.content.id,createdAt:this.content.createdAt,updatedAt:this.content.updatedAt,hasUnderscore:false,size:(e=this.content.titleSize)!==null&&e!==void 0?e:"h1",translations:[Object.assign({},t)]}}};b.style=g;const w="";const y=class{constructor(e){t(this,e);this.content=undefined;this.hasArrows=true;this.locale="de"}componentDidLoad(){o(".carousel").slick({autoplay:true,autoplaySpeed:6e3,fade:true,dots:true,arrows:this.hasArrows,pauseOnDotsHover:true})}render(){var t;const n=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;return e(i,null,e(p,{condition:n!==null},e("aico-title-content",{content:this.makeTitleContent(n),locale:this.locale})),e("div",{class:"carousel"},this.content.contentCarouselImages.sort(((t,e)=>t.order-e.order)).map((t=>{var i;const n=(i=t.translations.find((t=>t.locale===this.locale)))!==null&&i!==void 0?i:null;return e("div",{class:"carousel-item card text-bg-dark text-white"},e("div",{class:"ratio ratio-16x9 mx-auto",style:{"max-width":"50%"}},e("img",{class:"card-img d-block object-fit-cover",alt:"Carousel Picture","data-lazy":n===null||n===void 0?void 0:n.picture})),e(p,{condition:t.translations.length>0&&!r(n===null||n===void 0?void 0:n.title)},e("div",{class:"card-img-overlay d-flex align-items-end"},e("h5",{class:"card-title text-uppercase"},n===null||n===void 0?void 0:n.title))))}))))}makeTitleContent(t){return{id:this.content.id,createdAt:this.content.createdAt,updatedAt:this.content.updatedAt,hasUnderscore:false,size:"h2",translations:[Object.assign({},t)]}}};y.style=w;const x="";const k=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t,i;const n=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;return e("div",{class:"card",style:{width:"18rem"}},e(p,{condition:!r(this.content.picture)},e("img",{class:"card-img-top",alt:"Card picture",src:this.content.picture})),e("div",{class:"card-body"},e(p,{condition:!r(n===null||n===void 0?void 0:n.title)},e("aico-title-content",{class:"card-title",content:this.makeTitleContent(n),locale:this.locale})),e(p,{condition:!r(this.content.link)},e("a",{class:"card-link",href:this.content.link,target:"_blank"},(i=n===null||n===void 0?void 0:n.linkText)!==null&&i!==void 0?i:"link"))))}makeTitleContent(t){var e;return{id:this.content.id,createdAt:this.content.createdAt,updatedAt:this.content.updatedAt,hasUnderscore:false,size:(e=this.content.titleSize)!==null&&e!==void 0?e:"h1",translations:[Object.assign({},t)]}}};k.style=x;const _="";const $=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t;const n=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;const s=n?n.isOnlyMargin:this.content.isOnlyMargin;return e(i,null,s?e("div",{style:{"padding-top":"40px"}}):e("hr",{style:{margin:"5px"}}))}};$.style=_;const j=".sc-aico-document-content-h{--hover-button-color:unset}.button-link.sc-aico-document-content:hover{background-color:var(--hover-button-color)!important;opacity:0.85}";const A=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t,i;const n=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;const s={};const o={};if(this.content.fontSize){s["font-size"]=`${this.content.fontSize}px`;o["font-size"]=`${this.content.fontSize}px`}if(this.content.fontFamily){s["font-family"]=this.content.fontFamily;o["font-family"]=this.content.fontFamily}if(this.content.isDocumentDisplayedAsButton&&this.content.buttonTextColor){o["color"]=this.content.buttonTextColor}if(this.content.isDocumentDisplayedAsButton&&this.content.buttonBackgroundColor){o["background-color"]=this.content.buttonBackgroundColor}if(this.content.isDocumentDisplayedAsButton&&this.content.buttonBorderColor){o["border-color"]=this.content.buttonBorderColor}if(this.content.isDocumentDisplayedAsButton&&this.content.buttonHoverColor){o["--hover-button-color"]=this.content.buttonHoverColor}return e("div",{class:"card"},e(p,{condition:!r(n===null||n===void 0?void 0:n.picture)},e("img",{class:"card-img-top",alt:"image",src:n.picture})),e("div",{class:"card-body"},e(p,{condition:!r(this.content.link)},e("a",{class:"card-link",style:s,href:this.content.link},this.content.link)),e(p,{condition:!r(n===null||n===void 0?void 0:n.document)},e("a",{href:n.document,target:"_blank",style:o,class:`card-link align-middle ${this.content.isDocumentDisplayedAsButton?"btn button-link":""}`},e("i",null,e("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"24",height:"24",viewBox:"0 0 50 50"},e("path",{d:"M 7 2 L 7 48 L 43 48 L 43 14.59375 L 42.71875 14.28125 L 30.71875 2.28125 L 30.40625 2 Z M 9 4 L 29 4 L 29 16 L 41 16 L 41 46 L 9 46 Z M 31 5.4375 L 39.5625 14 L 31 14 Z"}))),(i=n.title)!==null&&i!==void 0?i:"File"))))}};A.style=j;var T="top";var M="bottom";var E="right";var O="left";var I="auto";var C=[T,M,E,O];var D="start";var N="end";var L="clippingParents";var z="viewport";var S="popper";var P="reference";var B=C.reduce((function(t,e){return t.concat([e+"-"+D,e+"-"+N])}),[]);var R=[].concat(C,[I]).reduce((function(t,e){return t.concat([e,e+"-"+D,e+"-"+N])}),[]);var W="beforeRead";var F="read";var H="afterRead";var Z="beforeMain";var U="main";var q="afterMain";var G="beforeWrite";var Q="write";var V="afterWrite";var J=[W,F,H,Z,U,q,G,Q,V];function Y(t){return t?(t.nodeName||"").toLowerCase():null}function X(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function K(t){var e=X(t).Element;return t instanceof e||t instanceof Element}function tt(t){var e=X(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function et(t){if(typeof ShadowRoot==="undefined"){return false}var e=X(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function it(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{};var n=e.attributes[t]||{};var s=e.elements[t];if(!tt(s)||!Y(s)){return}Object.assign(s.style,i);Object.keys(n).forEach((function(t){var e=n[t];if(e===false){s.removeAttribute(t)}else{s.setAttribute(t,e===true?"":e)}}))}))}function nt(t){var e=t.state;var i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper);e.styles=i;if(e.elements.arrow){Object.assign(e.elements.arrow.style,i.arrow)}return function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t];var s=e.attributes[t]||{};var o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]);var r=o.reduce((function(t,e){t[e]="";return t}),{});if(!tt(n)||!Y(n)){return}Object.assign(n.style,r);Object.keys(s).forEach((function(t){n.removeAttribute(t)}))}))}}const st={name:"applyStyles",enabled:true,phase:"write",fn:it,effect:nt,requires:["computeStyles"]};function ot(t){return t.split("-")[0]}var rt=Math.max;var at=Math.min;var ct=Math.round;function lt(){var t=navigator.userAgentData;if(t!=null&&t.brands&&Array.isArray(t.brands)){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function ut(){return!/^((?!chrome|android).)*safari/i.test(lt())}function ht(t,e,i){if(e===void 0){e=false}if(i===void 0){i=false}var n=t.getBoundingClientRect();var s=1;var o=1;if(e&&tt(t)){s=t.offsetWidth>0?ct(n.width)/t.offsetWidth||1:1;o=t.offsetHeight>0?ct(n.height)/t.offsetHeight||1:1}var r=K(t)?X(t):window,a=r.visualViewport;var c=!ut()&&i;var l=(n.left+(c&&a?a.offsetLeft:0))/s;var u=(n.top+(c&&a?a.offsetTop:0))/o;var h=n.width/s;var d=n.height/o;return{width:h,height:d,top:u,right:l+h,bottom:u+d,left:l,x:l,y:u}}function dt(t){var e=ht(t);var i=t.offsetWidth;var n=t.offsetHeight;if(Math.abs(e.width-i)<=1){i=e.width}if(Math.abs(e.height-n)<=1){n=e.height}return{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function ft(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e)){return true}else if(i&&et(i)){var n=e;do{if(n&&t.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function pt(t){return X(t).getComputedStyle(t)}function vt(t){return["table","td","th"].indexOf(Y(t))>=0}function mt(t){return((K(t)?t.ownerDocument:t.document)||window.document).documentElement}function gt(t){if(Y(t)==="html"){return t}return t.assignedSlot||t.parentNode||(et(t)?t.host:null)||mt(t)}function bt(t){if(!tt(t)||pt(t).position==="fixed"){return null}return t.offsetParent}function wt(t){var e=/firefox/i.test(lt());var i=/Trident/i.test(lt());if(i&&tt(t)){var n=pt(t);if(n.position==="fixed"){return null}}var s=gt(t);if(et(s)){s=s.host}while(tt(s)&&["html","body"].indexOf(Y(s))<0){var o=pt(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none"){return s}else{s=s.parentNode}}return null}function yt(t){var e=X(t);var i=bt(t);while(i&&vt(i)&&pt(i).position==="static"){i=bt(i)}if(i&&(Y(i)==="html"||Y(i)==="body"&&pt(i).position==="static")){return e}return i||wt(t)||e}function xt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,i){return rt(t,at(e,i))}function _t(t,e,i){var n=kt(t,e,i);return n>i?i:n}function $t(){return{top:0,right:0,bottom:0,left:0}}function jt(t){return Object.assign({},$t(),t)}function At(t,e){return e.reduce((function(e,i){e[i]=t;return e}),{})}var Tt=function t(e,i){e=typeof e==="function"?e(Object.assign({},i.rects,{placement:i.placement})):e;return jt(typeof e!=="number"?e:At(e,C))};function Mt(t){var e;var i=t.state,n=t.name,s=t.options;var o=i.elements.arrow;var r=i.modifiersData.popperOffsets;var a=ot(i.placement);var c=xt(a);var l=[O,E].indexOf(a)>=0;var u=l?"height":"width";if(!o||!r){return}var h=Tt(s.padding,i);var d=dt(o);var f=c==="y"?T:O;var p=c==="y"?M:E;var v=i.rects.reference[u]+i.rects.reference[c]-r[c]-i.rects.popper[u];var m=r[c]-i.rects.reference[c];var g=yt(o);var b=g?c==="y"?g.clientHeight||0:g.clientWidth||0:0;var w=v/2-m/2;var y=h[f];var x=b-d[u]-h[p];var k=b/2-d[u]/2+w;var _=kt(y,k,x);var $=c;i.modifiersData[n]=(e={},e[$]=_,e.centerOffset=_-k,e)}function Et(t){var e=t.state,i=t.options;var n=i.element,s=n===void 0?"[data-popper-arrow]":n;if(s==null){return}if(typeof s==="string"){s=e.elements.popper.querySelector(s);if(!s){return}}if(!ft(e.elements.popper,s)){return}e.elements.arrow=s}const Ot={name:"arrow",enabled:true,phase:"main",fn:Mt,effect:Et,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function It(t){return t.split("-")[1]}var Ct={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dt(t,e){var i=t.x,n=t.y;var s=e.devicePixelRatio||1;return{x:ct(i*s)/s||0,y:ct(n*s)/s||0}}function Nt(t){var e;var i=t.popper,n=t.popperRect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,h=t.isFixed;var d=r.x,f=d===void 0?0:d,p=r.y,v=p===void 0?0:p;var m=typeof u==="function"?u({x:f,y:v}):{x:f,y:v};f=m.x;v=m.y;var g=r.hasOwnProperty("x");var b=r.hasOwnProperty("y");var w=O;var y=T;var x=window;if(l){var k=yt(i);var _="clientHeight";var $="clientWidth";if(k===X(i)){k=mt(i);if(pt(k).position!=="static"&&a==="absolute"){_="scrollHeight";$="scrollWidth"}}k=k;if(s===T||(s===O||s===E)&&o===N){y=M;var j=h&&k===x&&x.visualViewport?x.visualViewport.height:k[_];v-=j-n.height;v*=c?1:-1}if(s===O||(s===T||s===M)&&o===N){w=E;var A=h&&k===x&&x.visualViewport?x.visualViewport.width:k[$];f-=A-n.width;f*=c?1:-1}}var I=Object.assign({position:a},l&&Ct);var C=u===true?Dt({x:f,y:v},X(i)):{x:f,y:v};f=C.x;v=C.y;if(c){var D;return Object.assign({},I,(D={},D[y]=b?"0":"",D[w]=g?"0":"",D.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",D))}return Object.assign({},I,(e={},e[y]=b?v+"px":"",e[w]=g?f+"px":"",e.transform="",e))}function Lt(t){var e=t.state,i=t.options;var n=i.gpuAcceleration,s=n===void 0?true:n,o=i.adaptive,r=o===void 0?true:o,a=i.roundOffsets,c=a===void 0?true:a;var l={placement:ot(e.placement),variation:It(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};if(e.modifiersData.popperOffsets!=null){e.styles.popper=Object.assign({},e.styles.popper,Nt(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:c})))}if(e.modifiersData.arrow!=null){e.styles.arrow=Object.assign({},e.styles.arrow,Nt(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:c})))}e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const zt={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:Lt,data:{}};var St={passive:true};function Pt(t){var e=t.state,i=t.instance,n=t.options;var s=n.scroll,o=s===void 0?true:s,r=n.resize,a=r===void 0?true:r;var c=X(e.elements.popper);var l=[].concat(e.scrollParents.reference,e.scrollParents.popper);if(o){l.forEach((function(t){t.addEventListener("scroll",i.update,St)}))}if(a){c.addEventListener("resize",i.update,St)}return function(){if(o){l.forEach((function(t){t.removeEventListener("scroll",i.update,St)}))}if(a){c.removeEventListener("resize",i.update,St)}}}const Bt={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:Pt,data:{}};var Rt={left:"right",right:"left",bottom:"top",top:"bottom"};function Wt(t){return t.replace(/left|right|bottom|top/g,(function(t){return Rt[t]}))}var Ft={start:"end",end:"start"};function Ht(t){return t.replace(/start|end/g,(function(t){return Ft[t]}))}function Zt(t){var e=X(t);var i=e.pageXOffset;var n=e.pageYOffset;return{scrollLeft:i,scrollTop:n}}function Ut(t){return ht(mt(t)).left+Zt(t).scrollLeft}function qt(t,e){var i=X(t);var n=mt(t);var s=i.visualViewport;var o=n.clientWidth;var r=n.clientHeight;var a=0;var c=0;if(s){o=s.width;r=s.height;var l=ut();if(l||!l&&e==="fixed"){a=s.offsetLeft;c=s.offsetTop}}return{width:o,height:r,x:a+Ut(t),y:c}}function Gt(t){var e;var i=mt(t);var n=Zt(t);var s=(e=t.ownerDocument)==null?void 0:e.body;var o=rt(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0);var r=rt(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);var a=-n.scrollLeft+Ut(t);var c=-n.scrollTop;if(pt(s||i).direction==="rtl"){a+=rt(i.clientWidth,s?s.clientWidth:0)-o}return{width:o,height:r,x:a,y:c}}function Qt(t){var e=pt(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Vt(t){if(["html","body","#document"].indexOf(Y(t))>=0){return t.ownerDocument.body}if(tt(t)&&Qt(t)){return t}return Vt(gt(t))}function Jt(t,e){var i;if(e===void 0){e=[]}var n=Vt(t);var s=n===((i=t.ownerDocument)==null?void 0:i.body);var o=X(n);var r=s?[o].concat(o.visualViewport||[],Qt(n)?n:[]):n;var a=e.concat(r);return s?a:a.concat(Jt(gt(r)))}function Yt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xt(t,e){var i=ht(t,false,e==="fixed");i.top=i.top+t.clientTop;i.left=i.left+t.clientLeft;i.bottom=i.top+t.clientHeight;i.right=i.left+t.clientWidth;i.width=t.clientWidth;i.height=t.clientHeight;i.x=i.left;i.y=i.top;return i}function Kt(t,e,i){return e===z?Yt(qt(t,i)):K(e)?Xt(e,i):Yt(Gt(mt(t)))}function te(t){var e=Jt(gt(t));var i=["absolute","fixed"].indexOf(pt(t).position)>=0;var n=i&&tt(t)?yt(t):t;if(!K(n)){return[]}return e.filter((function(t){return K(t)&&ft(t,n)&&Y(t)!=="body"}))}function ee(t,e,i,n){var s=e==="clippingParents"?te(t):[].concat(e);var o=[].concat(s,[i]);var r=o[0];var a=o.reduce((function(e,i){var s=Kt(t,i,n);e.top=rt(s.top,e.top);e.right=at(s.right,e.right);e.bottom=at(s.bottom,e.bottom);e.left=rt(s.left,e.left);return e}),Kt(t,r,n));a.width=a.right-a.left;a.height=a.bottom-a.top;a.x=a.left;a.y=a.top;return a}function ie(t){var e=t.reference,i=t.element,n=t.placement;var s=n?ot(n):null;var o=n?It(n):null;var r=e.x+e.width/2-i.width/2;var a=e.y+e.height/2-i.height/2;var c;switch(s){case T:c={x:r,y:e.y-i.height};break;case M:c={x:r,y:e.y+e.height};break;case E:c={x:e.x+e.width,y:a};break;case O:c={x:e.x-i.width,y:a};break;default:c={x:e.x,y:e.y}}var l=s?xt(s):null;if(l!=null){var u=l==="y"?"height":"width";switch(o){case D:c[l]=c[l]-(e[u]/2-i[u]/2);break;case N:c[l]=c[l]+(e[u]/2-i[u]/2);break}}return c}function ne(t,e){if(e===void 0){e={}}var i=e,n=i.placement,s=n===void 0?t.placement:n,o=i.strategy,r=o===void 0?t.strategy:o,a=i.boundary,c=a===void 0?L:a,l=i.rootBoundary,u=l===void 0?z:l,h=i.elementContext,d=h===void 0?S:h,f=i.altBoundary,p=f===void 0?false:f,v=i.padding,m=v===void 0?0:v;var g=jt(typeof m!=="number"?m:At(m,C));var b=d===S?P:S;var w=t.rects.popper;var y=t.elements[p?b:d];var x=ee(K(y)?y:y.contextElement||mt(t.elements.popper),c,u,r);var k=ht(t.elements.reference);var _=ie({reference:k,element:w,strategy:"absolute",placement:s});var $=Yt(Object.assign({},w,_));var j=d===S?$:k;var A={top:x.top-j.top+g.top,bottom:j.bottom-x.bottom+g.bottom,left:x.left-j.left+g.left,right:j.right-x.right+g.right};var O=t.modifiersData.offset;if(d===S&&O){var I=O[s];Object.keys(A).forEach((function(t){var e=[E,M].indexOf(t)>=0?1:-1;var i=[T,M].indexOf(t)>=0?"y":"x";A[t]+=I[i]*e}))}return A}function se(t,e){if(e===void 0){e={}}var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,c=i.allowedAutoPlacements,l=c===void 0?R:c;var u=It(n);var h=u?a?B:B.filter((function(t){return It(t)===u})):C;var d=h.filter((function(t){return l.indexOf(t)>=0}));if(d.length===0){d=h}var f=d.reduce((function(e,i){e[i]=ne(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[ot(i)];return e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}function oe(t){if(ot(t)===I){return[]}var e=Wt(t);return[Ht(t),e,Ht(e)]}function re(t){var e=t.state,i=t.options,n=t.name;if(e.modifiersData[n]._skip){return}var s=i.mainAxis,o=s===void 0?true:s,r=i.altAxis,a=r===void 0?true:r,c=i.fallbackPlacements,l=i.padding,u=i.boundary,h=i.rootBoundary,d=i.altBoundary,f=i.flipVariations,p=f===void 0?true:f,v=i.allowedAutoPlacements;var m=e.options.placement;var g=ot(m);var b=g===m;var w=c||(b||!p?[Wt(m)]:oe(m));var y=[m].concat(w).reduce((function(t,i){return t.concat(ot(i)===I?se(e,{placement:i,boundary:u,rootBoundary:h,padding:l,flipVariations:p,allowedAutoPlacements:v}):i)}),[]);var x=e.rects.reference;var k=e.rects.popper;var _=new Map;var $=true;var j=y[0];for(var A=0;A<y.length;A++){var C=y[A];var N=ot(C);var L=It(C)===D;var z=[T,M].indexOf(N)>=0;var S=z?"width":"height";var P=ne(e,{placement:C,boundary:u,rootBoundary:h,altBoundary:d,padding:l});var B=z?L?E:O:L?M:T;if(x[S]>k[S]){B=Wt(B)}var R=Wt(B);var W=[];if(o){W.push(P[N]<=0)}if(a){W.push(P[B]<=0,P[R]<=0)}if(W.every((function(t){return t}))){j=C;$=false;break}_.set(C,W)}if($){var F=p?3:1;var H=function t(e){var i=y.find((function(t){var i=_.get(t);if(i){return i.slice(0,e).every((function(t){return t}))}}));if(i){j=i;return"break"}};for(var Z=F;Z>0;Z--){var U=H(Z);if(U==="break")break}}if(e.placement!==j){e.modifiersData[n]._skip=true;e.placement=j;e.reset=true}}const ae={name:"flip",enabled:true,phase:"main",fn:re,requiresIfExists:["offset"],data:{_skip:false}};function ce(t,e,i){if(i===void 0){i={x:0,y:0}}return{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function le(t){return[T,E,M,O].some((function(e){return t[e]>=0}))}function ue(t){var e=t.state,i=t.name;var n=e.rects.reference;var s=e.rects.popper;var o=e.modifiersData.preventOverflow;var r=ne(e,{elementContext:"reference"});var a=ne(e,{altBoundary:true});var c=ce(r,n);var l=ce(a,s,o);var u=le(c);var h=le(l);e.modifiersData[i]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:h};e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const he={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:ue};function de(t,e,i){var n=ot(t);var s=[O,T].indexOf(n)>=0?-1:1;var o=typeof i==="function"?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];r=r||0;a=(a||0)*s;return[O,E].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}function fe(t){var e=t.state,i=t.options,n=t.name;var s=i.offset,o=s===void 0?[0,0]:s;var r=R.reduce((function(t,i){t[i]=de(i,e.rects,o);return t}),{});var a=r[e.placement],c=a.x,l=a.y;if(e.modifiersData.popperOffsets!=null){e.modifiersData.popperOffsets.x+=c;e.modifiersData.popperOffsets.y+=l}e.modifiersData[n]=r}const pe={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:fe};function ve(t){var e=t.state,i=t.name;e.modifiersData[i]=ie({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const me={name:"popperOffsets",enabled:true,phase:"read",fn:ve,data:{}};function ge(t){return t==="x"?"y":"x"}function be(t){var e=t.state,i=t.options,n=t.name;var s=i.mainAxis,o=s===void 0?true:s,r=i.altAxis,a=r===void 0?false:r,c=i.boundary,l=i.rootBoundary,u=i.altBoundary,h=i.padding,d=i.tether,f=d===void 0?true:d,p=i.tetherOffset,v=p===void 0?0:p;var m=ne(e,{boundary:c,rootBoundary:l,padding:h,altBoundary:u});var g=ot(e.placement);var b=It(e.placement);var w=!b;var y=xt(g);var x=ge(y);var k=e.modifiersData.popperOffsets;var _=e.rects.reference;var $=e.rects.popper;var j=typeof v==="function"?v(Object.assign({},e.rects,{placement:e.placement})):v;var A=typeof j==="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j);var I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null;var C={x:0,y:0};if(!k){return}if(o){var N;var L=y==="y"?T:O;var z=y==="y"?M:E;var S=y==="y"?"height":"width";var P=k[y];var B=P+m[L];var R=P-m[z];var W=f?-$[S]/2:0;var F=b===D?_[S]:$[S];var H=b===D?-$[S]:-_[S];var Z=e.elements.arrow;var U=f&&Z?dt(Z):{width:0,height:0};var q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:$t();var G=q[L];var Q=q[z];var V=kt(0,_[S],U[S]);var J=w?_[S]/2-W-V-G-A.mainAxis:F-V-G-A.mainAxis;var Y=w?-_[S]/2+W+V+Q+A.mainAxis:H+V+Q+A.mainAxis;var X=e.elements.arrow&&yt(e.elements.arrow);var K=X?y==="y"?X.clientTop||0:X.clientLeft||0:0;var tt=(N=I==null?void 0:I[y])!=null?N:0;var et=P+J-tt-K;var it=P+Y-tt;var nt=kt(f?at(B,et):B,P,f?rt(R,it):R);k[y]=nt;C[y]=nt-P}if(a){var st;var ct=y==="x"?T:O;var lt=y==="x"?M:E;var ut=k[x];var ht=x==="y"?"height":"width";var ft=ut+m[ct];var pt=ut-m[lt];var vt=[T,O].indexOf(g)!==-1;var mt=(st=I==null?void 0:I[x])!=null?st:0;var gt=vt?ft:ut-_[ht]-$[ht]-mt+A.altAxis;var bt=vt?ut+_[ht]+$[ht]-mt-A.altAxis:pt;var wt=f&&vt?_t(gt,ut,bt):kt(f?gt:ft,ut,f?bt:pt);k[x]=wt;C[x]=wt-ut}e.modifiersData[n]=C}const we={name:"preventOverflow",enabled:true,phase:"main",fn:be,requiresIfExists:["offset"]};function ye(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function xe(t){if(t===X(t)||!tt(t)){return Zt(t)}else{return ye(t)}}function ke(t){var e=t.getBoundingClientRect();var i=ct(e.width)/t.offsetWidth||1;var n=ct(e.height)/t.offsetHeight||1;return i!==1||n!==1}function _e(t,e,i){if(i===void 0){i=false}var n=tt(e);var s=tt(e)&&ke(e);var o=mt(e);var r=ht(t,s,i);var a={scrollLeft:0,scrollTop:0};var c={x:0,y:0};if(n||!n&&!i){if(Y(e)!=="body"||Qt(o)){a=xe(e)}if(tt(e)){c=ht(e,true);c.x+=e.clientLeft;c.y+=e.clientTop}else if(o){c.x=Ut(o)}}return{x:r.left+a.scrollLeft-c.x,y:r.top+a.scrollTop-c.y,width:r.width,height:r.height}}function $e(t){var e=new Map;var i=new Set;var n=[];t.forEach((function(t){e.set(t.name,t)}));function s(t){i.add(t.name);var o=[].concat(t.requires||[],t.requiresIfExists||[]);o.forEach((function(t){if(!i.has(t)){var n=e.get(t);if(n){s(n)}}}));n.push(t)}t.forEach((function(t){if(!i.has(t.name)){s(t)}}));return n}function je(t){var e=$e(t);return J.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}function Ae(t){var e;return function(){if(!e){e=new Promise((function(i){Promise.resolve().then((function(){e=undefined;i(t())}))}))}return e}}function Te(t){var e=t.reduce((function(t,e){var i=t[e.name];t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e;return t}),{});return Object.keys(e).map((function(t){return e[t]}))}var Me={placement:"bottom",modifiers:[],strategy:"absolute"};function Ee(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}return!e.some((function(t){return!(t&&typeof t.getBoundingClientRect==="function")}))}function Oe(t){if(t===void 0){t={}}var e=t,i=e.defaultModifiers,n=i===void 0?[]:i,s=e.defaultOptions,o=s===void 0?Me:s;return function t(e,i,s){if(s===void 0){s=o}var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},Me,o),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}};var a=[];var c=false;var l={state:r,setOptions:function t(s){var a=typeof s==="function"?s(r.options):s;h();r.options=Object.assign({},o,r.options,a);r.scrollParents={reference:K(e)?Jt(e):e.contextElement?Jt(e.contextElement):[],popper:Jt(i)};var c=je(Te([].concat(n,r.options.modifiers)));r.orderedModifiers=c.filter((function(t){return t.enabled}));u();return l.update()},forceUpdate:function t(){if(c){return}var e=r.elements,i=e.reference,n=e.popper;if(!Ee(i,n)){return}r.rects={reference:_e(i,yt(n),r.options.strategy==="fixed"),popper:dt(n)};r.reset=false;r.placement=r.options.placement;r.orderedModifiers.forEach((function(t){return r.modifiersData[t.name]=Object.assign({},t.data)}));for(var s=0;s<r.orderedModifiers.length;s++){if(r.reset===true){r.reset=false;s=-1;continue}var o=r.orderedModifiers[s],a=o.fn,u=o.options,h=u===void 0?{}:u,d=o.name;if(typeof a==="function"){r=a({state:r,options:h,name:d,instance:l})||r}}},update:Ae((function(){return new Promise((function(t){l.forceUpdate();t(r)}))})),destroy:function t(){h();c=true}};if(!Ee(e,i)){return l}l.setOptions(s).then((function(t){if(!c&&s.onFirstUpdate){s.onFirstUpdate(t)}}));function u(){r.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=i===void 0?{}:i,s=t.effect;if(typeof s==="function"){var o=s({state:r,name:e,instance:l,options:n});var c=function t(){};a.push(o||c)}}))}function h(){a.forEach((function(t){return t()}));a=[]}return l}}var Ie=Oe();var Ce=[Bt,me,zt,st];var De=Oe({defaultModifiers:Ce});var Ne=[Bt,me,zt,st,pe,ae,we,Ot,he];var Le=Oe({defaultModifiers:Ne});const ze=Object.freeze({__proto__:null,popperGenerator:Oe,detectOverflow:ne,createPopperBase:Ie,createPopper:Le,createPopperLite:De,top:T,bottom:M,right:E,left:O,auto:I,basePlacements:C,start:D,end:N,clippingParents:L,viewport:z,popper:S,reference:P,variationPlacements:B,placements:R,beforeRead:W,read:F,afterRead:H,beforeMain:Z,main:U,afterMain:q,beforeWrite:G,write:Q,afterWrite:V,modifierPhases:J,applyStyles:st,arrow:Ot,computeStyles:zt,eventListeners:Bt,flip:ae,hide:he,offset:pe,popperOffsets:me,preventOverflow:we});
1
+ import{r as t,h as e,H as i,c as n,F as s}from"./p-ae20e789.js";import{j as o}from"./p-86c7fdc7.js";import{s as r,g as a,d as c,e as l}from"./p-59bfd021.js";const u="";const h=class{constructor(e){t(this,e);this.content=undefined}componentDidLoad(){const t=o(".album-full-content");const e=o(".album-preview-content");t.slick({lazyLoad:"progressive",autoplay:true,autoplaySpeed:6e3,fade:true,asNavFor:e,arrows:false,rows:0});e.slick({lazyLoad:"ondemand",slidesToShow:Math.min(7,this.content.album.images.length),slidesToScroll:1,infinite:true,arrows:false,centerMode:true,centerPadding:"0",focusOnSelect:true,asNavFor:t,responsive:[{breakpoint:1024,settings:{slidesToShow:7}},{breakpoint:768,settings:{slidesToShow:5}},{breakpoint:378,settings:{slidesToShow:3}}],rows:0})}render(){return e("div",{class:"card border-0"},e("div",{class:"card-body"},e("div",{class:"album-full-content mb-3"},this.content.album.images.sort(((t,e)=>{var i,n;return((i=t.order)!==null&&i!==void 0?i:0)-((n=e.order)!==null&&n!==void 0?n:0)})).map((t=>{var i;return e("div",{class:"album-full-content-item"},e("div",{class:"ratio ratio-4x3 mx-auto",style:{"max-width":"50%"}},e("img",{class:"object-fit-cover h-100","data-lazy":(i=t.optimizedImage)!==null&&i!==void 0?i:t.url})))}))),e("div",{class:"album-preview-content"},this.content.album.images.sort(((t,e)=>{var i,n;return((i=t.order)!==null&&i!==void 0?i:0)-((n=e.order)!==null&&n!==void 0?n:0)})).map((t=>{var i;return e("div",{class:"album-preview-content-item"},e("div",{class:"ratio ratio-1x1 mx-auto",style:{"max-width":"90%"}},e("img",{class:"object-fit-cover h-100","data-lazy":(i=t.optimizedImage)!==null&&i!==void 0?i:t.url})))})))))}};h.style=u;const d=".sc-aico-asking-content-h{display:block}.card.sc-aico-asking-content{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0, 0, 0, 0.125);border-radius:0.25rem}.card-img-top.sc-aico-asking-content{border-top-left-radius:calc(0.25rem - 1px);border-top-right-radius:calc(0.25rem - 1px)}.card-body.sc-aico-asking-content{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;padding:1.25rem}.card-title.sc-aico-asking-content{margin-bottom:0.75rem}.team-table.sc-aico-asking-content,.more-details-table.sc-aico-asking-content{border:0;color:black;border-collapse:collapse}.more-details-table.sc-aico-asking-content th.sc-aico-asking-content{text-transform:uppercase}.more-details-table.sc-aico-asking-content{width:100%;text-align:left;margin-left:1%}.team-table.sc-aico-asking-content{width:100%;max-width:700px;margin:1rem 0}.more-details-table.sc-aico-asking-content tr.sc-aico-asking-content:nth-child(odd){background-color:#fafafa}";const f=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t,i,n;const s=(t=this.content.asking.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;return e("div",{class:"card"},e("div",{class:"card-body"},e("div",{class:"card-text d-block"},e("h1",{class:"card-title"},"Asking"),e("table",{class:"team-table"},e("tbody",null,e("tr",{class:"agenda-event"},e("td",null,e("h3",null,this.content.asking.startsAt.toLocaleDateString())),e("td",null,`${this.content.asking.startTime.toLocaleDateString()} - ${(n=(i=this.content.asking.endTime)===null||i===void 0?void 0:i.toLocaleDateString())!==null&&n!==void 0?n:"N/A"}`),e("td",{style:{width:"49%"}},s===null||s===void 0?void 0:s.title)),e("tr",{class:"event-details"},e("td",{colSpan:3,style:{padding:"0"}},e("table",{class:"more-details-table"},e("tbody",null,e("tr",null,e("th",null,"Description"),e("td",null,this.content.asking.description)),e("tr",null,e("th",null,"Gathering"),e("td",null,this.content.asking.meetingPoint)),e("tr",null,e("th",null,"Place (Address)"),e("td",null,this.content.asking.location)),e("tr",null,e("th",null,"Asking for"),e("td",{style:{"white-space":"pre"}},this.content.asking.recipents)),e("tr",null,e("th",null,"Clothing / Equipment"),e("td",{style:{"white-space":"pre"}},this.content.asking.clothingEquipment)),e("tr",null,e("th",null,"Provisions"),e("td",null,this.content.asking.catering)),e("tr",null,e("th",null,"Coaching"),e("td",null,this.content.asking.coaching)))))))))))}};f.style=d;const p=({condition:t},e)=>t&&e&&e.length>0?e:[];const v="";const m=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t;const i=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;return e(p,{condition:i!==null},e("blockquote",{class:"blockquote",style:{"background-color":this.content.quotesColor}},e("p",{class:"mb-2",style:{color:this.content.textColor}},i.quoteText),e("footer",{class:"blockquote-footer ms-2",style:{color:this.content.authorColor}},i.quoteAuthorLine)))}};m.style=v;const g="";const b=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t;const i=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;const n=new Map;if(this.content.fontSize){n.set("font-size",this.content.fontSize)}if(this.content.fontFamily){n.set("font-family",this.content.fontFamily)}return e("div",{class:"content",style:Object.fromEntries(n)},e(p,{condition:i!==null},e("aico-title-content",{content:this.makeTitleContent(i),locale:this.locale})),e("ul",null,this.content.bulletBullets.sort(((t,e)=>{var i,n;return((i=t.sort)!==null&&i!==void 0?i:0)-((n=e.sort)!==null&&n!==void 0?n:0)})).map((t=>{if(t.translations.length===0){return null}const i=t.translations.find((t=>t.locale===this.locale));if(r(i===null||i===void 0?void 0:i.text)){return null}return e("li",null,i===null||i===void 0?void 0:i.text)}))))}makeTitleContent(t){var e;return{id:this.content.id,createdAt:this.content.createdAt,updatedAt:this.content.updatedAt,hasUnderscore:false,size:(e=this.content.titleSize)!==null&&e!==void 0?e:"h1",translations:[Object.assign({},t)]}}};b.style=g;const w="";const y=class{constructor(e){t(this,e);this.content=undefined;this.hasArrows=true;this.locale="de"}componentDidLoad(){o(".carousel").slick({autoplay:true,autoplaySpeed:6e3,fade:true,dots:true,arrows:this.hasArrows,pauseOnDotsHover:true})}render(){var t;const n=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;return e(i,null,e(p,{condition:n!==null},e("aico-title-content",{content:this.makeTitleContent(n),locale:this.locale})),e("div",{class:"carousel"},this.content.contentCarouselImages.sort(((t,e)=>t.order-e.order)).map((t=>{var i;const n=(i=t.translations.find((t=>t.locale===this.locale)))!==null&&i!==void 0?i:null;return e("div",{class:"carousel-item card text-bg-dark text-white"},e("div",{class:"ratio ratio-16x9 mx-auto",style:{"max-width":"50%"}},e("img",{class:"card-img d-block object-fit-cover",alt:"Carousel Picture","data-lazy":n===null||n===void 0?void 0:n.picture})),e(p,{condition:t.translations.length>0&&!r(n===null||n===void 0?void 0:n.title)},e("div",{class:"card-img-overlay d-flex align-items-end"},e("h5",{class:"card-title text-uppercase"},n===null||n===void 0?void 0:n.title))))}))))}makeTitleContent(t){return{id:this.content.id,createdAt:this.content.createdAt,updatedAt:this.content.updatedAt,hasUnderscore:false,size:"h2",translations:[Object.assign({},t)]}}};y.style=w;const x="";const k=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t,i;const n=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;return e("div",{class:"card",style:{width:"18rem"}},e(p,{condition:!r(this.content.picture)},e("img",{class:"card-img-top",alt:"Card picture",src:this.content.picture})),e("div",{class:"card-body"},e(p,{condition:!r(n===null||n===void 0?void 0:n.title)},e("aico-title-content",{class:"card-title",content:this.makeTitleContent(n),locale:this.locale})),e(p,{condition:!r(this.content.link)},e("a",{class:"card-link",href:this.content.link,target:"_blank"},(i=n===null||n===void 0?void 0:n.linkText)!==null&&i!==void 0?i:"link"))))}makeTitleContent(t){var e;return{id:this.content.id,createdAt:this.content.createdAt,updatedAt:this.content.updatedAt,hasUnderscore:false,size:(e=this.content.titleSize)!==null&&e!==void 0?e:"h1",translations:[Object.assign({},t)]}}};k.style=x;const _="";const $=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t;const n=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;const s=n?n.isOnlyMargin:this.content.isOnlyMargin;return e(i,null,s?e("div",{style:{"padding-top":"40px"}}):e("hr",{style:{margin:"5px"}}))}};$.style=_;const j=".sc-aico-document-content-h{--hover-button-color:unset}.button-link.sc-aico-document-content:hover{background-color:var(--hover-button-color)!important;opacity:0.85}";const A=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t,i;const n=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;const s={};const o={};if(this.content.fontSize){s["font-size"]=`${this.content.fontSize}px`;o["font-size"]=`${this.content.fontSize}px`}if(this.content.fontFamily){s["font-family"]=this.content.fontFamily;o["font-family"]=this.content.fontFamily}if(this.content.isDocumentDisplayedAsButton&&this.content.buttonTextColor){o["color"]=this.content.buttonTextColor}if(this.content.isDocumentDisplayedAsButton&&this.content.buttonBackgroundColor){o["background-color"]=this.content.buttonBackgroundColor}if(this.content.isDocumentDisplayedAsButton&&this.content.buttonBorderColor){o["border-color"]=this.content.buttonBorderColor}if(this.content.isDocumentDisplayedAsButton&&this.content.buttonHoverColor){o["--hover-button-color"]=this.content.buttonHoverColor}return e("div",{class:"card"},e(p,{condition:!r(n===null||n===void 0?void 0:n.picture)},e("img",{class:"card-img-top",alt:"image",src:n.picture})),e("div",{class:"card-body"},e(p,{condition:!r(this.content.link)},e("a",{class:"card-link",style:s,href:this.content.link},this.content.link)),e(p,{condition:!r(n===null||n===void 0?void 0:n.document)},e("a",{href:n.document,target:"_blank",style:o,class:`card-link align-middle ${this.content.isDocumentDisplayedAsButton?"btn button-link":""}`},e("i",null,e("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"24",height:"24",viewBox:"0 0 50 50"},e("path",{d:"M 7 2 L 7 48 L 43 48 L 43 14.59375 L 42.71875 14.28125 L 30.71875 2.28125 L 30.40625 2 Z M 9 4 L 29 4 L 29 16 L 41 16 L 41 46 L 9 46 Z M 31 5.4375 L 39.5625 14 L 31 14 Z"}))),(i=n.title)!==null&&i!==void 0?i:"File"))))}};A.style=j;var T="top";var M="bottom";var E="right";var O="left";var I="auto";var C=[T,M,E,O];var D="start";var N="end";var L="clippingParents";var z="viewport";var S="popper";var P="reference";var B=C.reduce((function(t,e){return t.concat([e+"-"+D,e+"-"+N])}),[]);var R=[].concat(C,[I]).reduce((function(t,e){return t.concat([e,e+"-"+D,e+"-"+N])}),[]);var W="beforeRead";var F="read";var H="afterRead";var Z="beforeMain";var U="main";var q="afterMain";var G="beforeWrite";var Q="write";var V="afterWrite";var J=[W,F,H,Z,U,q,G,Q,V];function Y(t){return t?(t.nodeName||"").toLowerCase():null}function X(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function K(t){var e=X(t).Element;return t instanceof e||t instanceof Element}function tt(t){var e=X(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function et(t){if(typeof ShadowRoot==="undefined"){return false}var e=X(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function it(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{};var n=e.attributes[t]||{};var s=e.elements[t];if(!tt(s)||!Y(s)){return}Object.assign(s.style,i);Object.keys(n).forEach((function(t){var e=n[t];if(e===false){s.removeAttribute(t)}else{s.setAttribute(t,e===true?"":e)}}))}))}function nt(t){var e=t.state;var i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper);e.styles=i;if(e.elements.arrow){Object.assign(e.elements.arrow.style,i.arrow)}return function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t];var s=e.attributes[t]||{};var o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]);var r=o.reduce((function(t,e){t[e]="";return t}),{});if(!tt(n)||!Y(n)){return}Object.assign(n.style,r);Object.keys(s).forEach((function(t){n.removeAttribute(t)}))}))}}const st={name:"applyStyles",enabled:true,phase:"write",fn:it,effect:nt,requires:["computeStyles"]};function ot(t){return t.split("-")[0]}var rt=Math.max;var at=Math.min;var ct=Math.round;function lt(){var t=navigator.userAgentData;if(t!=null&&t.brands&&Array.isArray(t.brands)){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function ut(){return!/^((?!chrome|android).)*safari/i.test(lt())}function ht(t,e,i){if(e===void 0){e=false}if(i===void 0){i=false}var n=t.getBoundingClientRect();var s=1;var o=1;if(e&&tt(t)){s=t.offsetWidth>0?ct(n.width)/t.offsetWidth||1:1;o=t.offsetHeight>0?ct(n.height)/t.offsetHeight||1:1}var r=K(t)?X(t):window,a=r.visualViewport;var c=!ut()&&i;var l=(n.left+(c&&a?a.offsetLeft:0))/s;var u=(n.top+(c&&a?a.offsetTop:0))/o;var h=n.width/s;var d=n.height/o;return{width:h,height:d,top:u,right:l+h,bottom:u+d,left:l,x:l,y:u}}function dt(t){var e=ht(t);var i=t.offsetWidth;var n=t.offsetHeight;if(Math.abs(e.width-i)<=1){i=e.width}if(Math.abs(e.height-n)<=1){n=e.height}return{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function ft(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e)){return true}else if(i&&et(i)){var n=e;do{if(n&&t.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function pt(t){return X(t).getComputedStyle(t)}function vt(t){return["table","td","th"].indexOf(Y(t))>=0}function mt(t){return((K(t)?t.ownerDocument:t.document)||window.document).documentElement}function gt(t){if(Y(t)==="html"){return t}return t.assignedSlot||t.parentNode||(et(t)?t.host:null)||mt(t)}function bt(t){if(!tt(t)||pt(t).position==="fixed"){return null}return t.offsetParent}function wt(t){var e=/firefox/i.test(lt());var i=/Trident/i.test(lt());if(i&&tt(t)){var n=pt(t);if(n.position==="fixed"){return null}}var s=gt(t);if(et(s)){s=s.host}while(tt(s)&&["html","body"].indexOf(Y(s))<0){var o=pt(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none"){return s}else{s=s.parentNode}}return null}function yt(t){var e=X(t);var i=bt(t);while(i&&vt(i)&&pt(i).position==="static"){i=bt(i)}if(i&&(Y(i)==="html"||Y(i)==="body"&&pt(i).position==="static")){return e}return i||wt(t)||e}function xt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,i){return rt(t,at(e,i))}function _t(t,e,i){var n=kt(t,e,i);return n>i?i:n}function $t(){return{top:0,right:0,bottom:0,left:0}}function jt(t){return Object.assign({},$t(),t)}function At(t,e){return e.reduce((function(e,i){e[i]=t;return e}),{})}var Tt=function t(e,i){e=typeof e==="function"?e(Object.assign({},i.rects,{placement:i.placement})):e;return jt(typeof e!=="number"?e:At(e,C))};function Mt(t){var e;var i=t.state,n=t.name,s=t.options;var o=i.elements.arrow;var r=i.modifiersData.popperOffsets;var a=ot(i.placement);var c=xt(a);var l=[O,E].indexOf(a)>=0;var u=l?"height":"width";if(!o||!r){return}var h=Tt(s.padding,i);var d=dt(o);var f=c==="y"?T:O;var p=c==="y"?M:E;var v=i.rects.reference[u]+i.rects.reference[c]-r[c]-i.rects.popper[u];var m=r[c]-i.rects.reference[c];var g=yt(o);var b=g?c==="y"?g.clientHeight||0:g.clientWidth||0:0;var w=v/2-m/2;var y=h[f];var x=b-d[u]-h[p];var k=b/2-d[u]/2+w;var _=kt(y,k,x);var $=c;i.modifiersData[n]=(e={},e[$]=_,e.centerOffset=_-k,e)}function Et(t){var e=t.state,i=t.options;var n=i.element,s=n===void 0?"[data-popper-arrow]":n;if(s==null){return}if(typeof s==="string"){s=e.elements.popper.querySelector(s);if(!s){return}}if(!ft(e.elements.popper,s)){return}e.elements.arrow=s}const Ot={name:"arrow",enabled:true,phase:"main",fn:Mt,effect:Et,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function It(t){return t.split("-")[1]}var Ct={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dt(t,e){var i=t.x,n=t.y;var s=e.devicePixelRatio||1;return{x:ct(i*s)/s||0,y:ct(n*s)/s||0}}function Nt(t){var e;var i=t.popper,n=t.popperRect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,h=t.isFixed;var d=r.x,f=d===void 0?0:d,p=r.y,v=p===void 0?0:p;var m=typeof u==="function"?u({x:f,y:v}):{x:f,y:v};f=m.x;v=m.y;var g=r.hasOwnProperty("x");var b=r.hasOwnProperty("y");var w=O;var y=T;var x=window;if(l){var k=yt(i);var _="clientHeight";var $="clientWidth";if(k===X(i)){k=mt(i);if(pt(k).position!=="static"&&a==="absolute"){_="scrollHeight";$="scrollWidth"}}k=k;if(s===T||(s===O||s===E)&&o===N){y=M;var j=h&&k===x&&x.visualViewport?x.visualViewport.height:k[_];v-=j-n.height;v*=c?1:-1}if(s===O||(s===T||s===M)&&o===N){w=E;var A=h&&k===x&&x.visualViewport?x.visualViewport.width:k[$];f-=A-n.width;f*=c?1:-1}}var I=Object.assign({position:a},l&&Ct);var C=u===true?Dt({x:f,y:v},X(i)):{x:f,y:v};f=C.x;v=C.y;if(c){var D;return Object.assign({},I,(D={},D[y]=b?"0":"",D[w]=g?"0":"",D.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",D))}return Object.assign({},I,(e={},e[y]=b?v+"px":"",e[w]=g?f+"px":"",e.transform="",e))}function Lt(t){var e=t.state,i=t.options;var n=i.gpuAcceleration,s=n===void 0?true:n,o=i.adaptive,r=o===void 0?true:o,a=i.roundOffsets,c=a===void 0?true:a;var l={placement:ot(e.placement),variation:It(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};if(e.modifiersData.popperOffsets!=null){e.styles.popper=Object.assign({},e.styles.popper,Nt(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:c})))}if(e.modifiersData.arrow!=null){e.styles.arrow=Object.assign({},e.styles.arrow,Nt(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:c})))}e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const zt={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:Lt,data:{}};var St={passive:true};function Pt(t){var e=t.state,i=t.instance,n=t.options;var s=n.scroll,o=s===void 0?true:s,r=n.resize,a=r===void 0?true:r;var c=X(e.elements.popper);var l=[].concat(e.scrollParents.reference,e.scrollParents.popper);if(o){l.forEach((function(t){t.addEventListener("scroll",i.update,St)}))}if(a){c.addEventListener("resize",i.update,St)}return function(){if(o){l.forEach((function(t){t.removeEventListener("scroll",i.update,St)}))}if(a){c.removeEventListener("resize",i.update,St)}}}const Bt={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:Pt,data:{}};var Rt={left:"right",right:"left",bottom:"top",top:"bottom"};function Wt(t){return t.replace(/left|right|bottom|top/g,(function(t){return Rt[t]}))}var Ft={start:"end",end:"start"};function Ht(t){return t.replace(/start|end/g,(function(t){return Ft[t]}))}function Zt(t){var e=X(t);var i=e.pageXOffset;var n=e.pageYOffset;return{scrollLeft:i,scrollTop:n}}function Ut(t){return ht(mt(t)).left+Zt(t).scrollLeft}function qt(t,e){var i=X(t);var n=mt(t);var s=i.visualViewport;var o=n.clientWidth;var r=n.clientHeight;var a=0;var c=0;if(s){o=s.width;r=s.height;var l=ut();if(l||!l&&e==="fixed"){a=s.offsetLeft;c=s.offsetTop}}return{width:o,height:r,x:a+Ut(t),y:c}}function Gt(t){var e;var i=mt(t);var n=Zt(t);var s=(e=t.ownerDocument)==null?void 0:e.body;var o=rt(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0);var r=rt(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);var a=-n.scrollLeft+Ut(t);var c=-n.scrollTop;if(pt(s||i).direction==="rtl"){a+=rt(i.clientWidth,s?s.clientWidth:0)-o}return{width:o,height:r,x:a,y:c}}function Qt(t){var e=pt(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Vt(t){if(["html","body","#document"].indexOf(Y(t))>=0){return t.ownerDocument.body}if(tt(t)&&Qt(t)){return t}return Vt(gt(t))}function Jt(t,e){var i;if(e===void 0){e=[]}var n=Vt(t);var s=n===((i=t.ownerDocument)==null?void 0:i.body);var o=X(n);var r=s?[o].concat(o.visualViewport||[],Qt(n)?n:[]):n;var a=e.concat(r);return s?a:a.concat(Jt(gt(r)))}function Yt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xt(t,e){var i=ht(t,false,e==="fixed");i.top=i.top+t.clientTop;i.left=i.left+t.clientLeft;i.bottom=i.top+t.clientHeight;i.right=i.left+t.clientWidth;i.width=t.clientWidth;i.height=t.clientHeight;i.x=i.left;i.y=i.top;return i}function Kt(t,e,i){return e===z?Yt(qt(t,i)):K(e)?Xt(e,i):Yt(Gt(mt(t)))}function te(t){var e=Jt(gt(t));var i=["absolute","fixed"].indexOf(pt(t).position)>=0;var n=i&&tt(t)?yt(t):t;if(!K(n)){return[]}return e.filter((function(t){return K(t)&&ft(t,n)&&Y(t)!=="body"}))}function ee(t,e,i,n){var s=e==="clippingParents"?te(t):[].concat(e);var o=[].concat(s,[i]);var r=o[0];var a=o.reduce((function(e,i){var s=Kt(t,i,n);e.top=rt(s.top,e.top);e.right=at(s.right,e.right);e.bottom=at(s.bottom,e.bottom);e.left=rt(s.left,e.left);return e}),Kt(t,r,n));a.width=a.right-a.left;a.height=a.bottom-a.top;a.x=a.left;a.y=a.top;return a}function ie(t){var e=t.reference,i=t.element,n=t.placement;var s=n?ot(n):null;var o=n?It(n):null;var r=e.x+e.width/2-i.width/2;var a=e.y+e.height/2-i.height/2;var c;switch(s){case T:c={x:r,y:e.y-i.height};break;case M:c={x:r,y:e.y+e.height};break;case E:c={x:e.x+e.width,y:a};break;case O:c={x:e.x-i.width,y:a};break;default:c={x:e.x,y:e.y}}var l=s?xt(s):null;if(l!=null){var u=l==="y"?"height":"width";switch(o){case D:c[l]=c[l]-(e[u]/2-i[u]/2);break;case N:c[l]=c[l]+(e[u]/2-i[u]/2);break}}return c}function ne(t,e){if(e===void 0){e={}}var i=e,n=i.placement,s=n===void 0?t.placement:n,o=i.strategy,r=o===void 0?t.strategy:o,a=i.boundary,c=a===void 0?L:a,l=i.rootBoundary,u=l===void 0?z:l,h=i.elementContext,d=h===void 0?S:h,f=i.altBoundary,p=f===void 0?false:f,v=i.padding,m=v===void 0?0:v;var g=jt(typeof m!=="number"?m:At(m,C));var b=d===S?P:S;var w=t.rects.popper;var y=t.elements[p?b:d];var x=ee(K(y)?y:y.contextElement||mt(t.elements.popper),c,u,r);var k=ht(t.elements.reference);var _=ie({reference:k,element:w,strategy:"absolute",placement:s});var $=Yt(Object.assign({},w,_));var j=d===S?$:k;var A={top:x.top-j.top+g.top,bottom:j.bottom-x.bottom+g.bottom,left:x.left-j.left+g.left,right:j.right-x.right+g.right};var O=t.modifiersData.offset;if(d===S&&O){var I=O[s];Object.keys(A).forEach((function(t){var e=[E,M].indexOf(t)>=0?1:-1;var i=[T,M].indexOf(t)>=0?"y":"x";A[t]+=I[i]*e}))}return A}function se(t,e){if(e===void 0){e={}}var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,c=i.allowedAutoPlacements,l=c===void 0?R:c;var u=It(n);var h=u?a?B:B.filter((function(t){return It(t)===u})):C;var d=h.filter((function(t){return l.indexOf(t)>=0}));if(d.length===0){d=h}var f=d.reduce((function(e,i){e[i]=ne(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[ot(i)];return e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}function oe(t){if(ot(t)===I){return[]}var e=Wt(t);return[Ht(t),e,Ht(e)]}function re(t){var e=t.state,i=t.options,n=t.name;if(e.modifiersData[n]._skip){return}var s=i.mainAxis,o=s===void 0?true:s,r=i.altAxis,a=r===void 0?true:r,c=i.fallbackPlacements,l=i.padding,u=i.boundary,h=i.rootBoundary,d=i.altBoundary,f=i.flipVariations,p=f===void 0?true:f,v=i.allowedAutoPlacements;var m=e.options.placement;var g=ot(m);var b=g===m;var w=c||(b||!p?[Wt(m)]:oe(m));var y=[m].concat(w).reduce((function(t,i){return t.concat(ot(i)===I?se(e,{placement:i,boundary:u,rootBoundary:h,padding:l,flipVariations:p,allowedAutoPlacements:v}):i)}),[]);var x=e.rects.reference;var k=e.rects.popper;var _=new Map;var $=true;var j=y[0];for(var A=0;A<y.length;A++){var C=y[A];var N=ot(C);var L=It(C)===D;var z=[T,M].indexOf(N)>=0;var S=z?"width":"height";var P=ne(e,{placement:C,boundary:u,rootBoundary:h,altBoundary:d,padding:l});var B=z?L?E:O:L?M:T;if(x[S]>k[S]){B=Wt(B)}var R=Wt(B);var W=[];if(o){W.push(P[N]<=0)}if(a){W.push(P[B]<=0,P[R]<=0)}if(W.every((function(t){return t}))){j=C;$=false;break}_.set(C,W)}if($){var F=p?3:1;var H=function t(e){var i=y.find((function(t){var i=_.get(t);if(i){return i.slice(0,e).every((function(t){return t}))}}));if(i){j=i;return"break"}};for(var Z=F;Z>0;Z--){var U=H(Z);if(U==="break")break}}if(e.placement!==j){e.modifiersData[n]._skip=true;e.placement=j;e.reset=true}}const ae={name:"flip",enabled:true,phase:"main",fn:re,requiresIfExists:["offset"],data:{_skip:false}};function ce(t,e,i){if(i===void 0){i={x:0,y:0}}return{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function le(t){return[T,E,M,O].some((function(e){return t[e]>=0}))}function ue(t){var e=t.state,i=t.name;var n=e.rects.reference;var s=e.rects.popper;var o=e.modifiersData.preventOverflow;var r=ne(e,{elementContext:"reference"});var a=ne(e,{altBoundary:true});var c=ce(r,n);var l=ce(a,s,o);var u=le(c);var h=le(l);e.modifiersData[i]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:h};e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const he={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:ue};function de(t,e,i){var n=ot(t);var s=[O,T].indexOf(n)>=0?-1:1;var o=typeof i==="function"?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];r=r||0;a=(a||0)*s;return[O,E].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}function fe(t){var e=t.state,i=t.options,n=t.name;var s=i.offset,o=s===void 0?[0,0]:s;var r=R.reduce((function(t,i){t[i]=de(i,e.rects,o);return t}),{});var a=r[e.placement],c=a.x,l=a.y;if(e.modifiersData.popperOffsets!=null){e.modifiersData.popperOffsets.x+=c;e.modifiersData.popperOffsets.y+=l}e.modifiersData[n]=r}const pe={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:fe};function ve(t){var e=t.state,i=t.name;e.modifiersData[i]=ie({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const me={name:"popperOffsets",enabled:true,phase:"read",fn:ve,data:{}};function ge(t){return t==="x"?"y":"x"}function be(t){var e=t.state,i=t.options,n=t.name;var s=i.mainAxis,o=s===void 0?true:s,r=i.altAxis,a=r===void 0?false:r,c=i.boundary,l=i.rootBoundary,u=i.altBoundary,h=i.padding,d=i.tether,f=d===void 0?true:d,p=i.tetherOffset,v=p===void 0?0:p;var m=ne(e,{boundary:c,rootBoundary:l,padding:h,altBoundary:u});var g=ot(e.placement);var b=It(e.placement);var w=!b;var y=xt(g);var x=ge(y);var k=e.modifiersData.popperOffsets;var _=e.rects.reference;var $=e.rects.popper;var j=typeof v==="function"?v(Object.assign({},e.rects,{placement:e.placement})):v;var A=typeof j==="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j);var I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null;var C={x:0,y:0};if(!k){return}if(o){var N;var L=y==="y"?T:O;var z=y==="y"?M:E;var S=y==="y"?"height":"width";var P=k[y];var B=P+m[L];var R=P-m[z];var W=f?-$[S]/2:0;var F=b===D?_[S]:$[S];var H=b===D?-$[S]:-_[S];var Z=e.elements.arrow;var U=f&&Z?dt(Z):{width:0,height:0};var q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:$t();var G=q[L];var Q=q[z];var V=kt(0,_[S],U[S]);var J=w?_[S]/2-W-V-G-A.mainAxis:F-V-G-A.mainAxis;var Y=w?-_[S]/2+W+V+Q+A.mainAxis:H+V+Q+A.mainAxis;var X=e.elements.arrow&&yt(e.elements.arrow);var K=X?y==="y"?X.clientTop||0:X.clientLeft||0:0;var tt=(N=I==null?void 0:I[y])!=null?N:0;var et=P+J-tt-K;var it=P+Y-tt;var nt=kt(f?at(B,et):B,P,f?rt(R,it):R);k[y]=nt;C[y]=nt-P}if(a){var st;var ct=y==="x"?T:O;var lt=y==="x"?M:E;var ut=k[x];var ht=x==="y"?"height":"width";var ft=ut+m[ct];var pt=ut-m[lt];var vt=[T,O].indexOf(g)!==-1;var mt=(st=I==null?void 0:I[x])!=null?st:0;var gt=vt?ft:ut-_[ht]-$[ht]-mt+A.altAxis;var bt=vt?ut+_[ht]+$[ht]-mt-A.altAxis:pt;var wt=f&&vt?_t(gt,ut,bt):kt(f?gt:ft,ut,f?bt:pt);k[x]=wt;C[x]=wt-ut}e.modifiersData[n]=C}const we={name:"preventOverflow",enabled:true,phase:"main",fn:be,requiresIfExists:["offset"]};function ye(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function xe(t){if(t===X(t)||!tt(t)){return Zt(t)}else{return ye(t)}}function ke(t){var e=t.getBoundingClientRect();var i=ct(e.width)/t.offsetWidth||1;var n=ct(e.height)/t.offsetHeight||1;return i!==1||n!==1}function _e(t,e,i){if(i===void 0){i=false}var n=tt(e);var s=tt(e)&&ke(e);var o=mt(e);var r=ht(t,s,i);var a={scrollLeft:0,scrollTop:0};var c={x:0,y:0};if(n||!n&&!i){if(Y(e)!=="body"||Qt(o)){a=xe(e)}if(tt(e)){c=ht(e,true);c.x+=e.clientLeft;c.y+=e.clientTop}else if(o){c.x=Ut(o)}}return{x:r.left+a.scrollLeft-c.x,y:r.top+a.scrollTop-c.y,width:r.width,height:r.height}}function $e(t){var e=new Map;var i=new Set;var n=[];t.forEach((function(t){e.set(t.name,t)}));function s(t){i.add(t.name);var o=[].concat(t.requires||[],t.requiresIfExists||[]);o.forEach((function(t){if(!i.has(t)){var n=e.get(t);if(n){s(n)}}}));n.push(t)}t.forEach((function(t){if(!i.has(t.name)){s(t)}}));return n}function je(t){var e=$e(t);return J.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}function Ae(t){var e;return function(){if(!e){e=new Promise((function(i){Promise.resolve().then((function(){e=undefined;i(t())}))}))}return e}}function Te(t){var e=t.reduce((function(t,e){var i=t[e.name];t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e;return t}),{});return Object.keys(e).map((function(t){return e[t]}))}var Me={placement:"bottom",modifiers:[],strategy:"absolute"};function Ee(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}return!e.some((function(t){return!(t&&typeof t.getBoundingClientRect==="function")}))}function Oe(t){if(t===void 0){t={}}var e=t,i=e.defaultModifiers,n=i===void 0?[]:i,s=e.defaultOptions,o=s===void 0?Me:s;return function t(e,i,s){if(s===void 0){s=o}var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},Me,o),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}};var a=[];var c=false;var l={state:r,setOptions:function t(s){var a=typeof s==="function"?s(r.options):s;h();r.options=Object.assign({},o,r.options,a);r.scrollParents={reference:K(e)?Jt(e):e.contextElement?Jt(e.contextElement):[],popper:Jt(i)};var c=je(Te([].concat(n,r.options.modifiers)));r.orderedModifiers=c.filter((function(t){return t.enabled}));u();return l.update()},forceUpdate:function t(){if(c){return}var e=r.elements,i=e.reference,n=e.popper;if(!Ee(i,n)){return}r.rects={reference:_e(i,yt(n),r.options.strategy==="fixed"),popper:dt(n)};r.reset=false;r.placement=r.options.placement;r.orderedModifiers.forEach((function(t){return r.modifiersData[t.name]=Object.assign({},t.data)}));for(var s=0;s<r.orderedModifiers.length;s++){if(r.reset===true){r.reset=false;s=-1;continue}var o=r.orderedModifiers[s],a=o.fn,u=o.options,h=u===void 0?{}:u,d=o.name;if(typeof a==="function"){r=a({state:r,options:h,name:d,instance:l})||r}}},update:Ae((function(){return new Promise((function(t){l.forceUpdate();t(r)}))})),destroy:function t(){h();c=true}};if(!Ee(e,i)){return l}l.setOptions(s).then((function(t){if(!c&&s.onFirstUpdate){s.onFirstUpdate(t)}}));function u(){r.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=i===void 0?{}:i,s=t.effect;if(typeof s==="function"){var o=s({state:r,name:e,instance:l,options:n});var c=function t(){};a.push(o||c)}}))}function h(){a.forEach((function(t){return t()}));a=[]}return l}}var Ie=Oe();var Ce=[Bt,me,zt,st];var De=Oe({defaultModifiers:Ce});var Ne=[Bt,me,zt,st,pe,ae,we,Ot,he];var Le=Oe({defaultModifiers:Ne});const ze=Object.freeze({__proto__:null,popperGenerator:Oe,detectOverflow:ne,createPopperBase:Ie,createPopper:Le,createPopperLite:De,top:T,bottom:M,right:E,left:O,auto:I,basePlacements:C,start:D,end:N,clippingParents:L,viewport:z,popper:S,reference:P,variationPlacements:B,placements:R,beforeRead:W,read:F,afterRead:H,beforeMain:Z,main:U,afterMain:q,beforeWrite:G,write:Q,afterWrite:V,modifierPhases:J,applyStyles:st,arrow:Ot,computeStyles:zt,eventListeners:Bt,flip:ae,hide:he,offset:pe,popperOffsets:me,preventOverflow:we});
2
2
  /*!
3
3
  * Bootstrap v5.3.2 (https://getbootstrap.com/)
4
4
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
5
5
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6
6
  */const Se=new Map;const Pe={set(t,e,i){if(!Se.has(t)){Se.set(t,new Map)}const n=Se.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,i)},get(t,e){if(Se.has(t)){return Se.get(t).get(e)||null}return null},remove(t,e){if(!Se.has(t)){return}const i=Se.get(t);i.delete(e);if(i.size===0){Se.delete(t)}}};const Be=1e6;const Re=1e3;const We="transitionend";const Fe=t=>{if(t&&window.CSS&&window.CSS.escape){t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))}return t};const He=t=>{if(t===null||t===undefined){return`${t}`}return Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()};const Ze=t=>{do{t+=Math.floor(Math.random()*Be)}while(document.getElementById(t));return t};const Ue=t=>{if(!t){return 0}let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e);const s=Number.parseFloat(i);if(!n&&!s){return 0}e=e.split(",")[0];i=i.split(",")[0];return(Number.parseFloat(e)+Number.parseFloat(i))*Re};const qe=t=>{t.dispatchEvent(new Event(We))};const Ge=t=>{if(!t||typeof t!=="object"){return false}if(typeof t.jquery!=="undefined"){t=t[0]}return typeof t.nodeType!=="undefined"};const Qe=t=>{if(Ge(t)){return t.jquery?t[0]:t}if(typeof t==="string"&&t.length>0){return document.querySelector(Fe(t))}return null};const Ve=t=>{if(!Ge(t)||t.getClientRects().length===0){return false}const e=getComputedStyle(t).getPropertyValue("visibility")==="visible";const i=t.closest("details:not([open])");if(!i){return e}if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i){return false}if(e===null){return false}}return e};const Je=t=>{if(!t||t.nodeType!==Node.ELEMENT_NODE){return true}if(t.classList.contains("disabled")){return true}if(typeof t.disabled!=="undefined"){return t.disabled}return t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false"};const Ye=t=>{if(!document.documentElement.attachShadow){return null}if(typeof t.getRootNode==="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}if(t instanceof ShadowRoot){return t}if(!t.parentNode){return null}return Ye(t.parentNode)};const Xe=()=>{};const Ke=()=>{if(window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")){return window.jQuery}return null};const ti=[];const ei=t=>{if(document.readyState==="loading"){if(!ti.length){document.addEventListener("DOMContentLoaded",(()=>{for(const t of ti){t()}}))}ti.push(t)}else{t()}};const ii=()=>document.documentElement.dir==="rtl";const ni=t=>{ei((()=>{const e=Ke();if(e){const i=t.NAME;const n=e.fn[i];e.fn[i]=t.jQueryInterface;e.fn[i].Constructor=t;e.fn[i].noConflict=()=>{e.fn[i]=n;return t.jQueryInterface}}}))};const si=(t,e=[],i=t)=>typeof t==="function"?t(...e):i;const oi=(t,e,i=true)=>{if(!i){si(t);return}const n=5;const s=Ue(e)+n;let o=false;const r=({target:i})=>{if(i!==e){return}o=true;e.removeEventListener(We,r);si(t)};e.addEventListener(We,r);setTimeout((()=>{if(!o){qe(e)}}),s)};const ri=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);if(o===-1){return!i&&n?t[s-1]:t[0]}o+=i?1:-1;if(n){o=(o+s)%s}return t[Math.max(0,Math.min(o,s-1))]};const ai=/[^.]*(?=\..*)\.|.*/;const ci=/\..*/;const li=/::\d+$/;const ui={};let hi=1;const di={mouseenter:"mouseover",mouseleave:"mouseout"};const fi=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function pi(t,e){return e&&`${e}::${hi++}`||t.uidEvent||hi++}function vi(t){const e=pi(t);t.uidEvent=e;ui[e]=ui[e]||{};return ui[e]}function mi(t,e){return function i(n){ji(n,{delegateTarget:t});if(i.oneOff){$i.off(t,n.type,e)}return e.apply(t,[n])}}function gi(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode){for(const a of o){if(a!==r){continue}ji(s,{delegateTarget:r});if(n.oneOff){$i.off(t,s.type,e,i)}return i.apply(r,[s])}}}}function bi(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function wi(t,e,i){const n=typeof e==="string";const s=n?i:e||i;let o=_i(t);if(!fi.has(o)){o=t}return[n,s,o]}function yi(t,e,i,n,s){if(typeof e!=="string"||!t){return}let[o,r,a]=wi(e,i,n);if(e in di){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget)){return t.call(this,e)}};r=t(r)}const c=vi(t);const l=c[a]||(c[a]={});const u=bi(l,r,o?i:null);if(u){u.oneOff=u.oneOff&&s;return}const h=pi(r,e.replace(ai,""));const d=o?gi(t,i,r):mi(t,r);d.delegationSelector=o?i:null;d.callable=r;d.oneOff=s;d.uidEvent=h;l[h]=d;t.addEventListener(a,d,o)}function xi(t,e,i,n,s){const o=bi(e[i],n,s);if(!o){return}t.removeEventListener(i,o,Boolean(s));delete e[i][o.uidEvent]}function ki(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s)){if(o.includes(n)){xi(t,e,i,r.callable,r.delegationSelector)}}}function _i(t){t=t.replace(ci,"");return di[t]||t}const $i={on(t,e,i,n){yi(t,e,i,n,false)},one(t,e,i,n){yi(t,e,i,n,true)},off(t,e,i,n){if(typeof e!=="string"||!t){return}const[s,o,r]=wi(e,i,n);const a=r!==e;const c=vi(t);const l=c[r]||{};const u=e.startsWith(".");if(typeof o!=="undefined"){if(!Object.keys(l).length){return}xi(t,c,r,o,s?i:null);return}if(u){for(const i of Object.keys(c)){ki(t,c,i,e.slice(1))}}for(const[i,n]of Object.entries(l)){const s=i.replace(li,"");if(!a||e.includes(s)){xi(t,c,r,n.callable,n.delegationSelector)}}},trigger(t,e,i){if(typeof e!=="string"||!t){return null}const n=Ke();const s=_i(e);const o=e!==s;let r=null;let a=true;let c=true;let l=false;if(o&&n){r=n.Event(e,i);n(t).trigger(r);a=!r.isPropagationStopped();c=!r.isImmediatePropagationStopped();l=r.isDefaultPrevented()}const u=ji(new Event(e,{bubbles:a,cancelable:true}),i);if(l){u.preventDefault()}if(c){t.dispatchEvent(u)}if(u.defaultPrevented&&r){r.preventDefault()}return u}};function ji(t,e={}){for(const[i,n]of Object.entries(e)){try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:true,get(){return n}})}}return t}function Ai(t){if(t==="true"){return true}if(t==="false"){return false}if(t===Number(t).toString()){return Number(t)}if(t===""||t==="null"){return null}if(typeof t!=="string"){return t}try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function Ti(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const Mi={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${Ti(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Ti(e)}`)},getDataAttributes(t){if(!t){return{}}const e={};const i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length);e[i]=Ai(t.dataset[n])}return e},getDataAttribute(t,e){return Ai(t.getAttribute(`data-bs-${Ti(e)}`))}};class Ei{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){t=this._mergeConfigObj(t);t=this._configAfterMerge(t);this._typeCheckConfig(t);return t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=Ge(e)?Mi.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof i==="object"?i:{},...Ge(e)?Mi.getDataAttributes(e):{},...typeof t==="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,n]of Object.entries(e)){const e=t[i];const s=Ge(e)?"element":He(e);if(!new RegExp(n).test(s)){throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${n}".`)}}}}const Oi="5.3.2";class Ii extends Ei{constructor(t,e){super();t=Qe(t);if(!t){return}this._element=t;this._config=this._getConfig(e);Pe.set(this._element,this.constructor.DATA_KEY,this)}dispose(){Pe.remove(this._element,this.constructor.DATA_KEY);$i.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this)){this[t]=null}}_queueCallback(t,e,i=true){oi(t,e,i)}_getConfig(t){t=this._mergeConfigObj(t,this._element);t=this._configAfterMerge(t);this._typeCheckConfig(t);return t}static getInstance(t){return Pe.get(Qe(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e==="object"?e:null)}static get VERSION(){return Oi}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Ci=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith(".")){return null}if(i.includes("#")&&!i.startsWith("#")){i=`#${i.split("#")[1]}`}e=i&&i!=="#"?Fe(i.trim()):null}return e};const Di={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter((t=>t.matches(e)))},parents(t,e){const i=[];let n=t.parentNode.closest(e);while(n){i.push(n);n=n.parentNode.closest(e)}return i},prev(t,e){let i=t.previousElementSibling;while(i){if(i.matches(e)){return[i]}i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;while(i){if(i.matches(e)){return[i]}i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!Je(t)&&Ve(t)))},getSelectorFromElement(t){const e=Ci(t);if(e){return Di.findOne(e)?e:null}return null},getElementFromSelector(t){const e=Ci(t);return e?Di.findOne(e):null},getMultipleElementsFromSelector(t){const e=Ci(t);return e?Di.find(e):[]}};const Ni=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`;const n=t.NAME;$i.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)){i.preventDefault()}if(Je(this)){return}const s=Di.getElementFromSelector(this)||this.closest(`.${n}`);const o=t.getOrCreateInstance(s);o[e]()}))};const Li="alert";const zi="bs.alert";const Si=`.${zi}`;const Pi=`close${Si}`;const Bi=`closed${Si}`;const Ri="fade";const Wi="show";class Fi extends Ii{static get NAME(){return Li}close(){const t=$i.trigger(this._element,Pi);if(t.defaultPrevented){return}this._element.classList.remove(Wi);const e=this._element.classList.contains(Ri);this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove();$i.trigger(this._element,Bi);this.dispose()}static jQueryInterface(t){return this.each((function(){const e=Fi.getOrCreateInstance(this);if(typeof t!=="string"){return}if(e[t]===undefined||t.startsWith("_")||t==="constructor"){throw new TypeError(`No method named "${t}"`)}e[t](this)}))}}Ni(Fi,"close");ni(Fi);const Hi="button";const Zi="bs.button";const Ui=`.${Zi}`;const qi=".data-api";const Gi="active";const Qi='[data-bs-toggle="button"]';const Vi=`click${Ui}${qi}`;class Ji extends Ii{static get NAME(){return Hi}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Gi))}static jQueryInterface(t){return this.each((function(){const e=Ji.getOrCreateInstance(this);if(t==="toggle"){e[t]()}}))}}$i.on(document,Vi,Qi,(t=>{t.preventDefault();const e=t.target.closest(Qi);const i=Ji.getOrCreateInstance(e);i.toggle()}));ni(Ji);const Yi="swipe";const Xi=".bs.swipe";const Ki=`touchstart${Xi}`;const tn=`touchmove${Xi}`;const en=`touchend${Xi}`;const nn=`pointerdown${Xi}`;const sn=`pointerup${Xi}`;const on="touch";const rn="pen";const an="pointer-event";const cn=40;const ln={endCallback:null,leftCallback:null,rightCallback:null};const un={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class hn extends Ei{constructor(t,e){super();this._element=t;if(!t||!hn.isSupported()){return}this._config=this._getConfig(e);this._deltaX=0;this._supportPointerEvents=Boolean(window.PointerEvent);this._initEvents()}static get Default(){return ln}static get DefaultType(){return un}static get NAME(){return Yi}dispose(){$i.off(this._element,Xi)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}if(this._eventIsPointerPenTouch(t)){this._deltaX=t.clientX}}_end(t){if(this._eventIsPointerPenTouch(t)){this._deltaX=t.clientX-this._deltaX}this._handleSwipe();si(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=cn){return}const e=t/this._deltaX;this._deltaX=0;if(!e){return}si(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){if(this._supportPointerEvents){$i.on(this._element,nn,(t=>this._start(t)));$i.on(this._element,sn,(t=>this._end(t)));this._element.classList.add(an)}else{$i.on(this._element,Ki,(t=>this._start(t)));$i.on(this._element,tn,(t=>this._move(t)));$i.on(this._element,en,(t=>this._end(t)))}}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===rn||t.pointerType===on)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const dn="carousel";const fn="bs.carousel";const pn=`.${fn}`;const vn=".data-api";const mn="ArrowLeft";const gn="ArrowRight";const bn=500;const wn="next";const yn="prev";const xn="left";const kn="right";const _n=`slide${pn}`;const $n=`slid${pn}`;const jn=`keydown${pn}`;const An=`mouseenter${pn}`;const Tn=`mouseleave${pn}`;const Mn=`dragstart${pn}`;const En=`load${pn}${vn}`;const On=`click${pn}${vn}`;const In="carousel";const Cn="active";const Dn="slide";const Nn="carousel-item-end";const Ln="carousel-item-start";const zn="carousel-item-next";const Sn="carousel-item-prev";const Pn=".active";const Bn=".carousel-item";const Rn=Pn+Bn;const Wn=".carousel-item img";const Fn=".carousel-indicators";const Hn="[data-bs-slide], [data-bs-slide-to]";const Zn='[data-bs-ride="carousel"]';const Un={[mn]:kn,[gn]:xn};const qn={interval:5e3,keyboard:true,pause:"hover",ride:false,touch:true,wrap:true};const Gn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Qn extends Ii{constructor(t,e){super(t,e);this._interval=null;this._activeElement=null;this._isSliding=false;this.touchTimeout=null;this._swipeHelper=null;this._indicatorsElement=Di.findOne(Fn,this._element);this._addEventListeners();if(this._config.ride===In){this.cycle()}}static get Default(){return qn}static get DefaultType(){return Gn}static get NAME(){return dn}next(){this._slide(wn)}nextWhenVisible(){if(!document.hidden&&Ve(this._element)){this.next()}}prev(){this._slide(yn)}pause(){if(this._isSliding){qe(this._element)}this._clearInterval()}cycle(){this._clearInterval();this._updateInterval();this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){if(!this._config.ride){return}if(this._isSliding){$i.one(this._element,$n,(()=>this.cycle()));return}this.cycle()}to(t){const e=this._getItems();if(t>e.length-1||t<0){return}if(this._isSliding){$i.one(this._element,$n,(()=>this.to(t)));return}const i=this._getItemIndex(this._getActive());if(i===t){return}const n=t>i?wn:yn;this._slide(n,e[t])}dispose(){if(this._swipeHelper){this._swipeHelper.dispose()}super.dispose()}_configAfterMerge(t){t.defaultInterval=t.interval;return t}_addEventListeners(){if(this._config.keyboard){$i.on(this._element,jn,(t=>this._keydown(t)))}if(this._config.pause==="hover"){$i.on(this._element,An,(()=>this.pause()));$i.on(this._element,Tn,(()=>this._maybeEnableCycle()))}if(this._config.touch&&hn.isSupported()){this._addTouchEventListeners()}}_addTouchEventListeners(){for(const t of Di.find(Wn,this._element)){$i.on(t,Mn,(t=>t.preventDefault()))}const t=()=>{if(this._config.pause!=="hover"){return}this.pause();if(this.touchTimeout){clearTimeout(this.touchTimeout)}this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),bn+this._config.interval)};const e={leftCallback:()=>this._slide(this._directionToOrder(xn)),rightCallback:()=>this._slide(this._directionToOrder(kn)),endCallback:t};this._swipeHelper=new hn(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName)){return}const e=Un[t.key];if(e){t.preventDefault();this._slide(this._directionToOrder(e))}}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement){return}const e=Di.findOne(Pn,this._indicatorsElement);e.classList.remove(Cn);e.removeAttribute("aria-current");const i=Di.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);if(i){i.classList.add(Cn);i.setAttribute("aria-current","true")}}_updateInterval(){const t=this._activeElement||this._getActive();if(!t){return}const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding){return}const i=this._getActive();const n=t===wn;const s=e||ri(this._getItems(),i,n,this._config.wrap);if(s===i){return}const o=this._getItemIndex(s);const r=e=>$i.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});const a=r(_n);if(a.defaultPrevented){return}if(!i||!s){return}const c=Boolean(this._interval);this.pause();this._isSliding=true;this._setActiveIndicatorElement(o);this._activeElement=s;const l=n?Ln:Nn;const u=n?zn:Sn;s.classList.add(u);i.classList.add(l);s.classList.add(l);const h=()=>{s.classList.remove(l,u);s.classList.add(Cn);i.classList.remove(Cn,u,l);this._isSliding=false;r($n)};this._queueCallback(h,i,this._isAnimated());if(c){this.cycle()}}_isAnimated(){return this._element.classList.contains(Dn)}_getActive(){return Di.findOne(Rn,this._element)}_getItems(){return Di.find(Bn,this._element)}_clearInterval(){if(this._interval){clearInterval(this._interval);this._interval=null}}_directionToOrder(t){if(ii()){return t===xn?yn:wn}return t===xn?wn:yn}_orderToDirection(t){if(ii()){return t===yn?xn:kn}return t===yn?kn:xn}static jQueryInterface(t){return this.each((function(){const e=Qn.getOrCreateInstance(this,t);if(typeof t==="number"){e.to(t);return}if(typeof t==="string"){if(e[t]===undefined||t.startsWith("_")||t==="constructor"){throw new TypeError(`No method named "${t}"`)}e[t]()}}))}}$i.on(document,On,Hn,(function(t){const e=Di.getElementFromSelector(this);if(!e||!e.classList.contains(In)){return}t.preventDefault();const i=Qn.getOrCreateInstance(e);const n=this.getAttribute("data-bs-slide-to");if(n){i.to(n);i._maybeEnableCycle();return}if(Mi.getDataAttribute(this,"slide")==="next"){i.next();i._maybeEnableCycle();return}i.prev();i._maybeEnableCycle()}));$i.on(window,En,(()=>{const t=Di.find(Zn);for(const e of t){Qn.getOrCreateInstance(e)}}));ni(Qn);const Vn="collapse";const Jn="bs.collapse";const Yn=`.${Jn}`;const Xn=".data-api";const Kn=`show${Yn}`;const ts=`shown${Yn}`;const es=`hide${Yn}`;const is=`hidden${Yn}`;const ns=`click${Yn}${Xn}`;const ss="show";const os="collapse";const rs="collapsing";const as="collapsed";const cs=`:scope .${os} .${os}`;const ls="collapse-horizontal";const us="width";const hs="height";const ds=".collapse.show, .collapse.collapsing";const fs='[data-bs-toggle="collapse"]';const ps={parent:null,toggle:true};const vs={parent:"(null|element)",toggle:"boolean"};class ms extends Ii{constructor(t,e){super(t,e);this._isTransitioning=false;this._triggerArray=[];const i=Di.find(fs);for(const t of i){const e=Di.getSelectorFromElement(t);const i=Di.find(e).filter((t=>t===this._element));if(e!==null&&i.length){this._triggerArray.push(t)}}this._initializeChildren();if(!this._config.parent){this._addAriaAndCollapsedClass(this._triggerArray,this._isShown())}if(this._config.toggle){this.toggle()}}static get Default(){return ps}static get DefaultType(){return vs}static get NAME(){return Vn}toggle(){if(this._isShown()){this.hide()}else{this.show()}}show(){if(this._isTransitioning||this._isShown()){return}let t=[];if(this._config.parent){t=this._getFirstLevelChildren(ds).filter((t=>t!==this._element)).map((t=>ms.getOrCreateInstance(t,{toggle:false})))}if(t.length&&t[0]._isTransitioning){return}const e=$i.trigger(this._element,Kn);if(e.defaultPrevented){return}for(const e of t){e.hide()}const i=this._getDimension();this._element.classList.remove(os);this._element.classList.add(rs);this._element.style[i]=0;this._addAriaAndCollapsedClass(this._triggerArray,true);this._isTransitioning=true;const n=()=>{this._isTransitioning=false;this._element.classList.remove(rs);this._element.classList.add(os,ss);this._element.style[i]="";$i.trigger(this._element,ts)};const s=i[0].toUpperCase()+i.slice(1);const o=`scroll${s}`;this._queueCallback(n,this._element,true);this._element.style[i]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()){return}const t=$i.trigger(this._element,es);if(t.defaultPrevented){return}const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`;this._element.classList.add(rs);this._element.classList.remove(os,ss);for(const t of this._triggerArray){const e=Di.getElementFromSelector(t);if(e&&!this._isShown(e)){this._addAriaAndCollapsedClass([t],false)}}this._isTransitioning=true;const i=()=>{this._isTransitioning=false;this._element.classList.remove(rs);this._element.classList.add(os);$i.trigger(this._element,is)};this._element.style[e]="";this._queueCallback(i,this._element,true)}_isShown(t=this._element){return t.classList.contains(ss)}_configAfterMerge(t){t.toggle=Boolean(t.toggle);t.parent=Qe(t.parent);return t}_getDimension(){return this._element.classList.contains(ls)?us:hs}_initializeChildren(){if(!this._config.parent){return}const t=this._getFirstLevelChildren(fs);for(const e of t){const t=Di.getElementFromSelector(e);if(t){this._addAriaAndCollapsedClass([e],this._isShown(t))}}}_getFirstLevelChildren(t){const e=Di.find(cs,this._config.parent);return Di.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(!t.length){return}for(const i of t){i.classList.toggle(as,!e);i.setAttribute("aria-expanded",e)}}static jQueryInterface(t){const e={};if(typeof t==="string"&&/show|hide/.test(t)){e.toggle=false}return this.each((function(){const i=ms.getOrCreateInstance(this,e);if(typeof t==="string"){if(typeof i[t]==="undefined"){throw new TypeError(`No method named "${t}"`)}i[t]()}}))}}$i.on(document,ns,fs,(function(t){if(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A"){t.preventDefault()}for(const t of Di.getMultipleElementsFromSelector(this)){ms.getOrCreateInstance(t,{toggle:false}).toggle()}}));ni(ms);const gs="dropdown";const bs="bs.dropdown";const ws=`.${bs}`;const ys=".data-api";const xs="Escape";const ks="Tab";const _s="ArrowUp";const $s="ArrowDown";const js=2;const As=`hide${ws}`;const Ts=`hidden${ws}`;const Ms=`show${ws}`;const Es=`shown${ws}`;const Os=`click${ws}${ys}`;const Is=`keydown${ws}${ys}`;const Cs=`keyup${ws}${ys}`;const Ds="show";const Ns="dropup";const Ls="dropend";const zs="dropstart";const Ss="dropup-center";const Ps="dropdown-center";const Bs='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)';const Rs=`${Bs}.${Ds}`;const Ws=".dropdown-menu";const Fs=".navbar";const Hs=".navbar-nav";const Zs=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)";const Us=ii()?"top-end":"top-start";const qs=ii()?"top-start":"top-end";const Gs=ii()?"bottom-end":"bottom-start";const Qs=ii()?"bottom-start":"bottom-end";const Vs=ii()?"left-start":"right-start";const Js=ii()?"right-start":"left-start";const Ys="top";const Xs="bottom";const Ks={autoClose:true,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"};const to={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class eo extends Ii{constructor(t,e){super(t,e);this._popper=null;this._parent=this._element.parentNode;this._menu=Di.next(this._element,Ws)[0]||Di.prev(this._element,Ws)[0]||Di.findOne(Ws,this._parent);this._inNavbar=this._detectNavbar()}static get Default(){return Ks}static get DefaultType(){return to}static get NAME(){return gs}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Je(this._element)||this._isShown()){return}const t={relatedTarget:this._element};const e=$i.trigger(this._element,Ms,t);if(e.defaultPrevented){return}this._createPopper();if("ontouchstart"in document.documentElement&&!this._parent.closest(Hs)){for(const t of[].concat(...document.body.children)){$i.on(t,"mouseover",Xe)}}this._element.focus();this._element.setAttribute("aria-expanded",true);this._menu.classList.add(Ds);this._element.classList.add(Ds);$i.trigger(this._element,Es,t)}hide(){if(Je(this._element)||!this._isShown()){return}const t={relatedTarget:this._element};this._completeHide(t)}dispose(){if(this._popper){this._popper.destroy()}super.dispose()}update(){this._inNavbar=this._detectNavbar();if(this._popper){this._popper.update()}}_completeHide(t){const e=$i.trigger(this._element,As,t);if(e.defaultPrevented){return}if("ontouchstart"in document.documentElement){for(const t of[].concat(...document.body.children)){$i.off(t,"mouseover",Xe)}}if(this._popper){this._popper.destroy()}this._menu.classList.remove(Ds);this._element.classList.remove(Ds);this._element.setAttribute("aria-expanded","false");Mi.removeDataAttribute(this._menu,"popper");$i.trigger(this._element,Ts,t)}_getConfig(t){t=super._getConfig(t);if(typeof t.reference==="object"&&!Ge(t.reference)&&typeof t.reference.getBoundingClientRect!=="function"){throw new TypeError(`${gs.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`)}return t}_createPopper(){if(typeof ze==="undefined"){throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)")}let t=this._element;if(this._config.reference==="parent"){t=this._parent}else if(Ge(this._config.reference)){t=Qe(this._config.reference)}else if(typeof this._config.reference==="object"){t=this._config.reference}const e=this._getPopperConfig();this._popper=Le(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Ds)}_getPlacement(){const t=this._parent;if(t.classList.contains(Ls)){return Vs}if(t.classList.contains(zs)){return Js}if(t.classList.contains(Ss)){return Ys}if(t.classList.contains(Ps)){return Xs}const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";if(t.classList.contains(Ns)){return e?qs:Us}return e?Qs:Gs}_detectNavbar(){return this._element.closest(Fs)!==null}_getOffset(){const{offset:t}=this._config;if(typeof t==="string"){return t.split(",").map((t=>Number.parseInt(t,10)))}if(typeof t==="function"){return e=>t(e,this._element)}return t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};if(this._inNavbar||this._config.display==="static"){Mi.setDataAttribute(this._menu,"popper","static");t.modifiers=[{name:"applyStyles",enabled:false}]}return{...t,...si(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=Di.find(Zs,this._menu).filter((t=>Ve(t)));if(!i.length){return}ri(i,e,t===$s,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=eo.getOrCreateInstance(this,t);if(typeof t!=="string"){return}if(typeof e[t]==="undefined"){throw new TypeError(`No method named "${t}"`)}e[t]()}))}static clearMenus(t){if(t.button===js||t.type==="keyup"&&t.key!==ks){return}const e=Di.find(Rs);for(const i of e){const e=eo.getInstance(i);if(!e||e._config.autoClose===false){continue}const n=t.composedPath();const s=n.includes(e._menu);if(n.includes(e._element)||e._config.autoClose==="inside"&&!s||e._config.autoClose==="outside"&&s){continue}if(e._menu.contains(t.target)&&(t.type==="keyup"&&t.key===ks||/input|select|option|textarea|form/i.test(t.target.tagName))){continue}const o={relatedTarget:e._element};if(t.type==="click"){o.clickEvent=t}e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName);const i=t.key===xs;const n=[_s,$s].includes(t.key);if(!n&&!i){return}if(e&&!i){return}t.preventDefault();const s=this.matches(Bs)?this:Di.prev(this,Bs)[0]||Di.next(this,Bs)[0]||Di.findOne(Bs,t.delegateTarget.parentNode);const o=eo.getOrCreateInstance(s);if(n){t.stopPropagation();o.show();o._selectMenuItem(t);return}if(o._isShown()){t.stopPropagation();o.hide();s.focus()}}}$i.on(document,Is,Bs,eo.dataApiKeydownHandler);$i.on(document,Is,Ws,eo.dataApiKeydownHandler);$i.on(document,Os,eo.clearMenus);$i.on(document,Cs,eo.clearMenus);$i.on(document,Os,Bs,(function(t){t.preventDefault();eo.getOrCreateInstance(this).toggle()}));ni(eo);const io="backdrop";const no="fade";const so="show";const oo=`mousedown.bs.${io}`;const ro={className:"modal-backdrop",clickCallback:null,isAnimated:false,isVisible:true,rootElement:"body"};const ao={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class co extends Ei{constructor(t){super();this._config=this._getConfig(t);this._isAppended=false;this._element=null}static get Default(){return ro}static get DefaultType(){return ao}static get NAME(){return io}show(t){if(!this._config.isVisible){si(t);return}this._append();const e=this._getElement();e.classList.add(so);this._emulateAnimation((()=>{si(t)}))}hide(t){if(!this._config.isVisible){si(t);return}this._getElement().classList.remove(so);this._emulateAnimation((()=>{this.dispose();si(t)}))}dispose(){if(!this._isAppended){return}$i.off(this._element,oo);this._element.remove();this._isAppended=false}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className;if(this._config.isAnimated){t.classList.add(no)}this._element=t}return this._element}_configAfterMerge(t){t.rootElement=Qe(t.rootElement);return t}_append(){if(this._isAppended){return}const t=this._getElement();this._config.rootElement.append(t);$i.on(t,oo,(()=>{si(this._config.clickCallback)}));this._isAppended=true}_emulateAnimation(t){oi(t,this._getElement(),this._config.isAnimated)}}const lo="focustrap";const uo="bs.focustrap";const ho=`.${uo}`;const fo=`focusin${ho}`;const po=`keydown.tab${ho}`;const vo="Tab";const mo="forward";const go="backward";const bo={autofocus:true,trapElement:null};const wo={autofocus:"boolean",trapElement:"element"};class yo extends Ei{constructor(t){super();this._config=this._getConfig(t);this._isActive=false;this._lastTabNavDirection=null}static get Default(){return bo}static get DefaultType(){return wo}static get NAME(){return lo}activate(){if(this._isActive){return}if(this._config.autofocus){this._config.trapElement.focus()}$i.off(document,ho);$i.on(document,fo,(t=>this._handleFocusin(t)));$i.on(document,po,(t=>this._handleKeydown(t)));this._isActive=true}deactivate(){if(!this._isActive){return}this._isActive=false;$i.off(document,ho)}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target)){return}const i=Di.focusableChildren(e);if(i.length===0){e.focus()}else if(this._lastTabNavDirection===go){i[i.length-1].focus()}else{i[0].focus()}}_handleKeydown(t){if(t.key!==vo){return}this._lastTabNavDirection=t.shiftKey?go:mo}}const xo=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top";const ko=".sticky-top";const _o="padding-right";const $o="margin-right";class jo{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow();this._setElementAttributes(this._element,_o,(e=>e+t));this._setElementAttributes(xo,_o,(e=>e+t));this._setElementAttributes(ko,$o,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow");this._resetElementAttributes(this._element,_o);this._resetElementAttributes(xo,_o);this._resetElementAttributes(ko,$o)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow");this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();const s=t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n){return}this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)};this._applyManipulationCallback(t,s)}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);if(i){Mi.setDataAttribute(t,e,i)}}_resetElementAttributes(t,e){const i=t=>{const i=Mi.getDataAttribute(t,e);if(i===null){t.style.removeProperty(e);return}Mi.removeDataAttribute(t,e);t.style.setProperty(e,i)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){if(Ge(t)){e(t);return}for(const i of Di.find(t,this._element)){e(i)}}}const Ao="modal";const To="bs.modal";const Mo=`.${To}`;const Eo=".data-api";const Oo="Escape";const Io=`hide${Mo}`;const Co=`hidePrevented${Mo}`;const Do=`hidden${Mo}`;const No=`show${Mo}`;const Lo=`shown${Mo}`;const zo=`resize${Mo}`;const So=`click.dismiss${Mo}`;const Po=`mousedown.dismiss${Mo}`;const Bo=`keydown.dismiss${Mo}`;const Ro=`click${Mo}${Eo}`;const Wo="modal-open";const Fo="fade";const Ho="show";const Zo="modal-static";const Uo=".modal.show";const qo=".modal-dialog";const Go=".modal-body";const Qo='[data-bs-toggle="modal"]';const Vo={backdrop:true,focus:true,keyboard:true};const Jo={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Yo extends Ii{constructor(t,e){super(t,e);this._dialog=Di.findOne(qo,this._element);this._backdrop=this._initializeBackDrop();this._focustrap=this._initializeFocusTrap();this._isShown=false;this._isTransitioning=false;this._scrollBar=new jo;this._addEventListeners()}static get Default(){return Vo}static get DefaultType(){return Jo}static get NAME(){return Ao}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning){return}const e=$i.trigger(this._element,No,{relatedTarget:t});if(e.defaultPrevented){return}this._isShown=true;this._isTransitioning=true;this._scrollBar.hide();document.body.classList.add(Wo);this._adjustDialog();this._backdrop.show((()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning){return}const t=$i.trigger(this._element,Io);if(t.defaultPrevented){return}this._isShown=false;this._isTransitioning=true;this._focustrap.deactivate();this._element.classList.remove(Ho);this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())}dispose(){$i.off(window,Mo);$i.off(this._dialog,Mo);this._backdrop.dispose();this._focustrap.deactivate();super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new co({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new yo({trapElement:this._element})}_showElement(t){if(!document.body.contains(this._element)){document.body.append(this._element)}this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.setAttribute("aria-modal",true);this._element.setAttribute("role","dialog");this._element.scrollTop=0;const e=Di.findOne(Go,this._dialog);if(e){e.scrollTop=0}this._element.classList.add(Ho);const i=()=>{if(this._config.focus){this._focustrap.activate()}this._isTransitioning=false;$i.trigger(this._element,Lo,{relatedTarget:t})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){$i.on(this._element,Bo,(t=>{if(t.key!==Oo){return}if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}));$i.on(window,zo,(()=>{if(this._isShown&&!this._isTransitioning){this._adjustDialog()}}));$i.on(this._element,Po,(t=>{$i.one(this._element,So,(e=>{if(this._element!==t.target||this._element!==e.target){return}if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}if(this._config.backdrop){this.hide()}}))}))}_hideModal(){this._element.style.display="none";this._element.setAttribute("aria-hidden",true);this._element.removeAttribute("aria-modal");this._element.removeAttribute("role");this._isTransitioning=false;this._backdrop.hide((()=>{document.body.classList.remove(Wo);this._resetAdjustments();this._scrollBar.reset();$i.trigger(this._element,Do)}))}_isAnimated(){return this._element.classList.contains(Fo)}_triggerBackdropTransition(){const t=$i.trigger(this._element,Co);if(t.defaultPrevented){return}const e=this._element.scrollHeight>document.documentElement.clientHeight;const i=this._element.style.overflowY;if(i==="hidden"||this._element.classList.contains(Zo)){return}if(!e){this._element.style.overflowY="hidden"}this._element.classList.add(Zo);this._queueCallback((()=>{this._element.classList.remove(Zo);this._queueCallback((()=>{this._element.style.overflowY=i}),this._dialog)}),this._dialog);this._element.focus()}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight;const e=this._scrollBar.getWidth();const i=e>0;if(i&&!t){const t=ii()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=ii()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="";this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=Yo.getOrCreateInstance(this,t);if(typeof t!=="string"){return}if(typeof i[t]==="undefined"){throw new TypeError(`No method named "${t}"`)}i[t](e)}))}}$i.on(document,Ro,Qo,(function(t){const e=Di.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)){t.preventDefault()}$i.one(e,No,(t=>{if(t.defaultPrevented){return}$i.one(e,Do,(()=>{if(Ve(this)){this.focus()}}))}));const i=Di.findOne(Uo);if(i){Yo.getInstance(i).hide()}const n=Yo.getOrCreateInstance(e);n.toggle(this)}));Ni(Yo);ni(Yo);const Xo="offcanvas";const Ko="bs.offcanvas";const tr=`.${Ko}`;const er=".data-api";const ir=`load${tr}${er}`;const nr="Escape";const sr="show";const or="showing";const rr="hiding";const ar="offcanvas-backdrop";const cr=".offcanvas.show";const lr=`show${tr}`;const ur=`shown${tr}`;const hr=`hide${tr}`;const dr=`hidePrevented${tr}`;const fr=`hidden${tr}`;const pr=`resize${tr}`;const vr=`click${tr}${er}`;const mr=`keydown.dismiss${tr}`;const gr='[data-bs-toggle="offcanvas"]';const br={backdrop:true,keyboard:true,scroll:false};const wr={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class yr extends Ii{constructor(t,e){super(t,e);this._isShown=false;this._backdrop=this._initializeBackDrop();this._focustrap=this._initializeFocusTrap();this._addEventListeners()}static get Default(){return br}static get DefaultType(){return wr}static get NAME(){return Xo}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown){return}const e=$i.trigger(this._element,lr,{relatedTarget:t});if(e.defaultPrevented){return}this._isShown=true;this._backdrop.show();if(!this._config.scroll){(new jo).hide()}this._element.setAttribute("aria-modal",true);this._element.setAttribute("role","dialog");this._element.classList.add(or);const i=()=>{if(!this._config.scroll||this._config.backdrop){this._focustrap.activate()}this._element.classList.add(sr);this._element.classList.remove(or);$i.trigger(this._element,ur,{relatedTarget:t})};this._queueCallback(i,this._element,true)}hide(){if(!this._isShown){return}const t=$i.trigger(this._element,hr);if(t.defaultPrevented){return}this._focustrap.deactivate();this._element.blur();this._isShown=false;this._element.classList.add(rr);this._backdrop.hide();const e=()=>{this._element.classList.remove(sr,rr);this._element.removeAttribute("aria-modal");this._element.removeAttribute("role");if(!this._config.scroll){(new jo).reset()}$i.trigger(this._element,fr)};this._queueCallback(e,this._element,true)}dispose(){this._backdrop.dispose();this._focustrap.deactivate();super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){$i.trigger(this._element,dr);return}this.hide()};const e=Boolean(this._config.backdrop);return new co({className:ar,isVisible:e,isAnimated:true,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new yo({trapElement:this._element})}_addEventListeners(){$i.on(this._element,mr,(t=>{if(t.key!==nr){return}if(this._config.keyboard){this.hide();return}$i.trigger(this._element,dr)}))}static jQueryInterface(t){return this.each((function(){const e=yr.getOrCreateInstance(this,t);if(typeof t!=="string"){return}if(e[t]===undefined||t.startsWith("_")||t==="constructor"){throw new TypeError(`No method named "${t}"`)}e[t](this)}))}}$i.on(document,vr,gr,(function(t){const e=Di.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)){t.preventDefault()}if(Je(this)){return}$i.one(e,fr,(()=>{if(Ve(this)){this.focus()}}));const i=Di.findOne(cr);if(i&&i!==e){yr.getInstance(i).hide()}const n=yr.getOrCreateInstance(e);n.toggle(this)}));$i.on(window,ir,(()=>{for(const t of Di.find(cr)){yr.getOrCreateInstance(t).show()}}));$i.on(window,pr,(()=>{for(const t of Di.find("[aria-modal][class*=show][class*=offcanvas-]")){if(getComputedStyle(t).position!=="fixed"){yr.getOrCreateInstance(t).hide()}}}));Ni(yr);ni(yr);const xr=/^aria-[\w-]*$/i;const kr={"*":["class","dir","id","lang","role",xr],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};const _r=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]);const $r=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;const jr=(t,e)=>{const i=t.nodeName.toLowerCase();if(e.includes(i)){if(_r.has(i)){return Boolean($r.test(t.nodeValue))}return true}return e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))};function Ar(t,e,i){if(!t.length){return t}if(i&&typeof i==="function"){return i(t)}const n=new window.DOMParser;const s=n.parseFromString(t,"text/html");const o=[].concat(...s.body.querySelectorAll("*"));for(const t of o){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes);const s=[].concat(e["*"]||[],e[i]||[]);for(const e of n){if(!jr(e,s)){t.removeAttribute(e.nodeName)}}}return s.body.innerHTML}const Tr="TemplateFactory";const Mr={allowList:kr,content:{},extraClass:"",html:false,sanitize:true,sanitizeFn:null,template:"<div></div>"};const Er={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"};const Or={entry:"(string|element|function|null)",selector:"(string|element)"};class Ir extends Ei{constructor(t){super();this._config=this._getConfig(t)}static get Default(){return Mr}static get DefaultType(){return Er}static get NAME(){return Tr}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){this._checkContent(t);this._config.content={...this._config.content,...t};return this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content)){this._setContent(t,i,e)}const e=t.children[0];const i=this._resolvePossibleFunction(this._config.extraClass);if(i){e.classList.add(...i.split(" "))}return e}_typeCheckConfig(t){super._typeCheckConfig(t);this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t)){super._typeCheckConfig({selector:e,entry:i},Or)}}_setContent(t,e,i){const n=Di.findOne(i,t);if(!n){return}e=this._resolvePossibleFunction(e);if(!e){n.remove();return}if(Ge(e)){this._putElementInTemplate(Qe(e),n);return}if(this._config.html){n.innerHTML=this._maybeSanitize(e);return}n.textContent=e}_maybeSanitize(t){return this._config.sanitize?Ar(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return si(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="";e.append(t);return}e.textContent=t.textContent}}const Cr="tooltip";const Dr=new Set(["sanitize","allowList","sanitizeFn"]);const Nr="fade";const Lr="modal";const zr="show";const Sr=".tooltip-inner";const Pr=`.${Lr}`;const Br="hide.bs.modal";const Rr="hover";const Wr="focus";const Fr="click";const Hr="manual";const Zr="hide";const Ur="hidden";const qr="show";const Gr="shown";const Qr="inserted";const Vr="click";const Jr="focusin";const Yr="focusout";const Xr="mouseenter";const Kr="mouseleave";const ta={AUTO:"auto",TOP:"top",RIGHT:ii()?"left":"right",BOTTOM:"bottom",LEFT:ii()?"right":"left"};const ea={allowList:kr,animation:true,boundary:"clippingParents",container:false,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:false,offset:[0,6],placement:"top",popperConfig:null,sanitize:true,sanitizeFn:null,selector:false,template:'<div class="tooltip" role="tooltip">'+'<div class="tooltip-arrow"></div>'+'<div class="tooltip-inner"></div>'+"</div>",title:"",trigger:"hover focus"};const ia={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class na extends Ii{constructor(t,e){if(typeof ze==="undefined"){throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)")}super(t,e);this._isEnabled=true;this._timeout=0;this._isHovered=null;this._activeTrigger={};this._popper=null;this._templateFactory=null;this._newContent=null;this.tip=null;this._setListeners();if(!this._config.selector){this._fixTitle()}}static get Default(){return ea}static get DefaultType(){return ia}static get NAME(){return Cr}enable(){this._isEnabled=true}disable(){this._isEnabled=false}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(!this._isEnabled){return}this._activeTrigger.click=!this._activeTrigger.click;if(this._isShown()){this._leave();return}this._enter()}dispose(){clearTimeout(this._timeout);$i.off(this._element.closest(Pr),Br,this._hideModalHandler);if(this._element.getAttribute("data-bs-original-title")){this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title"))}this._disposePopper();super.dispose()}show(){if(this._element.style.display==="none"){throw new Error("Please use show on visible elements")}if(!(this._isWithContent()&&this._isEnabled)){return}const t=$i.trigger(this._element,this.constructor.eventName(qr));const e=Ye(this._element);const i=(e||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i){return}this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:s}=this._config;if(!this._element.ownerDocument.documentElement.contains(this.tip)){s.append(n);$i.trigger(this._element,this.constructor.eventName(Qr))}this._popper=this._createPopper(n);n.classList.add(zr);if("ontouchstart"in document.documentElement){for(const t of[].concat(...document.body.children)){$i.on(t,"mouseover",Xe)}}const o=()=>{$i.trigger(this._element,this.constructor.eventName(Gr));if(this._isHovered===false){this._leave()}this._isHovered=false};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()){return}const t=$i.trigger(this._element,this.constructor.eventName(Zr));if(t.defaultPrevented){return}const e=this._getTipElement();e.classList.remove(zr);if("ontouchstart"in document.documentElement){for(const t of[].concat(...document.body.children)){$i.off(t,"mouseover",Xe)}}this._activeTrigger[Fr]=false;this._activeTrigger[Wr]=false;this._activeTrigger[Rr]=false;this._isHovered=null;const i=()=>{if(this._isWithActiveTrigger()){return}if(!this._isHovered){this._disposePopper()}this._element.removeAttribute("aria-describedby");$i.trigger(this._element,this.constructor.eventName(Ur))};this._queueCallback(i,this.tip,this._isAnimated())}update(){if(this._popper){this._popper.update()}}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){if(!this.tip){this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())}return this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e){return null}e.classList.remove(Nr,zr);e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=Ze(this.constructor.NAME).toString();e.setAttribute("id",i);if(this._isAnimated()){e.classList.add(Nr)}return e}setContent(t){this._newContent=t;if(this._isShown()){this._disposePopper();this.show()}}_getTemplateFactory(t){if(this._templateFactory){this._templateFactory.changeContent(t)}else{this._templateFactory=new Ir({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)})}return this._templateFactory}_getContentForTemplate(){return{[Sr]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Nr)}_isShown(){return this.tip&&this.tip.classList.contains(zr)}_createPopper(t){const e=si(this._config.placement,[this,t,this._element]);const i=ta[e.toUpperCase()];return Le(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;if(typeof t==="string"){return t.split(",").map((t=>Number.parseInt(t,10)))}if(typeof t==="function"){return e=>t(e,this._element)}return t}_resolvePossibleFunction(t){return si(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:true,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...si(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t){if(e==="click"){$i.on(this._element,this.constructor.eventName(Vr),this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e.toggle()}))}else if(e!==Hr){const t=e===Rr?this.constructor.eventName(Xr):this.constructor.eventName(Jr);const i=e===Rr?this.constructor.eventName(Kr):this.constructor.eventName(Yr);$i.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[t.type==="focusin"?Wr:Rr]=true;e._enter()}));$i.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[t.type==="focusout"?Wr:Rr]=e._element.contains(t.relatedTarget);e._leave()}))}}this._hideModalHandler=()=>{if(this._element){this.hide()}};$i.on(this._element.closest(Pr),Br,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");if(!t){return}if(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()){this._element.setAttribute("aria-label",t)}this._element.setAttribute("data-bs-original-title",t);this._element.removeAttribute("title")}_enter(){if(this._isShown()||this._isHovered){this._isHovered=true;return}this._isHovered=true;this._setTimeout((()=>{if(this._isHovered){this.show()}}),this._config.delay.show)}_leave(){if(this._isWithActiveTrigger()){return}this._isHovered=false;this._setTimeout((()=>{if(!this._isHovered){this.hide()}}),this._config.delay.hide)}_setTimeout(t,e){clearTimeout(this._timeout);this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(true)}_getConfig(t){const e=Mi.getDataAttributes(this._element);for(const t of Object.keys(e)){if(Dr.has(t)){delete e[t]}}t={...e,...typeof t==="object"&&t?t:{}};t=this._mergeConfigObj(t);t=this._configAfterMerge(t);this._typeCheckConfig(t);return t}_configAfterMerge(t){t.container=t.container===false?document.body:Qe(t.container);if(typeof t.delay==="number"){t.delay={show:t.delay,hide:t.delay}}if(typeof t.title==="number"){t.title=t.title.toString()}if(typeof t.content==="number"){t.content=t.content.toString()}return t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config)){if(this.constructor.Default[e]!==i){t[e]=i}}t.selector=false;t.trigger="manual";return t}_disposePopper(){if(this._popper){this._popper.destroy();this._popper=null}if(this.tip){this.tip.remove();this.tip=null}}static jQueryInterface(t){return this.each((function(){const e=na.getOrCreateInstance(this,t);if(typeof t!=="string"){return}if(typeof e[t]==="undefined"){throw new TypeError(`No method named "${t}"`)}e[t]()}))}}ni(na);const sa="popover";const oa=".popover-header";const ra=".popover-body";const aa={...na.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip">'+'<div class="popover-arrow"></div>'+'<h3 class="popover-header"></h3>'+'<div class="popover-body"></div>'+"</div>",trigger:"click"};const ca={...na.DefaultType,content:"(null|string|element|function)"};class la extends na{static get Default(){return aa}static get DefaultType(){return ca}static get NAME(){return sa}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[oa]:this._getTitle(),[ra]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=la.getOrCreateInstance(this,t);if(typeof t!=="string"){return}if(typeof e[t]==="undefined"){throw new TypeError(`No method named "${t}"`)}e[t]()}))}}ni(la);const ua="scrollspy";const ha="bs.scrollspy";const da=`.${ha}`;const fa=".data-api";const pa=`activate${da}`;const va=`click${da}`;const ma=`load${da}${fa}`;const ga="dropdown-item";const ba="active";const wa='[data-bs-spy="scroll"]';const ya="[href]";const xa=".nav, .list-group";const ka=".nav-link";const _a=".nav-item";const $a=".list-group-item";const ja=`${ka}, ${_a} > ${ka}, ${$a}`;const Aa=".dropdown";const Ta=".dropdown-toggle";const Ma={offset:null,rootMargin:"0px 0px -25%",smoothScroll:false,target:null,threshold:[.1,.5,1]};const Ea={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Oa extends Ii{constructor(t,e){super(t,e);this._targetLinks=new Map;this._observableSections=new Map;this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element;this._activeTarget=null;this._observer=null;this._previousScrollData={visibleEntryTop:0,parentScrollTop:0};this.refresh()}static get Default(){return Ma}static get DefaultType(){return Ea}static get NAME(){return ua}refresh(){this._initializeTargetsAndObservables();this._maybeEnableSmoothScroll();if(this._observer){this._observer.disconnect()}else{this._observer=this._getNewObserver()}for(const t of this._observableSections.values()){this._observer.observe(t)}}dispose(){this._observer.disconnect();super.dispose()}_configAfterMerge(t){t.target=Qe(t.target)||document.body;t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin;if(typeof t.threshold==="string"){t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))}return t}_maybeEnableSmoothScroll(){if(!this._config.smoothScroll){return}$i.off(this._config.target,va);$i.on(this._config.target,va,ya,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window;const n=e.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:n,behavior:"smooth"});return}i.scrollTop=n}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`);const i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop;this._process(e(t))};const n=(this._rootElement||document.documentElement).scrollTop;const s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null;this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){i(o);if(!n){return}continue}if(!s&&!t){i(o)}}}_initializeTargetsAndObservables(){this._targetLinks=new Map;this._observableSections=new Map;const t=Di.find(ya,this._config.target);for(const e of t){if(!e.hash||Je(e)){continue}const t=Di.findOne(decodeURI(e.hash),this._element);if(Ve(t)){this._targetLinks.set(decodeURI(e.hash),e);this._observableSections.set(e.hash,t)}}}_process(t){if(this._activeTarget===t){return}this._clearActiveClass(this._config.target);this._activeTarget=t;t.classList.add(ba);this._activateParents(t);$i.trigger(this._element,pa,{relatedTarget:t})}_activateParents(t){if(t.classList.contains(ga)){Di.findOne(Ta,t.closest(Aa)).classList.add(ba);return}for(const e of Di.parents(t,xa)){for(const t of Di.prev(e,ja)){t.classList.add(ba)}}}_clearActiveClass(t){t.classList.remove(ba);const e=Di.find(`${ya}.${ba}`,t);for(const t of e){t.classList.remove(ba)}}static jQueryInterface(t){return this.each((function(){const e=Oa.getOrCreateInstance(this,t);if(typeof t!=="string"){return}if(e[t]===undefined||t.startsWith("_")||t==="constructor"){throw new TypeError(`No method named "${t}"`)}e[t]()}))}}$i.on(window,ma,(()=>{for(const t of Di.find(wa)){Oa.getOrCreateInstance(t)}}));ni(Oa);const Ia="tab";const Ca="bs.tab";const Da=`.${Ca}`;const Na=`hide${Da}`;const La=`hidden${Da}`;const za=`show${Da}`;const Sa=`shown${Da}`;const Pa=`click${Da}`;const Ba=`keydown${Da}`;const Ra=`load${Da}`;const Wa="ArrowLeft";const Fa="ArrowRight";const Ha="ArrowUp";const Za="ArrowDown";const Ua="Home";const qa="End";const Ga="active";const Qa="fade";const Va="show";const Ja="dropdown";const Ya=".dropdown-toggle";const Xa=".dropdown-menu";const Ka=`:not(${Ya})`;const tc='.list-group, .nav, [role="tablist"]';const ec=".nav-item, .list-group-item";const ic=`.nav-link${Ka}, .list-group-item${Ka}, [role="tab"]${Ka}`;const nc='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';const sc=`${ic}, ${nc}`;const oc=`.${Ga}[data-bs-toggle="tab"], .${Ga}[data-bs-toggle="pill"], .${Ga}[data-bs-toggle="list"]`;class rc extends Ii{constructor(t){super(t);this._parent=this._element.closest(tc);if(!this._parent){return}this._setInitialAttributes(this._parent,this._getChildren());$i.on(this._element,Ba,(t=>this._keydown(t)))}static get NAME(){return Ia}show(){const t=this._element;if(this._elemIsActive(t)){return}const e=this._getActiveElem();const i=e?$i.trigger(e,Na,{relatedTarget:t}):null;const n=$i.trigger(t,za,{relatedTarget:e});if(n.defaultPrevented||i&&i.defaultPrevented){return}this._deactivate(e,t);this._activate(t,e)}_activate(t,e){if(!t){return}t.classList.add(Ga);this._activate(Di.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Va);return}t.removeAttribute("tabindex");t.setAttribute("aria-selected",true);this._toggleDropDown(t,true);$i.trigger(t,Sa,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(Qa))}_deactivate(t,e){if(!t){return}t.classList.remove(Ga);t.blur();this._deactivate(Di.getElementFromSelector(t));const i=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Va);return}t.setAttribute("aria-selected",false);t.setAttribute("tabindex","-1");this._toggleDropDown(t,false);$i.trigger(t,La,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(Qa))}_keydown(t){if(![Wa,Fa,Ha,Za,Ua,qa].includes(t.key)){return}t.stopPropagation();t.preventDefault();const e=this._getChildren().filter((t=>!Je(t)));let i;if([Ua,qa].includes(t.key)){i=e[t.key===Ua?0:e.length-1]}else{const n=[Fa,Za].includes(t.key);i=ri(e,t.target,n,true)}if(i){i.focus({preventScroll:true});rc.getOrCreateInstance(i).show()}}_getChildren(){return Di.find(sc,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e){this._setInitialAttributesOnChild(t)}}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t);const i=this._getOuterElement(t);t.setAttribute("aria-selected",e);if(i!==t){this._setAttributeIfNotExists(i,"role","presentation")}if(!e){t.setAttribute("tabindex","-1")}this._setAttributeIfNotExists(t,"role","tab");this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=Di.getElementFromSelector(t);if(!e){return}this._setAttributeIfNotExists(e,"role","tabpanel");if(t.id){this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`)}}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains(Ja)){return}const n=(t,n)=>{const s=Di.findOne(t,i);if(s){s.classList.toggle(n,e)}};n(Ya,Ga);n(Xa,Va);i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){if(!t.hasAttribute(e)){t.setAttribute(e,i)}}_elemIsActive(t){return t.classList.contains(Ga)}_getInnerElement(t){return t.matches(sc)?t:Di.findOne(sc,t)}_getOuterElement(t){return t.closest(ec)||t}static jQueryInterface(t){return this.each((function(){const e=rc.getOrCreateInstance(this);if(typeof t!=="string"){return}if(e[t]===undefined||t.startsWith("_")||t==="constructor"){throw new TypeError(`No method named "${t}"`)}e[t]()}))}}$i.on(document,Pa,nc,(function(t){if(["A","AREA"].includes(this.tagName)){t.preventDefault()}if(Je(this)){return}rc.getOrCreateInstance(this).show()}));$i.on(window,Ra,(()=>{for(const t of Di.find(oc)){rc.getOrCreateInstance(t)}}));ni(rc);const ac="toast";const cc="bs.toast";const lc=`.${cc}`;const uc=`mouseover${lc}`;const hc=`mouseout${lc}`;const dc=`focusin${lc}`;const fc=`focusout${lc}`;const pc=`hide${lc}`;const vc=`hidden${lc}`;const mc=`show${lc}`;const gc=`shown${lc}`;const bc="fade";const wc="hide";const yc="show";const xc="showing";const kc={animation:"boolean",autohide:"boolean",delay:"number"};const _c={animation:true,autohide:true,delay:5e3};class $c extends Ii{constructor(t,e){super(t,e);this._timeout=null;this._hasMouseInteraction=false;this._hasKeyboardInteraction=false;this._setListeners()}static get Default(){return _c}static get DefaultType(){return kc}static get NAME(){return ac}show(){const t=$i.trigger(this._element,mc);if(t.defaultPrevented){return}this._clearTimeout();if(this._config.animation){this._element.classList.add(bc)}const e=()=>{this._element.classList.remove(xc);$i.trigger(this._element,gc);this._maybeScheduleHide()};this._element.classList.remove(wc);this._element.classList.add(yc,xc);this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()){return}const t=$i.trigger(this._element,pc);if(t.defaultPrevented){return}const e=()=>{this._element.classList.add(wc);this._element.classList.remove(xc,yc);$i.trigger(this._element,vc)};this._element.classList.add(xc);this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout();if(this.isShown()){this._element.classList.remove(yc)}super.dispose()}isShown(){return this._element.classList.contains(yc)}_maybeScheduleHide(){if(!this._config.autohide){return}if(this._hasMouseInteraction||this._hasKeyboardInteraction){return}this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}const i=t.relatedTarget;if(this._element===i||this._element.contains(i)){return}this._maybeScheduleHide()}_setListeners(){$i.on(this._element,uc,(t=>this._onInteraction(t,true)));$i.on(this._element,hc,(t=>this._onInteraction(t,false)));$i.on(this._element,dc,(t=>this._onInteraction(t,true)));$i.on(this._element,fc,(t=>this._onInteraction(t,false)))}_clearTimeout(){clearTimeout(this._timeout);this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=$c.getOrCreateInstance(this,t);if(typeof t==="string"){if(typeof e[t]==="undefined"){throw new TypeError(`No method named "${t}"`)}e[t](this)}}))}}Ni($c);ni($c);const jc="";const Ac=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){return e(i,null,e("h2",{class:"card-title mb-2"},"FAQ"),e("div",{class:"accordion",id:"aico-faq-accordion"},this.content.faqItems.map(((t,i)=>{var n;const s=(n=t.translations.find((t=>t.locale===this.locale)))!==null&&n!==void 0?n:null;if(!s){return null}return e("div",{class:"accordion-item"},e("h2",{class:"accordion-header",id:`heading-${i}`},e("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":`#collapse-${i}`,"aria-expanded":"false","aria-controls":`collapse-${i}`},s.question)),e("div",{id:`collapse-${i}`,class:"accordion-collapse collapse","aria-labelledby":`heading-${i}`,"data-bs-parent":"#aico-faq-accordion"},e("div",{class:"accordion-body"},s.answer)))}))))}};Ac.style=jc;const Tc=".content.sc-aico-heading-content{display:flex;flex-flow:column;width:100%;margin:10px auto}.content-align-with-text.sc-aico-heading-content{align-content:space-between;max-width:1278px;display:flex;flex-flow:row wrap;width:100%;margin:0 auto}.title-wrapper.sc-aico-heading-content{width:fit-content;border-radius:10px;margin-bottom:10px;margin-left:0;padding:15px}.description.sc-aico-heading-content{width:fit-content;padding:10px;border-radius:10px;white-space:pre-line}@media screen and (max-width: 768px){.content.sc-aico-heading-content{min-height:300px !important}}";const Mc=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t;const i=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;const n={"justify-content":this.content.isTextAtMiddleOfImage?"center":"flex-end"};if(!r(this.content.picture)){n["min-height"]=this.content.isImageHeightHalfSize?"400px":"600px";n["background-size"]=this.content.isImageHeightHalfSize?"100%":"cover";n["background-image"]=`url(${this.content.picture})`;n["background-repeat"]="no-repeat";n["background-position"]="center"}const s={"background-color":this.content.textBackgroundColor};if(this.content.fontSize){s["font-size"]=`${this.content.fontSize}px`}if(!r(this.content.fontFamily)){s["font-family"]=this.content.fontFamily}const o={"background-color":this.content.textBackgroundColor};if(!r(this.content.textColor)){o["color"]=this.content.textColor}return e("div",{class:this.content.isHeadingAlignedWithText?"content content-align-with-text":"content",style:n},e(p,{condition:i!==null},e("div",{class:"title-wrapper",style:s},e("aico-title-content",{content:this.makeTitleContent(i),locale:this.locale})),e("span",{class:"description",style:o},i.description)))}makeTitleContent(t){var e;return{id:this.content.id,createdAt:this.content.createdAt,updatedAt:this.content.updatedAt,hasUnderscore:false,size:(e=this.content.titleSize)!==null&&e!==void 0?e:"h1",titleColor:this.content.textColor,translations:[Object.assign({},t)]}}};Mc.style=Tc;const Ec=".sc-aico-html-content-h{display:block}";const Oc=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t;const i=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;return e(p,{condition:i!==null&&!r(i.text)},e("div",{innerHTML:i.text}))}};Oc.style=Ec;const Ic=".sc-aico-link-content-h {\n --hover-button-color: unset;\n}\n\n.image-link-wrapper.sc-aico-link-content {\n display: flex;\n}\n\n.image-link.sc-aico-link-content {\n display: block;\n text-align: center;\n &:hover {\n opacity: 0.5;\n }\n}\n\n.arrow-button.sc-aico-link-content {\n float: right;\n font-size: 30px;\n margin-top: -10px;\n}\n\n.button_link.sc-aico-link-content {\n display: block;\n text-decoration: none;\n text-transform: uppercase;\n padding: 12px;\n text-align: center;\n font-weight: 900;\n font-size: 1.5rem;\n line-height: 1;\n letter-spacing: 0.03rem;\n border-radius: 5px;\n &:hover {\n background-color: var(--hover-button-color) !important;\n }\n}";const Cc=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t,n,s;const o=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;const c={};if(this.content.textButtonColor){c["color"]=this.content.textButtonColor}if(this.content.textButtonColor){c["background-color"]=this.content.textButtonColor}if(this.content.fontSize){c["font-size"]=`${this.content.fontSize}px`}if(this.content.fontFamily){c["font-family"]=this.content.fontFamily}if(this.content.hoverColor){c["--hover-button-color"]=this.content.hoverColor}return e(i,null,e(p,{condition:!r(o===null||o===void 0?void 0:o.title)},e("label",null,o===null||o===void 0?void 0:o.title,": ")),e(p,{condition:this.content.isImageLink!==undefined&&this.content.isImageLink},e("div",{class:"image-link-wrapper",style:{"justify-content":this.content.picturePosition}},e("a",{href:(n=o===null||o===void 0?void 0:o.link)!==null&&n!==void 0?n:"#",target:"_blank",class:"image-link",style:{width:this.content.isImageFullSize?"100%":a(this.content.pictureSize)}},e("img",{src:o===null||o===void 0?void 0:o.imageUrl})))),e(p,{condition:this.content.isImageLink===null||!this.content.isImageLink},e("a",{href:(s=o===null||o===void 0?void 0:o.link)!==null&&s!==void 0?s:"#",target:"_blank",class:this.content.isButtonLink?"button-link":"",style:c},e("span",{class:"arrow-button"}," →"))))}};Cc.style=Ic;const Dc=".news-article.sc-aico-news-content{cursor:pointer}.news-article-img.sc-aico-news-content{transition:scale 0.5s ease-in-out}.news-article.sc-aico-news-content:hover .news-article-img.sc-aico-news-content{scale:1.2}";const Nc=class{constructor(e){t(this,e);this.newsArticleClicked=n(this,"newsArticleClicked",7);this.content=undefined}render(){return e("div",{class:"card-group"},this.content.aicoShopNews.map((t=>{var i,n,s,o;return e("div",{class:"news-article card h-100 pe-auto",onClick:()=>{var e;(e=this.newsArticleClicked)===null||e===void 0?void 0:e.emit(t)}},e("div",{class:"ratio ratio-4x3 overflow-hidden "},e("img",{class:"news-article-img card-img-top img-fluid object-fit-cover",style:{"object-position":"center"},src:(n=(i=t.image)!==null&&i!==void 0?i:t.headlineImage)!==null&&n!==void 0?n:"https://cdn.shopify.com/s/files/1/0565/2201/4813/files/blank-img.png?v=13432316686103745237%20406w"})),e("div",{class:"card-body",style:{"min-height":"6rem","background-color":(s=this.content.textBackgroundColor)!==null&&s!==void 0?s:"royalBlue"}},e("h5",{class:"card-title"},t.name)),e(p,{condition:!r(t.excerpt)},e("div",{class:"card-footer",style:{"background-color":(o=this.content.textBackgroundColor)!==null&&o!==void 0?o:"royalBlue",color:"white"}},e("small",{class:"text-muted"},t.excerpt))))})))}};Nc.style=Dc;const Lc=".sc-aico-page-content-h{display:block}";const zc=class{constructor(e){t(this,e);this.pageClicked=n(this,"pageClicked",7);this.content=undefined;this.locale="de"}render(){var t,n,s,o,a;const c=(t=this.content.landingPage.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;return e(i,{style:{"max-width":"300px"}},e("div",{class:"card pe-auto"},e("div",{class:"ratio ratio-4x3"},e("img",{class:"card-img-top img-fluid object-fit-cover",style:{"object-position":"center"},src:(n=this.content.landingPage.image)!==null&&n!==void 0?n:"https://cdn.shopify.com/s/files/1/0565/2201/4813/files/blank-img.png?v=13432316686103745237%20406w",alt:(s=c===null||c===void 0?void 0:c.imageAlt)!==null&&s!==void 0?s:"Landing page image"})),e("div",{class:"card-body",style:{"min-height":"6rem"}},e("h5",{class:"card-title"},c===null||c===void 0?void 0:c.name),e(p,{condition:this.content.openExternalLink&&!r(this.content.externalLink)},e("a",{href:this.content.externalLink,class:"card-link"},(o=c===null||c===void 0?void 0:c.buttonText)!==null&&o!==void 0?o:"Navigate to page")),e(p,{condition:!this.content.openExternalLink},e("a",{href:"#",class:"card-link",onClick:t=>{var e;t.preventDefault();(e=this.pageClicked)===null||e===void 0?void 0:e.emit(this.content)}},(a=c===null||c===void 0?void 0:c.buttonText)!==null&&a!==void 0?a:"Navigate to page"))),e(p,{condition:c!==null&&!r(c.excerpt)},e("div",{class:"card-footer"},e("small",{class:"text-muted"},c===null||c===void 0?void 0:c.excerpt)))))}};zc.style=Lc;const Sc=".table-content.sc-aico-table-content{width:100%;overflow-x:auto;white-space:nowrap;text-align:center}.table-content.sc-aico-table-content:not([class]) td.sc-aico-table-content,.table-content.sc-aico-table-content:not([class]) th.sc-aico-table-content{padding:10px !important;border:none !important}.table-content.sc-aico-table-content th.sc-aico-table-content{font-weight:700 !important}.table-content.sc-aico-table-content td.sc-aico-table-content,.table-content.sc-aico-table-content th.sc-aico-table-content{white-space:pre-line}";const Pc=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t,i,n;const s=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;const o=(i=this.content.firstColor)!==null&&i!==void 0?i:"#d6dfe1";const r=(n=this.content.secondColor)!==null&&n!==void 0?n:"#e6eced";return e("div",{class:"content-table card"},e("div",{class:"card-body"},e(p,{condition:s!==null},e("aico-title-content",{class:"card-title mt-0",content:this.makeTitleContent(s),locale:this.locale}),e("p",{class:"card-text"},s.additionalText)),e("table",{class:"table-content"},this.content.tableRows.sort(((t,e)=>t.sort-e.sort)).map(((t,i)=>e("tr",{style:{"font-weight":"400","background-color":i%2===0?o:r}},t.rowColumns.map((i=>{var n;const s=(n=i.translations.find((t=>t.locale===this.locale)))!==null&&n!==void 0?n:null;if(!s){return t.isHeading?e("th",null):e("td",null)}return t.isHeading?e("th",null,s.columnData):e("td",null,s.columnData)}))))))))}makeTitleContent(t){var e;return{id:this.content.id,createdAt:this.content.createdAt,updatedAt:this.content.updatedAt,hasUnderscore:false,size:(e=this.content.titleSize)!==null&&e!==void 0?e:"h2",translations:[Object.assign({},t)]}}};Pc.style=Sc;const Bc=".star-rating.sc-aico-testimonial-content{font-size:0;white-space:nowrap;height:35px;overflow:hidden;position:relative;background:url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjREREREREIiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');background-size:contain}.star-rating.sc-aico-testimonial-content i.sc-aico-testimonial-content{opacity:0;position:absolute;left:0;top:0;height:100%;z-index:1;background:url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjRkZERjg4IiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');background-size:contain}.star-rating.sc-aico-testimonial-content input.sc-aico-testimonial-content{opacity:0;display:inline-block;height:100%;margin:0;padding:0;z-index:2;position:relative}.star-rating.sc-aico-testimonial-content input.sc-aico-testimonial-content:hover+i.sc-aico-testimonial-content,.star-rating.sc-aico-testimonial-content input.sc-aico-testimonial-content:checked+i.sc-aico-testimonial-content{opacity:1}.star-rating.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:40%}.star-rating.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:60%}.star-rating.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:80%}.star-rating.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:100%}.star-rating.star-5.sc-aico-testimonial-content{width:173px}.star-rating.star-5.sc-aico-testimonial-content input.sc-aico-testimonial-content,.star-rating.star-5.sc-aico-testimonial-content i.sc-aico-testimonial-content{width:20%}.star-rating.star-5.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:40%}.star-rating.star-5.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:60%}.star-rating.star-5.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:80%}.star-rating.star-5.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:100%}.star-rating.star-3.sc-aico-testimonial-content{width:150px}.star-rating.star-3.sc-aico-testimonial-content input.sc-aico-testimonial-content,.star-rating.star-3.sc-aico-testimonial-content i.sc-aico-testimonial-content{width:33.33%}.star-rating.star-3.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:66.66%}.star-rating.star-3.sc-aico-testimonial-content i.sc-aico-testimonial-content~i.sc-aico-testimonial-content~i.sc-aico-testimonial-content{width:100%}";const Rc=class{constructor(e){t(this,e);this.content=undefined}render(){return e("div",{class:"card"},e(p,{condition:!r(this.content.testimonial.image)},e("img",{class:"card-img-top",alt:"image",src:this.content.testimonial.image})),e("div",{class:"card-body"},e("h2",{class:"card-title"},this.content.testimonial.title),e("p",{class:"card-text"},this.content.testimonial.text),e(p,{condition:this.content.testimonial.rating!==null},e("div",{class:"star-rating star-5"},Array.from({length:this.content.testimonial.rating},((t,e)=>e+1)).map((t=>e(s,null,e("input",{type:"radio",id:`star${t}`,name:"rating",value:t}),e("i",{style:{opacity:this.content.testimonial.rating>=t?"1":"0"}}))))))))}};Rc.style=Bc;const Wc=({condition:t,wrap:e},i)=>t?e(i):i;const Fc="";const Hc=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t,i,n,s;const o=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;const a={};if(this.content.hasBackgroundColor){a["background-color"]=(i=this.content.backgroundColor)!==null&&i!==void 0?i:"white";a["color"]=(n=this.content.textColor)!==null&&n!==void 0?n:"black";a["width"]="100%";a["padding"]="15px";a["margin-top"]="10px"}if(this.content.addBorder){a["border"]=`3px solid ${this.content.borderColor}`;a["margin-top"]="-3px"}if(this.content.alignmentEnabled){a["display"]="flex";a["align-items"]=(s=this.content.verticalAlign)!==null&&s!==void 0?s:"flex-start"}return e(p,{condition:o!==null},e(Wc,{condition:!r(o.promptText),wrap:t=>e("div",{class:"accordion",id:"aico-text-content"},e("div",{class:"accordion-item"},e("h2",{class:"accordion-header",id:"heading"},e("button",{class:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapse","aria-expanded":"false","aria-controls":"collapse"},o.promptText)),e("div",{id:"collapse",class:"accordion-collapse collapse","aria-labelledby":"heading","data-bs-parent":"#aico-text-content"},e("div",{class:"accordion-body"},t))))},e("div",{class:"card",style:a},e("div",{class:"card-body w-100 border-0"},e("aico-title-content",{class:"card-title",content:this.makeTitleContent(o),locale:this.locale}),e(p,{condition:this.shouldDisplayTextAndPicture(o)},e("div",{class:"row g-4"},e("div",{class:c({"col-md-8":true,"order-1":this.content.picturePosition==="right","order-2":this.content.picturePosition==="left"})},this.getTextComponent(o)),e("div",{class:c({"col-md-4 justify-content-center":true,"order-2":this.content.picturePosition==="right","order-1":this.content.picturePosition==="left"})},this.getImageComponent(o)))),e(p,{condition:this.shouldDisplayOnlyPicture(o)},this.getImageComponent(o)),e(p,{condition:this.shouldDisplayOnlyText(o)},this.getTextComponent(o))))))}getImageComponent(t){var i;return e("div",{class:"card text-bg-dark text-white"},e("img",{class:"card-img img-fluid object-fit-contain",src:(i=t.optimizedPicture)!==null&&i!==void 0?i:t.picture}),e(p,{condition:!r(t.pictureLabel)},e("div",{class:"card-img-overlay"},e("p",{class:c({"card-text":true,"text-end":this.content.pictureLabelPosition==="right","text-center":this.content.pictureLabelPosition==="center"})},t.pictureLabel))))}getTextComponent(t){const i={"line-height":"1.3","white-space":"pre-line"};if(this.content.fontSize){i["font-size"]=`${this.content.fontSize}px`}if(this.content.fontFamily){i["font-family"]=this.content.fontFamily}if(this.content.shouldJustifyText){i["text-align"]="justify";i["text-justify"]="inner-word"}return e("p",{class:"card-text",style:i},t.text)}makeTitleContent(t){var e;return{id:this.content.id,createdAt:this.content.createdAt,updatedAt:this.content.updatedAt,hasUnderscore:false,size:(e=this.content.titleSize)!==null&&e!==void 0?e:"h1",titleColor:this.content.textColor,translations:[Object.assign({},t)]}}shouldDisplayTextAndPicture(t){return!r(t.text)&&(!r(t.optimizedPicture)||!r(t.picture))}shouldDisplayOnlyPicture(t){return r(t.text)&&(!r(t.optimizedPicture)||!r(t.picture))}shouldDisplayOnlyText(t){return!r(t.text)&&r(t.optimizedPicture)&&r(t.picture)}};Hc.style=Fc;const Zc=".sc-aico-upload-content-h{display:block}";const Uc=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t;const n=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;const s=this.content&&this.content.videoUrl?l(this.content.videoUrl):null;return e(i,null,e(p,{condition:n!==null},e("aico-title-content",{content:this.makeTitleContent(n),locale:this.locale})),e(p,{condition:!r(s)},e("div",{class:"ratio ratio-16x9"},e("iframe",{allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:true,src:s}))),e(p,{condition:!this.content.shouldHideFile},e("p",{class:"fs-3 mt-3"},"Files:"),e("div",{class:"list-group list-group-flush"},this.content.uploads.map((t=>{if(r(t.path)){return null}return e("a",{href:t.path,target:"_blank",class:"list-group-item list-group-item-action"},t.name)})))))}makeTitleContent(t){return{id:this.content.id,createdAt:this.content.createdAt,updatedAt:this.content.updatedAt,hasUnderscore:false,size:"h2",translations:[Object.assign({},t)]}}};Uc.style=Zc;const qc=".media-card-video.sc-aico-video-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;-o-object-fit:contain;object-fit:contain}";const Gc=class{constructor(e){t(this,e);this.content=undefined;this.locale="de"}render(){var t;const n=(t=this.content.translations.find((t=>t.locale===this.locale)))!==null&&t!==void 0?t:null;const s=n&&n.videoUrl?l(n.videoUrl):null;return e(i,null,e(p,{condition:n!==null},e("aico-title-content",{content:this.makeTitleContent(n),locale:this.locale})),e(p,{condition:!r(s)},e("div",{class:"ratio ratio-16x9"},e("iframe",{allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:true,src:s}))),e(p,{condition:!r(this.content.localVideoUrl)},e("div",{class:"ratio ratio-16x9"},e("video",{class:"media-card-video",controls:true,playsInline:true,style:{height:this.content.isVideoMinimized?"400px":"100%"}},e("source",{src:this.content.localVideoUrl,type:"video/mp4"})))))}makeTitleContent(t){var e;return{id:this.content.id,createdAt:this.content.createdAt,updatedAt:this.content.updatedAt,hasUnderscore:false,size:(e=this.content.titleSize)!==null&&e!==void 0?e:"h2",translations:[Object.assign({},t)]}}};Gc.style=qc;export{h as aico_album_content,f as aico_asking_content,m as aico_block_quote_content,b as aico_bullet_content,y as aico_carousel_content,k as aico_content_card_content,$ as aico_divider_content,A as aico_document_content,Ac as aico_faq_content,Mc as aico_heading_content,Oc as aico_html_content,Cc as aico_link_content,Nc as aico_news_content,zc as aico_page_content,Pc as aico_table_content,Rc as aico_testimonial_content,Hc as aico_text_content,Uc as aico_upload_content,Gc as aico_video_content};
7
- //# sourceMappingURL=p-368503ee.entry.js.map
7
+ //# sourceMappingURL=p-7ea04e72.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as i,c as s,h as t,H as e}from"./p-ae20e789.js";import{b as l}from"./p-2677f2ab.js";const o="";const n=class{constructor(t){i(this,t);this.articleClick=s(this,"articleClick",7);this.pageSize=16;this.newsResponse=undefined;this.pageNumber=1;this.aicoUrl=undefined;this.aicoBearerToken=undefined;this.newsChannels=[];this.nextButtonText="Next";this.previousButtonText="Previous"}connectedCallback(){this.newsListFetchController=new AbortController;this.pageNumber=1;this.api={baseApi:this.aicoUrl,bearerToken:this.aicoBearerToken}}disconnectedCallback(){this.newsListFetchController.abort("disconnected")}async componentWillLoad(){this.newsResponse=await l(this.api,this.pageNumber,this.pageSize,this.newsListFetchController.signal,this.newsChannels)}async componentWillUpdate(){this.newsListFetchController=new AbortController;this.newsResponse=await l(this.api,this.pageNumber,this.pageSize,this.newsListFetchController.signal,this.newsChannels)}render(){var i,s,l;return t(e,null,t("div",{class:"row row-cols-1 row-cols-sm-2 row-cols-lg-4 g-4 mb-4"},(i=this.newsResponse)===null||i===void 0?void 0:i.data.map((i=>t("div",{class:"col"},t("aico-news-list-item",{article:i,onArticleClick:i=>{var s;(s=this.articleClick)===null||s===void 0?void 0:s.emit(i.detail)}}))))),t("nav",{class:"w-100","aria-label":"News navigation"},t("ul",{class:"pagination justify-content-center"},t("li",{class:`page-item page-link user-select-none d-flex align-items-center ${!((s=this.newsResponse)===null||s===void 0?void 0:s.links.prev)?"disabled":""}`,style:{cursor:"pointer"},onClick:()=>{if(this.pageNumber>1){this.pageNumber-=1}return false}},t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"bi bi-chevron-left me-1 fs-4",style:{width:"1em",height:"1em"},viewBox:"0 0 16 16"},t("path",{"fill-rule":"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"})),this.previousButtonText),this.getViewablePages().map((i=>t("li",{class:`page-item page-link user-select-none ${i==="..."?"disabled":Number(i)===this.pageNumber?"active":""}`,style:{cursor:"pointer"},onClick:()=>{if(i!=="..."){this.pageNumber=Number(i)}return false}},i))),t("li",{class:`page-item page-link user-select-none d-flex align-items-center ${!((l=this.newsResponse)===null||l===void 0?void 0:l.links.next)?"disabled":""}`,style:{cursor:"pointer"},onClick:()=>{var i,s;if(((i=this.newsResponse)===null||i===void 0?void 0:i.meta.page.lastPage)&&this.pageNumber<((s=this.newsResponse)===null||s===void 0?void 0:s.meta.page.lastPage)){this.pageNumber+=1}}},this.nextButtonText,t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"bi bi-chevron-right ms-1 fs-4",style:{width:"1em",height:"1em"},viewBox:"0 0 16 16"},t("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))))))}getViewablePages(i=2){var s,t,e,l,o,n,a;const h=[];if(this.pageNumber-i>=2){h.push("1")}if(this.pageNumber-i>2){h.push("...")}for(let s=this.pageNumber-i;s<this.pageNumber;s+=1){if(s>=1){h.push(`${s}`)}}h.push(`${this.pageNumber}`);for(let e=this.pageNumber+1;e<=this.pageNumber+i;e+=1){if(e<=((t=(s=this.newsResponse)===null||s===void 0?void 0:s.meta.page.lastPage)!==null&&t!==void 0?t:0)){h.push(`${e}`)}}if(this.pageNumber+i<((l=(e=this.newsResponse)===null||e===void 0?void 0:e.meta.page.lastPage)!==null&&l!==void 0?l:0)-1){h.push("...")}if(this.pageNumber+i<=((n=(o=this.newsResponse)===null||o===void 0?void 0:o.meta.page.lastPage)!==null&&n!==void 0?n:0)-1){h.push(`${(a=this.newsResponse)===null||a===void 0?void 0:a.meta.page.lastPage}`)}return h}};n.style=o;export{n as aico_news_list};
2
- //# sourceMappingURL=p-7e0074f7.entry.js.map
1
+ import{r as i,c as s,h as t,H as e}from"./p-ae20e789.js";import{b as l}from"./p-59bfd021.js";const o="";const n=class{constructor(t){i(this,t);this.articleClick=s(this,"articleClick",7);this.pageSize=16;this.newsResponse=undefined;this.pageNumber=1;this.aicoUrl=undefined;this.aicoBearerToken=undefined;this.newsChannels=[];this.nextButtonText="Next";this.previousButtonText="Previous"}connectedCallback(){this.newsListFetchController=new AbortController;this.pageNumber=1;this.api={baseApi:this.aicoUrl,bearerToken:this.aicoBearerToken}}disconnectedCallback(){this.newsListFetchController.abort("disconnected")}async componentWillLoad(){this.newsResponse=await l(this.api,this.pageNumber,this.pageSize,this.newsListFetchController.signal,this.newsChannels)}async componentWillUpdate(){this.newsListFetchController=new AbortController;this.newsResponse=await l(this.api,this.pageNumber,this.pageSize,this.newsListFetchController.signal,this.newsChannels)}render(){var i,s,l;return t(e,null,t("div",{class:"row row-cols-1 row-cols-sm-2 row-cols-lg-4 g-4 mb-4"},(i=this.newsResponse)===null||i===void 0?void 0:i.data.map((i=>t("div",{class:"col"},t("aico-news-list-item",{article:i,onArticleClick:i=>{var s;(s=this.articleClick)===null||s===void 0?void 0:s.emit(i.detail)}}))))),t("nav",{class:"w-100","aria-label":"News navigation"},t("ul",{class:"pagination justify-content-center"},t("li",{class:`page-item page-link user-select-none d-flex align-items-center ${!((s=this.newsResponse)===null||s===void 0?void 0:s.links.prev)?"disabled":""}`,style:{cursor:"pointer"},onClick:()=>{if(this.pageNumber>1){this.pageNumber-=1}return false}},t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"bi bi-chevron-left me-1 fs-4",style:{width:"1em",height:"1em"},viewBox:"0 0 16 16"},t("path",{"fill-rule":"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"})),this.previousButtonText),this.getViewablePages().map((i=>t("li",{class:`page-item page-link user-select-none ${i==="..."?"disabled":Number(i)===this.pageNumber?"active":""}`,style:{cursor:"pointer"},onClick:()=>{if(i!=="..."){this.pageNumber=Number(i)}return false}},i))),t("li",{class:`page-item page-link user-select-none d-flex align-items-center ${!((l=this.newsResponse)===null||l===void 0?void 0:l.links.next)?"disabled":""}`,style:{cursor:"pointer"},onClick:()=>{var i,s;if(((i=this.newsResponse)===null||i===void 0?void 0:i.meta.page.lastPage)&&this.pageNumber<((s=this.newsResponse)===null||s===void 0?void 0:s.meta.page.lastPage)){this.pageNumber+=1}}},this.nextButtonText,t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",class:"bi bi-chevron-right ms-1 fs-4",style:{width:"1em",height:"1em"},viewBox:"0 0 16 16"},t("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))))))}getViewablePages(i=2){var s,t,e,l,o,n,a;const h=[];if(this.pageNumber-i>=2){h.push("1")}if(this.pageNumber-i>2){h.push("...")}for(let s=this.pageNumber-i;s<this.pageNumber;s+=1){if(s>=1){h.push(`${s}`)}}h.push(`${this.pageNumber}`);for(let e=this.pageNumber+1;e<=this.pageNumber+i;e+=1){if(e<=((t=(s=this.newsResponse)===null||s===void 0?void 0:s.meta.page.lastPage)!==null&&t!==void 0?t:0)){h.push(`${e}`)}}if(this.pageNumber+i<((l=(e=this.newsResponse)===null||e===void 0?void 0:e.meta.page.lastPage)!==null&&l!==void 0?l:0)-1){h.push("...")}if(this.pageNumber+i<=((n=(o=this.newsResponse)===null||o===void 0?void 0:o.meta.page.lastPage)!==null&&n!==void 0?n:0)-1){h.push(`${(a=this.newsResponse)===null||a===void 0?void 0:a.meta.page.lastPage}`)}return h}};n.style=o;export{n as aico_news_list};
2
+ //# sourceMappingURL=p-80cb133a.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as s,h as e}from"./p-ae20e789.js";import{c as i}from"./p-2677f2ab.js";import{j as a}from"./p-86c7fdc7.js";const o=".slick-slide.sc-aico-special-news-carousel>div.sc-aico-special-news-carousel{height:100% !important}";const c=class{constructor(e){t(this,e);this.articleClicked=s(this,"articleClicked",7);this.newsResponse=undefined;this.aicoUrl=undefined;this.aicoBearerToken=undefined;this.newsChannels=[];this.numberOfArticles=6}connectedCallback(){this.newsListFetchController=new AbortController;this.api={baseApi:this.aicoUrl,bearerToken:this.aicoBearerToken}}disconnectedCallback(){this.newsListFetchController.abort("disconnected")}async componentWillLoad(){this.newsResponse=await i(this.api,1,this.numberOfArticles,this.newsListFetchController.signal,this.newsChannels)}async componentWillUpdate(){this.newsListFetchController=new AbortController;this.newsResponse=await i(this.api,1,this.numberOfArticles,this.newsListFetchController.signal,this.newsChannels)}componentDidLoad(){a(".carousel").slick({autoplay:true,autoplaySpeed:6e3,dots:true,arrows:false,pauseOnDotsHover:true})}render(){return e("div",{class:"carousel"},this.newsResponse.data.map((t=>{var s;const i=t.attributes.focusXPercentage?`${t.attributes.focusXPercentage}%`:"center";const a=t.attributes.focusYPercentage?`${t.attributes.focusYPercentage}%`:"center";return e("div",{class:"carousel-item card border-0"},e("div",{class:"card-body"},e("h5",{class:"card-title text-center text-uppercase"},e("a",{class:"text-reset text-decoration-none",href:"#",onClick:s=>{var e;s.preventDefault();(e=this.articleClicked)===null||e===void 0?void 0:e.emit(t)}},t.attributes.name))),e("div",{class:"ratio ratio-16x9 mx-auto",style:{"max-width":"50%"}},e("img",{class:"card-img-bottom object-fit-cover",style:{"object-position":`${i} ${a}`,"min-height":"15rem"},alt:"News Picture","data-lazy":(s=t.attributes.optimizedImage)!==null&&s!==void 0?s:t.attributes.image})))})))}};c.style=o;export{c as aico_special_news_carousel};
2
- //# sourceMappingURL=p-c9eea1b1.entry.js.map
1
+ import{r as t,c as s,h as e}from"./p-ae20e789.js";import{c as i}from"./p-59bfd021.js";import{j as a}from"./p-86c7fdc7.js";const o=".slick-slide.sc-aico-special-news-carousel>div.sc-aico-special-news-carousel{height:100% !important}";const c=class{constructor(e){t(this,e);this.articleClicked=s(this,"articleClicked",7);this.newsResponse=undefined;this.aicoUrl=undefined;this.aicoBearerToken=undefined;this.newsChannels=[];this.numberOfArticles=6}connectedCallback(){this.newsListFetchController=new AbortController;this.api={baseApi:this.aicoUrl,bearerToken:this.aicoBearerToken}}disconnectedCallback(){this.newsListFetchController.abort("disconnected")}async componentWillLoad(){this.newsResponse=await i(this.api,1,this.numberOfArticles,this.newsListFetchController.signal,this.newsChannels)}async componentWillUpdate(){this.newsListFetchController=new AbortController;this.newsResponse=await i(this.api,1,this.numberOfArticles,this.newsListFetchController.signal,this.newsChannels)}componentDidLoad(){a(".carousel").slick({autoplay:true,autoplaySpeed:6e3,dots:true,arrows:false,pauseOnDotsHover:true})}render(){return e("div",{class:"carousel"},this.newsResponse.data.map((t=>{var s;const i=t.attributes.focusXPercentage?`${t.attributes.focusXPercentage}%`:"center";const a=t.attributes.focusYPercentage?`${t.attributes.focusYPercentage}%`:"center";return e("div",{class:"carousel-item card border-0"},e("div",{class:"card-body"},e("h5",{class:"card-title text-center text-uppercase"},e("a",{class:"text-reset text-decoration-none",href:"#",onClick:s=>{var e;s.preventDefault();(e=this.articleClicked)===null||e===void 0?void 0:e.emit(t)}},t.attributes.name))),e("div",{class:"ratio ratio-16x9 mx-auto",style:{"max-width":"50%"}},e("img",{class:"card-img-bottom object-fit-cover",style:{"object-position":`${i} ${a}`,"min-height":"15rem"},alt:"News Picture","data-lazy":(s=t.attributes.optimizedImage)!==null&&s!==void 0?s:t.attributes.image})))})))}};c.style=o;export{c as aico_special_news_carousel};
2
+ //# sourceMappingURL=p-918b9928.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,h as i}from"./p-ae20e789.js";import{f as e,a as s}from"./p-2677f2ab.js";const h="";const r=class{constructor(i){t(this,i);this.article=undefined;this.aicoUrl=undefined;this.aicoBearerToken=undefined;this.locale="de";this.articleId=undefined;this.articleUrlHandle=undefined}connectedCallback(){this.articleFetchController=new AbortController;this.api={baseApi:this.aicoUrl,bearerToken:this.aicoBearerToken}}disconnectedCallback(){this.articleFetchController.abort("disconnected")}async componentWillLoad(){if(!this.articleId&&!this.articleUrlHandle){throw new Error("Either the article id or the url handle must be provided.")}if(this.articleUrlHandle){this.article=await e(this.api,this.articleUrlHandle,this.articleFetchController.signal);return}this.article=await s(this.api,this.articleId,this.articleFetchController.signal)}render(){return i("aico-article-detail",{article:this.article,locale:this.locale})}};r.style=h;export{r as aico_fetch_article_detail};
2
- //# sourceMappingURL=p-bccf08d0.entry.js.map
1
+ import{r as t,h as i}from"./p-ae20e789.js";import{f as e,a as s}from"./p-59bfd021.js";const h="";const r=class{constructor(i){t(this,i);this.article=undefined;this.aicoUrl=undefined;this.aicoBearerToken=undefined;this.locale="de";this.articleId=undefined;this.articleUrlHandle=undefined}connectedCallback(){this.articleFetchController=new AbortController;this.api={baseApi:this.aicoUrl,bearerToken:this.aicoBearerToken}}disconnectedCallback(){this.articleFetchController.abort("disconnected")}async componentWillLoad(){if(!this.articleId&&!this.articleUrlHandle){throw new Error("Either the article id or the url handle must be provided.")}if(this.articleUrlHandle){this.article=await e(this.api,this.articleUrlHandle,this.articleFetchController.signal);return}this.article=await s(this.api,this.articleId,this.articleFetchController.signal)}render(){return i("aico-article-detail",{article:this.article,locale:this.locale})}};r.style=h;export{r as aico_fetch_article_detail};
2
+ //# sourceMappingURL=p-c900f292.entry.js.map
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-e52034b7.js');
6
6
  const slick = require('./slick-d0dfbd94.js');
7
- const utils = require('./utils-c1b7a052.js');
7
+ const utils = require('./utils-9ae3486f.js');
8
8
 
9
9
  const aicoAlbumContentCss = "";
10
10
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-e52034b7.js');
6
- const utils = require('./utils-c1b7a052.js');
6
+ const utils = require('./utils-9ae3486f.js');
7
7
 
8
8
  const aicoFetchArticleDetailCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-e52034b7.js');
6
- const utils = require('./utils-c1b7a052.js');
6
+ const utils = require('./utils-9ae3486f.js');
7
7
 
8
8
  const aicoNewsListCss = "";
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-e52034b7.js');
6
- const utils = require('./utils-c1b7a052.js');
6
+ const utils = require('./utils-9ae3486f.js');
7
7
  const slick = require('./slick-d0dfbd94.js');
8
8
 
9
9
  const aicoSpecialNewsCarouselCss = ".slick-slide.sc-aico-special-news-carousel>div.sc-aico-special-news-carousel{height:100% !important}";
@@ -21,7 +21,7 @@ async function fetchNewsArticles(api, page, size, signal, newsChannels = []) {
21
21
  queryParams.set('filter[isActive]', '1');
22
22
  queryParams.set('filter[excludeTag][]', 'Eisnull');
23
23
  for (const newsChannel of newsChannels) {
24
- queryParams.set('filter[channel][]', newsChannel);
24
+ queryParams.append('filter[channel][]', newsChannel);
25
25
  }
26
26
  const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
27
27
  const response = await fetch(request);
@@ -37,7 +37,7 @@ async function fetchSpecialNewsArticles(api, page, size, signal, newsChannels =
37
37
  queryParams.set('filter[isLightVersion]', 'true');
38
38
  queryParams.set('filter[excludeTag][]', 'Eisnull');
39
39
  for (const newsChannel of newsChannels) {
40
- queryParams.set('filter[channel][]', newsChannel);
40
+ queryParams.append('filter[channel][]', newsChannel);
41
41
  }
42
42
  const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
43
43
  const response = await fetch(request);
@@ -104,4 +104,4 @@ exports.getImageWidthPrc = getImageWidthPrc;
104
104
  exports.getYoutubeURL = getYoutubeURL;
105
105
  exports.strIsNullOrEmptyOrWhitespace = strIsNullOrEmptyOrWhitespace;
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,MAAM,IAAI,EAAE,EAAE;QAClC,OAAO,iCAAiC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;KACpD;IAED,OAAO,IAAI,CAAC;AACd,CAAC;SAEe,4BAA4B,CAAC,GAAmB;IAC9D,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE;QACvB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;SAEe,QAAQ,CAAC,UAAsC;IAC7D,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QAC5C,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE;YACV,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACtB;KACF;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B;;;;;;;;;;;","names":[],"sources":["src/model/AicoApiRequestInfo.ts","src/utils/utils.ts"],"sourcesContent":["export type AicoApiRequestInfo = {\n baseApi: string;\n bearerToken: string;\n};\n\nexport const getAuthenticatedHeaders = (bearerToken: string): Headers => {\n const headers = new Headers();\n headers.append('Accept', 'application/vnd.api+json');\n headers.append('Authorization', `Bearer ${bearerToken}`);\n return headers;\n};\n\nexport const getAuthenticatedRequest = (api: AicoApiRequestInfo, route: string, query: URLSearchParams, signal?: AbortSignal): Request => {\n return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {\n headers: getAuthenticatedHeaders(api.bearerToken),\n signal,\n });\n};\n","import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"],"version":3}
1
+ {"file":"utils-9ae3486f.js","mappings":";;AAKO,MAAM,uBAAuB,GAAG,CAAC,WAAmB;IACzD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,0BAA0B,CAAC,CAAC;IACrD,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,UAAU,WAAW,EAAE,CAAC,CAAC;IACzD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEK,MAAM,uBAAuB,GAAG,CAAC,GAAuB,EAAE,KAAa,EAAE,KAAsB,EAAE,MAAoB;IAC1H,OAAO,IAAI,OAAO,CAAC,IAAI,GAAG,CAAC,GAAG,KAAK,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,CAAC,OAAO,CAAC,EAAE;QACvE,OAAO,EAAE,uBAAuB,CAAC,GAAG,CAAC,WAAW,CAAC;QACjD,MAAM;KACP,CAAC,CAAC;AACL,CAAC;;ACbM,eAAe,iBAAiB,CAAC,GAAuB,EAAE,IAAY,EAAE,IAAY,EAAE,MAAmB,EAAE,eAAyB,EAAE;IAC3I,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;IAC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ACjB,KAAK,aAAa;YAChB,OAAO,KAAK,CAAC;QACf,KAAK,OAAO;YACV,OAAO,KAAK,CAAC;QACf,KAAK,OAAO;YACV,OAAO,KAAK,CAAC;QACf,KAAK,aAAa;YAChB,OAAO,MAAM,CAAC;QAChB;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC;SAEe,aAAa,CAAC,GAAW;IACvC,MAAM,MAAM,GAAG,2DAA2D,CAAC;IAC3E,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,EAAE,EAAE;QAClC,OAAO,iCAAiC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;KACpD;IAED,OAAO,IAAI,CAAC;AACd,CAAC;SAEe,4BAA4B,CAAC,GAAmB;IAC9D,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE;QACvB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;SAEe,QAAQ,CAAC,UAAsC;IAC7D,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QAC5C,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE;YACV,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACtB;KACF;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B;;;;;;;;;;;","names":[],"sources":["src/model/AicoApiRequestInfo.ts","src/utils/utils.ts"],"sourcesContent":["export type AicoApiRequestInfo = {\n baseApi: string;\n bearerToken: string;\n};\n\nexport const getAuthenticatedHeaders = (bearerToken: string): Headers => {\n const headers = new Headers();\n headers.append('Accept', 'application/vnd.api+json');\n headers.append('Authorization', `Bearer ${bearerToken}`);\n return headers;\n};\n\nexport const getAuthenticatedRequest = (api: AicoApiRequestInfo, route: string, query: URLSearchParams, signal?: AbortSignal): Request => {\n return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {\n headers: getAuthenticatedHeaders(api.bearerToken),\n signal,\n });\n};\n","import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.append('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.append('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"],"version":3}
@@ -13,6 +13,7 @@ export const Kj = {
13
13
  aicoUrl: 'https://kj-acceptance.aico.swiss/api/v1/',
14
14
  aicoBearerToken: 'Sq4WkveRPJ64SHR9zqZW8oLjIDjnlBg0gXHSuIMweb966802',
15
15
  articleId: '32',
16
+ locale: 'de_CH',
16
17
  },
17
18
  };
18
19
  export const Fcz = {
@@ -20,6 +21,7 @@ export const Fcz = {
20
21
  aicoUrl: 'https://app.aico.swiss/19838/api/v1/',
21
22
  aicoBearerToken: 'B3NXuTbnCeppJl9NHu27Kjs7Hm3EOKSGCkR6CVwO',
22
23
  articleId: '44239',
24
+ locale: 'de_CH',
23
25
  },
24
26
  };
25
27
  //# sourceMappingURL=aico-fetch-article-detail.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"aico-fetch-article-detail.stories.js","sourceRoot":"","sources":["../../../src/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.ts"],"names":[],"mappings":"AAGA,MAAM,IAAI,GAAqC;IAC7C,SAAS,EAAE,2BAA2B;IACtC,QAAQ,EAAE;QACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,mBAAmB,EAAE;QAC7D,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4BAA4B,EAAE;QAC9E,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KACrC;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,EAAE,GAAU;IACvB,IAAI,EAAE;QACJ,OAAO,EAAE,0CAA0C;QACnD,eAAe,EAAE,kDAAkD;QACnE,SAAS,EAAE,IAAI;KAChB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAU;IACxB,IAAI,EAAE;QACJ,OAAO,EAAE,sCAAsC;QAC/C,eAAe,EAAE,0CAA0C;QAC3D,SAAS,EAAE,OAAO;KACnB;CACF,CAAC","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\nimport { JSX } from '../../components';\n\nconst meta: Meta<JSX.AicoFetchArticleDetail> = {\n component: 'aico-fetch-article-detail',\n argTypes: {\n aicoUrl: { type: 'string', description: 'The Aico api url.' },\n aicoBearerToken: { type: 'string', description: 'The Aico api access token.' },\n articleId: { type: 'string' },\n articleUrlHandle: { type: 'string' },\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj;\n\nexport const Kj: Story = {\n args: {\n aicoUrl: 'https://kj-acceptance.aico.swiss/api/v1/',\n aicoBearerToken: 'Sq4WkveRPJ64SHR9zqZW8oLjIDjnlBg0gXHSuIMweb966802',\n articleId: '32',\n },\n};\n\nexport const Fcz: Story = {\n args: {\n aicoUrl: 'https://app.aico.swiss/19838/api/v1/',\n aicoBearerToken: 'B3NXuTbnCeppJl9NHu27Kjs7Hm3EOKSGCkR6CVwO',\n articleId: '44239',\n },\n};\n"]}
1
+ {"version":3,"file":"aico-fetch-article-detail.stories.js","sourceRoot":"","sources":["../../../src/components/aico-fetch-article-detail/aico-fetch-article-detail.stories.ts"],"names":[],"mappings":"AAGA,MAAM,IAAI,GAAqC;IAC7C,SAAS,EAAE,2BAA2B;IACtC,QAAQ,EAAE;QACR,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,mBAAmB,EAAE;QAC7D,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4BAA4B,EAAE;QAC9E,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KACrC;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,MAAM,EAAE,GAAU;IACvB,IAAI,EAAE;QACJ,OAAO,EAAE,0CAA0C;QACnD,eAAe,EAAE,kDAAkD;QACnE,SAAS,EAAE,IAAI;QACf,MAAM,EAAE,OAAO;KAChB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAU;IACxB,IAAI,EAAE;QACJ,OAAO,EAAE,sCAAsC;QAC/C,eAAe,EAAE,0CAA0C;QAC3D,SAAS,EAAE,OAAO;QAClB,MAAM,EAAE,OAAO;KAChB;CACF,CAAC","sourcesContent":["import type { Meta, StoryObj } from '@storybook/web-components';\nimport { JSX } from '../../components';\n\nconst meta: Meta<JSX.AicoFetchArticleDetail> = {\n component: 'aico-fetch-article-detail',\n argTypes: {\n aicoUrl: { type: 'string', description: 'The Aico api url.' },\n aicoBearerToken: { type: 'string', description: 'The Aico api access token.' },\n articleId: { type: 'string' },\n articleUrlHandle: { type: 'string' },\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj;\n\nexport const Kj: Story = {\n args: {\n aicoUrl: 'https://kj-acceptance.aico.swiss/api/v1/',\n aicoBearerToken: 'Sq4WkveRPJ64SHR9zqZW8oLjIDjnlBg0gXHSuIMweb966802',\n articleId: '32',\n locale: 'de_CH',\n },\n};\n\nexport const Fcz: Story = {\n args: {\n aicoUrl: 'https://app.aico.swiss/19838/api/v1/',\n aicoBearerToken: 'B3NXuTbnCeppJl9NHu27Kjs7Hm3EOKSGCkR6CVwO',\n articleId: '44239',\n locale: 'de_CH',\n },\n};\n"]}
@@ -7,7 +7,7 @@ export async function fetchNewsArticles(api, page, size, signal, newsChannels =
7
7
  queryParams.set('filter[isActive]', '1');
8
8
  queryParams.set('filter[excludeTag][]', 'Eisnull');
9
9
  for (const newsChannel of newsChannels) {
10
- queryParams.set('filter[channel][]', newsChannel);
10
+ queryParams.append('filter[channel][]', newsChannel);
11
11
  }
12
12
  const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
13
13
  const response = await fetch(request);
@@ -23,7 +23,7 @@ export async function fetchSpecialNewsArticles(api, page, size, signal, newsChan
23
23
  queryParams.set('filter[isLightVersion]', 'true');
24
24
  queryParams.set('filter[excludeTag][]', 'Eisnull');
25
25
  for (const newsChannel of newsChannels) {
26
- queryParams.set('filter[channel][]', newsChannel);
26
+ queryParams.append('filter[channel][]', newsChannel);
27
27
  }
28
28
  const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
29
29
  const response = await fetch(request);
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAGnH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,GAAuB,EAAE,IAAY,EAAE,IAAY,EAA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7D,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QAC5C,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE;YACV,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACtB;KACF;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC","sourcesContent":["import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAGnH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,GAAuB,EAAE,IAAY,EAAE,IAAY,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IAC7D,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QAC5C,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE;YACV,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACtB;KACF;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC","sourcesContent":["import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.append('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.append('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"]}
@@ -19,7 +19,7 @@ async function fetchNewsArticles(api, page, size, signal, newsChannels = []) {
19
19
  queryParams.set('filter[isActive]', '1');
20
20
  queryParams.set('filter[excludeTag][]', 'Eisnull');
21
21
  for (const newsChannel of newsChannels) {
22
- queryParams.set('filter[channel][]', newsChannel);
22
+ queryParams.append('filter[channel][]', newsChannel);
23
23
  }
24
24
  const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
25
25
  const response = await fetch(request);
@@ -35,7 +35,7 @@ async function fetchSpecialNewsArticles(api, page, size, signal, newsChannels =
35
35
  queryParams.set('filter[isLightVersion]', 'true');
36
36
  queryParams.set('filter[excludeTag][]', 'Eisnull');
37
37
  for (const newsChannel of newsChannels) {
38
- queryParams.set('filter[channel][]', newsChannel);
38
+ queryParams.append('filter[channel][]', newsChannel);
39
39
  }
40
40
  const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
41
41
  const response = await fetch(request);
@@ -1 +1 @@
1
- {"file":"utils.js","mappings":"AAKO,MAAM,uBAAuB,GAAG,CAAC,WAAmB;IACzD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,0BAA0B,CAAC,CAAC;IACrD,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,UAAU,WAAW,EAAE,CAAC,CAAC;IACzD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEK,MAAM,uBAAuB,GAAG,CAAC,GAAuB,EAAE,KAAa,EAAE,KAAsB,EAAE,MAAoB;IAC1H,OAAO,IAAI,OAAO,CAAC,IAAI,GAAG,CAAC,GAAG,KAAK,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,CAAC,OAAO,CAAC,EAAE;QACvE,OAAO,EAAE,uBAAuB,CAAC,GAAG,CAAC,WAAW,CAAC;QACjD,MAAM;KACP,CAAC,CAAC;AACL,CAAC;;ACbM,eAAe,iBAAiB,CAAC,GAAuB,EAAE,IAAY,EAAE,IAAY,EAAE,MAAmB,EAAE,eAAyB,EAAE;IAC3I,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;IAC1C,WAAW,CAAC,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9C,WAAW,CAAC,GAAG,CAAC,YAAY,EA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AAC;QACf,KAAK,aAAa;YAChB,OAAO,MAAM,CAAC;QAChB;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC;SAEe,aAAa,CAAC,GAAW;IACvC,MAAM,MAAM,GAAG,2DAA2D,CAAC;IAC3E,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,EAAE,EAAE;QAClC,OAAO,iCAAiC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;KACpD;IAED,OAAO,IAAI,CAAC;AACd,CAAC;SAEe,4BAA4B,CAAC,GAAmB;IAC9D,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE;QACvB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;SAEe,QAAQ,CAAC,UAAsC;IAC7D,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QAC5C,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE;YACV,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACtB;KACF;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B;;;;","names":[],"sources":["src/model/AicoApiRequestInfo.ts","src/utils/utils.ts"],"sourcesContent":["export type AicoApiRequestInfo = {\n baseApi: string;\n bearerToken: string;\n};\n\nexport const getAuthenticatedHeaders = (bearerToken: string): Headers => {\n const headers = new Headers();\n headers.append('Accept', 'application/vnd.api+json');\n headers.append('Authorization', `Bearer ${bearerToken}`);\n return headers;\n};\n\nexport const getAuthenticatedRequest = (api: AicoApiRequestInfo, route: string, query: URLSearchParams, signal?: AbortSignal): Request => {\n return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {\n headers: getAuthenticatedHeaders(api.bearerToken),\n signal,\n });\n};\n","import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"],"version":3}
1
+ {"file":"utils.js","mappings":"AAKO,MAAM,uBAAuB,GAAG,CAAC,WAAmB;IACzD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,0BAA0B,CAAC,CAAC;IACrD,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,UAAU,WAAW,EAAE,CAAC,CAAC;IACzD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEK,MAAM,uBAAuB,GAAG,CAAC,GAAuB,EAAE,KAAa,EAAE,KAAsB,EAAE,MAAoB;IAC1H,OAAO,IAAI,OAAO,CAAC,IAAI,GAAG,CAAC,GAAG,KAAK,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,CAAC,OA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;","names":[],"sources":["src/model/AicoApiRequestInfo.ts","src/utils/utils.ts"],"sourcesContent":["export type AicoApiRequestInfo = {\n baseApi: string;\n bearerToken: string;\n};\n\nexport const getAuthenticatedHeaders = (bearerToken: string): Headers => {\n const headers = new Headers();\n headers.append('Accept', 'application/vnd.api+json');\n headers.append('Authorization', `Bearer ${bearerToken}`);\n return headers;\n};\n\nexport const getAuthenticatedRequest = (api: AicoApiRequestInfo, route: string, query: URLSearchParams, signal?: AbortSignal): Request => {\n return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {\n headers: getAuthenticatedHeaders(api.bearerToken),\n signal,\n });\n};\n","import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.append('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.append('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"],"version":3}
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host, c as createEvent, F as Fragment } from './index-4621a8ba.js';
2
2
  import { j as jquery } from './slick-d11cf173.js';
3
- import { s as strIsNullOrEmptyOrWhitespace, g as getImageWidthPrc, d as getClass, e as getYoutubeURL } from './utils-b4eec8e9.js';
3
+ import { s as strIsNullOrEmptyOrWhitespace, g as getImageWidthPrc, d as getClass, e as getYoutubeURL } from './utils-25eef7c7.js';
4
4
 
5
5
  const aicoAlbumContentCss = "";
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-4621a8ba.js';
2
- import { f as fetchNewsArticleByHandle, a as fetchNewsArticle } from './utils-b4eec8e9.js';
2
+ import { f as fetchNewsArticleByHandle, a as fetchNewsArticle } from './utils-25eef7c7.js';
3
3
 
4
4
  const aicoFetchArticleDetailCss = "";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-4621a8ba.js';
2
- import { b as fetchNewsArticles } from './utils-b4eec8e9.js';
2
+ import { b as fetchNewsArticles } from './utils-25eef7c7.js';
3
3
 
4
4
  const aicoNewsListCss = "";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-4621a8ba.js';
2
- import { c as fetchSpecialNewsArticles } from './utils-b4eec8e9.js';
2
+ import { c as fetchSpecialNewsArticles } from './utils-25eef7c7.js';
3
3
  import { j as jquery } from './slick-d11cf173.js';
4
4
 
5
5
  const aicoSpecialNewsCarouselCss = ".slick-slide.sc-aico-special-news-carousel>div.sc-aico-special-news-carousel{height:100% !important}";
@@ -19,7 +19,7 @@ async function fetchNewsArticles(api, page, size, signal, newsChannels = []) {
19
19
  queryParams.set('filter[isActive]', '1');
20
20
  queryParams.set('filter[excludeTag][]', 'Eisnull');
21
21
  for (const newsChannel of newsChannels) {
22
- queryParams.set('filter[channel][]', newsChannel);
22
+ queryParams.append('filter[channel][]', newsChannel);
23
23
  }
24
24
  const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
25
25
  const response = await fetch(request);
@@ -35,7 +35,7 @@ async function fetchSpecialNewsArticles(api, page, size, signal, newsChannels =
35
35
  queryParams.set('filter[isLightVersion]', 'true');
36
36
  queryParams.set('filter[excludeTag][]', 'Eisnull');
37
37
  for (const newsChannel of newsChannels) {
38
- queryParams.set('filter[channel][]', newsChannel);
38
+ queryParams.append('filter[channel][]', newsChannel);
39
39
  }
40
40
  const request = getAuthenticatedRequest(api, 'news', queryParams, signal);
41
41
  const response = await fetch(request);
@@ -95,4 +95,4 @@ function getClass(conditions) {
95
95
 
96
96
  export { fetchNewsArticle as a, fetchNewsArticles as b, fetchSpecialNewsArticles as c, getClass as d, getYoutubeURL as e, fetchNewsArticleByHandle as f, getImageWidthPrc as g, strIsNullOrEmptyOrWhitespace as s };
97
97
 
98
- //# sourceMappingURL=utils-b4eec8e9.js.map
98
+ //# sourceMappingURL=utils-25eef7c7.js.map
@@ -1 +1 @@
1
- {"file":"utils-b4eec8e9.js","mappings":"AAKO,MAAM,uBAAuB,GAAG,CAAC,WAAmB;IACzD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,0BAA0B,CAAC,CAAC;IACrD,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,UAAU,WAAW,EAAE,CAAC,CAAC;IACzD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEK,MAAM,uBAAuB,GAAG,CAAC,GAAuB,EAAE,KAAa,EAAE,KAAsB,EAAE,MAAoB;IAC1H,OAAO,IAAI,OAAO,CAAC,IAAI,GAAG,CAAC,GAAG,KAAK,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,CAAC,OAAO,CAAC,EAAE;QACvE,OAAO,EAAE,uBAAuB,CAAC,GAAG,CAAC,WAAW,CAAC;QACjD,MAAM;KACP,CAAC,CAAC;AACL,CAAC;;ACbM,eAAe,iBAAiB,CAAC,GAAuB,EAAE,IAAY,EAAE,IAAY,EAAE,MAAmB,EAAE,eAAyB,EAAE;IAC3I,MAAM,WAAW,GAAG,IAAI,eAAe,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,QAAQ,WAAW;QACjB,KAAK,aAAa;YAChB,OAAO,KAAK,CAAC;QACf,KAAK,OAAO;YACV,OAAO,KAAK,CAAC;QACf,KAAK,OAAO;YACV,OAAO,KAAK,CAAC;QACf,KAAK,aAAa;YAChB,OAAO,MAAM,CAAC;QAChB;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC;SAEe,aAAa,CAAC,GAAW;IACvC,MAAM,MAAM,GAAG,2DAA2D,CAAC;IAC3E,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,EAAE,EAAE;QAClC,OAAO,iCAAiC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;KACpD;IAED,OAAO,IAAI,CAAC;AACd,CAAC;SAEe,4BAA4B,CAAC,GAAmB;IAC9D,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE;QACvB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;SAEe,QAAQ,CAAC,UAAsC;IAC7D,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QAC5C,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE;YACV,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACtB;KACF;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B;;;;","names":[],"sources":["src/model/AicoApiRequestInfo.ts","src/utils/utils.ts"],"sourcesContent":["export type AicoApiRequestInfo = {\n baseApi: string;\n bearerToken: string;\n};\n\nexport const getAuthenticatedHeaders = (bearerToken: string): Headers => {\n const headers = new Headers();\n headers.append('Accept', 'application/vnd.api+json');\n headers.append('Authorization', `Bearer ${bearerToken}`);\n return headers;\n};\n\nexport const getAuthenticatedRequest = (api: AicoApiRequestInfo, route: string, query: URLSearchParams, signal?: AbortSignal): Request => {\n return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {\n headers: getAuthenticatedHeaders(api.bearerToken),\n signal,\n });\n};\n","import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"],"version":3}
1
+ {"file":"utils-25eef7c7.js","mappings":"AAKO,MAAM,uBAAuB,GAAG,CAAC,WAAmB;IACzD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,0BAA0B,CAAC,CAAC;IACrD,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,UAAU,WAAW,EAAE,CAAC,CAAC;IACzD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEK,MAAM,uBAAuB,GAAG,CAAC,GAAuB,EAAE,KAAa,EAAE,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;YACV,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACtB;KACF;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B;;;;","names":[],"sources":["src/model/AicoApiRequestInfo.ts","src/utils/utils.ts"],"sourcesContent":["export type AicoApiRequestInfo = {\n baseApi: string;\n bearerToken: string;\n};\n\nexport const getAuthenticatedHeaders = (bearerToken: string): Headers => {\n const headers = new Headers();\n headers.append('Accept', 'application/vnd.api+json');\n headers.append('Authorization', `Bearer ${bearerToken}`);\n return headers;\n};\n\nexport const getAuthenticatedRequest = (api: AicoApiRequestInfo, route: string, query: URLSearchParams, signal?: AbortSignal): Request => {\n return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {\n headers: getAuthenticatedHeaders(api.bearerToken),\n signal,\n });\n};\n","import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.append('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.append('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"],"version":3}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiconomy/aico-components",
3
- "version": "0.0.78",
3
+ "version": "0.0.82",
4
4
  "description": "Aiconomy components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,2 +0,0 @@
1
- const t=t=>{const e=new Headers;e.append("Accept","application/vnd.api+json");e.append("Authorization",`Bearer ${t}`);return e};const e=(e,n,a,r)=>new Request(new URL(`${n}?${a.toString()}`,e.baseApi),{headers:t(e.bearerToken),signal:r});async function n(t,n,a,r,s=[]){const c=new URLSearchParams;c.set("page[number]",String(n));c.set("page[size]",String(a));c.set("sort","-publishDate");c.set("filter[isActive]","1");c.set("filter[excludeTag][]","Eisnull");for(const t of s){c.set("filter[channel][]",t)}const i=e(t,"news",c,r);const o=await fetch(i);return await o.json()}async function a(t,n,a,r,s=[]){const c=new URLSearchParams;c.set("page[number]",String(n));c.set("page[size]",String(a));c.set("sort","-publishDate");c.set("filter[isActive]","1");c.set("filter[isSpecialArticle]","1");c.set("filter[isLightVersion]","true");c.set("filter[excludeTag][]","Eisnull");for(const t of s){c.set("filter[channel][]",t)}const i=e(t,"news",c,r);const o=await fetch(i);return await o.json()}async function r(t,n,a){const r=e(t,`news/${n}`,new URLSearchParams,a);const s=await fetch(r);const c=await s.json();return c.data}async function s(t,n,a){const r=new URLSearchParams;r.set("filter[urlHandle]",n);const s=e(t,"news",r,a);const c=await fetch(s);const i=await c.json();return i.data[0]}function c(t){switch(t){case"extra-small":return"28%";case"small":return"40%";case"large":return"80%";case"extra large":return"100%";default:return"60%"}}function i(t){const e=/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#&?]*).*/;const n=t.match(e);if(n&&n[1].length==11){return`https://www.youtube.com/embed/${n[1]}`}return null}function o(t){if(!t||t===" "){return true}return false}function u(t){const e=[];for(const n of Object.entries(t)){if(n[1]){e.push(n[0])}}return e.join(" ")}export{r as a,n as b,a as c,u as d,i as e,s as f,c as g,o as s};
2
- //# sourceMappingURL=p-2677f2ab.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getAuthenticatedHeaders","bearerToken","headers","Headers","append","getAuthenticatedRequest","api","route","query","signal","Request","URL","toString","baseApi","async","fetchNewsArticles","page","size","newsChannels","queryParams","URLSearchParams","set","String","newsChannel","request","response","fetch","json","fetchSpecialNewsArticles","fetchNewsArticle","articleId","article","data","fetchNewsArticleByHandle","urlHandle","articles","getImageWidthPrc","pictureSize","getYoutubeURL","url","regExp","match","length","strIsNullOrEmptyOrWhitespace","str","getClass","conditions","classes","kvp","Object","entries","push","join"],"sources":["src/model/AicoApiRequestInfo.ts","src/utils/utils.ts"],"sourcesContent":["export type AicoApiRequestInfo = {\n baseApi: string;\n bearerToken: string;\n};\n\nexport const getAuthenticatedHeaders = (bearerToken: string): Headers => {\n const headers = new Headers();\n headers.append('Accept', 'application/vnd.api+json');\n headers.append('Authorization', `Bearer ${bearerToken}`);\n return headers;\n};\n\nexport const getAuthenticatedRequest = (api: AicoApiRequestInfo, route: string, query: URLSearchParams, signal?: AbortSignal): Request => {\n return new Request(new URL(`${route}?${query.toString()}`, api.baseApi), {\n headers: getAuthenticatedHeaders(api.bearerToken),\n signal,\n });\n};\n","import { Article } from '../components';\nimport { AicoApiRequestInfo, getAuthenticatedHeaders, getAuthenticatedRequest } from '../model/AicoApiRequestInfo';\nimport { NewsResponse } from '../model/NewsResponse';\n\nexport async function fetchNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchSpecialNewsArticles(api: AicoApiRequestInfo, page: number, size: number, signal: AbortSignal, newsChannels: string[] = []): Promise<NewsResponse> {\n const queryParams = new URLSearchParams();\n queryParams.set('page[number]', String(page));\n queryParams.set('page[size]', String(size));\n queryParams.set('sort', '-publishDate');\n queryParams.set('filter[isActive]', '1');\n queryParams.set('filter[isSpecialArticle]', '1');\n queryParams.set('filter[isLightVersion]', 'true');\n queryParams.set('filter[excludeTag][]', 'Eisnull');\n for (const newsChannel of newsChannels) {\n queryParams.set('filter[channel][]', newsChannel);\n }\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n return await response.json();\n}\n\nexport async function fetchNewsArticle(api: AicoApiRequestInfo, articleId: string, signal: AbortSignal): Promise<Article> {\n const request = getAuthenticatedRequest(api, `news/${articleId}`, new URLSearchParams(), signal);\n const response = await fetch(request);\n const article = await response.json();\n return article.data;\n}\n\nexport async function fetchNewsArticleByHandle(api: AicoApiRequestInfo, urlHandle: string, signal: AbortSignal): Promise<Article> {\n const queryParams = new URLSearchParams();\n queryParams.set('filter[urlHandle]', urlHandle);\n\n const request = getAuthenticatedRequest(api, 'news', queryParams, signal);\n const response = await fetch(request);\n const articles = await response.json();\n return articles.data[0];\n}\n\nexport async function fetchArticle(url: string, bearerToken: string, signal: AbortSignal): Promise<Article> {\n const request = new Request(new URL(url), {\n headers: getAuthenticatedHeaders(bearerToken),\n signal,\n });\n const response = await fetch(request);\n return await response.json();\n}\n\nexport function getImageWidthPrc(pictureSize?: string): string {\n switch (pictureSize) {\n case 'extra-small':\n return '28%';\n case 'small':\n return '40%';\n case 'large':\n return '80%';\n case 'extra large': // TODO: has - or not?\n return '100%';\n default:\n return '60%';\n }\n}\n\nexport function getYoutubeURL(url: string): string | null {\n const regExp = /.*(?:youtu.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=)([^#&?]*).*/;\n const match = url.match(regExp);\n if (match && match[1].length == 11) {\n return `https://www.youtube.com/embed/${match[1]}`;\n }\n\n return null;\n}\n\nexport function strIsNullOrEmptyOrWhitespace(str?: string | null): boolean {\n if (!str || str === ' ') {\n return true;\n }\n\n return false;\n}\n\nexport function getClass(conditions: { [key: string]: boolean }): string {\n const classes: string[] = [];\n for (const kvp of Object.entries(conditions)) {\n if (kvp[1]) {\n classes.push(kvp[0]);\n }\n }\n\n return classes.join(' ');\n}\n"],"mappings":"AAKO,MAAMA,EAA2BC,IACtC,MAAMC,EAAU,IAAIC,QACpBD,EAAQE,OAAO,SAAU,4BACzBF,EAAQE,OAAO,gBAAiB,UAAUH,KAC1C,OAAOC,CAAO,EAGT,MAAMG,EAA0B,CAACC,EAAyBC,EAAeC,EAAwBC,IAC/F,IAAIC,QAAQ,IAAIC,IAAI,GAAGJ,KAASC,EAAMI,aAAcN,EAAIO,SAAU,CACvEX,QAASF,EAAwBM,EAAIL,aACrCQ,WCXGK,eAAeC,EAAkBT,EAAyBU,EAAcC,EAAcR,EAAqBS,EAAyB,IACzI,MAAMC,EAAc,IAAIC,gBACxBD,EAAYE,IAAI,eAAgBC,OAAON,IACvCG,EAAYE,IAAI,aAAcC,OAAOL,IACrCE,EAAYE,IAAI,OAAQ,gBACxBF,EAAYE,IAAI,mBAAoB,KACpCF,EAAYE,IAAI,uBAAwB,WACxC,IAAK,MAAME,KAAeL,EAAc,CACtCC,EAAYE,IAAI,oBAAqBE,E,CAGvC,MAAMC,EAAUnB,EAAwBC,EAAK,OAAQa,EAAaV,GAClE,MAAMgB,QAAiBC,MAAMF,GAC7B,aAAaC,EAASE,MACxB,CAEOb,eAAec,EAAyBtB,EAAyBU,EAAcC,EAAcR,EAAqBS,EAAyB,IAChJ,MAAMC,EAAc,IAAIC,gBACxBD,EAAYE,IAAI,eAAgBC,OAAON,IACvCG,EAAYE,IAAI,aAAcC,OAAOL,IACrCE,EAAYE,IAAI,OAAQ,gBACxBF,EAAYE,IAAI,mBAAoB,KACpCF,EAAYE,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