1import{g as a,f as p,s as m,b as f,S as d,D as h}from"./urls-C1Jcunfm.js";function u(t){return a(t)}function y(t){return t?Array.isArray(t)?t:[t]:[h]}function b(t){const r=u(t.siteUrl),s=p(t.title),o=t.description?m(t.description):void 0,n=t.canonicalPath?f(t.canonicalPath,r):void 0,i=y(t.ogImage),c=t.ogType??"website",l=n??r,e=[{title:s}];o&&e.push({name:"description",content:o}),t.robots&&e.push({name:"robots",content:t.robots}),n&&e.push({tagName:"link",rel:"canonical",href:n}),e.push({property:"og:site_name",content:d},{property:"og:url",content:l},{property:"og:title",content:t.title.trim()},{property:"og:type",content:c}),o&&e.push({property:"og:description",content:o});for(const g of i)e.push({property:"og:image",content:g});return t.ogPrice&&c==="product"&&e.push({property:"og:price:amount",content:t.ogPrice.amount},{property:"og:price:currency",content:t.ogPrice.currency}),e.push({name:"twitter:card",content:"summary_large_image"}),e.push({name:"twitter:title",content:t.title.trim()}),o&&e.push({name:"twitter:description",content:o}),i[0]&&e.push({name:"twitter:image",content:i[0]}),t.twitterSite&&e.push({name:"twitter:site",content:t.twitterSite}),e}function S(t,r){return b({title:t,siteUrl:r,robots:"noindex, nofollow"})}function U(t){var o,n,i;const r=t.find(c=>!!(c&&String(c.id).endsWith("root"))),s=r==null?void 0:r.data;return a((i=(n=(o=s==null?void 0:s.header)==null?void 0:o.shop)==null?void 0:n.primaryDomain)==null?void 0:i.url)}export{S as a,b,U as r};
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.