1import{j,O as $,au as _,av as R,aw as x,h as w,U as C,r as u}from"./DYJY8Lm8.js";import{u as E}from"./BiOPLjeq.js";import{a as O,u as v}from"./CczZfSDH.js";function U(t){try{const{locale:e}=j();return(e.value==="de"?E:O)(t)}catch{return v()}}const B=()=>{const{editionType:t,basepath:e,host:p}=(()=>{try{return $().public}catch{}return _.public})(),g=R(),{basic:{title:i,description:a,share_image:n,site_name:h}}=U(t),l=s=>s&&s!==i?`${s} - ${i}`:i,m=typeof n=="object"&&n?.img?n.img:n,c=n?.width||null,r=n?.height||null,o=y(g,m),f=D(m);return{title:i,titleTemplate:l,htmlAttrs:{},meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:a},{name:"format-detection",content:"telephone=no"},{property:"og:url",content:g},{property:"og:type",content:"website"},{hid:"og-site-name",property:"og:site_name",content:h},{hid:"og-title",property:"og:title",content:i},{hid:"og-description",property:"og:description",content:a},{hid:"og-image",property:"og:image",content:o},c&&{hid:"og-image-width",property:"og:image:width",content:String(c)},r&&{hid:"og-image-height",property:"og:image:height",content:String(r)},{hid:"og-image-type",property:"og:image:type",content:f},{hid:"og-image-alt",property:"og:image:alt",content:a},{name:"twitter:card",content:"summary_large_image"},{property:"twitter:domain",content:p},{property:"twitter:url",content:g},{hid:"twitter-title",name:"twitter:title",content:i},{hid:"twitter-description",name:"twitter:description",content:a},{hid:"twitter-image",name:"twitter:image",content:o}].filter(Boolean),link:[{rel:"icon",type:"image/png",href:`/_favicons/${t}/favicon-96x96.png`,sizes:"96x96"},{rel:"shortcut icon",type:"image/svg+xml",href:`/_favicons/${t}/favicon.svg`},{rel:"apple-touch-icon",sizes:"180x180",href:`/_favicons/${t}/apple-touch-icon.png`},{rel:"manifest",href:`/_favicons/${t}/site.webmanifest`}],script:[{src:y(e,"assets/js/vendor/bootstrap.bundle.min.js"),defer:!0}]}};function y(t,e){return t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,"")}function D(t){const e=t.match(/\.(jpg|jpeg|png|webp|gif)$/i)?.[1]?.toLowerCase();return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif"}[e]||"image/jpeg"}function H(t){return C(t)?t:typeof t=="function"?w(t):t!==null&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof Date)?u(t):u(t)}function A(t={}){const e=H(t),p=B(),g=w(()=>{const i=e.value,a=p?.title,n=(p?.meta?.find(d=>d.name==="description")||{}).content||"",{title:h,meta:l,description:m,image:c}=i||{},r=h?`${h} - ${a}`:`${a}`,o=m?`${m} || ${n}`:`${n}`,f=[...l||[],o&&{hid:"description",name:"description",content:o},r&&{hid:"og-title",property:"og:title",content:r},o&&{hid:"og-description",property:"og:description",content:o},c&&{hid:"og-image",property:"og:image",content:c},r&&{hid:"twitter-title",name:"twitter:title",content:r},o&&{hid:"twitter-description",name:"twitter:description",content:o},c&&{hid:"twitter-image",property:"twitter:image",content:c}].filter(Boolean),s=new Map;return f.forEach(d=>{const b=d.key||d.hid;s.set(b,d)}),{...i,title:r,meta:[...s.values()]}});x(g)}export{A as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.