import{al as w}from"./client-BmVmnFEC.js";import{l as M,i as D,f as N}from"./date-BYBoZiPG.js";import{m as A}from"./makeGtmScript-B8HLg2s0.js";function T(e,t,i,n){return n={...n,timeZone:t,originalDate:e},M(D(e,t,{timeZone:n.timeZone}),i,n)}function J(e){return{articleOutline:w(()=>{let i=0;return e.restaurantGroups.map((n,o)=>({id:`group-${o}`,text:n.title,restaurants:n.restaurants.map(r=>(i+=1,{id:`anchor-${r.id}`,index:i,text:r.name}))}))})}}function x(e){return e<100?0:e<500?100:e<1e3?500:1e3}function I(e){const t=new Date(e);return Number.isNaN(t.getTime())?"":N(t)}const p=e=>T(e,"Asia/Tokyo","yyyy-MM-dd"),F=e=>({"@context":"https://schema.org","@type":"Article","@id":`https://retty.me/matome/${e.id}/`,image:e.eyecatchImageUrl,headline:e.title,description:e.description,datePublished:p(e.datePublished),dateModified:p(e.dateModified)}),O=(...e)=>{const t=[...e].filter(i=>i!==null);return t.length===0?null:{innerHTML:JSON.stringify(t),type:"application/ld+json"}},U=(e,t)=>{const i=O(F(e)),n=i!==null?[i]:[],{description:o,id:r,eyecatchImageUrl:d}=e,a=`${e.title} - Retty`,c=`https://retty.me/matome/${r}/`;return{__dangerouslyDisableSanitizers:["script"],title:a,link:[{hid:"canonical",rel:"canonical",href:c}],script:[...A(t),...n],meta:[{hid:"description",name:"description",content:o},{hid:"twitter:title",name:"twitter:title",content:a},{hid:"twitter:description",name:"twitter:description",content:o},{hid:"twitter:url",name:"twitter:url",content:c},{hid:"twitter:image",name:"twitter:image",content:d},{hid:"twitter:card",name:"twitter:card",content:"summary_large_image"},{hid:"twitter:site",name:"twitter:site",content:"@Retty_jp"},{hid:"og:type",property:"og:type",content:"article"},{hid:"og:title",property:"og:title",content:a},{hid:"og:description",property:"og:description",content:o},{hid:"og:url",property:"og:url",content:c},{hid:"og:image",property:"og:image",content:d}]}};var m={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"matomeArticleToMakeArticle"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MatomeArticle"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"eyecatchImageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"datePublished"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dateModified"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"matomeArticleToMakeJSONLD"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MatomeArticle"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"matomeArticleToMakeArticle"},directives:[]}]}}],loc:{start:0,end:223}};m.loc.source={body:`fragment matomeArticleToMakeArticle on MatomeArticle {
id
title
eyecatchImageUrl
description
datePublished
dateModified
}
fragment matomeArticleToMakeJSONLD on MatomeArticle {
...matomeArticleToMakeArticle
}
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function s(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var i=e.type;i.kind==="NamedType"&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(n){s(n,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(n){s(n,t)}),e.definitions&&e.definitions.forEach(function(n){s(n,t)})}var v={};(function(){m.definitions.forEach(function(t){if(t.name){var i=new Set;s(t,i),v[t.name.value]=i}})})();function h(e,t){for(var i=0;i