PageSourceSearch

https://bwk-bund.de/_nuxt/Picture.6ee9f2bb.js

js bwk-bund.de collected 2026-10-04 03:53:50 UTC 15,916 bytes, 1 lines download raw bytes

1import{au as te,av as Z,am as ie,a4 as ce,g as F,d as ae,aw as ge,r as W,y as oe,al as G,a7 as me,a6 as D,o as Q,c as Y,h as ue,j as O,J as ve,n as we,_ as pe}from"./entry.7893c97b.js";import{f as K}from"./image.cc9b5260.js";const ye=/#/g,be=/&/g,Se=/\//g,$e=/\?/g,ze=/\+/g,xe=/%7c/gi,Ee=/%252f/gi;function Re(e){return encodeURI(""+e).replace(xe,"|")}function se(e){return Re(e).replace(ye,"%23").replace($e,"%3F").replace(Ee,"%2F").replace(be,"%26").replace(ze,"%2B")}function _(e){return se(e).replace(Se,"%2F")}const Me=/^\w{2,}:([/\\]{1,2})/,Ie=/^\w{2,}:([/\\]{2})?/,Pe=/^([/\\]\s*){2,}[^/\\]/;function J(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Me.test(e):Ie.test(e)||(t.acceptRelative?Pe.test(e):!1)}const je=/\/$|\/\?/;function Fe(e="",t=!1){return t?je.test(e):e.endsWith("/")}function Be(e="",t=!1){if(!t)return e.endsWith("/")?e:e+"/";if(Fe(e,!0))return e||"/";const[i,...o]=e.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")}function ne(e=""){return e.startsWith("/")}function Le(e=""){return(ne(e)?e.slice(1):e)||"/"}function Ae(e=""){return ne(e)?e:"/"+e}function Oe(e){return e&&e!=="/"}function X(e,...t){let i=e||"";for(const o of t.filter(l=>Oe(l)))i=i?Be(i)+Le(o):o;return i}function re(e="",t){if(!J(e,{acceptRelative:!0}))return t?re(t+e):q(e);const[i="",o,l=""]=(e.replace(/\\/g,"/").match(/([^/:]+:)?\/\/([^/@]+@)?(.*)/)||[]).splice(1),[c="",a=""]=(l.match(/([^#/?]*)(.*)?/)||[]).splice(1),{pathname:h,search:n,hash:v}=q(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:i,auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:c,pathname:h,search:n,hash:v}}function q(e=""){const[t="",i="",o=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:i,hash:o}}async function We(e,t){return await He(t).catch(o=>(console.error("Failed to get image meta for "+t,o+""),{width:0,height:0,ratio:0}))}async function He(e){if(typeof Image>"u")throw new TypeError("Image not supported");return new Promise((t,i)=>{const o=new Image;o.onload=()=>{const l={width:o.width,height:o.height,ratio:o.width/o.height};t(l)},o.onerror=l=>i(l),o.src=e})}function Te(e=""){return e.split(/[?#]/).shift().split("/").pop().split(".").pop()}function ee(e){return t=>t?e[t]||t:e.missingValue}function ke({formatter:e,keyMap:t,joinWith:i="/",valueMap:o}={}){e||(e=(c,a)=>`${c}=${a}`),t&&typeof t!="function"&&(t=ee(t));const l=o||{};return Object.keys(l).forEach(c=>{typeof l[c]!="function"&&(l[c]=ee(l[c]))}),(c={})=>Object.entries(c).filter(([h,n])=>typeof n<"u").map(([h,n])=>{const v=l[h];return typeof v=="function"&&(n=v(c[h])),h=typeof t=="function"?t(h):h,e(h,n)}).join(i)}function L(e=""){if(typeof e=="number")return e;if(typeof e=="string"&&e.replace("px","").match(/^\d+$/g))return parseInt(e,10)}function Ce(e){const t={options:e},i=(l,c={})=>le(t,l,c),o=(l,c={},a={})=>i(l,{...a,modifiers:te(c,a.modifiers||{})}).url;for(const l in e.presets)o[l]=(c,a,h)=>o(c,a,{...e.presets[l],...h});return o.options=e,o.getImage=i,o.getMeta=(l,c)=>Ne(t,l,c),o.getSizes=(l,c)=>De(t,l,c),t.$img=o,o}async function Ne(e,t,i){const o=le(e,t,{...i});return typeof o.getMeta=="function"?await o.getMeta():await We(e,o.url)}function le(e,t,i){var v,p;if(typeof t!="string"||t==="")throw new TypeError(`input must be a string (received ${typeof t}: ${JSON.stringify(t)})`);if(t.startsWith("data:"))return{url:t};const{provider:o,defaults:l}=Ue(e,i.provider||e.options.provider),c=Ge(e,i.preset);if(t=J(t)?t:Ae(t),!o.supportsAlias)for(const d in e.options.alias)t.startsWith(d)&&(t=X(e.options.alias[d],t.substr(d.length)));if(o.validateDomains&&J(t)){const d=re(t).host;if(!e.options.domains.find(m=>m===d))return{url:t}}const a=te(i,c,l);a.modifiers={...a.modifiers};const h=a.modifiers.format;(v=a.modifiers)!=null&&v.width&&(a.modifiers.width=L(a.modifiers.width)),(p=a.modifiers)!=null&&p.height&&(a.modifiers.height=L(a.modifiers.height));const n=o.getImage(t,a,e);return n.format=n.format||h||"",n}function Ue(e,t){const i=e.options.providers[t];if(!i)throw new Error("Unknown provider: "+t);return i}function Ge(e,t){if(!t)return{};if(!e.options.presets[t])throw new Error("Unknown preset: "+t);return e.options.presets[t]}function De(e,t,i){var v,p;const o=L((v=i.modifiers)==null?void 0:v.width),l=L((p=i.modifiers)==null?void 0:p.height),c=o&&l?l/o:0,a=[],h={};if(typeof i.sizes=="string")for(const d of i.sizes.split(/[\s,]+/).filter(m=>m)){const m=d.split(":");m.length===2&&(h[m[0].trim()]=m[1].trim())}else Object.assign(h,i.sizes);for(const d in h){const m=e.options.screens&&e.options.screens[d]||parseInt(d);let r=String(h[d]);const x=r.endsWith("vw");if(!x&&/^\d+$/.test(r)&&(r=r+"px"),!x&&!r.endsWith("px"))continue;let g=parseInt(r);if(!m||!g)continue;x&&(g=Math.round(g/100*m));const s=c?Math.round(g*c):l;a.push({width:g,size:r,screenMaxWidth:m,media:`(max-width: ${m}px)`,src:e.$img(t,{...i.modifiers,width:g,height:s},i)})}a.sort((d,m)=>d.screenMaxWidth-m.screenMaxWidth);const n=a[a.length-1];return n&&(n.media=""),{sizes:a.map(d=>`${d.media?d.media+" ":""}${d.size}`).join(", "),srcset:a.map(d=>`${d.src} ${d.width}w`).join(", "),src:n==null?void 0:n.src}}const Je=ke({keyMap:{format:"f",fit:"fit",width:"w",height:"h",resize:"s",quality:"q",background:"b"},joinWith:"&",formatter:(e,t)=>_(e)+"_"+_(t)}),Xe=(e,{modifiers:t={},baseURL:i}={},o)=>{t.width&&t.height&&(t.resize=`${t.width}x${t.height}`,delete t.width,delete t.height);const l=Je(t)||"_";
1return i||(i=X(o.options.nuxt.baseURL,"/_ipx")),{url:X(i,l,se(e))}},Ve=!0,Ze=!0,Qe=Object.freeze(Object.defineProperty({__proto__:null,getImage:Xe,supportsAlias:Ze,validateDomains:Ve},Symbol.toStringTag,{value:"Module"})),Ye=(e,t,i=null)=>{var P,A,$,E,R,b;let o=((A=(P=e.image)==null?void 0:P.pivot)==null?void 0:A.fit)||e.fit||"fit=crop&crop=focalpoint&x=.5&y=.5&z=1";const c=new URLSearchParams(o).entries(),a=Object.fromEntries(c);let h=a!=null&&a.w?parseInt(a.w):void 0,n=a!=null&&a.h?parseInt(a.h):void 0,v=a!=null&&a.x?parseFloat(a.x):.5,p=a!=null&&a.y?parseFloat(a.y):.5,d=a!=null&&a.z?parseFloat(a.z):1,m,r,x;m=(($=e.image)==null?void 0:$.width)/d,r=((E=e.image)==null?void 0:E.height)/d,x=m/r;let g=(e==null?void 0:e.maxWidth)||(t==null?void 0:t.width);(i==null?void 0:i.width)!==void 0&&i.width>0?g?g=Math.min(g,i.width):g=i.width:(i==null?void 0:i.width)!==void 0&&i.width<0&&g&&(g+=i.width);let s=(e==null?void 0:e.maxHeight)||(t==null?void 0:t.height);(i==null?void 0:i.height)!==void 0&&i.height>0?s?s=Math.min(s,i.height):s=i.height:(i==null?void 0:i.height)!==void 0&&i.height<0&&s&&(s+=i.height),(t==null?void 0:t.width)!==void 0&&g!==void 0&&(g=Math.min(g,t.width)),(t==null?void 0:t.height)!==void 0&&s!==void 0&&(s=Math.min(s,t.height));const y=(f,w,j=null)=>{const M=Z(f/w,2);switch(e.objectFit!=="cover"&&(g!==void 0&&g>0&&g<f&&(f=g,w=f/M),s!==void 0&&s>0&&s<w&&(w=s,f=w*M)),e.objectFit){case"cover":if(i||(i={}),t!=null&&t.width&&!(i!=null&&i.width)&&(i.width=t.width),t!=null&&t.height&&!(i!=null&&i.height)&&(i.height=t.height),i!=null&&i.width&&(i!=null&&i.height)){const I=Z(i.width/i.height,2);if(I>M?(f=Math.min(i.width,e.image.width/(d||1)),(t==null?void 0:t.width)!==void 0&&(f=Math.min(t.width,f)),w=f/I):I<M?(w=Math.min(i.height,e.image.height/(d||1)),(t==null?void 0:t.height)!==void 0&&(w=Math.min(t.height,w)),h=w*I):(f=Math.min(i.width,e.image.width/(d||1)),w=Math.min(i.height,e.image.height/(d||1))),j){const C=e.image.width/e.image.height;let B;if(M>I?h&&n&&(B=n/i.height):M<I&&h&&n&&(B=h/i.width),B!==void 0){const N=i.width*B,U=i.height*B;C>I?j=e.image.height/U:j=e.image.width/N}j=Math.max(j,1)}}break;case"contain":default:g!==void 0&&g>0&&g<f&&(f=g,w=f/M),s!==void 0&&s>0&&s<w&&(w=s,f=w*M);break}return{width:Math.round(f),height:Math.round(w),z:j}};if(h&&n){x=h/n;const f=y(h,n,d);h=m=f.width,n=r=f.height,d=f.z||d,o=o.replace(/w=([0-9]+\.?[0-9]*)/,`w=${m}`),o=o.replace(/h=([0-9]+\.?[0-9]*)/,`h=${r}`),(b=(R=e.image)==null?void 0:R.pivot)!=null&&b.z?o=o.replace(/z=([0-9]+\.?[0-9]*)/,`z=${d}`):o+=`&z=${d}`}else{const f=y(m,r);m=f.width,r=f.height,h?o=o.replace(/w=([0-9]+\.?[0-9]*)/,`w=${m}`):o+=`&w=${m}`,h=m,n?o=o.replace(/h=([0-9]+\.?[0-9]*)/,`h=${r}`):o+=`&h=${r}`,n=r}let S=K(e.image,o,(e==null?void 0:e.optimize)||"traffic",!0);return t.format==="webp"&&(S=K(e.image,`${o}&format=webp`,(e==null?void 0:e.optimize)||"traffic")),{src:S,width:m,height:r,ratio:x,pivot:{fit:o,w:h,h:n,x:v,y:p,z:d}}},Ke=(e,{modifiers:t={},baseURL:i}={},o)=>{const{props:l,container:c,width:a,height:h,format:n,fit:v,...p}=t,d=Ye(l,{width:a,height:h,format:n},c);return{url:d==null?void 0:d.src}},_e=!0,qe=!0,et=Object.freeze(Object.defineProperty({__proto__:null,getImage:Ke,supportsAlias:qe,validateDomains:_e},Symbol.toStringTag,{value:"Module"})),de={screens:{xs:320,sm:640,md:768,lg:1024,xl:1280,xxl:1536,"2xl":1536},presets:{},provider:"co",domains:["api.cityoffer.online","cdn.cityoffer.online","local.cdn.cityoffer.online","local.cdn.cityoffer.online"],alias:{}};de.providers={ipx:{provider:Qe,defaults:void 0},co:{provider:et,defaults:{}}};const tt=()=>{const e=ce(),t=ie();return t.$img||t._img||(t._img=Ce({...de,nuxt:{baseURL:e.app.baseURL}}))},he={src:{type:String,required:!0},format:{type:String,default:void 0},quality:{type:[Number,String],default:void 0},background:{type:String,default:void 0},fit:{type:String,default:void 0},modifiers:{type:Object,default:void 0},preset:{type:String,default:void 0},provider:{type:String,default:void 0},sizes:{type:[Object,String],default:void 0},preload:{type:Boolean,default:void 0},width:{type:[String,Number],default:void 0},height:{type:[String,Number],default:void 0},alt:{type:String,default:void 0},referrerpolicy:{type:String,default:void 0},usemap:{type:String,default:void 0},longdesc:{type:String,default:void 0},ismap:{type:Boolean,default:void 0},loading:{type:String,default:void 0},crossorigin:{type:[Boolean,String],default:void 0,validator:e=>["anonymous","use-credentials","",!0,!1].includes(e)},decoding:{type:String,default:void 0,validator:e=>["async","auto","sync"].includes(e)}},it=e=>{const t=F(()=>({provider:e.provider,preset:e.preset})),i=F(()=>({width:L(e.width),height:L(e.height),alt:e.alt,referrerpolicy:e.referrerpolicy,usemap:e.usemap,longdesc:e.longdesc,ismap:e.ismap,crossorigin:e.crossorigin===!0?"anonymous":e.crossorigin||void 0,loading:e.loading,decoding:e.decoding})),o=F(()=>({...e.modifiers,width:L(e.width),height:L(e.height),format:e.format,quality:e.quality,background:e.background,fit:e.fit}));return{options:t,attrs:i,modifiers:o}},at={...he,legacyFormat:{type:String,default:null},imgAttrs:{type:Object,default:null}},ot=ae({name:"NuxtPicture",props:at,emits:["load"],setup:(e,t)=>{var r,x,g;const i=tt(),o=it(e),l=F(()=>["png","webp","gif"].includes(c.value)),c=F(()=>Te(e.src)),a=F(()=>e.format||(c.value==="svg"?"svg":"webp")),h=F(()=>e.legacyFormat?e.legacyFormat:{webp:l.value?"png":"jpeg",svg:"png"}[a.value]||c.value),n=F(()=>a.value==="svg"?[{src:e.src}]:(h.value!==a.value?[h.value,a.value]:[a.value]).map(y=>{const{srcset:S,sizes:P,src:A}=i.getSizes(e.src,{...o.options.value,sizes:e.sizes||i.options.screens,modifiers:{...o.modifiers.value,format:y}});return{src:A,type:`image/${y}`,sizes:P,srcset:S}}
1));if(e.preload){const s=(r=n.value)!=null&&r[1]?1:0,y={rel:"preload",as:"image",imagesrcset:n.value[s].srcset};(g=(x=n.value)==null?void 0:x[s])!=null&&g.sizes&&(y.imagesizes=n.value[s].sizes),ge({link:[y]})}const v={...e.imgAttrs,"data-nuxt-pic":""};for(const s in t.attrs)s in he&&!(s in v)&&(v[s]=t.attrs[s]);const p=W(),m=ie().isHydrating;return oe(()=>{p.value&&(p.value.complete&&m&&!p.value.getAttribute("data-error")&&t.emit("load",new Event("load")),p.value.onload=s=>{t.emit("load",s)})}),()=>{var s;return G("picture",{key:n.value[0].src},[...(s=n.value)!=null&&s[1]?[G("source",{type:n.value[1].type,sizes:n.value[1].sizes,srcset:n.value[1].srcset})]:[],G("img",{ref:p,...o.attrs.value,...v,src:n.value[0].src,sizes:n.value[0].sizes,srcset:n.value[0].srcset})])}}}),st=["data-picture-id"],nt=ae({__name:"Picture",props:{image:{},title:{},alt:{},width:{},height:{},maxWidth:{},maxHeight:{},missingInfo:{default:"konnte nicht gefunden werden"},hideMissingInfo:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},preload:{type:Boolean,default:!1},debug:{type:Boolean,default:!1},optimize:{default:"traffic"},fit:{default:"fit=crop&crop=focalpoint&x=.5&y=.5&z=1"},missingIcon:{type:[String,null,Boolean],default:"x-mark"},objectFit:{default:"scale-down"},showPreview:{type:Boolean,default:!0},showMatchingBackground:{type:Boolean,default:!1},dontShowMatchingBackgroundForPng:{type:Boolean,default:!0},showPlaceholder:{type:Boolean,default:!0},showSpinner:{type:Boolean,default:!1},spinnerSize:{default:6},spinnerThickness:{default:2},ignoreContainerPadding:{type:Boolean,default:!1},ignoreContainerWidth:{type:Boolean,default:!1},ignoreContainerHeight:{type:Boolean,default:!1},forceWidth:{type:Boolean,default:!1},forceHeight:{type:Boolean,default:!1}},setup(e){const t=e,i=me();W(!1);const o=W(!1),l=W(!1),c=W(!1);D({loading:!1,loaded:!1,error:!1}),D({loading:!1,loaded:!1,error:!1});const a=D({observer:void 0,width:void 0,height:void 0}),h=W(),n=F(()=>{var j,M,I,C,B,N,U;let r=((M=(j=t.image)==null?void 0:j.pivot)==null?void 0:M.fit)||t.fit;const g=new URLSearchParams(r).entries(),s=Object.fromEntries(g);let y=s!=null&&s.w?parseInt(s.w):void 0,S=s!=null&&s.h?parseInt(s.h):void 0,P=s!=null&&s.x?parseFloat(s.x):.5,A=s!=null&&s.y?parseFloat(s.y):.5,$=s!=null&&s.z?parseFloat(s.z):1,E,R;E=t.image.width/$,R=t.image.height/$;let b=t.maxWidth;(a==null?void 0:a.width)!==void 0&&a.width>0?b?b=Math.min(b,a.width):b=a.width:a.width!==void 0&&a.width<0&&b&&(b+=a.width);let f=t.maxHeight;(a==null?void 0:a.height)!==void 0&&a.height>0?f?f=Math.min(f,a.height):f=a.height:a.height!==void 0&&a.height<0&&f&&(f+=a.height);const w=(u,z,H=null)=>{const T=u/z;t.objectFit!=="cover"&&(b!==void 0&&b>0&&b<u&&(u=b,z=u/T),f!==void 0&&f>0&&f<z&&(z=f,u=z*T));const V=u,fe=z;switch(t.objectFit){case"cover":if(a.width&&a.height){const k=a.width/a.height;k>T?(u=Math.min(a.width,t.image.width/($||1)),z=u/k):(z=Math.min(a.height,t.image.height/($||1)),u=z*k),H!==1&&(t.image.width/t.image.height>k?H=t.image.height/fe:(t.image.width/t.image.height<k,H=t.image.width/V))}break;case"contain":default:b!==void 0&&b>0&&b<u&&(u=b,z=u/T),f!==void 0&&f>0&&f<z&&(z=f,u=z*T);break}return{width:u,height:z,z:H}};if(y&&S){const u=w(y,S,$);y=E=u.width,S=R=u.height,$=u.z||$,r=r.replace(/w=([0-9]+\.?[0-9]*)/,`w=${E}`),r=r.replace(/h=([0-9]+\.?[0-9]*)/,`h=${R}`),$?r=r.replace(/z=([0-9]+\.?[0-9]*)/,`z=${$}`):r+=`&z=${$}`}else{const u=w(E,R);E=u.width,R=u.height,y?r=r.replace(/w=([0-9]+\.?[0-9]*)/,`w=${E}`):r+=`&w=${E}`,y=E,S?r=r.replace(/h=([0-9]+\.?[0-9]*)/,`h=${R}`):r+=`&h=${R}`,S=R}return{src:{type:((C=(I=t.image)==null?void 0:I.source)==null?void 0:C.mime)||((B=t.image)==null?void 0:B.mime),regular:(U=(N=t.image)==null?void 0:N.source)==null?void 0:U.url},width:E,height:R,pivot:{fit:r,w:y,h:S,x:P,y:A,z:$}}});let v="co",p={props:t,container:a};t.objectFit==="cover"&&(p.maxWidth=n.value.width,p.maxHeight=n.value.height);const d=r=>{l.value=!0},m=r=>{c.value=!0};return oe(async()=>{}),(r,x)=>{var s,y,S,P;const g=ot;return Q(),Y("div",{class:we(["picture-container",[{error:O(c),loading:O(o),loaded:O(l),skeleton:r.showPlaceholder},`object-fit-${r.objectFit}`]]),"data-picture-id":O(i),ref_key:"container",ref:h},[(Q(),Y("figure",{ref:"figure",key:n.value.id},[ue(g,{src:(y=(s=n.value)==null?void 0:s.src)==null?void 0:y.regular,title:r.title,alt:r.alt||r.title,modifiers:O(p),provider:O(v),width:(S=n.value)==null?void 0:S.width,height:(P=n.value)==null?void 0:P.height,preload:r.preload,loading:r.lazy?"lazy":"eager",onError:m,onLoad:d},null,8,["src","title","alt","modifiers","provider","width","height","preload","loading"]),ve(r.$slots,"default",{},void 0,!0)]))],10,st)}}});const dt=pe(nt,[["__scopeId","data-v-75b9ceb7"]]);export{dt as _};

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.