1import{I as e,P as t}from"./chunk-JZWAC4HX-BBES8ed4.js";var n=e(t(),1),r=new Set([`link`,`style`,`script`,`noscript`]),i=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),a=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),o=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),s=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),c=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),l=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),u=new Set([`theme-color`,`google-site-verification`,`og`,`article`,`book`,`profile`,`twitter`,`author`]);function d(e,t,n,r){for(let i=n;i<e.length;i+=1)try{let n=r?r.run(()=>e[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>d(e,t,i+1,r))}catch(e){return Promise.reject(e)}}var f=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(!(!n||n.length===0))return d(n,t,0)}};function p(e){let t=new f;for(let n in e||{})t.hook(n,e[n]);return t}function m(e,t,n){return e.hooks?.callHook(t,n)}function h(e,t){let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function g(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,render:()=>e(i),use:e=>h(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}var _=(0,n.createContext)(null);function v(e){return e}var y=/\\/g,b=/</g,x=/"/g,S=/%\w+(?:\.\w+)?/g,C=`%separator`;function w(e,t,n=!1){let r;if(t===`s`||t===`pageTitle`)r=e.pageTitle;else if(t.includes(`.`)){let n=t.indexOf(`.`);r=e[t.substring(0,n)]?.[t.substring(n+1)]}else r=e[t];if(r!==void 0)return n?(r||``).replace(y,`\\\\`).replace(b,`\\u003C`).replace(x,`\\"`):r||``}function T(e,t,n,r=!1){if(typeof e!=`string`||!e.includes(`%`))return e;let i=e;try{i=decodeURI(e)}catch{}let a=i.match(S);if(!a)return e;let o=e.includes(C);return e=e.replace(S,e=>{if(e===C||!a.includes(e))return e;let n=w(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(C).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var E={meta:`content`,link:`href`,htmlAttrs:`lang`},D=[`innerHTML`,`textContent`],O=v(e=>({key:`template-params`,hooks:{"tags:resolve":({tagMap:t,tags:n})=>{let r=t.get(`templateParams`)?.props||{},i=r.separator||`|`;delete r.separator,r.pageTitle=T(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=E[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=T(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of D)typeof e[t]==`string`&&(e[t]=T(e[t],r,i,e.tag===`script`&&e.props.type.endsWith(`json`)))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{let n=t.get(`title`);n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=T(n.textContent,e._templateParams,e._separator))}}})),k={META:new Set([`twitter`,`fediverse`]),OG:new Set([`og`,`book`,`article`,`profile`,`fb`]),MEDIA:new Set([`ogImage`,`ogVideo`,`ogAudio`,`twitterImage`]),HTTP_EQUIV:new Set([`contentType`,`defaultStyle`,`xUaCompatible`])},A={articleExpirationTime:`article:expiration_time`,articleModifiedTime:`article:modified_time`,articlePublishedTime:`article:published_time`,bookReleaseDate:`book:release_date`,fbAppId:`fb:app_id`,ogAudioSecureUrl:`og:audio:secure_url`,ogAudioUrl:`og:audio`,ogImageSecureUrl:`og:image:secure_url`,ogImageUrl:`og:image`,ogSiteName:`og:site_name`,ogVideoSecureUrl:`og:video:secure_url`,ogVideoUrl:`og:video`,profileFirstName:`profile:first_name`,profileLastName:`profile:last_name`,profileUsername:`profile:username`,msapplicationConfig:`msapplication-Config`,msapplicationTileColor:`msapplication-TileColor`,msapplicationTileImage:`msapplication-TileImage`},j=/([A-Z])/g,M=/^(?:og|twitter)/,N={appleItunesApp:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>`${P(e)}=${t}`}},refresh:{metaKey:`http-equiv`,unpack:{entrySeparator:`;`,resolve:({key:e,value:t})=>e===`seconds`?`${t}`:void 0}},robots:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>typeof t==`boolean`?P(e):`${P(e)}:${t}`}},contentSecurityPolicy:{metaKey:`http-equiv`,unpack:{entrySeparator:`; `,resolve:({key:e,value:t})=>`${P(e)} ${t}`}},charset:{}};function P(e){let t=e.replace(j,`-$1`).toLowerCase(),n=t.indexOf(`-`);return n===-1?t:k.META.has(t.slice(0,n))||k.OG.has(t.slice(0,n))?e.replace(j,`:$1`).toLowerCase():t}function F(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>String(t)!==`false`&&e))}function I(e){return Array.isArray(e)?e.map(I):!e||typeof e!=`object`?e:Object.fromEntries(Object.entries(e).map(([e,t])=>[P(e),I(t)]))}function L(e,t={}){let{entrySeparator:n=``,keyValueSeparator:r=``,wrapValue:i,resolve:a}=t;return Object.entries(e).map(([e,n])=>{if(a){let t=a({key:e,value:n});if(t!==void 0)return t}return`${e}${r}
1${typeof n==`object`?L(n,t):typeof n==`number`?n.toString():typeof n==`string`&&i?`${i}${n.replace(new RegExp(i,`g`),`\\${i}`)}${i}`:n}`}).join(n)}function R(e,t){let n=F(t),r=P(e),i=z(r);return u.has(r)?H(Object.fromEntries(Object.entries(n).map(([t,n])=>[`${e}${t===`url`?``:`${t[0].toUpperCase()}${t.slice(1)}`}`,n]))||{}).sort((e,t)=>(e[i]?.length||0)-(t[i]?.length||0)):[{[i]:r,...n}]}function z(e){if(N[e]?.metaKey===`http-equiv`||k.HTTP_EQUIV.has(e))return`http-equiv`;let t=P(e),n=t.indexOf(`:`);return n===-1?`name`:k.OG.has(t.slice(0,n))?`property`:`name`}function B(e){return A[e]||P(e)}function V(e,t){return t===`refresh`?`${e.seconds};url=${e.url}`:L(I(e),{keyValueSeparator:`=`,entrySeparator:`, `,resolve:({value:e,key:t})=>e===null?``:typeof e==`boolean`?t:void 0,...N[t]?.unpack})}function H(e){let t=[],n={};for(let[r,i]of Object.entries(e)){if(Array.isArray(i)){if(r===`themeColor`){i.forEach(e=>{typeof e==`object`&&e&&t.push({name:`theme-color`,...e})});continue}for(let e of i)if(typeof e==`object`&&e){let n=[],i=[];for(let[t,a]of Object.entries(e)){let e=H({[`${r}${t===`url`?``:`:${t}`}`]:a});(t===`url`?n:i).push(...e)}t.push(...n,...i)}else t.push(...typeof e==`string`?H({[r]:e}):R(r,e));continue}if(typeof i==`object`&&i)if(k.MEDIA.has(r)){let e=r.startsWith(`twitter`)?`twitter`:`og`,n=r.replace(M,``).toLowerCase(),a=e===`twitter`?`name`:`property`;i.url&&t.push({[a]:`${e}:${n}`,content:i.url}),i.secureUrl&&t.push({[a]:`${e}:${n}:secure_url`,content:i.secureUrl});for(let[r,o]of Object.entries(i))r!==`url`&&r!==`secureUrl`&&t.push({[a]:`${e}:${n}:${r}`,content:o})}else u.has(P(r))?t.push(...R(r,i)):n[r]=F(i);else n[r]=i}let r=Object.entries(n).map(([e,t])=>{if(e===`charset`)return{charset:t===null?`_null`:t};let n=z(e),r=B(e),i=t===null?`_null`:typeof t==`object`?V(t,e):typeof t==`number`?t.toString():t;return n===`http-equiv`?{"http-equiv":r,content:i}:{[n]:r,content:i}});return[...t,...r].map(e=>`content`in e&&e.content===`_null`?{...e,content:null}:e)}var U=v({key:`flatMeta`,hooks:{"entries:normalize":e=>{let t=[];e.tags=[...e.tags.map(e=>e.tag===`_flatMeta`?(t.push(...H(e.props).map(t=>({...e,tag:`meta`,props:t}))),!1):e).filter(Boolean),...t]}}});function W(e){if(Array.isArray(e))return e.map(W);if(e&&typeof e==`object`){let t={};for(let n of Object.keys(e))n===`__proto__`||n===`constructor`||n===`prototype`||(t[n]=W(e[n]));return t}return e}function G(e){let t=``,n=0,r=0,i=e.length;for(;n<i;){let a=e[n];if(a===`'`||a===`"`){let r=a;for(t+=a,n++;n<i&&e[n]!==r;)e[n]===`\\`&&n+1<i&&(t+=e[n++]),t+=e[n++];n<i&&(t+=e[n++])}else if(a===`/`&&e[n+1]===`*`){for(n+=2;n<i&&!(e[n]===`*`&&e[n+1]===`/`);)n++;n+=2}else if(a===`(`)r++,t+=a,n++;else if(a===`)`)r=Math.max(0,r-1),t+=a,n++;else if(a===` `||a===` `||a===` 2`||a===`\r`){for(;n<i&&(e[n]===` `||e[n]===` `||e[n]===` 3`||e[n]===`\r`);)n++;let a=t.at(-1),o=e[n];if(o===`!`)continue;r>0?a&&o&&!q(a)&&!q(o)&&(t+=` `):a&&o&&!K(a)&&!K(o)&&(t+=` `)}else if(a===`;`){let r=n+1;for(;r<i&&(e[r]===` `||e[r]===` `||e[r]===` 4`||e[r]===`\r`);)r++;e[r]===`}`||(t+=a),n++}else if(a===`0`&&e[n+1]===`.`&&e[n+2]>=`0`&&e[n+2]<=`9`){let e=t.at(-1);e&&e>=`0`&&e<=`9`&&(t+=a),n++}else t+=a,n++}return t.trim()}function K(e){return e===`{`||e===`}`||e===`;`||e===`:`||e===`,`||e===`>`||e===`~`||e===`+`||e===`(`||e===`)`}function q(e){return e===`*`||e===`/`||e===`(`||e===`)`||e===`,`}function J(e){let t=``,n=0,r=e.length;for(;n<r;){let i=e[n];if(i===`'`||i===`"`||i==="`"){let a=i;for(t+=i,n++;n<r&&e[n]!==a;)e[n]===`\\`&&n+1<r&&(t+=e[n++]),t+=e[n++];n<r&&(t+=e[n++])}else if(i===`/`&&e[n+1]===`/`)for(n+=2;n<r&&e[n]!==` 5`;)n++;else if(i===`/`&&e[n+1]===`*`){for(n+=2;n<r&&!(e[n]===`*`&&e[n+1]===`/`);)n++;n+=2}else if(i===` `||i===` `||i===` 6`||i===`\r`){let i=!1;for(;n<r&&(e[n]===` `||e[n]===` `||e[n]===` 7`||e[n]===`\r`);)e[n]===` 8`&&(i=!0),n++;let a=t.at(-1),o=e[n];i&&a&&o&&a!==`{`&&a!==`}`&&a!==`;`&&o!==`}`&&o!==`;`?t+=` 9`:(a&&o&&Y(a)&&Y(o)||a&&o&&(a===`+`&&o===`+`||a===`-`&&o===`-`))&&(t+=` `)}else t+=i,n++}return t.trim()}function Y(e){return e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e>=`0`&&e<=`9`||e===`_`||e===`$`}function X(e){try{return JSON.stringify(JSON.parse(e))}catch{return e}}var Z=[`og:url`,`og:image`,`og:image:url`,`og:image:secure_url`,`twitter:image`,`twitter:image:sr
9c`,`og:video`,`og:video:url`,`og:video:secure_url`,`og:audio`,`og:audio:url`,`og:audio:secure_url`,`twitter:player`,`twitter:player:stream`],Q=new Set([`canonical`,`next`,`prev`,`alternate`,`author`,`license`,`help`,`search`,`pingback`]),$=new Set([`og:url`]);function ee(e){return t=>{let n=e.canonicalHost||window.location.origin;!n.startsWith(`http`)&&!n.startsWith(`//`)&&(n=`https://${n}`),n=new URL(n).origin;let r=e.queryWhitelist===void 0?[]:e.queryWhitelist;function i(t){try{let i=new URL(t,n);if(i.hash=``,r!==!1&&i.search){let e=new URLSearchParams;for(let t of r)if(i.searchParams.has(t))for(let n of i.searchParams.getAll(t))e.append(t,n);i.search=e.toString()}return e.trailingSlash===!0&&!i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}/`:e.trailingSlash===!1&&i.pathname!==`/`&&i.pathname.endsWith(`/`)&&(i.pathname=i.pathname.slice(0,-1)),i.toString()}catch{return t}}function a(t){if(e?.customResolver)return e.customResolver(t);if(t.startsWith(`http`)||t.startsWith(`//`))return t;try{return new URL(t,n).toString()}catch{return t}}return{key:`canonical`,hooks:{"tags:resolve":e=>{for(let t of e.tags){let e=t.props?.property||t.props?.name;if(t.tag===`meta`&&Z.includes(e))t.props.content=a(t.props.content),$.has(e)&&(t.props.content=i(t.props.content));else if(t.tag===`link`&&Q.has(t.props.rel)){let e=t.props.rel===`canonical`;t.props.href=a(t.props.href),e&&(t.props.href=i(t.props.href))}}}}}}}function te(e={}){return v(t=>(e.twitterCard!==!1&&t.push({meta:[{name:`twitter:card`,content:e.twitterCard||`summary_large_image`,tagPriority:`low`}]}),t.push({meta:[{property:`og:title`,tagPriority:`low`,"data-infer":``},{property:`og:description`,tagPriority:`low`,"data-infer":``}]}),{key:`infer-seo-meta`,hooks:{"tags:beforeResolve":({tagMap:n})=>{let r=t._titleTemplate||t._title,i=n.get(`meta:og:title`);i?.props[`data-infer`]!==void 0&&(typeof r==`function`&&(r=r(t._title)),i.props.content=e.ogTitle?e.ogTitle(r):r||``,i.processTemplateParams=!0);let a=n.get(`meta:description`)?.props?.content,o=n.get(`meta:og:description`);o?.props[`data-infer`]!==void 0&&(o.props.content=e.ogDescription?e.ogDescription(a):a||``,o.processTemplateParams=!0)}}}))}var ne=new Set([`application/json`,`application/ld+json`]),re=new Set([`application/json`,`application/ld+json`,`speculationrules`,`importmap`]);function ie(e){let t=e?.js===!1?!1:e?.js||J,n=e?.css===!1?!1:e?.css||G,r=e?.json!==!1;return{key:`minify`,hooks:{"ssr:render":({tags:e})=>{for(let i of e){let e=i.innerHTML;if(!(!e||e.length<20)){if(i.tag===`script`){let n=i.props?.type;if(n&&ne.has(n)){if(r){let t=X(e);t.length<e.length&&(i.innerHTML=t)}continue}if(n&&re.has(n))continue;if(t){let n=t(e);n.length<e.length&&(i.innerHTML=n)}}else if(i.tag===`style`&&n){let t=n(e);t.length<e.length&&(i.innerHTML=t)}}}}}}}export{i as _,O as a,o as b,_ as c,m as d,p as f,c as g,u as h,U as i,g as l,a as m,te as n,T as o,r as p,ie as r,v as s,ee as t,h as u,s as v,l as y};
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.